/**
  * Constructor that passes these specific units
  * to the setUnits method in the UnitModel class
  */
 public function __construct()
 {
     parent::setUnits($this->currencyUnits);
 }
Beispiel #2
0
 /**
  * Constructor that passes these specific units
  * to the setUnits method in the UnitModel class
  */
 public function __construct()
 {
     parent::setUnits($this->bytesUnits);
 }
Beispiel #3
0
 /**
  * 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);
 }
Beispiel #5
0
 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;
     }
 }
Beispiel #6
0
 /**
  * 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);
 }