public function get($file)
    {
        $result = null;
        $this->hook->attach('help.get.before', $file, $result, $this);

        if (isset($result)) {
            return (array) $result;
        }

        $result = $this->getMeta($file);

        if (empty($result)) {
            return array();
        }

        $hash = gplcart_string_encode(gplcart_path_relative($file));

        $result += array(
            'file' => $file,
            'path' => "admin/help/$hash"
        );

        $this->hook->attach('help.get.after', $file, $result, $this);
        return (array) $result;
    }
public function get($file)
    {
        $result = null;
        $this->hook->attach('help.get.before', $file, $result, $this);

        if (isset($result)) {
            return (array) $result;
        }

        $result = $this->getMeta($file);

        if (empty($result)) {
            return array();
        }

        $hash = gplcart_string_encode(gplcart_path_relative($file));

        $result += array(
            'file' => $file,
            'path' => "admin/help/$hash"
        );

        $this->hook->attach('help.get.after', $file, $result, $this);
        return (array) $result;
    }
public function get ( $ file ) { $ result = null ; $ this -> hook -> attach ( 'help.get.before' , $ file , $ result , $ this ) ; if ( isset ( $ result ) ) { return ( array ) $ result ; } $ result = $ this -> getMeta ( $ file ) ; if ( empty ( $ result ) ) { return array ( ) ; } $ hash = gplcart_string_encode ( gplcart_path_relative ( $ file ) ) ; $ result += array ( 'file' => $ file , 'path' => "admin/help/$hash" ) ; $ this -> hook -> attach ( 'help.get.after' , $ file , $ result , $ this ) ; return ( array ) $ result ; }
Returns an array of help data from the file
@param string $file
@return array
Returns an array of help data from the file