コード例 #1
0
 /**
  * Clears this cache
  * @return null
  */
 public function clear()
 {
     $this->cache->flush();
     if ($this->isEnabled()) {
         $this->io->clearCache();
     }
 }
コード例 #2
0
 /**
  * Restores the provided node or array of nodes
  * @param string $siteId Id of the site
  * @param string $revision Name of the revision
  * @param \ride\library\cms\node\TrashNode|array $trashNodes An instance of
  * TrashNode or an array of trash nodes
  * @param string $newParent Id of the new parent
  * @return null
  */
 public function restoreTrashNodes($siteId, $revision, $trashNodes, $newParent = null)
 {
     return $this->io->restoreTrashNodes($siteId, $revision, $trashNodes, $newParent);
 }
コード例 #3
0
 /**
  * Publishes a site to the provided revision
  * @param \ride\library\cms\node\Node $node
  * @param string $revision
  * @param boolean $recursive Flag to see if the node's children should be
  * published as well
  * @return null
  */
 public function publish(Node $node, $revision, $recursive)
 {
     $this->io->publish($node, $revision, $recursive);
     $this->clearCache();
 }