/** * Получить документ из БД по URL * @param integer $site_id * @param string $path * @return self|FALSE */ public static function get_by_path($site_id, $path) { $doc = new self(); return $doc->load_where('site_id', $site_id, 'path', $path); }
/** * Get first link with 'is_processed'==false * @return nc_search_indexer_link|FALSE */ public static function get_first_non_processed() { $link = new self(); return $link->load_where('is_processed', false); }