/** * Export constructor * * @param CMbObject $object Object to export * @param null $backrefs_tree Backrefs tree * * @throws CMbException */ function __construct(CMbObject $object, $backrefs_tree = null) { if (!$object->getPerm(PERM_READ)) { throw new CMbException("Permission denied"); } $this->object = $object; $this->backrefs_tree = isset($backrefs_tree) ? $backrefs_tree : $object->getExportedBackRefs(); }
/** * @see parent::getPerm() */ function getPerm($permType) { $this->loadRefBloc(); return $this->_ref_bloc->getPerm($permType) && parent::getPerm($permType); }
/** * @see parent::getPerm() */ function getPerm($permType) { $this->loadRefsFwd(); return parent::getPerm($permType) && $this->_ref_endowment->getPerm($permType) && $this->_ref_product->getPerm($permType); }
/** * @see parent::getPerm() */ function getPerm($permType) { $this->loadRefsFwd(); return parent::getPerm($permType) && $this->_ref_service->getPerm($permType); }