Changeset 4905
- Timestamp:
- 08/26/07 08:52:40 (2 years ago)
- Files:
-
- trunk/lib/addon/propel/sfPropelData.class.php (modified) (1 diff)
- trunk/lib/view/sfMailView.class.php (modified) (1 diff)
- trunk/lib/view/sfPHPView.class.php (modified) (3 diffs)
- trunk/lib/view/sfPartialView.class.php (modified) (1 diff)
- trunk/lib/view/sfView.class.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lib/addon/propel/sfPropelData.class.php
r4835 r4905 325 325 } 326 326 327 file_put_contents(sprintf("%s/%03d-%s.yml", $directory_or_file, ++$i, $tableName), Spyc::YAMLDump( $dumpData[$tableName]));327 file_put_contents(sprintf("%s/%03d-%s.yml", $directory_or_file, ++$i, $tableName), Spyc::YAMLDump(array($tableName => $dumpData[$tableName])); 328 328 } 329 329 } trunk/lib/view/sfMailView.class.php
r4603 r4905 16 16 * @version SVN: $Id$ 17 17 */ 18 class sfMailView extends sf PHPView18 class sfMailView extends sfView 19 19 { 20 20 /** 21 * Retrieves the template engine associated with this view. 22 * 23 * @return string sfMail 21 * Executes any presentation logic for this view. 24 22 */ 25 public function getEngine()23 public function execute() 26 24 { 27 return 'sfMail';28 25 } 29 26 trunk/lib/view/sfPHPView.class.php
r4885 r4905 30 30 * Load core and standard helpers to be use in the template. 31 31 */ 32 protected function load CoreAndStandardHelpers()32 protected function loadHelpers() 33 33 { 34 34 static $coreHelpersLoaded = 0; … … 45 45 $helpers = array_unique(array_merge($core_helpers, $standard_helpers)); 46 46 sfLoader::loadHelpers($helpers); 47 }48 49 /**50 * Renders the presentation.51 *52 * @param string Filename53 *54 * @return string File content55 */56 protected function renderFile($_sfFile)57 {58 if (sfConfig::get('sf_logging_enabled'))59 {60 $this->context->getLogger()->info(sprintf('{sfView} render "%s"', $_sfFile));61 }62 63 $this->loadCoreAndStandardHelpers();64 65 extract($this->attributeHolder->toArray());66 67 // render68 ob_start();69 ob_implicit_flush(0);70 require($_sfFile);71 72 return ob_get_clean();73 }74 75 /**76 * Retrieves the template engine associated with this view.77 *78 * Note: This will return null because PHP itself has no engine reference.79 *80 * @return null81 */82 public function getEngine()83 {84 return null;85 47 } 86 48 … … 107 69 $this->setDirectory(sfLoader::getTemplateDir($this->moduleName, $this->getTemplate())); 108 70 } 71 72 $this->loadHelpers(); 109 73 } 110 74 trunk/lib/view/sfPartialView.class.php
r4562 r4905 16 16 * @version SVN: $Id$ 17 17 */ 18 class sfPartialView extends sf PHPView18 class sfPartialView extends sfView 19 19 { 20 20 /** trunk/lib/view/sfView.class.php
r4898 r4905 135 135 136 136 /** 137 * Retrieves the template engine associated with this view.138 *139 * Note: This will return null for PHPView instances.140 *141 * @return mixed A template engine instance142 */143 abstract function getEngine();144 145 /**146 137 * Retrieves this views template. 147 138 *

