本文整理汇总了PHP中content_object::fetch_accessible_by_ids方法的典型用法代码示例。如果您正苦于以下问题:PHP content_object::fetch_accessible_by_ids方法的具体用法?PHP content_object::fetch_accessible_by_ids怎么用?PHP content_object::fetch_accessible_by_ids使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类content_object
的用法示例。
在下文中一共展示了content_object::fetch_accessible_by_ids方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
function &fetch_calendar_period_by_ids($ids_array, $params = array(), $sql_params = array())
{
$start_date = $params['start_date'];
$finish_date = $params['finish_date'];
$sql_params['conditions'][] = ' AND sso.locale_id = "' . CONTENT_LOCALE_ID . '"';
$sql_params['conditions'][] = " AND tn.start_date >= '{$start_date}' \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAND tn.start_date <= '{$finish_date}' ";
$result =& parent::fetch_accessible_by_ids($ids_array, $params, $sql_params);
return $result;
}
示例2: AND
function & fetch_publish_period_by_ids($ids_array, $params=array(), $sql_params=array())
{
$start_date = $params['start_date'];
$finish_date = $params['finish_date'];
$sql_params['conditions'][] = ' AND sso.locale_id = "'. CONTENT_LOCALE_ID . '"';
$sql_params['conditions'][] = " AND sso.id=tn.object_id AND sso.current_version=tn.version";
$sql_params['conditions'][] =
" AND ((tn.start_date >= '{$start_date}' AND tn.start_date <= '{$finish_date}')
OR (tn.finish_date >= '{$start_date}' AND tn.finish_date <= '{$finish_date}')) ";
return parent :: fetch_accessible_by_ids($ids_array, $params, $sql_params);
}