2012-06-28 17:24:12 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
class Populate023Shell extends AppShell {
|
2012-12-19 03:57:30 +01:00
|
|
|
|
2013-01-23 16:22:21 +01:00
|
|
|
public $tasks = array('Roles', 'RoleToAroAco', 'RoleId', 'Users');
|
2012-12-19 03:57:30 +01:00
|
|
|
|
|
|
|
public function main() {
|
|
|
|
// perform tasks
|
|
|
|
sleep(30);
|
|
|
|
$this->Roles->execute();
|
|
|
|
$this->RoleId->execute('2');
|
|
|
|
$this->RoleToAroAco->execute();
|
2013-01-23 16:22:21 +01:00
|
|
|
// on user data
|
|
|
|
$this->Users->execute();
|
2012-12-19 03:57:30 +01:00
|
|
|
}
|
2012-06-28 17:24:12 +02:00
|
|
|
}
|