Example #1
0
 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());
 }
Example #2
0
 public function levels()
 {
     return [[Level::ANONYMOUS()], [Level::LOGIN()], [Level::HISEC()]];
 }