golden hour
/home/godaofbq/oxygenhyperbaric.com/wp-content/plugins/google-site-kit/includes/Core/Util
⬆️ Go Up
Upload
File/Folder
Size
Actions
Activation_Flag.php
3.25 KB
Del
OK
Activation_Notice.php
4.11 KB
Del
OK
Auto_Updates.php
4.17 KB
Del
OK
BC_Functions.php
4.68 KB
Del
OK
Block_Support.php
1.32 KB
Del
OK
Collection_Key_Cap_Filter.php
1.38 KB
Del
OK
Date.php
1.93 KB
Del
OK
Developer_Plugin_Installer.php
5.44 KB
Del
OK
Entity.php
3.2 KB
Del
OK
Entity_Factory.php
20.71 KB
Del
OK
Exit_Handler.php
836 B
Del
OK
Feature_Flags.php
2.22 KB
Del
OK
Google_Icon.php
1.58 KB
Del
OK
Google_URL_Matcher_Trait.php
3.02 KB
Del
OK
Google_URL_Normalizer.php
1.6 KB
Del
OK
Health_Checks.php
3.94 KB
Del
OK
Input.php
2.76 KB
Del
OK
Method_Proxy_Trait.php
1.09 KB
Del
OK
Migrate_Legacy_Keys.php
1.08 KB
Del
OK
Migration_1_123_0.php
4.54 KB
Del
OK
Migration_1_129_0.php
4.01 KB
Del
OK
Migration_1_150_0.php
3.12 KB
Del
OK
Migration_1_163_0.php
3.08 KB
Del
OK
Migration_1_3_0.php
2.97 KB
Del
OK
Migration_1_8_1.php
6.85 KB
Del
OK
Plugin_Status.php
1.36 KB
Del
OK
REST_Entity_Search_Controller.php
3.34 KB
Del
OK
Requires_Javascript_Trait.php
1.09 KB
Del
OK
Reset.php
9.69 KB
Del
OK
Reset_Persistent.php
666 B
Del
OK
Sanitize.php
1.04 KB
Del
OK
Scopes.php
2.59 KB
Del
OK
Sort.php
1.1 KB
Del
OK
Synthetic_WP_Query.php
4.08 KB
Del
OK
URL.php
5.4 KB
Del
OK
Uninstallation.php
3.8 KB
Del
OK
WP_Context_Switcher_Trait.php
2.13 KB
Del
OK
WP_Query_Factory.php
9.77 KB
Del
OK
Edit: Entity.php
<?php /** * Class Google\Site_Kit\Core\Util\Entity * * @package Google\Site_Kit * @copyright 2021 Google LLC * @license https://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0 * @link https://sitekit.withgoogle.com */ namespace Google\Site_Kit\Core\Util; /** * Class representing an entity. * * An entity in Site Kit terminology is based on a canonical URL, i.e. every * canonical frontend URL has an associated entity. * * An entity may also have a type, if it can be determined. * Possible types are e.g. 'post' for a WordPress post (of any post type!), * 'term' for a WordPress term (of any taxonomy!), 'blog' for the blog archive, * 'date' for a date-based archive etc. * * For specific entity types, the entity will also have a title, and it may * even have an ID. For example: * * For a type of 'post', the entity ID will be the post ID and the entity * title will be the post title. * * For a type of 'term', the entity ID will be the term ID and the entity * title will be the term title. * * For a type of 'date', there will be no entity ID, but the entity title * will be the title of the date-based archive. * * @since 1.7.0 * @access private * @ignore */ final class Entity { /** * The entity URL. * * @since 1.7.0 * @var string */ private $url; /** * The entity type. * * @since 1.7.0 * @var string */ private $type; /** * The entity title. * * @since 1.7.0 * @var string */ private $title; /** * The entity ID. * * @since 1.7.0 * @var int */ private $id; /** * Entity URL sub-variant. * * @since 1.42.0 * @var string */ private $mode; /** * Constructor. * * @since 1.7.0 * * @param string $url The entity URL. * @param array $args { * Optional. Additional entity arguments. * * @type string $type The entity type. * @type string $title The entity title. * @type int $id The entity ID. * @type string $mode Entity URL sub-variant. * } */ public function __construct( $url, array $args = array() ) { $args = array_merge( array( 'type' => '', 'title' => '', 'id' => 0, 'mode' => '', ), $args ); $this->url = $url; $this->type = (string) $args['type']; $this->title = (string) $args['title']; $this->id = (int) $args['id']; $this->mode = (string) $args['mode']; } /** * Gets the entity URL. * * @since 1.7.0 * * @return string The entity URL. */ public function get_url() { return $this->url; } /** * Gets the entity type. * * @since 1.7.0 * * @return string The entity type, or empty string if unknown. */ public function get_type() { return $this->type; } /** * Gets the entity title. * * @since 1.7.0 * * @return string The entity title, or empty string if unknown. */ public function get_title() { return $this->title; } /** * Gets the entity ID. * * @since 1.7.0 * * @return int The entity ID, or 0 if unknown. */ public function get_id() { return $this->id; } /** * Gets the entity URL sub-variant. * * @since 1.42.0 * * @return string The entity title, or empty string if unknown. */ public function get_mode() { return $this->mode; } }
Save