public function __construct() { // Store the instanciation time so that "for the rest of this request" // stuff can work as expected on requests that take >1s $this->time = new DateTime(); // Assume by default that we want a normally logged-in user $this->setRequiredLevel(Level::LOGIN()); }
public function levels() { return [[Level::ANONYMOUS()], [Level::LOGIN()], [Level::HISEC()]]; }