Refactoring

This commit is contained in:
gamonoid
2017-09-03 20:39:22 +02:00
parent af40881847
commit a7274d3cfd
5075 changed files with 238202 additions and 16291 deletions

View File

@@ -0,0 +1,42 @@
<?php
/**
* Created by PhpStorm.
* User: Thilina
* Date: 8/19/17
* Time: 3:08 PM
*/
namespace Metadata\Common\Model;
use Classes\BaseService;
use Model\BaseModel;
class CalculationHook extends BaseModel
{
var $_table = 'CalculationHooks';
public function getAdminAccess()
{
return array("get","element","save","delete");
}
public function getUserAccess()
{
return array();
}
public function getAnonymousAccess()
{
return array("get","element");
}
function Find($whereOrderBy, $bindarr = false, $pkeysArr = false, $extra = array())
{
return BaseService::getInstance()->getCalculationHooks();
}
function Load($where = null, $bindarr = false)
{
return BaseService::getInstance()->getCalculationHook($bindarr[0]);
}
}