本文整理汇总了PHP中CContact::search方法的典型用法代码示例。如果您正苦于以下问题:PHP CContact::search方法的具体用法?PHP CContact::search怎么用?PHP CContact::search使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CContact
的用法示例。
在下文中一共展示了CContact::search方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: searchContacts
/** @deprecated */
public static function searchContacts($unUsed = null, $where = '', $unUsed2 = '', $days = 0)
{
trigger_error("The CContact::searchContacts() method has been deprecated and will be removed in v4.0. Use CContact->search() instead.", E_USER_NOTICE);
$contact = new CContact();
return $contact->search($where, $days);
}
示例2: die
die('You should not access this file directly.');
}
// @todo convert to template
global $AppUI, $tab, $m;
$days = $tab == 0 ? 30 : 0;
$searchString = w2PgetParam($_POST, 'search_string', '');
if ('' == $searchString) {
$searchString = 0 < $tab && $tab < 27 ? chr(64 + $tab) : '';
$searchString = 0 == $tab ? '' : $searchString;
} else {
$AppUI->setState('ContactsIdxTab', 27);
}
$AppUI->setState('ContIdxWhere', $searchString);
$where = $AppUI->getState('ContIdxWhere') ? $AppUI->getState('ContIdxWhere') : '%';
$contact = new CContact();
$rows = $contact->search($where, $days);
$countries = w2PgetSysVal('GlobalCountries');
unset($carr);
$carrWidth = 4;
$carrHeight = 4;
$rn = count($rows);
$t = ceil($rn / $carrWidth);
if ($rn < $carrWidth * $carrHeight) {
$i = 0;
for ($y = 0; $y < $carrWidth; $y++) {
$x = 0;
while ($x < $carrHeight && isset($rows[$i]) && ($row = $rows[$i])) {
$carr[$y][] = $row;
$x++;
$i++;
}