コード例 #1
0
ファイル: Document.php プロジェクト: codexproject/core
 /**
  * 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));
 }
コード例 #2
0
ファイル: ThemeHelper.php プロジェクト: codexproject/core
 /**
  * addStyle method
  *
  * @param       $name
  * @param       $value
  * @param array $depends
  * @param array $attr
  *
  * @return ThemeHelper
  */
 public function addStyle($name, $value, array $depends = [], array $attr = [])
 {
     $this->styles->set($name, compact('name', 'value', 'depends', 'attr'));
     return $this;
 }
コード例 #3
0
 /**
  * Offset to set
  *
  * @link  http://php.net/manual/en/arrayaccess.offsetset.php
  *
  * @param mixed $offset <p>
  *                      The offset to assign the value to.
  *                      </p>
  * @param mixed $value  <p>
  *                      The value to set.
  *                      </p>
  *
  * @return void
  * @since 5.0.0
  */
 public function offsetSet($offset, $value)
 {
     $this->items->set($offset, $value);
 }