コード例 #1
0
ファイル: Captcha.php プロジェクト: levmorozov/mii
 /**
  * Generates a new Captcha challenge.
  *
  * @return string The challenge answer
  */
 public function generate_challenge()
 {
     // Complexity setting is used as character count
     return Text::random('distinct', max(1, $this->complexity));
 }
コード例 #2
0
ファイル: Slug.php プロジェクト: levmorozov/mii
 public function value()
 {
     return Text::to_slug($this->_model->get($this->_field));
 }