api.zedseries.com
[ class tree: Model ] [ index: Model ] [ all elements ]

Class: ZedSeriesModel

Source Location: /ZedSeriesModel.php

Class ZedSeriesModel

Class Overview

Class ZedSeriesModel

an improved model class that let you specify a table

e.g.:

  1. <?php
  2.  
  3. /**
  4.  * a quick way to update the published field of a tl_page
  5.  *
  6.  * in the following example we retrieve the page ID 1 and set its published field to 1
  7.  *
  8.  */
  9.  
  10. $mod new ZedSeriesModel('tl_page');
  11. if ($mod->findBy('id'1!== false{
  12.     $mod->published 1;
  13.     $mod->save();
  14. else {
  15.     echo 'page not found';
  16. }

Located in /ZedSeriesModel.php [line 31]

Model
   |
   --ZedSeriesModel
Author(s): Information Tags:
Copyright:  Angelo Galleja 2008,2009,2010
Extends:  Model

Methods

[ Top ]
Method Summary
ZedSeriesModel   __construct()  

[ Top ]
Methods
Constructor __construct  [line 33]

  ZedSeriesModel __construct( $strTable  )

Parameters:
   $strTable: 

API Tags:
Access:  public


[ Top ]

Documentation generated on Fri, 22 Oct 2010 17:37:22 +0200 by phpDocumentor 1.4.1