AbstractController.class.php 1.43 KB
<?php
/**
 * Open/User/Abstract
 * 外部对接接口用户相关抽象类
 * @author Deepseath
 * @version $Id$
 */
namespace Open\Controller\User;

/**
 * 外部对接接口用户相关
 */
abstract class AbstractController extends \Open\Controller\AbstractController
{

    /** 对外接口:劲霸专用配置 */
    protected $_KBoxing = [
        // 座机
        'telphoneField' => 'custom1',
        // OA帐号
        'accountOA' => 'custom2',
        // CRM帐号
        'accountCRM' => 'custom3',
        // DRP 帐号
        'accountDRP' => 'custom4',
        // CM 帐号
        'accountCM' => 'custom5',
        // 订货会帐号
        'accountOrderMeeting' => 'custom6',
        // 导购编号
        'salesNumberField' => 'custom7',
        // 生日
        'birthday' => 'custom8',
        // 入职日期
        'joinDate' => 'custom9'
    ];

    /**
     * 执行前置动作
     * {@inheritDoc}
     * @see \Open\Controller\AbstractController::before_action()
     */
    public function before_action($action = '')
    {
        if (!parent::before_action($action)) {
            return false;
        }

        return true;
    }

    /**
     * 执行后置动作
     * {@inheritDoc}
     * @see \Open\Controller\AbstractController::after_action()
     */
    public function after_action($action = '')
    {
        if (!parent::after_action($action)) {
            return false;
        }

        return true;
    }

}