本文整理匯總了PHP中CMbObject::loadAides方法的典型用法代碼示例。如果您正苦於以下問題:PHP CMbObject::loadAides方法的具體用法?PHP CMbObject::loadAides怎麽用?PHP CMbObject::loadAides使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類CMbObject
的用法示例。
在下文中一共展示了CMbObject::loadAides方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: loadAides
/**
* @see parent::loadAides()
*/
function loadAides($user_id, $needle = null, $depend_value_1 = null, $depend_value_2 = null, $object_field = null, $strict = "true")
{
parent::loadAides($user_id, $needle, $depend_value_1, $depend_value_2);
$rques_aides =& $this->_aides_all_depends["rques"];
if (!isset($rques_aides)) {
return;
}
$depend_field_1 = $this->_specs["rques"]->helped[0];
$depend_values_1 = $this->_specs[$depend_field_1]->_list;
asort($depend_values_1);
$depend_values_1[] = "";
foreach ($depend_values_1 as $depend_value_1) {
$count =& $this->_count_rques_aides;
$count[$depend_value_1] = 0;
if (isset($rques_aides[$depend_value_1])) {
foreach ($rques_aides[$depend_value_1] as $aides_by_depend_field_2) {
$count[$depend_value_1] += count($aides_by_depend_field_2);
}
}
}
}