Ejemplo n.º 1
0
 /**
  * @param bool $runValidation
  * @param null $attributes
  * @return bool
  */
 public function save($runValidation = true, $attributes = null)
 {
     HtmlBBcodeUtils::initZeilenCounter();
     list($anzahl_absaetze, $anzahl_zeilen) = HtmlBBcodeUtils::getBBCodeStats(trim($this->text), $this->veranstaltung->getEinstellungen()->zeilenlaenge);
     $this->cache_anzahl_absaetze = $anzahl_absaetze;
     $this->cache_anzahl_zeilen = $anzahl_zeilen + 1;
     // + Überschrift
     Yii::app()->cache->delete("pdf_" . $this->veranstaltung->id);
     Yii::app()->cache->delete("pdf_" . $this->veranstaltung->id . "_" . $this->id);
     return parent::save($runValidation, $attributes);
 }
Ejemplo n.º 2
0
 public function run()
 {
     $unterstuetzerInnen = $this->antrag->getUnterstuetzerInnen();
     $this->render('unterstuetzen', array("unterstuetzerInnen" => $unterstuetzerInnen));
 }
Ejemplo n.º 3
0
 /**
  * @param bool $runValidation
  * @param null $attributes
  * @return bool
  */
 public function save($runValidation = true, $attributes = null)
 {
     Yii::app()->cache->delete("pdf_ae_" . $this->antrag->veranstaltung->id);
     return parent::save($runValidation, $attributes);
 }