Ejemplo n.º 1
0
 /**
  * Moves barcodes
  *
  * @param 	RM_Barcode_Entity	$obDestination
  * @param 	array				$restriction
  * @return	bool
  **/
 public function move(RM_Barcode_Entity $obDestination, $restriction = array())
 {
     if ($obDestination->id() == $this->id()) {
         return FALSE;
     }
     if ($this->stoplist) {
         if ($this->type() == 'generaltype') {
             throw new RM_Base_Exception_BadUsage(__METHOD__ . "(): Cannot move generaltype generaltype allocated in the stoplist!");
         }
     }
     return $this->_mapper->moveBarcodes($this, $obDestination, $restriction);
 }
Ejemplo n.º 2
0
 public function getDependencyList($entity, $restriction = array())
 {
     return $this->_mapper->getDependencyList($entity, $restriction);
 }
Ejemplo n.º 3
0
 public function getContentList()
 {
     return $this->_mapper->storage('barcode')->getObjectList()->filter('barcode_family_id=?', $this->id());
 }
Ejemplo n.º 4
0
 public function getHistory($idState)
 {
     return $this->_mapper->getBarcodeHistory($this, $idState);
 }