lloc\Msls\MslsOptions
General options class
Synopsis
class MslsOptions
extends MslsGetSet
{
- // members
- protected $args;
- protected $name;
- protected bool $exists = false;
- protected string $sep = '';
- protected string $autoload = 'yes';
- private $available_languages;
- public bool $with_front;
- // Inherited members from MslsGetSet
- protected array $arr;
- // methods
- public static MslsOptions create()
- public static boolean is_main_page()
- public static boolean is_tax_page()
- public static boolean is_query_page()
- public void __construct()
- public mixed get_arg()
- public void save()
- public void delete()
- public bool set()
- public string get_permalink()
- public string get_postlink()
- public string get_current_link()
- public bool is_excluded()
- public bool is_content_filter()
- public string get_order()
- public string get_url()
- public string get_slug()
- public string get_flag_url()
- public array get_available_languages()
- public static string check_for_blog_slug()
- // Inherited methods from MslsGetSet
- public final void __set()
- public final mixed __get()
- public final bool __isset()
- public final void __unset()
- public MslsGetSet reset()
- public bool has_value()
- public bool is_empty()
- public final array get_arr()
- // Inherited methods from MslsRegistryInstance
- public static instance()
Hierarchy
Extends
Members
private
- $available_languages
—
array
Available languages
protected
- $args
—
array
Args - $arr
—
array
Generic container for all properties of an instance - $autoload
—
string
Autoload - $exists
—
lloc\Msls\bool
Exists - $name
—
string
Name - $sep
—
string
Separator
public
- $with_front
—
lloc\Msls\bool
Rewrite with front
Methods
public
- __construct() — Constructor
- check_for_blog_slug() — The 'blog'-slug-problem :/
- create() — Factory method
- delete() — Delete
- get_arg() — 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.
- get_available_languages() — Get all available languages
- get_current_link() — Get current link
- get_flag_url() — Get flag url
- get_order() — Get order
- get_permalink() — Get permalink
- get_postlink() — Get postlink
- get_slug() — Returns slug for a post type
- get_url() — Get url
- is_content_filter() — Is content
- is_excluded() — Is excluded
- is_main_page() — Checks if the current page is a home, front or 404 page
- is_query_page() — Checks if the current page is a date, author any other post_type archive
- is_tax_page() — Checks if the current page is a category, tag or any other tax archive
- save() — Save
- set() — Set
Inherited from lloc\Msls\MslsGetSet
public
- __get() — Overloads the get method.
- __isset() — Overloads the isset method.
- __set() — Overloads the set method.
- __unset() — Overloads the unset method.
- get_arr() — Gets the complete properties-container as an array.
- has_value() — Checks if the array has an non empty item with the specified key name.
- is_empty() — Checks if the properties-container is empty.
- reset() — Resets the properties container to an empty array.
Inherited from lloc\Msls\MslsRegistryInstance
public
- instance() — Gets or creates an instance of the called class