protected function setFile($file_id)
    {
        $this->data_file = array();

        if (is_numeric($file_id)) {

            $conditions = array(
                'language' => 'und',
                'file_id' => $file_id
            );

            $this->data_file = $this->file->get($conditions);

            if (empty($this->data_file)) {
                $this->outputHttpStatus(404);
            }

            $this->prepareFile($this->data_file);
        }
    }
protected function setFile($file_id)
    {
        $this->data_file = array();

        if (is_numeric($file_id)) {

            $conditions = array(
                'language' => 'und',
                'file_id' => $file_id
            );

            $this->data_file = $this->file->get($conditions);

            if (empty($this->data_file)) {
                $this->outputHttpStatus(404);
            }

            $this->prepareFile($this->data_file);
        }
    }
protected function setFile ( $ file_id ) { $ this -> data_file = array ( ) ; if ( is_numeric ( $ file_id ) ) { $ conditions = array ( 'language' => 'und' , 'file_id' => $ file_id ) ; $ this -> data_file = $ this -> file -> get ( $ conditions ) ; if ( empty ( $ this -> data_file ) ) { $ this -> outputHttpStatus ( 404 ) ; } $ this -> prepareFile ( $ this -> data_file ) ; } }
Sets a file data
@param integer $file_id
Sets a file data