本文整理汇总了PHP中ilObjRole::setAllowRegister方法的典型用法代码示例。如果您正苦于以下问题:PHP ilObjRole::setAllowRegister方法的具体用法?PHP ilObjRole::setAllowRegister怎么用?PHP ilObjRole::setAllowRegister使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ilObjRole
的用法示例。
在下文中一共展示了ilObjRole::setAllowRegister方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: loadRoleProperties
/**
* Store form input in role object
* @return
* @param object $role
*/
protected function loadRoleProperties(ilObjRole $role)
{
$role->setTitle($this->form->getInput('title'));
$role->setDescription($this->form->getInput('desc'));
$role->setAllowRegister($this->form->getInput('reg'));
$role->toggleAssignUsersStatus($this->form->getInput('la'));
$role->setDiskQuota($this->form->getInput('disk_quota') * pow(ilFormat::_getSizeMagnitude(), 2));
$role->setPersonalWorkspaceDiskQuota($this->form->getInput('wsp_disk_quota') * pow(ilFormat::_getSizeMagnitude(), 2));
return true;
}
示例2: loadRoleProperties
/**
* Store form input in role object
* @return
* @param object $role
*/
protected function loadRoleProperties(ilObjRole $role)
{
//Don't set if fields are disabled to prevent html manipulation.
if (!$this->form->getItemByPostVar('title')->getDisabled()) {
$role->setTitle($this->form->getInput('title'));
}
if (!$this->form->getItemByPostVar('desc')->getDisabled()) {
$role->setDescription($this->form->getInput('desc'));
}
$role->setAllowRegister($this->form->getInput('reg'));
$role->toggleAssignUsersStatus($this->form->getInput('la'));
$role->setDiskQuota($this->form->getInput('disk_quota') * pow(ilFormat::_getSizeMagnitude(), 2));
$role->setPersonalWorkspaceDiskQuota($this->form->getInput('wsp_disk_quota') * pow(ilFormat::_getSizeMagnitude(), 2));
return true;
}