Text::random

public static random ([mixed $type], [mixed $length]) Generates a random string based on the given type. Type is one of the RANDOM_* constants echo Phalcon\Text::random(Phalcon\Text::RANDOM_ALNUM); //"aloiwkqz"

Text

Source on GitHub Provides utilities to work with texts Constants integer RANDOM_ALNUM integer RANDOM_ALPHA integer RANDOM_HEXDEC integer RANDOM_NUMERIC integer RANDOM_NOZERO Methods public static camelize (mixed $str, [mixed $delimiter]) Converts strings to camelize style echo Phalcon\Text::camelize('coco_bongo'); // CocoBongo echo Phalcon\Text::camelize('co_co-bon_go', '-'); // Co_coBon_go echo Phalcon\Text::camelize('co_co-bon_go', '_-'); // CoCoBonGo public static uncameli

Text::concat

public static concat () Concatenates strings using the separator only once without duplication in places concatenation $str = Phalcon\Text::concat("/", "/tmp/", "/folder_1/", "/folder_2", "folder_3/"); echo $str; // /tmp/folder_1/folder_2/folder_3/

Text::dynamic

public static dynamic (mixed $text, [mixed $leftDelimiter], [mixed $rightDelimiter], [mixed $separator]) Generates random text in accordance with the template echo Phalcon\Text::dynamic("{Hi|Hello}, my name is a {Bob|Mark|Jon}!"); // Hi my name is a Bob echo Phalcon\Text::dynamic("{Hi|Hello}, my name is a {Bob|Mark|Jon}!"); // Hi my name is a Jon echo Phalcon\Text::dynamic("{Hi|Hello}, my name is a {Bob|Mark|Jon}!"); // Hello my name is a Bob echo Phalcon\Text::dynamic("[Hi/Hello],

Tag\Select::selectField

public static selectField (array $parameters, [array $data]) Generates a SELECT tag

Text::camelize

public static camelize (mixed $str, [mixed $delimiter]) Converts strings to camelize style echo Phalcon\Text::camelize('coco_bongo'); // CocoBongo echo Phalcon\Text::camelize('co_co-bon_go', '-'); // Co_coBon_go echo Phalcon\Text::camelize('co_co-bon_go', '_-'); // CoCoBonGo

Tag::XHTML5

integer XHTML5

Tag\Select

Source on GitHub Generates a SELECT html tag using a static array of values or a Phalcon\Mvc\Model resultset Methods public static selectField (array $parameters, [array $data]) Generates a SELECT tag private static _optionsFromResultset (Phalcon\Mvc\Model\Resultset $resultset, array $using, mixed $value, string $closeOption) Generate the OPTION tags based on a resultset private static _optionsFromArray (array $data, mixed $value, string $closeOption) Generate the OPTION tags based on an array

Tag\Exception

extends class Phalcon\Exception implements Throwable Source on GitHub Methods final private Exception __clone () inherited from Exception Clone the exception public __construct ([string $message], [int $code], [Exception $previous]) inherited from Exception Exception constructor public __wakeup () inherited from Exception ... final public string getMessage () inherited from Exception Gets the Exception message final public int getCode () inherited from Exception Gets the Exception code fin

Tag::XHTML20

integer XHTML20