PHP Класс Mo_variables_ext, mo_variables

Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$description
$docs_url
$name
$settings
$settings_exist
$version

Защищенные свойства (Protected)

Свойство Тип Описание
$defaults
$run_multiple eg. in embedded templates
$template_data

Открытые методы

Метод Описание
__construct ( $settings = [] )
activate_extension ( )
cleanup ( string $final_template, boolean $sub ) : string Clean up unparsed variables
disable_extension ( )
run ( $row ) : void Add all the global variables specified in $this->settings
sessions_end ( ) for legacy purposes, so we don't break updates
settings ( )
update_extension ( $current = '' )

Защищенные методы

Метод Описание
ajax ( ) : void Set the {if ajax} and {if not_ajax} variables
archive ( ) : void Set the {if archive}, {if daily_archive}, {if monthly_archive}, {if yearly_archive}, {if not_archive}, {if not_daily_archive}, {if not_monthy_archive} and {if not_yearly_archive} variables
categorized ( ) Set the {if categorized} conditional
cookie ( ) : void Set variables from the $_COOKIE array
current_url ( ) : void Set the {current_url}, {uri_string} and {query_string} variables
flashdata ( ) : void Set variables from the $this->EE->session->flashdata array
get ( ) : void Set variables from the $_GET array
get_post ( ) : void Set variables from the $_GET and $_POST arrays
member_group_conditionals ( ) : void Set the {if in_group_1_2_3} and {if not_in_group_1_2_3} early-parsed conditionals
member_id_conditionals ( ) : void Set the {if has_member_id_1_2_3} and {if not_has_member_id_1_2_3} early-parsed conditionals
member_variables ( ) : void Set the member variables as early-parsed
mobile_detect ( ) : void Early-parsed conditionals for mobile detection
page_tracker ( ) : void Set the {last_page_visited}, {one_pages_ago}, {two_pages_ago}, {three_pages_ago}, {four_pages_ago} and {five_pages_ago} variables
paginated ( ) : void Set the {if paginated}, {if not_paginated} and {page_offset variables}
post ( ) : void Set variables from the $_POST array
reserved_category_word ( ) Set the {reserved_category_word} variable
reverse_segments ( ) : void Set the {rev_segment_X} variables
secure ( ) : void Set the {if secure}, {if not_secure}, {insecure_site_url}, {secure_site_url} variables
segments_from ( ) : void Set the {segments_from_X} variables
set_global_var ( string | array $key, string $value = '', boolean $xss_clean = FALSE, boolean $embed = FALSE, string $separator = ':', string $prefix = '' ) : void Set Global Variable

Описание методов

__construct() публичный Метод

public __construct ( $settings = [] )

activate_extension() публичный Метод

public activate_extension ( )

ajax() защищенный Метод

Set the {if ajax} and {if not_ajax} variables
protected ajax ( ) : void
Результат void

archive() защищенный Метод

Set the {if archive}, {if daily_archive}, {if monthly_archive}, {if yearly_archive}, {if not_archive}, {if not_daily_archive}, {if not_monthy_archive} and {if not_yearly_archive} variables
protected archive ( ) : void
Результат void

categorized() защищенный Метод

Set the {if categorized} conditional
protected categorized ( )

cleanup() публичный Метод

Clean up unparsed variables
public cleanup ( string $final_template, boolean $sub ) : string
$final_template string the template content after parsing
$sub boolean whether or not the template is an embed
Результат string the final template content

current_url() защищенный Метод

Set the {current_url}, {uri_string} and {query_string} variables
protected current_url ( ) : void
Результат void

disable_extension() публичный Метод

public disable_extension ( )

flashdata() защищенный Метод

Set variables from the $this->EE->session->flashdata array
protected flashdata ( ) : void
Результат void

get() защищенный Метод

Set variables from the $_GET array
protected get ( ) : void
Результат void

get_post() защищенный Метод

Set variables from the $_GET and $_POST arrays
protected get_post ( ) : void
Результат void

member_group_conditionals() защищенный Метод

Set the {if in_group_1_2_3} and {if not_in_group_1_2_3} early-parsed conditionals
protected member_group_conditionals ( ) : void
Результат void

member_id_conditionals() защищенный Метод

Set the {if has_member_id_1_2_3} and {if not_has_member_id_1_2_3} early-parsed conditionals
protected member_id_conditionals ( ) : void
Результат void

member_variables() защищенный Метод

Set the member variables as early-parsed
protected member_variables ( ) : void
Результат void

mobile_detect() защищенный Метод

Early-parsed conditionals for mobile detection
protected mobile_detect ( ) : void
Результат void

page_tracker() защищенный Метод

Set the {last_page_visited}, {one_pages_ago}, {two_pages_ago}, {three_pages_ago}, {four_pages_ago} and {five_pages_ago} variables
protected page_tracker ( ) : void
Результат void

paginated() защищенный Метод

Set the {if paginated}, {if not_paginated} and {page_offset variables}
protected paginated ( ) : void
Результат void

post() защищенный Метод

Set variables from the $_POST array
protected post ( ) : void
Результат void

reserved_category_word() защищенный Метод

Set the {reserved_category_word} variable
protected reserved_category_word ( )

reverse_segments() защищенный Метод

Set the {rev_segment_X} variables
protected reverse_segments ( ) : void
Результат void

run() публичный Метод

Add all the global variables specified in $this->settings
public run ( $row ) : void
Результат void

secure() защищенный Метод

Set the {if secure}, {if not_secure}, {insecure_site_url}, {secure_site_url} variables
protected secure ( ) : void
Результат void

segments_from() защищенный Метод

Set the {segments_from_X} variables
protected segments_from ( ) : void
Результат void

sessions_end() публичный Метод

for legacy purposes, so we don't break updates
public sessions_end ( )

set_global_var() защищенный Метод

Set Global Variable
protected set_global_var ( string | array $key, string $value = '', boolean $xss_clean = FALSE, boolean $embed = FALSE, string $separator = ':', string $prefix = '' ) : void
$key string | array the key/index/tag of the variable, or an array of key/value pairs of multiple variables
$value string the value of the variable, or the tag prefix if the first arg is an array
$xss_clean boolean whether or not to clean (used for GET/POST/COOKIE arrays)
$embed boolean whether or not to add the embed: prefix
$separator string change the default colon : separator between prefix and key
$prefix string a prefix to add to the key/index/tag
Результат void

settings() публичный Метод

public settings ( )

update_extension() публичный Метод

public update_extension ( $current = '' )

Описание свойств

$defaults защищенное свойство

protected $defaults

$description публичное свойство

public $description

$docs_url публичное свойство

public $docs_url

$name публичное свойство

public $name

$run_multiple защищенное свойство

eg. in embedded templates
protected $run_multiple

$settings публичное свойство

public $settings

$settings_exist публичное свойство

public $settings_exist

$template_data защищенное свойство

protected $template_data

$version публичное свойство

public $version