Wednesday 08 September 2010 2:03:21 am
Hi Mathiew, I am trying to grasp how to develop the custom extensions. But I am stuck at certain point while I following the cutom extension development form ez.Can u do a favour by explain what following code mean
function &handleList( $parameters = array(), $asCount = false )
{
$parameters = array_merge( array( 'as_object' => true,
'offset' => false,
'limit' => false ),
$parameters );
$asObject = $parameters['as_object'];
$offset = $parameters['offset'];
$limit = $parameters['limit'];
$limitArray = null;
if ( !$asCount and $offset !== false and $limit !== false )
$limitArray = array( 'offset' => $offset,
'length' => $limit );
return eZPersistentObject::fetchObjectList( Mymodule::definition(),
null, null, null, $limitArray, $asObject ); } I couldn't understand the logic here in above function. The above function is in the URL http://ez.no/ezpublish/documentation/development/extensions/module/module_tutorial_part_1 I wll be thankfull for any help.
|