PATH:
home
/
letacommog
/
laindinois
/
OLD
/
wp-content
/
plugins
/
wordpress-seo-premium
/
premium
/
classes
/
redirect
<?php /** * WPSEO Premium plugin file. * * @package WPSEO\Premium\Classes\Redirects */ /** * Represents an executable redirect. */ final class WPSEO_Executable_Redirect { /** * Redirect origin. * * @var string */ private $origin; /** * Redirect target. * * @var string */ private $target; /** * A HTTP code determining the redirect type. * * @var int */ private $type; /** * A string determining the redirect format (plain or regex). * * @var string */ private $format; /** * WPSEO_Redirect constructor. * * @param string $origin The origin of the redirect. * @param string $target The target of the redirect. * @param int $type The type of the redirect. * @param string $format The format of the redirect. * * @codeCoverageIgnore */ public function __construct( $origin, $target, $type, $format ) { $this->origin = $origin; $this->target = $target; $this->type = $type; $this->format = $format; } /** * Creates an instance based on the given data. * * @param array $data The redirect data. * * @return WPSEO_Executable_Redirect The created object. */ public static function from_array( $data ) { return new self( $data['origin'], $data['target'], $data['type'], $data['format'] ); } /** * Retrieves the origin. * * @return string The origin. */ public function get_origin() { return $this->origin; } /** * Retrieves the target. * * @return string The target. */ public function get_target() { return $this->target; } /** * Retrieves the type. * * @return int The redirect type. */ public function get_type() { return $this->type; } /** * Retrieves the redirect format. * * @return string The redirect format. */ public function get_format() { return $this->format; } }
[+]
..
[-] redirect-types.php
[edit]
[-] redirect-htaccess-loader.php
[edit]
[-] redirect-upgrade.php
[edit]
[-] redirect-accessible-validation.php
[edit]
[-] redirect-csv-exporter.php
[edit]
[-] redirect-url-formatter.php
[edit]
[-] redirect-simple-301-redirect-loader.php
[edit]
[-] redirect-exporter-interface.php
[edit]
[-] redirect-csv-loader.php
[edit]
[-] redirect-sitemap-filter.php
[edit]
[-] redirect-uniqueness-validation.php
[edit]
[-] redirect-page.php
[edit]
[-] redirect-import-exception.php
[edit]
[-] redirect-ajax.php
[edit]
[+]
presenters
[-] redirect-htaccess-exporter.php
[edit]
[-] redirect-table.php
[edit]
[-] redirect-tab-presenter.php
[edit]
[-] redirect-util.php
[edit]
[-] redirect-nginx-exporter.php
[edit]
[-] redirect-table-presenter.php
[edit]
[-] executable-redirect.php
[edit]
[-] redirect-presence-validation.php
[edit]
[-] redirect-apache-exporter.php
[edit]
[+]
loaders
[-] redirect-presenter.php
[edit]
[-] redirect-formats.php
[edit]
[-] redirect-validator.php
[edit]
[-] redirect-htaccess-util.php
[edit]
[-] redirect-safe-redirect-loader.php
[edit]
[+]
views
[-] redirect-form-presenter.php
[edit]
[+]
exporters
[-] redirect-importer.php
[edit]
[-] redirect-settings-presenter.php
[edit]
[-] redirect-self-redirect-validation.php
[edit]
[-] redirect-handler.php
[edit]
[-] redirect-redirection-loader.php
[edit]
[-] redirect-formatter.php
[edit]
[-] redirect-abstract-loader.php
[edit]
[-] redirect-file-exporter.php
[edit]
[+]
validation
[-] redirect-subdirectory-validation.php
[edit]
[-] redirect-endpoint-validation.php
[edit]
[-] redirect-file-util.php
[edit]
[-] redirect-option.php
[edit]
[-] redirect-quick-edit-presenter.php
[edit]
[-] redirect-validation-interface.php
[edit]
[-] redirect-option-exporter.php
[edit]
[-] redirect-manager.php
[edit]
[-] redirect.php
[edit]