protected function executeStart() { try { parent::executeStart(); $outputFilter = new OutputFilterDiscussion($this->config); $outputFilter->setRecord($this->getRecord()); $this->config->setOutputFilter($outputFilter); } catch (Exception $e) { throw $e; } }
public function prepare($name = "", $value = NULL) { try { switch ($name) { case "created_human": return date("j.n.Y H:i:s", strtotime($this->instance->getParamDirect("created"))); break; case "is_reply": return $this->instance->hasParent() ? $this->instance->getParent()->type == $this->instance->getParamDirect("type") : false; break; default: return parent::prepare($name, $value); } } catch (Exception $e) { throw $e; } }
public function prepare($name = "", $value = NULL) { try { switch ($name) { case "body": return trim(strip_tags($this->instance->getParamDirect($name))); break; case "createdRSS": return gmdate("D, d M Y H:i:s", strtotime($this->instance->created)) . " GMT"; break; default: return parent::prepare($name, $value); } } catch (Exception $e) { throw $e; } }