Урок - ACMF's Alpha Classes

Главная » Курсы » Курс ACMF » Урок - ACMF's Alpha Classes

Обучающий онлайн курс
ACMF

Лицензия: Лицензия Creative Commons.

Escape

  • Escape::html(<string>):string - escapes HTML-string.

Is

  • Is::array(<variable>):boolean - returns true if variable is array. 

Log

  • Log::error(<message>[, $placeholders])
  • Log::info(<message>[, $placeholders])
  • Log::warning(<message>[, $placeholders])

Out

  • Out::tag(<tag_name>, <attributes>[, $content]):string - returns tag as string.
  • Out::escapeAttribute(<value>[, char]):string - returns an escaped attribute.

PHP

  • PHP::displayErrors() - enables displaying errors.

Str

  • Str::length(<string>):number - returns string's length in chars.
  • Str::subFromStart(<string>, <length>) - sub string at first char.
  • Str::truncate(<string>, <length>[, ending = '...']) - truncates string.

abstract Object/HtmlTagAbstract

  • HtmlTagAbstrac::TAG
  • HtmlTagAbstrac::$attributes
  • HtmlTagAbstrac::$children
  • HtmlTagAbstrac::__toString()
  • HtmlTagAbstrac::addChildren()
  • HtmlTagAbstrac::setAttributes()
  • HtmlTagAbstrac::updateAttributes()