本文整理汇总了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);
}
}
}
}