public function get_file_info($component, $filearea, $itemid, $filepath, $filename) {
        if (empty($component)) {
            return $this;
        }

        $methodname = "get_area_{$component}_{$filearea}";

        if (method_exists($this, $methodname)) {
            return $this->$methodname($itemid, $filepath, $filename);
        }

        return null;
    }
public function get_file_info($component, $filearea, $itemid, $filepath, $filename) {
        if (empty($component)) {
            return $this;
        }

        $methodname = "get_area_{$component}_{$filearea}";

        if (method_exists($this, $methodname)) {
            return $this->$methodname($itemid, $filepath, $filename);
        }

        return null;
    }
public function get_file_info ( $ component , $ filearea , $ itemid , $ filepath , $ filename ) { if ( empty ( $ component ) ) { return $ this ; } $ methodname = "get_area_{$component}_{$filearea}" ; if ( method_exists ( $ this , $ methodname ) ) { return $ this -> $ methodname ( $ itemid , $ filepath , $ filename ) ; } return null ; }
Return information about this specific part of context level

@param string $component component
@param string $filearea file area
@param int $itemid item ID
@param string $filepath file path
@param string $filename file name
@return file_info|null file_info instance or null if not found or access not allowed
Return information about this specific part of context level