Example #1
0
 public function surname($options = array())
 {
     $surnames =& DummyData::get_surnames();
     if (isset($options['single']) && $options['single'] || isset($options['variable']) && $options['variable'] == 'single') {
         return parent::random($surnames);
     }
     $dev = isset($options['devider']) ? $options['devider'] : ' ';
     $ret = parent::random($surnames);
     if (rand(1, 10) < 3) {
         $ret .= $dev . parent::random($surnames);
     }
     if (rand(1, 10) < 1) {
         $ret .= $dev . parent::random($surnames);
     }
     return $ret;
 }
Example #2
0
 public static function url($options = array())
 {
     App::import('vendor', 'dummy.phpfaker/lib/dummy_data');
     $urls =& DummyData::get_urls();
     return $urls[rand(0, count($urls) - 1)];
 }
Example #3
0
 public static function filename($options = array())
 {
     $extensions = DummyData::get_file_extension();
     $extension = $extensions[rand(0, count($extensions) - 1)];
     return low(self::noun($options) . '.' . self::extension($options));
 }