Skip to content
This repository was archived by the owner on Sep 10, 2021. It is now read-only.

Commit 6d68d19

Browse files
author
Michael Grauer
committed
STYLE: refs #258. Cleaned up style problems.
1 parent 9115a9c commit 6d68d19

File tree

5 files changed

+39
-39
lines changed

5 files changed

+39
-39
lines changed

modules/batchmake/models/AppDao.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
1010
PURPOSE. See the above copyright notices for more information.
1111
=========================================================================*/
12+
/** Batchmake_AppDao */
13+
class Batchmake_AppDao extends MIDAS_GlobalDao {
1214

13-
class Batchmake_AppDao extends MIDAS_GlobalDao
14-
{
15-
public $moduleName='batchmake';
16-
17-
} //end class
15+
public $moduleName = 'batchmake';
16+
17+
} //end class
1818

1919
?>

modules/batchmake/models/AppModel.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,10 @@
99
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
1010
PURPOSE. See the above copyright notices for more information.
1111
=========================================================================*/
12+
/** Batchmake_AppModel */
13+
class Batchmake_AppModel extends MIDASModel {
1214

13-
class Batchmake_AppModel extends MIDASModel
14-
{
15-
public $moduleName='batchmake';
15+
public $moduleName = 'batchmake';
1616

17-
1817
}
1918
?>

modules/batchmake/models/base/TaskModelBase.php

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -9,45 +9,45 @@
99
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
1010
PURPOSE. See the above copyright notices for more information.
1111
=========================================================================*/
12+
/** Batchmake_TaskModelBase */
1213
class Batchmake_TaskModelBase extends Batchmake_AppModel {
1314

14-
public function __construct() {
15-
parent::__construct();
16-
$this->_name = 'batchmake_task';
17-
$this->_key = 'batchmake_task_id';
18-
19-
20-
21-
$this->_mainData = array(
22-
'batchmake_task_id' => array('type' => MIDAS_DATA),
23-
'user_id' => array('type' => MIDAS_DATA, )
24-
);
25-
$this->initialize(); // required
15+
/**
16+
* constructor
17+
*/
18+
public function __construct()
19+
{
20+
parent::__construct();
21+
$this->_name = 'batchmake_task';
22+
$this->_key = 'batchmake_task_id';
23+
$this->_mainData = array(
24+
'batchmake_task_id' => array('type' => MIDAS_DATA),
25+
'user_id' => array('type' => MIDAS_DATA, )
26+
);
27+
$this->initialize(); // required
2628
}
2729

28-
30+
2931
/** Create a task
3032
* @return TaskDao */
31-
function createTask($userDao)//, $type, $ressource, $communityDao = null)
33+
function createTask($userDao)
3234
{
33-
if(!$userDao instanceof UserDao)// && !is_numeric($type) && !is_object($ressource))
35+
if(!$userDao instanceof UserDao)
3436
{
3537
throw new Zend_Exception("Error parameters.");
3638
}
37-
$this->loadDaoClass('TaskDao','batchmake');
39+
$this->loadDaoClass('TaskDao', 'batchmake');
3840
$task = new Batchmake_TaskDao();
3941
$task->setUserId($userDao->getKey());
4042
$this->save($task);
4143

4244
return $task;
43-
} // end createTask()
44-
45-
46-
47-
48-
49-
50-
51-
} // end class Batchmake_TaskModelBase
52-
53-
?>
45+
} // end createTask()
46+
47+
48+
49+
50+
51+
52+
53+
} // end class Batchmake_TaskModelBase

modules/batchmake/models/dao/TaskDao.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@
99
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
1010
PURPOSE. See the above copyright notices for more information.
1111
=========================================================================*/
12+
/** Batchmake_TaskDao */
1213
class Batchmake_TaskDao extends AppDao {
1314

14-
public $_model = 'Task';
15-
public $_module = 'batchmake';
15+
public $_model = 'Task';
16+
public $_module = 'batchmake';
1617

1718
}
1819

modules/batchmake/models/pdo/TaskModel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
PURPOSE. See the above copyright notices for more information.
1111
=========================================================================*/
1212
require_once BASE_PATH . '/modules/batchmake/models/base/TaskModelBase.php';
13-
13+
/** Batchmake_TaskModel */
1414
class Batchmake_TaskModel extends Batchmake_TaskModelBase {
1515

1616

0 commit comments

Comments
 (0)