Properties

$with_front

$with_front : boolean

Rewrite with front

Type

boolean

$activate_autocomplete

$activate_autocomplete : boolean

Type

boolean

$display

$display : integer

Type

integer

$reference_user

$reference_user : integer

Type

integer

$content_priority

$content_priority : integer

Type

integer

$admin_language

$admin_language : string

Type

string

$description

$description : string

Type

string

$before_item

$before_item : string

Type

string

$after_item

$after_item : string

Type

string

$before_output

$before_output : string

Type

string

$after_output

$after_output : string

Type

string

$args

$args : array

Args

Type

array

$name

$name : string

Name

Type

string

$exists

$exists : boolean

Exists

Type

boolean

$sep

$sep : string

Separator

Type

string

$autoload

$autoload : string

Autoload

Type

string

$arr

$arr : array

Generic container for all properties of an instance

Type

array

$available_languages

$available_languages : array

Available languages

Type

array

Methods

create()

create(integer  $id) : \lloc\Msls\MslsOptions

Factory method

Parameters

integer $id

Returns

\lloc\Msls\MslsOptions

get_postlink()

get_postlink(string  $language) : string

Get postlink

Parameters

string $language

Returns

string

is_main_page()

is_main_page() : boolean

Checks if the current page is a home, front or 404 page

Returns

boolean

is_tax_page()

is_tax_page() : boolean

Checks if the current page is a category, tag or any other tax archive

Returns

boolean

is_query_page()

is_query_page() : boolean

Checks if the current page is a date, author any other post_type archive

Returns

boolean

__construct()

__construct() 

Constructor

get_arg()

get_arg(integer  $idx, mixed  $val = null) : mixed

Gets an element of arg by index The returning value is casted to the type of $retval or will be the value of $retval if nothing is set at this index.

Parameters

integer $idx
mixed $val

Returns

mixed

save()

save(mixed  $arr) 

Save

Parameters

mixed $arr

delete()

delete() 

Delete

set()

set(mixed  $arr) : boolean

Set

Parameters

mixed $arr

Returns

boolean

get_permalink()

get_permalink(string  $language) : string

Get permalink

Parameters

string $language

Returns

string

get_tax_query()

get_tax_query() : string

Get the queried taxonomy

Returns

string

get_current_link()

get_current_link() : string

Get current link

Returns

string

is_excluded()

is_excluded() : boolean

Is excluded

Returns

boolean

is_content_filter()

is_content_filter() : boolean

Is content

Returns

boolean

get_order()

get_order() : string

Get order

Returns

string

get_url()

get_url(string  $dir) : string

Get url

Parameters

string $dir

Returns

string

get_slug()

get_slug(string  $post_type) : string

Returns slug for a post type

Parameters

string $post_type

Returns

string

get_flag_url()

get_flag_url(string  $language) : string

Get flag url

Parameters

string $language

Returns

string

get_available_languages()

get_available_languages() : array

Get all available languages

Returns

array

check_for_blog_slug()

check_for_blog_slug(string  $url, \lloc\Msls\MslsOptions  $options) : string

The 'blog'-slug-problem :/

Parameters

string $url
\lloc\Msls\MslsOptions $options

Returns

string

__set()

__set(string  $key, mixed  $value) 

Overloads the set method.

Parameters

string $key
mixed $value

__get()

__get(string  $key) : mixed

Overloads the get method.

Parameters

string $key

Returns

mixed

__isset()

__isset(string  $key) : boolean

Overloads the isset method.

Parameters

string $key

Returns

boolean

__unset()

__unset(string  $key) 

Overloads the unset method.

Parameters

string $key

reset()

reset() : \lloc\Msls\MslsGetSet

Resets the properties container to an empty array.

Returns

\lloc\Msls\MslsGetSet

has_value()

has_value(string  $language) : boolean

Check if the array has an non empty item which has $language as a key

Parameters

string $language

Returns

boolean

is_empty()

is_empty() : boolean

Checks if the properties-container is empty.

Returns

boolean

get_arr()

get_arr() : array

Gets the complete properties-container as an array.

Returns

array

instance()

instance() : static

Gets or creates an instance of the called class

Returns

static