Example #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);
 }
Example #2
0
 /**
  *	@see RM_Barcode_Mapper::moveBarcodes()
  **/
 public function moveBarcodes(RM_Barcode_iClassifier $obFromEntity, RM_Barcode_iClassifier $obToEntity, $restriction = array())
 {
     return $this->_mapper->moveBarcodes($obFromEntity, $obToEntity, $restriction);
 }