Exemple #1
0
 /**
  * Run a content processor
  *
  * @param $name
  *
  * @throws \Codex\Exception\CodexException
  */
 protected function runProcessor($name)
 {
     if ($this->processed->has($name)) {
         return;
     }
     $this->processed->set($name, $this->getProcessors()->run($name, $this));
 }
 /**
  * has method
  *
  * @param $name
  *
  * @return boolean
  */
 public function has($name)
 {
     return $this->items->has($name);
 }
 protected function isEnabledPlugin($name)
 {
     return $this->config->has("plugins.{$name}");
 }
 /**
  * Whether a offset exists
  *
  * @link  http://php.net/manual/en/arrayaccess.offsetexists.php
  *
  * @param mixed $offset <p>
  *                      An offset to check for.
  *                      </p>
  *
  * @return boolean true on success or false on failure.
  * </p>
  * <p>
  * The return value will be casted to boolean if non-boolean was returned.
  * @since 5.0.0
  */
 public function offsetExists($offset)
 {
     return $this->items->has($offset);
 }