Пример #1
0
 public function result()
 {
     $yaml_result = parent::result();
     $array_result = yaml($yaml_result);
     if ($this->fieldposition()) {
         return $array_result;
     } else {
         return $yaml_result;
     }
 }
Пример #2
0
 public function result()
 {
     $result = parent::result();
     $raw = (array) json_decode($result);
     $data = array();
     foreach ($raw as $key => $row) {
         unset($row->_id);
         unset($row->_csfr);
         $data[$key] = (array) $row;
     }
     return yaml::encode($data);
 }
Пример #3
0
 /**
  * Convert result to markdown
  *
  * (1) This converts the HTML we get from the <textarea> to markdown
  *     before it get's stored in the content file.
  * (2) Strip all wild <span> tags from the content as they might be inserted
  *     by the JS editor.
  *
  * @since 1.0.0
  *
  * @return string
  */
 public function result()
 {
     /*
        (1) Convert to markdown
     */
     $result = $this->convertToMarkdown(parent::result());
     /*
        (2) Strip <span> elements
     */
     return preg_replace(self::SPAN_REMOVAL_REGEX, '', $result);
 }
Пример #4
0
 public function result()
 {
     $result = parent::result();
     return yaml::encode($result);
 }