You are here

abstract class ThrobberBase in Ajax loader 7

@file Class ThrobberBase

Hierarchy

Expanded class hierarchy of ThrobberBase

File

lib/throbber/ThrobberBase.php, line 8
Class ThrobberBase

View source
abstract class ThrobberBase implements ThrobberInterface {
  protected $path;
  protected $markup;
  protected $css_file;
  protected $label;

  /**
   * ThrobberBase constructor.
   */
  public function __construct() {
    $this->path = drupal_get_path('module', 'ajax_loader');
    $this->markup = $this
      ->setMarkup();
    $this->css_file = $this
      ->setCssFile();
    $this->label = $this
      ->setLabel();
  }

  /**
   * @return mixed
   */
  public function getMarkup() {
    return $this->markup;
  }

  /**
   * @return mixed
   */
  public function getCssFile() {
    return $this->css_file;
  }

  /**
   * @return mixed
   */
  public function getLabel() {
    return $this->label;
  }

  /**
   * Sets markup for throbber.
   */
  protected abstract function setMarkup();

  /**
   * Sets css file for throbber.
   */
  protected abstract function setCssFile();

  /**
   * Sets label for throbber.
   */
  protected abstract function setLabel();

}

Members

Namesort descending Modifiers Type Description Overrides
ThrobberBase::$css_file protected property
ThrobberBase::$label protected property
ThrobberBase::$markup protected property
ThrobberBase::$path protected property
ThrobberBase::getCssFile public function Overrides ThrobberInterface::getCssFile
ThrobberBase::getLabel public function Overrides ThrobberInterface::getLabel
ThrobberBase::getMarkup public function Overrides ThrobberInterface::getMarkup
ThrobberBase::setCssFile abstract protected function Sets css file for throbber. 12
ThrobberBase::setLabel abstract protected function Sets label for throbber. 12
ThrobberBase::setMarkup abstract protected function Sets markup for throbber. 12
ThrobberBase::__construct public function ThrobberBase constructor.