<?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'));
|