[Alba-desarrollo] SVN Alba r5168 - prosistem/alba/trunk/alba/plugins/albaTasks/data/tasks

commits en pressenter.com.ar commits en pressenter.com.ar
Mie Sep 26 20:56:00 CEST 2007


Author: ftoledo
Date: 2007-09-26 15:55:59 -0300 (Wed, 26 Sep 2007)
New Revision: 5168

Modified:
   prosistem/alba/trunk/alba/plugins/albaTasks/data/tasks/albaTasks.php
Log:
tarea para listar usuarios


Modified: prosistem/alba/trunk/alba/plugins/albaTasks/data/tasks/albaTasks.php
===================================================================
--- prosistem/alba/trunk/alba/plugins/albaTasks/data/tasks/albaTasks.php	2007-09-26 18:33:39 UTC (rev 5167)
+++ prosistem/alba/trunk/alba/plugins/albaTasks/data/tasks/albaTasks.php	2007-09-26 18:55:59 UTC (rev 5168)
@@ -3,13 +3,32 @@
 pake_desc( 'Listado de Usuarios' );
 pake_task( 'alba-list-users', 'project_exists' );
 
+pake_desc( 'Limpiar archivos temporales');
+pake_task( 'alba-clear-temp','project_exists');
+
+
 function run_alba_list_users( $task, $args ) 
 {
+
+  // define constants
+    define('SF_ROOT_DIR',    sfConfig::get('sf_root_dir'));
+    define('SF_APP',         'principal');
+    define('SF_ENVIRONMENT', 'prod');
+    define('SF_DEBUG',       true);
+    require_once (SF_ROOT_DIR.DIRECTORY_SEPARATOR.'apps'.DIRECTORY_SEPARATOR.SF_APP.DIRECTORY_SEPARATOR.'config'.DIRECTORY_SEPARATOR.'config.php');
+                      
+    $databaseManager = new sfDatabaseManager();
+    $databaseManager->initialize();
+   
+   
+
     $users = UsuarioPeer::doSelect(new Criteria());
     foreach ($users as $user) {
-       pake_echo_action ($user->getId(),$user->getUser());
-       echo "hola";
+       pake_echo_action ($user->getId(), $user->getUsuario() . " [" .$user->getEmail(). "]");
     }
 }
 
+function run_alba_clear_temp ( $task, $args ) {
+    pake_echo_action ('Limpiando archivos temporales...','Ok');
+}
 ?>




Más información sobre la lista de distribución Alba-desarrollo