Development

Changeset 10321

You must first sign up to be able to contribute.

Changeset 10321

Show
Ignore:
Timestamp:
07/16/08 18:04:13 (4 months ago)
Author:
KRavEN
Message:

Started work of moving theme methods out of actions.class.php to seperate class under lib

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/sfExtjsThemePlugin/data/generator/sfPropelAdmin/extjs/template/actions/actions.class.php

    r10287 r10321  
    1010 * @version    SVN: $Id: actions.class.php 3501 2007-02-18 10:28:17Z fabien $ 
    1111 */ 
    12  <?php 
     12<?php 
    1313   $tableDelimiter = sfConfig::get('app_sf_extjs_theme_plugin_table_delimiter', '-'); 
    14  ?> 
    15  
    16 class <?php echo $this->getGeneratedModuleName() ?>Actions extends sfActions 
     14     //create template-file for tab-page 
     15  ob_start(); 
     16  require('__BasesfExtjsThemePlugin.class.php'); 
     17  $content = "[?php\n".ob_get_clean()."\n?]"; 
     18 
     19  // replace [?php and ?] 
     20  $content = $this->replacePhpMarks($content); 
     21 
     22  $retval = "<?php\n". 
     23            "// auto-generated by ".$this->getGeneratorClass()."\n". 
     24            "// date: %s\n?>\n%s"; 
     25  $retval = sprintf($retval, date('Y/m/d H:i:s'), $content); 
     26 
     27  // save template file 
     28  $template = 'Base'.$this->getGeneratedModuleName().'.class.php'; 
     29  $this->getGeneratorManager()->getCache()->set($template, $this->getGeneratedModuleName().DIRECTORY_SEPARATOR.'lib', $retval); 
     30?> 
     31require_once dirname(__FILE__).'/../lib/<?php echo $template ?>'; 
     32class <?php echo $this->getGeneratedModuleName() ?>Actions extends <?php echo 'Base'.$this->getGeneratedModuleName() ?>Actions 
    1733{ 
    1834  public function executeAjaxFailed()