Add php template class
This commit is contained in:
parent
514e26c9c7
commit
93235cc1b5
@ -142,7 +142,7 @@ class Template
|
|||||||
*/
|
*/
|
||||||
function assignTag($tag,$id,$tag_array)
|
function assignTag($tag,$id,$tag_array)
|
||||||
{
|
{
|
||||||
if(!$this->cache_activate or $this->cache_isExpired)
|
if(!$this->cache_activate || $this->cache_isExpired)
|
||||||
{
|
{
|
||||||
if( $this->checkArray($tag_array) )
|
if( $this->checkArray($tag_array) )
|
||||||
{
|
{
|
||||||
@ -187,7 +187,7 @@ class Template
|
|||||||
*/
|
*/
|
||||||
function assignInclude($id,$file="")
|
function assignInclude($id,$file="")
|
||||||
{
|
{
|
||||||
if(!$this->cache_activate or $this->cache_isExpired)
|
if(!$this->cache_activate || $this->cache_isExpired)
|
||||||
{
|
{
|
||||||
if( empty($file) )
|
if( empty($file) )
|
||||||
{
|
{
|
||||||
@ -213,7 +213,7 @@ class Template
|
|||||||
*/
|
*/
|
||||||
function htmlSelect($name,$array,$selected="",$htmlAttribut="")
|
function htmlSelect($name,$array,$selected="",$htmlAttribut="")
|
||||||
{
|
{
|
||||||
if(!$this->cache_activate or $this->cache_isExpired)
|
if(!$this->cache_activate || $this->cache_isExpired)
|
||||||
{
|
{
|
||||||
//on test la balise avec l'option selected
|
//on test la balise avec l'option selected
|
||||||
$select = $this->findTag("HTMLSELECT",$name,"SELECTED");
|
$select = $this->findTag("HTMLSELECT",$name,"SELECTED");
|
||||||
@ -245,7 +245,7 @@ class Template
|
|||||||
*/
|
*/
|
||||||
function view()
|
function view()
|
||||||
{
|
{
|
||||||
if(!$this->cache_activate or $this->cache_isExpired)
|
if(!$this->cache_activate || $this->cache_isExpired)
|
||||||
{
|
{
|
||||||
$this->assignAutoInclude();
|
$this->assignAutoInclude();
|
||||||
if(!$this->debug)
|
if(!$this->debug)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user