本文整理汇总了PHP中apf_require_controller函数的典型用法代码示例。如果您正苦于以下问题:PHP apf_require_controller函数的具体用法?PHP apf_require_controller怎么用?PHP apf_require_controller使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了apf_require_controller函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: url
public function url($controller, $suffix = '')
{
$url = '';
apf_require_controller($controller);
eval("\$url=" . $controller . "Controller::build_uri('" . $suffix . "');");
return $url;
}
示例2: handle_request_internal
public function handle_request_internal()
{
//组织POST参数
$params = array();
if (!isset($this->_params["brokerId"])) {
return Util_MobileAPI::error(Const_APIStatus::E_BROKER_PARAM_MISS);
} else {
$broker_id = $this->_params["brokerId"];
}
if (!isset($this->_params["cityId"])) {
return Util_MobileAPI::error(Const_APIStatus::E_PARAM_CITYID_MISS);
}
$return = array();
$return["status"] = "ok";
$recent_comm_count = 0;
if ($recent_comm_count < Const_APIStatus::SEARCH_COMM_LIST_NUM) {
$this->_params['page_size'] = Const_APIStatus::SEARCH_COMM_LIST_NUM - $recent_comm_count;
apf_require_controller("V1_Comm_GetNearby");
$nearby_comm = new V1_Comm_GetNearbyController();
$nearby_comm = $nearby_comm->getNearbyComm($this->_params, 0);
$nearby_comm_list = $nearby_comm['communities'];
}
if ($nearby_comm_list) {
foreach ($nearby_comm_list as $list) {
$return['data']['nearby'][] = array('commId' => $list['id'], 'commName' => $list['name'], 'address' => $list['address']);
}
}
$return['data']['history'] = array();
return $return;
}
示例3: auto_mapping
public function auto_mapping($uri)
{
$class_name = $this->format_uri2controller($uri);
apf_require_controller($class_name, false);
if (class_exists($class_name . 'Controller')) {
return $class_name;
}
return false;
}
示例4: auto_mapping
public function auto_mapping($uri)
{
$class_name = parent::auto_mapping($uri);
if (!$class_name) {
$class_name = $this->format_uri2controller($uri, true);
apf_require_controller($class_name, false);
if (!class_exists($class_name . 'Controller')) {
$class_name = false;
}
}
return $class_name;
}
示例5: apf_require_controller
<?php
apf_require_controller('iBug');
apf_require_class('Bll_TicketBiz');
apf_require_class('Bll_UserBiz');
apf_require_class('Bll_BookmarkBiz');
apf_require_controller('Home_PersonalQuery');
class Home_PersonalQueryController extends iBugController
{
public function handle_request_internal()
{
$req = APF::get_instance()->get_request();
$res = APF::get_instance()->get_response();
$params = $req->get_parameters();
if ($params['delete']) {
$suc = Bll_BookmarkBiz::get_instance()->delete_bookmark_by_id($params['delete']);
$location = Home_PersonalQueryController::build_uri();
$res->redirect($location);
}
if ($params['type'] && ($params['id'] || $params['owner'])) {
$tickets_opened = array();
$i = 0;
$tickets_accepted = array();
$j = 0;
$tickets_verified = array();
$k = 0;
$tickets_released = array();
$m = 0;
$tickets_closed = array();
$n = 0;
$type = $params['type'];
示例6: apf_require_controller
<?php
apf_require_controller("BrokerBase");
apf_require_class("Bll_ProPlanChangeApiBll");
class Api_ProPlanChangeApiController extends BrokerBaseController
{
private $PublicKey = 'ProPlanChangeApi';
//加密key
public function __construct()
{
//取消验证
$this->IsCheckLogin = false;
}
public function handle_request_internal()
{
$request = APF::get_instance()->get_request();
//参数
$broker_id = $request->get_parameter('broker_id');
//经纪人id,必传
$pro_id = $request->get_parameter('pro_id');
//房源id,房源动作必传
$plan_id = $request->get_parameter('plan_id');
//计划id,计划动作必传
$type = $request->get_parameter('type');
//分配到的动作字符串(见下表),必传
$from = $request->get_parameter('from');
//来源(网站+业务+发生点),必传
$remark = $request->get_parameter('remark');
//备注
$time = $request->get_parameter('time');
//时间戳
示例7: apf_require_controller
<?php
apf_require_controller("Broker");
abstract class GoodbrokerBaseController extends BrokerController
{
protected static $BrokerInfo;
protected $IsCheckLogin = true;
//是否需要登录验证(用于外部ajax请求)
public function handle_request()
{
}
}
示例8: apf_require_controller
<?php
/**
* @author:lezhang
* @mail:lezhang@anjuke.com
*/
apf_require_controller('iBug');
apf_require_class('Bll_DdCommonBiz');
apf_require_class('Bll_DdComponentBiz');
apf_require_class('Bll_ReportWeekOnlineNewBiz');
apf_require_class('Bll_ReportMonthOnlineBiz');
apf_require_class('Bll_ReportGroupSelectedBiz');
apf_require_class('Bll_TicketBiz');
apf_require_class('Bll_UserBiz');
apf_require_class('Bll_UserGroupCustomBiz');
apf_require_class('Model_DealTime');
apf_require_class('Bll_PMTProjectBiz');
class NewReport_Ajax_TablesController extends iBugController
{
public function handle_request_internal()
{
$type_key = array("all" => '', "mobile" => 'mobile_web', "pc" => 'pc');
$req = APF::get_instance()->get_request();
$params = $req->get_parameters();
$params['pro'] = isset($params['pro']) ? $params['pro'] : 'all';
$time_type = isset($params['time_type']) ? $params['time_type'] : 'week';
if ($params['pro'] == "custom") {
$department = Bll_DdCommonBiz::get_instance()->get_department_id_by_name("客户端");
} else {
$department = Bll_DdCommonBiz::get_instance()->get_department_id_by_name("用户端");
}
示例9: apf_require_controller
<?php
apf_require_controller('iBugAjax');
apf_require_class('Bll_UserBiz');
class Ticket_Ajax_UserController extends iBugAjaxController
{
public function handle_request_internal()
{
$req = APF::get_instance()->get_request();
$params = $req->get_parameters();
$name_str = $params['name_str'];
$users = Bll_UserBiz::get_instance()->get_ajax_users_by_name_str($name_str);
return $users;
}
}
示例10: apf_require_controller
<?php
apf_require_controller('Ticket_Detail');
apf_require_class('Bll_TicketRelationBiz');
class Ticket_StatusClosed extends Ticket_Status
{
private $ticket;
public function __construct($ticket_id)
{
$this->ticket = Model_Ticket::data_access()->find_by_pk($ticket_id);
$this->user = APF::get_instance()->get_request()->get_username();
}
public function get_available_actions($role_name, $ticket_type)
{
/*
* opened status:
* rolename actions
* qa reopen(*)
* dev reopen(*)
*/
$actions = array();
$actions['Reopen'] = 'Ticket_ActionReopen';
return $actions;
}
public function change_status($status, $input_arr)
{
$new_reporter = APF::get_instance()->get_request()->get_username();
$new_ticket = array('priority' => $this->ticket->priority, 'reporter' => $new_reporter, 'owner' => $this->ticket->owner, 'assigned_qa' => $this->ticket->assigned_qa, 'status' => 'opened', 'summary' => $this->ticket->summary, 'pmt_id' => $this->ticket->pmt_id, 'environment' => $this->ticket->environment, 'department' => $this->ticket->department, 'component' => $this->ticket->component, 'version' => $this->ticket->version, 'is_regression' => $this->ticket->is_regression, 'description' => $this->ticket->description, 'resolution' => '', 'reason' => '', 'reason_detail' => '');
$new_ticket_id = Bll_TicketBiz::get_instance()->ticket_add($new_ticket);
if ($input_arr['comments']) {
$current_time = date("Y-m-d H:i:s");
示例11: apf_require_page
<?php
apf_require_page("CMS");
apf_require_controller("Ajax_AutoComplete");
class Home_HomePage extends CMSPage
{
public static function use_boundable_styles()
{
$path = apf_classname_to_path(__CLASS__);
return array_merge(parent::use_boundable_styles(), array($path . "Home.css"));
}
public static function use_boundable_javascripts()
{
$path = apf_classname_to_path(__CLASS__);
return array_merge(parent::use_boundable_javascripts(), array($path . "Home.js"));
}
public function get_title()
{
$str = "安居客CMS系统";
return $str;
}
public function get_head_sections()
{
$sections = parent::get_head_sections();
return $sections;
}
public static function use_component()
{
return array_merge(parent::use_component());
}
public function get_view()
示例12: apf_require_controller
<?php
apf_require_controller('iBug');
apf_require_class('Util_SolrFactory');
apf_require_class('Bll_UserBiz');
apf_require_class('Bll_TicketBiz');
apf_require_class('Bll_DdCommonBiz');
apf_require_class('Bll_DdComponentBiz');
apf_require_class('Ticket_Status');
apf_require_class('Bll_TicketColumnDetailBiz');
apf_require_class('Bll_TicketStatusHistoryBiz');
apf_require_controller("Ticket_CustomQuery");
class Ticket_DownloadController extends Ticket_CustomQueryController
{
public function handle_request_internal()
{
$this->set_filter_fields();
$this->page_status = 'noquery';
if (@$this->request->get_parameter('act') == 'query') {
$this->page_current = !@$this->request->get_parameter('page_current') ? 1 : $this->request->get_parameter('page_current');
$results = $this->get_results();
$total = $results['numFound'];
$page_all = ceil($total / 100);
if ($this->page_current > $page_all) {
$this->page_current = 1;
$results = $this->get_results();
}
$page_current = $this->page_current;
$book_value = $_SERVER['QUERY_STRING'];
$user_column = @$this->request->get_parameter('column');
$user_column = empty($user_column) ? array('1', '2', '3', '4', '5', '6', '7', '8') : $user_column;
示例13: apf_require_controller
<?php
apf_require_controller('iBug');
apf_require_class('Bll_TicketBiz');
apf_require_class('Bll_PMTProjectBiz');
apf_require_class('Bll_UserGroupCustomBiz');
apf_require_class('Bll_UserBiz');
apf_require_class('Bll_ReportGroupSelectedBiz');
apf_require_class('Bll_DdCommonBiz');
apf_require_class('Bll_ReportMonthDevBiz');
apf_require_class('Model_DealTime');
apf_require_controller('APi_PMTUserRelation');
apf_require_controller('APi_DeployInfo');
class NewReport_ProjectQualityController extends iBugController
{
public function handle_request_internal()
{
$user = array();
$display = array();
$depart = 12;
//12=>用户事业部
//前端:508 后台:599,600 602 移动:601,根据hroa的api
//product = 50=>网站端,51=>mobile
$type_key = array("mobile" => array('product' => '51', 'user' => array(508, 602, 601)), "pc" => array('product' => '50', 'user' => array(508, 599, 600, 602)));
$tab_info = array('pc' => array('name' => 'Pc', 'click' => false), 'mobile' => array('name' => 'Mobile', 'click' => false));
$req = APF::get_instance()->get_request();
// $res = APF::get_instance()->get_response();
$params = $req->get_parameters();
$pro = $params['pro'] ? $params['pro'] : 'pc';
$time_type = $params['time'] ? $params['time'] : 'week';
$report_type = $params['report'] ? $params['report'] : 'week';
示例14: apf_require_controller
<?php
/**
* 获取经纪人有房的小区列表
*
*
* http://api.xuchen.dev.anjuke.com/mobile-ajk-broker/1.0/zufang/chat/getcommlist/?is_nocheck=1&brokerId=147468&cityId=11
*/
apf_require_controller("V1_Anjuke_Chat_GetCommProps");
class V1_Anjuke_Chat_GetCommListController extends MobileBaseController
{
public function handle_request_internal()
{
if (!isset($this->_params["brokerId"])) {
return Util_MobileAPI::error(Const_APIStatus::E_BROKER_PARAM_MISS);
}
if (!isset($this->_params["cityId"])) {
return Util_MobileAPI::error(Const_APIStatus::E_PARAM_CITYID_MISS);
}
$brokerId = $this->_params['brokerId'];
$cityId = $this->_params['cityId'];
$commProps = new V1_Anjuke_Chat_GetCommPropsController();
if (Bll_Broker_HzBroker::isComboBroker($brokerId)) {
$props = $commProps->getComboPropsInOneComm($brokerId, $cityId);
} else {
$props = $commProps->getPpcPropsInOneComm($brokerId, $cityId);
}
if (!empty($props)) {
$i = 0;
foreach ($props as $propArr) {
$tmpArr = array_keys($propArr);
示例15: apf_require_controller
<?php
/**
* Created by PhpStorm.
* User: qianfunian
* Date: 3/4/14
* Time: 1:52 PM
*/
apf_require_controller("GoodbrokerBase");
class Goodbroker_ShowController extends GoodbrokerBaseController
{
public function handle_request()
{
$id = 0;
if (preg_match("/show\\/(\\d+)/", $_SERVER["REQUEST_URI"], $matches)) {
if ($matches[1] && is_numeric($matches[1])) {
$id = $matches[1];
}
}
$request = APF::get_instance()->get_request();
$params = $request->get_parameters();
$u = $params['u'];
$guid = $request->get_guid();
$broker_id = $request->getBrokerId();
$baseDomain = APF::get_instance()->get_config('base_domain', 'common');
$baseUri = defined('BASE_URI') ? BASE_URI : '';
$homeUrl = "http://my.{$baseDomain}{$baseUri}/goodbroker/index";
$deemUrl = "http://my.{$baseDomain}{$baseUri}/goodbroker/deem";
$winUrl = "http://my.{$baseDomain}{$baseUri}/goodbroker/win";
$dao = new Bll_Goodbroker();
if ($u == 'c') {