/** * Constructor that passes these specific units * to the setUnits method in the UnitModel class */ public function __construct() { parent::setUnits($this->currencyUnits); }
/** * Constructor that passes these specific units * to the setUnits method in the UnitModel class */ public function __construct() { parent::setUnits($this->bytesUnits); }
/** * Constructor that passes these specific units * to the setUnits method in the UnitModel class */ public function __construct() { parent::setUnits($this->angleUnits); }
/** * Constructor that passes these specific units * to the setUnits method in the UnitModel class */ public function __construct() { parent::setUnits($this->lengthUnits); }
public function getAllUnit() { $_modelUnit = new UnitModel(); try { $select = $_modelUnit->select(Zend_Db_Table::SELECT_WITH_FROM_PART)->setIntegrityCheck(false); $select->where('unit.status = 1'); $unitDb = $_modelUnit->fetchAll($select)->toArray(); // $resources = array(); // foreach($resourcesDb as $resource){ // $resources[] = $resource['resource']; // } return $unitDb; } catch (Exception $e) { throw $e; } }
/** * Constructor that passes these specific units * to the setUnits method in the UnitModel class */ public function __construct() { parent::setUnits($this->speedUnits); }
/** * Constructor that passes these specific units * to the setUnits method in the UnitModel class */ public function __construct() { parent::setUnits($this->temperatureUnits); }