sCode = KTUtil::randomString(); if($aDocumentIds !== false) { $this->aDocumentIds =& $aDocumentIds; } if($aFolderIds !== false) { $this->aFolderIds =& $aFolderIds; } $this->serialize(); } // serialize to session function serialize() { $sList = serialize($this); $_SESSION['ktentitylists'][$this->sCode] = $sList; } // get the storage code function getCode() { return $this->sCode; } function &getDocumentIds() { return $this->aDocumentIds; } function &getFolderIds() { return $this->aFolderIds; } // static accessor function &retrieveList($sCode) { $sList = KTUtil::arrayGet($_SESSION['ktentitylists'], $sCode, False); if($sList === False) { return PEAR::raiseError(_kt('No such KTEntityList')); } $oList = unserialize($sList); return $oList; } } ?>