本文整理汇总了PHP中Admin_Controller::get方法的典型用法代码示例。如果您正苦于以下问题:PHP Admin_Controller::get方法的具体用法?PHP Admin_Controller::get怎么用?PHP Admin_Controller::get使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Admin_Controller
的用法示例。
在下文中一共展示了Admin_Controller::get方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: get
public function get($params = NULL)
{
$expenses = parent::get($params);
if ($expenses and isset($params['group_by_type'])) {
$tmp = $expenses;
unset($expenses);
foreach ($tmp as $item) {
$expenses[$item->mcb_expense_id][] = $item;
}
}
return $expenses;
}
示例2: get
public function get($params = NULL)
{
$provider = parent::get($params);
if ($provider and isset($params['group_by_type'])) {
$tmp = $provider;
unset($provider);
foreach ($tmp as $item) {
$provider[$item->expense_provider_id][] = $item;
}
}
return $provider;
}
示例3: get
public function get($params = NULL)
{
$bank = parent::get($params);
if ($bank and isset($params['group_by_type'])) {
$tmp = $bank;
unset($bank);
foreach ($tmp as $item) {
$bank[$item->bank_id][] = $item;
}
}
return $bank;
}
示例4: get
public function get($params = NULL)
{
$expense_payment_type = parent::get($params);
if ($expense_payment_type and isset($params['group_by_type'])) {
$tmp = $expense_payment_type;
unset($expense_payment_type);
foreach ($tmp as $item) {
$expense_payment_type[$item->expense_payment_type_id][] = $item;
}
}
return $expense_payment_type;
}
示例5: get
public function get($params = NULL)
{
$category = parent::get($params);
if ($category and isset($params['group_by_type'])) {
$tmp = $category;
unset($category);
foreach ($tmp as $item) {
$category[$item->expense_category_id][] = $item;
}
}
return $category;
}