count( array( "where" => "`alias`='".$word."'" ) ) ) { unset( $kwyf? ); $Length++; if ( 10 < $Length ) { $Length = 5; } $TIMES++; if ( 100 < $TIMES ) { exit( "r" ); } return $this->genRandWord( $Length, $Type, $prefix, $suffix, $TIMES ); } return $word; } public static function genAlias( ) { $zym_1 = new MilWord( ); $models = $zym_1->find( array( "where" => "`alias`='' OR `alias` IS NULL" ) ); foreach ( $models as $model ) { $model->alias = $model->genRandWord( 0 ); $model->update( ); } } } ?>