[ Index ] |
|
Code source de eZ Publish 3.9.0 |
1 <?php 2 // 3 // Definition of eZURLFunctionCollection class 4 // 5 // Created on: <06-Oct-2002 16:19:31 amos> 6 // 7 // SOFTWARE NAME: eZ publish 8 // SOFTWARE RELEASE: 3.9.0 9 // BUILD VERSION: 17785 10 // COPYRIGHT NOTICE: Copyright (C) 1999-2006 eZ systems AS 11 // SOFTWARE LICENSE: GNU General Public License v2.0 12 // NOTICE: > 13 // This program is free software; you can redistribute it and/or 14 // modify it under the terms of version 2.0 of the GNU General 15 // Public License as published by the Free Software Foundation. 16 // 17 // This program is distributed in the hope that it will be useful, 18 // but WITHOUT ANY WARRANTY; without even the implied warranty of 19 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20 // GNU General Public License for more details. 21 // 22 // You should have received a copy of version 2.0 of the GNU General 23 // Public License along with this program; if not, write to the Free 24 // Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 25 // MA 02110-1301, USA. 26 // 27 // 28 29 /*! \file ezcontentfunctioncollection.php 30 */ 31 32 /*! 33 \class eZURLFunctionCollection ezurlfunctioncollection.php 34 \brief The class eZURLFunctionCollection does 35 36 */ 37 38 include_once ( 'kernel/error/errors.php' ); 39 40 class eZURLFunctionCollection 41 { 42 /*! 43 Constructor 44 */ 45 function eZURLFunctionCollection() 46 { 47 } 48 49 function fetchList( $isValid, $offset, $limit, $onlyPublished ) 50 { 51 include_once ( 'kernel/classes/datatypes/ezurl/ezurl.php' ); 52 $parameters = array( 'is_valid' => $isValid, 53 'offset' => $offset, 54 'limit' => $limit, 55 'only_published' => $onlyPublished ); 56 $list = eZURL::fetchList( $parameters ); 57 if ( $list === null ) 58 $result = array( 'error' => array( 'error_type' => 'kernel', 59 'error_code' => EZ_ERROR_KERNEL_NOT_FOUND ) ); 60 else 61 $result = array( 'result' => &$list ); 62 return $result; 63 } 64 65 function fetchListCount( $isValid, $onlyPublished ) 66 { 67 include_once ( 'kernel/classes/datatypes/ezurl/ezurl.php' ); 68 $parameters = array( 'is_valid' => $isValid, 69 'only_published' => $onlyPublished ); 70 $listCount = eZURL::fetchListCount( $parameters ); 71 if ( $listCount === null ) 72 $result = array( 'error' => array( 'error_type' => 'kernel', 73 'error_code' => EZ_ERROR_KERNEL_NOT_FOUND ) ); 74 else 75 $result = array( 'result' => &$listCount ); 76 return $result; 77 } 78 79 } 80 81 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sat Feb 24 10:30:04 2007 | par Balluche grâce à PHPXref 0.7 |