root/trunk/apps/snippets/modules/tag/actions/components.class.php

Revision 2, 0.5 kB (checked in by fabien, 4 years ago)

initial import

  • 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 /**
4  * tag actions.
5  *
6  * @package    sf_sandbox
7  * @subpackage tag
8  * @author     Your name here
9  * @version    SVN: $Id$
10  */
11 class tagComponents extends sfComponents
12 {
13   /**
14    * Executes index action
15    *
16    */
17   public function executeListAll()
18   {
19     $this->tags = SnippetTagPeer::getAllWithCount();
20   }
21
22   public function executeListRelated()
23   {
24     $this->associated_tags = $this->getRequest()->getAttribute('associated_tags');
25     $this->tags = $this->getRequest()->getAttribute('tags');
26   }
27 }
28
29 ?>
Note: See TracBrowser for help on using the browser.