PHP Класс GenerateUniqueCodeCommand

(C) Moorfields Eye Hospital NHS Foundation Trust, 2008-2011 (C) OpenEyes Foundation, 2011-2012 This file is part of OpenEyes. OpenEyes is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. OpenEyes is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenEyes in a file titled COPYING. If not, see .
Автор: OpenEyes ([email protected])
Наследование: extends CConsoleCommand
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$allowable_character_length
$limit
$unique_code

Открытые методы

Метод Описание
generate ( $length )
getHelp ( )
run ( $args ) Generate six characters unique code, and store them into the db.
setAlphabet ( string $alphabet )

Защищенные методы

Метод Описание
getRandomInteger ( integer $min, integer $max ) : integer
insert ( $record )

Описание методов

generate() публичный Метод

public generate ( $length )

getHelp() публичный Метод

public getHelp ( )

getRandomInteger() защищенный Метод

protected getRandomInteger ( integer $min, integer $max ) : integer
$min integer
$max integer
Результат integer

insert() защищенный Метод

protected insert ( $record )

run() публичный Метод

Generate six characters unique code, and store them into the db.
public run ( $args )

setAlphabet() публичный Метод

public setAlphabet ( string $alphabet )
$alphabet string

Описание свойств

$allowable_character_length защищенное свойство

protected $allowable_character_length

$limit защищенное свойство

protected $limit

$unique_code защищенное свойство

protected $unique_code