public function getContent()
    {
        $this->absolute();

        //if the pat is not a real file
        if (!is_file($this->data)) {
            //throw an exception
            Exception::i()
                ->setMessage(self::ERROR_PATH_IS_NOT_FILE)
                ->addVariable($this->data)
                ->trigger();
        }

        return file_get_contents($this->data);
    }
public function getContent()
    {
        $this->absolute();

        //if the pat is not a real file
        if (!is_file($this->data)) {
            //throw an exception
            Exception::i()
                ->setMessage(self::ERROR_PATH_IS_NOT_FILE)
                ->addVariable($this->data)
                ->trigger();
        }

        return file_get_contents($this->data);
    }
public function getContent ( ) { $ this -> absolute ( ) ; //if the pat is not a real file if ( ! is_file ( $ this -> data ) ) { //throw an exception Exception :: i ( ) -> setMessage ( self :: ERROR_PATH_IS_NOT_FILE ) -> addVariable ( $ this -> data ) -> trigger ( ) ; } return file_get_contents ( $ this -> data ) ; }
Returns the contents of a file given the path

@return string
Returns the contents of a file given the path