Documentation

Class libraries

alias

alias class library to get URL and CLI aliases to call. See Aliasing for more information of functionality.

File: tokernel.framework/lib/alias.lib.php

Usage of alias

$my_alias = $this->lib->alias->get('my_alias');

This example demonstrates how to get alias as an array.

See Aliases in /application/config/aliases.ini

Library methods

bool exists(string $alias_name)

Return true if alias exits, false if given alias not exists.

mixed get(string $alias_name)

Return array of alias values. False, if given alias not exists.

array get_all()

Get array of all aliases.