示例#1
0
 private function usuario($arguments = array(), $options = array())
 {
     // initialize the database connection
     $databaseManager = new sfDatabaseManager($this->configuration);
     $connection = $databaseManager->getDatabase($options['connection'] ? $options['connection'] : null)->getConnection();
     $s3 = new S3Voota();
     $c = new Criteria();
     $usuarios = SfGuardUserProfilePeer::doSelect($c);
     foreach ($usuarios as $usuario) {
         if ($usuario->getImagen() != '') {
             echo "Creating " . $usuario->getImagen() . " ...\n";
             $s3->createUsuarioFromOri($usuario->getImagen());
         }
     }
 }