示例#1
0
文件: Columns.php 项目: Yomyer/cckit
 /**
  * @param Column[] $columns
  * @return $this
  */
 public function setColumns(array $columns)
 {
     parent::setData($columns);
     return $this;
 }
示例#2
0
文件: Rendered.php 项目: Yomyer/cckit
 /**
  * @param mixed $content
  * @return $this
  */
 public function __construct($content = null)
 {
     $this->init();
     $contents = Contents::create()->setElement($this);
     if ($content) {
         $contents->setContents(is_array($content) ? $content : array($content));
     }
     $this->setAttributes(Attributes::create());
     $this->setContent($contents);
     return $this;
 }