Newer
Older
Zirror-API / docroot / include / runtime / Start.php
@Christopher W. Olsen Christopher W. Olsen on 31 May 2019 513 bytes Whoa
<?php
include_once "core/Exception.php";
include_once "http/Request.php";

abstract class ZirrorAPI_Start {

  protected $authenticated = false;

  function getAuth() {

    return $this->authenticated;

  }

  function setAuth($authenticated) {

    if ($this->login)
      throw new ApiException ( 'Login is already set.' );
    $this->authenticated = $authenticated;

  }

  function hasAuth() {

    return $this->getAuth () ? true : false;

  }

  abstract function process(ZirrorAPI_Request $request);

}
?>