isCliAdmin() защищенный Метод

Main function to detect if we're running in a CLI environment and we're admin
protected isCliAdmin ( ) : array
Результат array isCLI and isAdmin. It's not an associative array, so we can use list.
Пример #1
0
 /**
  * Sync the isCli / isAdmin with the real values
  */
 public function resetIsCliAdmin()
 {
     list(self::$isCli, self::$isAdmin) = parent::isCliAdmin();
 }