示例#1
0
 /**
  * Sets and returns text object
  *
  * @param array $params
  * @return Setting\Text
  */
 public function text($params = array())
 {
     if (!isset($this->text)) {
         $this->text = new Setting\Text();
     }
     $this->text->setParams($params);
     return $this->text;
 }
示例#2
0
 /**
  * Sets and returns text object
  *
  * @param array $params
  * @return Setting\Text
  */
 public function title($params = array())
 {
     if (!isset($this->title)) {
         $this->title = new Setting\Text();
     }
     $this->title->setParams($params);
     return $this->title;
 }