예제 #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);
 }
예제 #2
0
 public function getDependencyList($entity, $restriction = array())
 {
     return $this->_mapper->getDependencyList($entity, $restriction);
 }
예제 #3
0
 public function getContentList()
 {
     return $this->_mapper->storage('barcode')->getObjectList()->filter('barcode_family_id=?', $this->id());
 }
예제 #4
0
 public function getHistory($idState)
 {
     return $this->_mapper->getBarcodeHistory($this, $idState);
 }