Урок - ACMF's Classes

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

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

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

ArrayLib

  • ArrayLib::clone(<array>)

ArrayObject

  • ArrayObject::clear() - clears ArrayObject and returns this.
  • ArrayObject::clone() - clones ArrayObject.
  • ArrayObject::count() - returns items count in ArrayObject.
  • ArrayObject::delete(Position) - deletes element by position number and return this.
  • ArrayObject::first() - returns first element from ArrayObject without removing.
  • ArrayObject::get(Position) - returns value by position number from ArrayObject without removing.
  • ArrayObject::has(Position) - returns true if element with position number exists.
  • ArrayObject::last() - returns last element from ArrayObject without removing.
  • ArrayObject::lead(Mixed) - inserts element at the begin.
  • ArrayObject::map(Callback[, args]) - apply callback function to each element.
  • ArrayObject::pop() - returns last element and remove it.
  • ArrayObject::push(Mixed) - inserts element at the end.
  • ArrayObject::remove(Position) - deletes element by position and returns it.
  • ArrayObject::set(Position, Mixed) - update element by position number.
  • ArrayObject::turn() - removes first element and returns it.
  • ArrayObject::toPHPArray() - returns array as PHP Array.
  • ArrayObject::values() - returns values.

Dir

  • Dir::make(<path_to_directory>)
  • Dir::delete(<path_to_directory>) - removes directory and their content.

FactoryAbstract

  • FactoryAbstract::getClassName(<class_key>) - returns a Class name by Class key.
  • FactoryAbstract::getPossible() - returns the available classes and their keys. 
  • FactoryAbstract::produce(<class_key>[, arguments]) - creates or returns class instance by key. 

File

  • File::delete(<file_path>) - removes file by its path
  • File::content(<file_path>[, content]) - loads/saves file content.

HTML

The HTML class is helper for generate HTML tags.

  • HTML::select([name][, options[, default[, parameters]]]):string

IconTemplateEngine

  • IconTemplateEngine::parse(<string>):string - parsers the Icon Template.

MapLib

  • ArrayLib::clone(<array>)

MapObject

  • MapObject::clear() - clears MapObject and returns this.
  • MapObject::clone() - clones MapObject.
  • MapObject::count() - returns items count in MapObject.
  • MapObject::delete(Key) - deletes element by key and return this.
  • MapObject::first() - returns first element from MapObject without removing.
  • MapObject::firstKey() - returns first element's key.
  • MapObject::firstPair() - returns first element's key and first element without removing.
  • MapObject::get(Key) - returns value by key from MapObject without removing.
  • MapObject::getPair(Key) - returns key and value by key from MapObject without removing.
  • MapObject::has(Key) - returns true if element with Key exists.
  • MapObject::keys() - returns keys.
  • MapObject::last() - returns last element from MapObject without removing.
  • MapObject::lastKey() - returns last element's key without removing.
  • MapObject::lastPair() - returns last element's key and last element without removing.
  • MapObject::lead(Key, Mixed) - inserts element at the begin with Key.
  • MapObject::map(Callback[, args]) - apply callback function to each element.
  • MapObject::pop() - returns last element and remove it.
  • MapObject::popPair() - returns last element's key and last element and remove it.
  • MapObject::push(Key, Mixed) - inserts element's key and element at the end.
  • MapObject::remove(Key) - deletes element by key and returns it.
  • MapObject::set(Key, Mixed) - update element by position number.
  • MapObject::turn() - removes first element and returns it.
  • MapObject::turnPair() - removes first element and returns its key and value.
  • MapObject::toPHPArray() - returns array as PHP Array.
  • MapObject::values() - returns values as ArrayObject.

MessageException Class

  • -

Object

  • Object::select([name[, options]])

Out

  • Out::select([name[, options[, default[, parameters]]]])

Str

The Str class is helper for manage strings.

  • Str::length(<string>)
  • Str::subFromStart(<string>, <length>)
  • Str::truncate(<string>, <length>[, ending])