root/trunk/lib/model/QuestionTag.php

Revision 88, 0.7 kB (checked in by fabien, 2 years ago)

updated to symfony 1.0 beta 1

  • Property svn:mime-type set to text/x-php
  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
Line 
1 <?php
2
3 require_once 'lib/model/om/BaseQuestionTag.php';
4
5
6 /**
7  * Skeleton subclass for representing a row from the 'ask_question_tag' table.
8  *
9  *
10  *
11  * You should add additional methods to this class to meet the
12  * application requirements.  This class will only be generated as
13  * long as it does not already exist in the output directory.
14  *
15  * @package model
16  */   
17 class QuestionTag extends BaseQuestionTag
18 {
19   public function setTag($v)
20   {
21     parent::setTag($v);
22
23     $this->setNormalizedTag(Tag::normalize($v));
24   }
25
26   public function save($con = null)
27   {
28     $ret = parent::save($con);
29
30     $this->getQuestion()->updateSearchIndex();
31
32     return $ret;
33   }
34 }
35
36 ?>
Note: See TracBrowser for help on using the browser.