示例#1
0
 /**
  * Delete blocks by their associated id
  * 
  * @param array $ids
  * @return boolean
  */
 public function deleteByIds(array $ids)
 {
     foreach ($ids as $id) {
         if (!$this->blockMapper->deleteById($id)) {
             return false;
         }
     }
     $this->track('Batch removal of %s blocks', count($ids));
     return true;
 }
示例#2
0
 /**
  * Renders a block
  * 
  * @param string $class Block's class name
  * @return string
  */
 public function render($class)
 {
     return $this->blockMapper->fetchContentByClass($class);
 }