[geeklog-cvs] Geeklog-2/views Geeklog_LoginView.php,NONE,1.1 BaseViewFlexy.php,1.1.1.1,1.2
tony at iowaoutdoors.org
tony at iowaoutdoors.org
Sat Dec 18 02:12:35 EST 2004
- Previous message (by thread): [geeklog-cvs] Geeklog-2/system/Propel/classes/propel/validator BasicValidator.php,1.1.1.1,1.2 MaskValidator.php,1.1.1.1,1.2 MaxLengthValidator.php,1.1.1.1,1.2 MaxValueValidator.php,1.1.1.1,1.2 MinLengthValidator.php,1.1.1.1,1.2 MinValueValidator.php,1.1.1.1,1.2 RequiredValidator.php,1.1.1.1,1.2 ValidValuesValidator.php,1.1.1.1,1.2 ValidationFailed.php,1.1.1.1,1.2
- Next message (by thread): [geeklog-cvs] Geeklog-2 config.php,1.1.1.1,1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /var/cvs/Geeklog-2/views
In directory www:/tmp/cvs-serv31898
Modified Files:
BaseViewFlexy.php
Added Files:
Geeklog_LoginView.php
Log Message:
Trying to work BaseViewFlexy out so that Translation2 support works.
This isn't quite where it needs to be yet (sigh). Added
Geeklog_LoginView.php to get things started.
--- NEW FILE: Geeklog_LoginView.php ---
<?php
require_once 'BaseViewFlexy.php';
class Geeklog_LoginView extends Geeklog_BaseViewFlexy {
public function processView()
{
$this->setPageTitle('Geeklog Login');
$this->flexyHandle->compile('Login.thtml');
$this->flexyHandle->outputObject($this);
$this->clearMessages();
}
}
?>
Index: BaseViewFlexy.php
===================================================================
RCS file: /var/cvs/Geeklog-2/views/BaseViewFlexy.php,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** BaseViewFlexy.php 17 Dec 2004 23:35:47 -0000 1.1.1.1
--- BaseViewFlexy.php 18 Dec 2004 07:12:33 -0000 1.2
***************
*** 18,21 ****
--- 18,26 ----
/**
+ * Bring in translation library
+ */
+ require_once 'Translation2.php';
+
+ /**
* PEAR::HTML_Template_Flexy HTML Template Library
*/
***************
*** 32,36 ****
*
* @author Tony Bibbs <tony at geeklog.net>
! * @package gov.iowa.das.ite.gmms.views
*
*/
--- 37,41 ----
*
* @author Tony Bibbs <tony at geeklog.net>
! * @package net.geeklog.views
*
*/
***************
*** 116,134 ****
*
*/
! protected function initializeFlexy()
{
! global $hlConf;
// Add base URL to variable that can be used by flexy
! $this->baseUrl = $hlConf['site_url'];
$this->showNavigation = true;
$this->options = array(
! 'templateDir' => $hlConf['path_templates'],
! 'compileDir' => $hlConf['path_templates'] . 'compiled_templates',
'forceCompile' => 0,
'debug' => 0,
! 'locale' => 'en',
! 'compiler' => 'Standard',
);
--- 121,140 ----
*
*/
! protected function initializeFlexy($theme = 'default', $lang = 'en')
{
! global $glConf;
// Add base URL to variable that can be used by flexy
! $this->baseUrl = $glConf['site_url'];
$this->showNavigation = true;
$this->options = array(
! 'templateDir' => $glConf['path_themes'] . $theme,
! 'compileDir' => $glConf['path_themes'] . "$theme/compiled_templates",
'forceCompile' => 0,
'debug' => 0,
! 'locale' => $lang,
! //'compiler' => 'Standard',
! 'Translation2' => array('driver' => 'XML', array('filename'=>'il8nxml','save_on_shutdown'=>true))
);
***************
*** 188,191 ****
--- 194,214 ----
}
+ /**
+ * Translates a string to the right language
+ *
+ * Uses PEAR::Translation2 to convert an english string to
+ * the right language
+ *
+ * @author Tony Bibbs <tony at geeklog.net>
+ * @access public
+ * @param string $stringToTranslate English string to Translate
+ * @return string Translated string
+ *
+ */
+ public function translate($stringToTranslate)
+ {
+
+ }
+
/**
* Shows the page header
***************
*** 201,205 ****
{
if (empty($this->pageTitle)) {
! $this->pageTitle = 'Hunting Log: Page Not Named';
}
if (empty($this->metaTags)) {
--- 224,228 ----
{
if (empty($this->pageTitle)) {
! $this->pageTitle = 'Geeklog: Page Not Named';
}
if (empty($this->metaTags)) {
***************
*** 251,257 ****
{
$this->initializeFlexy();
- $this->showHeader();
$this->processView();
- //$this->showFooter();
}
--- 274,278 ----
- Previous message (by thread): [geeklog-cvs] Geeklog-2/system/Propel/classes/propel/validator BasicValidator.php,1.1.1.1,1.2 MaskValidator.php,1.1.1.1,1.2 MaxLengthValidator.php,1.1.1.1,1.2 MaxValueValidator.php,1.1.1.1,1.2 MinLengthValidator.php,1.1.1.1,1.2 MinValueValidator.php,1.1.1.1,1.2 RequiredValidator.php,1.1.1.1,1.2 ValidValuesValidator.php,1.1.1.1,1.2 ValidationFailed.php,1.1.1.1,1.2
- Next message (by thread): [geeklog-cvs] Geeklog-2 config.php,1.1.1.1,1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the geeklog-cvs
mailing list