westdc-zf1/application/module/Open/OAuth2.php

31 lines
515 B
PHP
Raw Normal View History

<?php
namespace Open;
class OAuth2 extends \Zend_Controller_Plugin_Abstract
{
public $db;
public $auth = NULL;
public $user;
private $config;
public $table;
public function __construct($db = NULL,$auth = NULL){
if(empty($db))
{
$this->db = \Zend_Registry::get('db');
}else{
$this->db = $db;
}
$this->config = \Zend_Registry::get('config');
$this->table = new Table();
}
//用户使用谷歌账号登陆
public function googleClient()
{
}
}