private function basic_markup(model\BasicItem $item) { $li = '<li class="' . $item->type() . ' editable" title="" id="' . $item->key() . '" name="' . $this->_h($item->raw()) . '">'; $text = $this->mark_up_syntax($this->_h($item->text())); $note = $this->mark_up_note($item); return array($li, $text, $note); }
/** * Set/get the plain text value of the task. Can actually be multiple tasks, info, or project items. * * Includes all notes, done, star, tags; the whole thing as in a plain text file. * Used for edit boxes. * * @param string $value new plain text of task * @return string */ function raw($value = null) { static $parser = null; if (!is_null($value)) { // only create th eparser once, to save time if (is_null($parser)) { $parser = new storage\Parser(); } // date/period tags will be expanded (usually what user wants!) $value = $parser->expand_interval_tags($value); } return parent::raw($value); }