示例#1
0
文件: User.php 项目: niieani/nandu
	/**
	 * The constructor
	 *
	 * @param Zend_Controller_Request_Abstract $request
	 * @param Void_Auth_Adapter_Interface $authAdapter
	 */
	public function __construct(Zend_Controller_Request_Abstract $request = null, Void_Auth_Adapter_Interface $authAdapter = null) {
		parent::__construct($request);

		if ($authAdapter === null && Zend_Registry::isRegistered('auth-adapter')) {
			$authAdapter = Zend_Registry::get('auth-adapter')->getDefaultAdapter();
		}
		if ($authAdapter instanceof Void_Auth_Adapter_Interface) {
			$this->_authAdapter = $authAdapter;
		}
	}
示例#2
0
文件: Book.php 项目: niieani/nandu
	/**
	 * The constructor
	 *
	 * @param Zend_Controller_Request_Abstract $request
	 * @param Void_Auth_Adapter_Interface $authAdapter
	 */
	public function __construct(Zend_Controller_Request_Abstract $request = null) {
		parent::__construct($request);
	}