Changeset 4599 for trunk/modules/guestbook/controller/guestbook.admin.php
- Timestamp:
- 08/27/10 23:01:58 (21 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/modules/guestbook/controller/guestbook.admin.php
r4506 r4599 24 24 * 25 25 * @license GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 26 *27 26 * @author Jens-André Koch <vain@clansuite.com> 28 27 * @copyright Jens-André Koch (2005 - onwards) 29 *30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite32 29 * 33 30 * @version SVN: $Id$ … … 35 32 36 33 # Security Handler 37 if(defined('IN_CS') == false)34 if(defined('IN_CS') === false) 38 35 { 39 36 die('Clansuite not loaded. Direct Access forbidden.'); … … 47 44 * @subpackage Guestbook 48 45 */ 49 class Clansuite_Module_Guestbook_Admin extends Clansuite_Module_Controller implements Clansuite_Module_Interface46 class Clansuite_Module_Guestbook_Admin extends Clansuite_Module_Controller 50 47 { 51 public function initializeModule( Clansuite_HttpRequest $request, Clansuite_HttpResponse $response)48 public function initializeModule() 52 49 { 53 50 parent::initModel('guestbook'); … … 61 58 62 59 // SmartyColumnSort -- Easy sorting of html table columns. 63 include ROOT_LIBRARIES . '/smarty/libs/SmartyColumnSort.class.php' );60 include ROOT_LIBRARIES . '/smarty/libs/SmartyColumnSort.class.php'; 64 61 // A list of database columns to use in the table. 65 62 $columns = array( 'gb_id', 'gb_added', 'gb_nick', 'gb_email', 'gb_icq', 'gb_website', 'gb_town', 'gb_text', 'gb_admincomment', 'gb_ip'); … … 79 76 80 77 # fetch the BBCode formatter object 81 $bbcode = new Clansuite_Bbcode($this-> injector);78 $bbcode = new Clansuite_Bbcode($this->getInjector()); 82 79 83 80 # Transform RAW text from DB to BB-formatted Text … … 147 144 $form->setElementDecorator('div')->setClass('Formline'); 148 145 #$form->setElementDecorator('description'); 149 # clansuite_xdebug::printR($form->getFormelements());146 #Clansuite_Debug::printR($form->getFormelements()); 150 147 151 148 $form->addElement('textarea')->setCols('70')->setLabel('textarea label'); … … 157 154 */ 158 155 # Debugging Form Object 159 # clansuite_xdebug::printR($form);156 #Clansuite_Debug::printR($form); 160 157 161 158 # Debugging Form HTML Output 162 # clansuite_xdebug::printR($form->render());159 #Clansuite_Debug::printR($form->render()); 163 160 164 161 # assign the html of the form to the view … … 378 375 379 376 # display formgenerator object 380 # clansuite_xdebug::printR($form);377 #Clansuite_Debug::printR($form); 381 378 382 379 $form->addElement('submitbutton')->setName('Save'); … … 384 381 385 382 # display form html 386 # clansuite_xdebug::printR($form->render());383 #Clansuite_Debug::printR($form->render()); 387 384 388 385 # assign the html of the form to the view
Note: See TracChangeset
for help on using the changeset viewer.
