Login   Register  
PHP Classes
elePHPant
Icontem

File: example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of solomongaby  >  dinamicParams  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: example file
Class: dinamicParams
Call a function with a list of dynamic parameters
Author: By
Last change:
Date: 2008-11-23 07:13
Size: 482 bytes
 

Contents

Class file image Download
<?php
require('dinamicParams.class.php');

class 
news {

    function 
fetch $id$page 0$items_pp 10$order_by 'date'$method 'desc') {
        echo 
"
            id: 
$id,
            page: 
$page,
            items_pp: 
$items_pp,
            order_by: 
$order_by,
            method: 
$method
        "
;
    }

}



$news = new news();
$dinamicParams = new dinamicParams();

$dinamicParams->call(array($news'fetch'), array('order_by' => 'name'));