Newer
Older
ubFramework / Portal / docroot / include / runtime / EntryPoint.php
@Christopher W. Olsen Christopher W. Olsen on 10 Dec 2017 983 bytes Cleaning Up Making It A Sub Module
<?php
sphere_import ( 'include.core.exceptions.AppException' );

sphere_import ( 'include.core.http.Request' );
sphere_import ( 'include.core.http.Session' );

sphere_import ( 'include.runtime.Globals' );

sphere_import ( 'include.runtime.Controller' );
sphere_import ('include.runtime.Viewer');
sphere_import ('include.runtime.LanguageHandler');
sphere_import ('include.runtime.JavaScript');
sphere_import ('include.runtime.Theme');


abstract class Sphere_EntryPoint {

  /**
   * Login data
   */
  protected $login = false;

  /**
   * Get login data.
   */
  function getLogin() {

    return $this->login;

  }

  /**
   * Set login data.
   */
  function setLogin($login) {

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

    $this->login = $login;

  }

  /**
   * Check if login data is present.
   */
  function hasLogin() {

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

  }

  abstract function process(Sphere_Request $request);

}

?>