Autoloader Class
Create object
Utilize the constructor of the Autoloader
class:
$autoloader = new Autoloader();
Init
Init the class:
$autoloader->init(string|array $autoload) : voidEdit on GitHub
Client Bundle
Browser
Detect the browser name:
$browser = new Client\Browser(Request $request); $browser->getOutput() : string;
Desktop
Detect the desktop device:
$desktop = new Client\Desktop(Request $request); $desktop->getOutput() : string;
Engine
Detect the browser engine:
$engine = new Client\Engine(Request $request); $engine->getOutput() : string;
Mobile
Detect the mobile device:
$mobile = new Client\Mobile(Request $request); $mobile->getOutput() : string;
Tablet
Detect the tablet device:
$tablet = new Client\Tablet(Request $request); $tablet->getOutput() : string;
Version
Detect the browser version:
$version = new Client\Version(Request $request); $version->getOutput() : string;Edit on GitHub
Config Class
Get instance
Get the instance of the Config
class:
$config = Config::getInstance();
Clear instance
Clear the instance of the Config
class:
$config->clearInstance() : void;
Init
Init the class:
$config->init(string $configFile) : void;
Get
Get the value from config:
$config->get(string $key) : ?string;
Get array
Get the array from config:
$config->getArray() : array;
Set
Set the value to config:
$config->set(string $key, string $value) : void;
Parse
Parse from database url:
$config->parse(string $dbUrl) : void;
Write
Write config to file:
$config->write() : bool;
Clear
Clear the config:
$config->clear() : void;Edit on GitHub
Dater Class
Create object
Utilize the constructor of the Dater
class:
$dater = new Dater();
Init
Init the class:
$dater->init(int $date) : void
Get time zone
get the time zone:
$dater->getTimeZone() : DateTimeZone
Get date time
get the date time:
$dater->getDateTime() : DateTime
Format time
format to time:
$dater->formatTime() : string
Format date
format to date:
$dater->formatDate() : string
Format field
format to field:
$dater->formatField() : stringEdit on GitHub
Db Class
Create object
Utilize the constructor of the Db
class:
Db::construct(Config $config) : void;
Init
Init the class:
Db::init() : void;
Get status
Get the database status:
Db::getStatus() : int;
Set auto increment
Set the auto increment:
Db::setAutoIncrement() : bool;
Count table prefix
Count table with prefix:
Db::countTablePrefix() : int;
For table prefix
For table with prefix:
Db::forTablePrefix(string $table, string $connection) : self;
Left join prefix
Left join with prefix:
Db::leftJoinPrefix(string $table, string $constraint, string $tableAlias) : self;
Where like many
Where like with many:
Db::whereLikeMany(array $columnArray, array $likeArray) : self;
Where language is
Where language is:
Db::whereLanguageIs(string language) : self;
Find flat array
Find the flat array:
Db::findFlatArray(string $column) : array;
Order by setting
Order by global setting:
Db::orderBySetting(string $column) : self;
Limit by setting
Limit by global setting:
Db::limitBySetting(int $step) : self;
Get setting
Get the value from settings:
Db::getSetting(string $key) : ?string;Edit on GitHub
Element Class
Create object
Create a object of the Html\Element
class:
$element = new Html\Element();
Init
Init the class:
$element->init(string $tag, array $attributeArray) : self;
Copy
Copy the element:
$element->copy() : self;
Attribute
Set attribute to the element:
$element->attr(string|array $attribute, string $value) : self;
Remove attribute from the element:
$element->removeAttr(string $attribute) : self;
Class
Add class to the element:
$element->addClass(string $className) : self;
Remove class from the element:
$element->removeClass(string $className) : self;
Val
Set value to the element:
$element->val(string $value) : self;
Text
Set text to the element:
$element->text(string $text) : self;
Html
Set HTML
to the element:
$element->html(string $html) : self;
Append
Append HTML
to the element:
$element->append(string $html) : self;
Prepend
Prepend HTML
to the element:
$element->prepend(string $html) : self;
Clear
Clear HTML
of the element:
$element->clear() : self;
Render
Render the element:
$element->render() : string;Edit on GitHub
Filesystem Class
Create object
Create a object of the Filesystem\Filesystem
class:
$filesystem = new Filesystem\Filesystem();
Init
Init the class:
$filesystem->init(string $root, bool $recursive, array $filterArray) : self;
Copy
Copy the filesystem:
$filesystem->copy() : self;
Count iterator
Count the filesystem iterator:
$filesystem->countIterator() : ?int;
Get iterator
Get the filesystem iterator:
$filesystem->getIterator() : Traversable;
Refresh iterator
Refresh the filesystem iterator:
$filesystem->refreshIterator() : self;
Get array
Get the filesystem array:
$filesystem->getArray() : array;
Get sort array
Get the sorted filesystem array:
$filesystem->getSortArray(int $flag) : array;Edit on GitHub
Filter Bundle
Alias
Filter the alias:
$filter = new Filter\Alias(); $filter->sanitize(string $alias) : string;
Boolean
Filter the boolean:
$filter = new Filter\Boolean(); $filter->sanitize(string $boolean) : bool;
Filter the email:
$filter = new Filter\Email(); $filter->sanitize(string $email) : string;
HTML
Filter the HTML:
$filter = new Filter\Html(); $filter->sanitize(string $html, bool $filter) : string;
Number
Filter the number:
$filter = new Filter\Number(); $filter->sanitize(string $number) : int;
Path
Filter the path:
$filter = new Filter\Path(); $filter->sanitize(string $path, string $separator) : string;
Search
Filter the search:
$filter = new Filter\Search(); $filter->sanitize(string $search) : string;
Special
Filter the special:
$filter = new Filter\Special(); $filter->sanitize(string $special) : string;
URL
Filter the URL:
$filter = new Filter\Url(); $filter->sanitize(string $url) : string;Edit on GitHub
Form Class
Create object
Create a object of the Html\Form
class:
$form = new Html\Form(Registry $registry, Language $language);
Init
Init the class:
$form->init(array $attributeArray, array $optionArray) : self;
Legend
Append the legend:
$form->legend(string $html, array $attributeArray) : self;
Label
Append the label:
$form->label(string $html, array $attributeArray) : self;
Input
Append the color:
$form->color(array $attributeArray) : self;
Append the checkbox:
$form->checkbox(array $attributeArray) : self;
Append the date:
$form->date(array $attributeArray) : self;
Append the datetime:
$form->datetime(array $attributeArray) : self;
Append the email:
$form->email(array $attributeArray) : self;
Append the file:
$form->file(array $attributeArray) : self;
Append the hidden:
$form->hidden(array $attributeArray) : self;
Append the number:
$form->number(array $attributeArray) : self;
Append the password:
$form->password(array $attributeArray) : self;
Append the radio:
$form->radio(array $attributeArray) : self;
Append the range:
$form->range(array $attributeArray) : self;
Append the search:
$form->search(array $attributeArray) : self;
Append the time:
$form->time(array $attributeArray) : self;
Append the tel:
$form->tel(array $attributeArray) : self;
Append the text:
$form->text(array $attributeArray) : self;
Append the url:
$form->url(array $attributeArray) : self;
Append the week:
$form->week(array $attributeArray) : self;
Textarea
Append the textarea:
$form->textarea(array $attributeArray) : self;
Select
Append the select:
$form->select(array $optionArray, array $selectArray, array $attributeArray) : self;
Select range
Append the select range:
$form->selectRange(array $rangeArray, array $selectArray, array $attributeArray) : self;
Captcha
Append the captcha:
$form->captcha(string $type) : self;
Token
Append the token:
$form->token() : self;
Button
Append the button:
$form->button(string $text, array $attributeArray) : self;;
Append the submit:
$form->submit(string $text, array $attributeArray) : self;
Append the reset:
$form->reset(string $text, array $attributeArray) : self;
Html
Set HTML
to the form:
$form->html(string $html) : self;
Append
Append HTML
to the form:
$form->append(string $html) : self;
Prepend
Prepend HTML
to the form:
$form->prepend(string $html) : self;
Clear
Clear HTML
of the form:
$form->clear() : self;
Render
Render the form:
$form->render() : string;Edit on GitHub
Hash Class
Create object
Utilize the constructor of the Hash
class:
$hash = new Hash();
Init
Init the class:
$hash->init(string|int $raw) : void
Get raw
Get the raw:
$hash->getRaw() : string|int
Get hash
Get the hash:
$hash->getHash : string
Validate
validate raw again hash:
$hash->validate(string|int $raw, string $hash) : boolEdit on GitHub