Submit
Path:
~
/
home
/
bfxleof
/
www
/
wp-content
/
plugins
/
wordpress-seo
/
src
/
repositories
/
File Content:
seo-links-repository.php
<?php namespace Yoast\WP\SEO\Repositories; use Yoast\WP\Lib\Model; use Yoast\WP\Lib\ORM; /** * Class SEO_Links_Repository. */ class SEO_Links_Repository { /** * Starts a query for this repository. * * @return ORM */ public function query() { return Model::of_type( 'SEO_Links' ); } /** * Finds all SEO Links by post ID. * * @param int $post_id The post ID. * * @return SEO_Links[] The SEO Links. */ public function find_all_by_post_id( $post_id ) { return $this->query() ->where( 'post_id', $post_id ) ->find_many(); } /** * Finds all SEO Links by indexable ID. * * @param int $indexable_id The indexable ID. * * @return SEO_Links[] The SEO Links. */ public function find_all_by_indexable_id( $indexable_id ) { return $this->query() ->where( 'indexable_id', $indexable_id ) ->find_many(); } /** * Clears all SEO Links by post ID. * * @param int $post_id The post ID. * * @return bool Whether or not the delete was succesfull. */ public function delete_all_by_post_id( $post_id ) { return $this->query() ->where( 'post_id', $post_id ) ->delete_many(); } /** * Clears all SEO Links by indexable ID. * * @param int $indexable_id The indexable ID. * * @return bool Whether or not the delete was succesfull. */ public function delete_all_by_indexable_id( $indexable_id ) { return $this->query() ->where( 'indexable_id', $indexable_id ) ->delete_many(); } /** * Returns incoming link counts for a number of posts. * * @param array $post_ids The post IDs. * * @return array An array of associative arrays, each containing a post id and incoming property. */ public function get_incoming_link_counts_for_post_ids( $post_ids ) { return $this->query() ->select_expr( 'COUNT( id )', 'incoming' ) ->select( 'target_post_id', 'post_id' ) ->where_in( 'target_post_id', $post_ids ) ->group_by( 'target_post_id' ) ->find_array(); } /** * Returns incoming link counts for a number of indexables. * * @param array $indexable_ids The indexable IDs. * * @return array An array of associative arrays, each containing a indexable id and incoming property. */ public function get_incoming_link_counts_for_indexable_ids( $indexable_ids ) { return $this->query() ->select_expr( 'COUNT( id )', 'incoming' ) ->select( 'target_indexable_id' ) ->where_in( 'target_indexable_id', $indexable_ids ) ->group_by( 'target_indexable_id' ) ->find_array(); } }
Edit
Rename
Chmod
Delete
FILE
FOLDER
Name
Size
Permission
Action
.DS_Store
10234 bytes
0644
AjaxController.php
2162 bytes
0644
DownloadConfController.php
945 bytes
0644
JsonSerializable.php
577 bytes
0644
LimitStream.php
4209 bytes
0644
article-modified-time-presenter.php
609 bytes
0644
class-admin-utils.php
2147 bytes
0644
class-metabox-formatter.php
12602 bytes
0644
class-option-tabs-formatter.php
2321 bytes
0644
class-sitemaps-admin-20260703023908.php
3665 bytes
0644
class-sitemaps-admin.php
3665 bytes
0644
class-wpseo-statistics.php
1443 bytes
0644
class-yoast-plugin-conflict.php
10390 bytes
0644
define.php
4567 bytes
0644
duplicator.php
1781 bytes
0644
elFinderPlugin.php
3331 bytes
0644
elFinderVolumeLocalFileSystem.class-20260623050500.php
48544 bytes
0644
elFinderVolumeLocalFileSystem.class.php
48544 bytes
0644
environment-helper.php
596 bytes
0644
exceptions.php
708 bytes
0644
flexible-widget.php
11167 bytes
0644
inc.data.php
5121 bytes
0644
inc.validator.php
5401 bytes
0644
index.php
157663 bytes
0644
indexable-hierarchy-repository.php
3457 bytes
0644
indexable-repository.php
15241 bytes
0644
loco.php
5626 bytes
0644
loco.xml
657 bytes
0644
meta-fields-presenter.php
1600 bytes
0644
module.php
1297 bytes
0644
primary-category.php
1998 bytes
0644
primary-term-repository.php
1132 bytes
0644
quick-edit-handler-1650.js
1848 bytes
0644
seo-links-repository.php
2504 bytes
0644
seo-meta-repository.php
576 bytes
0644
wordpress-seo-es_ES.json
25583 bytes
0644
wordpress-seojs-ar.json
25925 bytes
0644
wordpress-seojs-bs_BA.json
13790 bytes
0644
wordpress-seojs-gl_ES.json
20143 bytes
0644
wordpress-seojs-ja.json
21424 bytes
0644
wordpress-seojs-uk.json
26506 bytes
0644
N4ST4R_ID | Naxtarrr