/** * Retrieves the default Sydney_Search_Files_Links instance. * * @return Sydney_Search_Files_Links */ public static function getInstance() { if (self::$_links === null) { self::$_links = new Sydney_Search_Files_Users_Links(); } return self::$_links; }
/** * Buils a list of content/resource where a link to the file are found * @param $fileid * @return array */ public function getLinks($fileid) { Sydney_Search_Files_Pages_Links::getInstance()->buildLinks($fileid); Sydney_Search_Files_Users_Links::getInstance()->buildLinks($fileid); return Sydney_Search_Files_Result::get(); }