本文整理匯總了PHP中erLhcoreClassInstance::getExpireOptions方法的典型用法代碼示例。如果您正苦於以下問題:PHP erLhcoreClassInstance::getExpireOptions方法的具體用法?PHP erLhcoreClassInstance::getExpireOptions怎麽用?PHP erLhcoreClassInstance::getExpireOptions使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類erLhcoreClassInstance
的用法示例。
在下文中一共展示了erLhcoreClassInstance::getExpireOptions方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: setExpireInformStatus
/**
* Adjust inform workflow attributes based on expire data
* */
public function setExpireInformStatus()
{
$expireOptions = erLhcoreClassInstance::getExpireOptions();
$informStatusSet = false;
foreach ($expireOptions as $expireOption) {
$expireOption['filter']['filter']['id'] = $this->id;
// We ignore status at this stage
unset($expireOption['filter']['filter']['expire_inform_status']);
foreach (erLhcoreClassModelInstance::getList($expireOption['filter']) as $item) {
foreach ($expireOption['set'] as $attr => $attrValue) {
$this->{$attr} = $attrValue;
$this->saveThis();
$informStatusSet = true;
}
}
}
// None of above filters matched, so we can set default value
if ($informStatusSet == false) {
$this->expire_inform_status = 0;
$this->saveThis();
}
}