CreditModel::__construct PHP Method

__construct() public method

+---------------------------------------------------------- 架构函数 +----------------------------------------------------------
Author: melec制作
public __construct ( )
    public function __construct()
    {
        if (($this->creditType = S('_service_credit_type')) === false) {
            $this->creditType = M('credit_type')->order('id ASC')->findAll();
            S('_service_credit_type', $this->creditType);
        }
    }