public function active($active)
    {
        $model = $this->noInitModel;
        if (!is_string($model->statusAttribute)) {
            return $this;
        }
        return $this->andWhere([$model->statusAttribute => $active]);
    }
public function active($active)
    {
        $model = $this->noInitModel;
        if (!is_string($model->statusAttribute)) {
            return $this;
        }
        return $this->andWhere([$model->statusAttribute => $active]);
    }
public function active ( $ active ) { $ model = $ this -> noInitModel ; if ( ! is_string ( $ model -> statusAttribute ) ) { return $ this ; } return $ this -> andWhere ( [ $ model -> statusAttribute => $ active ] ) ; }
Specify active status.
@param integer $active
@return static
Specify active status .