Exemplo n.º 1
0
 /**
  * Set the selected spools in $spoolIdx as children of $spoolParentId
  *
  * Method will set all the accountingspool records associated with the array $spoolIdx to be children of $spoolParentId
  *
  * @access public
  * @param int $parentSpoolId The spool parent ID
  * @param mixed The child spool ID / array of IDs
  * @return bool TRUE if all the spools were associated to be children of $spoolParentId
  */
 public function setAccountingSpoolChildren($spoolParentId, $spoolIdx)
 {
     if (isId($spoolIdx)) {
         $spoolIdx = array($spoolIdx);
     }
     if (is_array($spoolIdx)) {
         $spoolIdx = array_filter($spoolIdx, "isId");
     }
     if (!isId($spoolParentId) || !is_array($spoolIdx) || empty($spoolIdx)) {
         return false;
     }
     return parent::getAccountingSpoolChildren($this->getid(), $spoolParentId, $spoolIdx);
 }