[ Index ] |
|
Code source de eZ Publish 3.9.0 |
1 <?php 2 {* DO NOT EDIT THIS FILE! Use an override template instead. *} 3 /*! 4 \class {$full_class_name} {$file_name} 5 \ingroup eZDatatype 6 \brief {$description_brief} 7 \version 1.0 8 \date {currentdate()|l10n(datetime)} 9 10 {section show=$creator_name} 11 \author {$creator_name} 12 {/section} 13 14 15 {$description_full|indent(2)} 16 17 */ 18 19 include_once ( "kernel/classes/ezdatatype.php" ); 20 21 define( "{$constant_name}", "{$datatype_name}" ); 22 23 class {$full_class_name} extends eZDataType 24 {literal}{{/literal} 25 /*! 26 {'Constructor'|i18n('design/admin/setup/datatypecode')} 27 */ 28 function {$full_class_name}() 29 {literal}{{/literal} 30 $this->eZDataType( {$constant_name}, "{$desc_name}" ); 31 {literal}}{/literal} 32 33 {section show=$class_input} 34 /*! 35 Validates all variables given on content class level 36 \return EZ_INPUT_VALIDATOR_STATE_ACCEPTED or EZ_INPUT_VALIDATOR_STATE_INVALID if 37 the values are accepted or not 38 */ 39 function validateClassAttributeHTTPInput( &$http, $base, &$classAttribute ) 40 {literal}{{/literal} 41 return EZ_INPUT_VALIDATOR_STATE_ACCEPTED; 42 {literal}}{/literal} 43 44 /*! 45 Fetches all variables inputed on content class level 46 \return true if fetching of class attributes are successfull, false if not 47 */ 48 function fetchClassAttributeHTTPInput( &$http, $base, &$classAttribute ) 49 {literal}{{/literal} 50 return true; 51 {literal}}{/literal} 52 {/section} 53 54 /*! 55 Validates input on content object level 56 \return EZ_INPUT_VALIDATOR_STATE_ACCEPTED or EZ_INPUT_VALIDATOR_STATE_INVALID if 57 the values are accepted or not 58 */ 59 function validateObjectAttributeHTTPInput( &$http, $base, &$contentObjectAttribute ) 60 {literal}{{/literal} 61 return EZ_INPUT_VALIDATOR_STATE_ACCEPTED; 62 {literal}}{/literal} 63 64 /*! 65 Fetches all variables from the object 66 \return true if fetching of class attributes are successfull, false if not 67 */ 68 function fetchObjectAttributeHTTPInput( &$http, $base, &$contentObjectAttribute ) 69 {literal}{{/literal} 70 return true; 71 {literal}}{/literal} 72 73 /*! 74 Returns the content. 75 */ 76 function &objectAttributeContent( &$contentObjectAttribute ) 77 {literal}{{/literal} 78 return ""; 79 {literal}}{/literal} 80 81 /*! 82 Returns the meta data used for storing search indeces. 83 */ 84 function metaData( $contentObjectAttribute ) 85 {literal}{{/literal} 86 return ""; 87 {literal}}{/literal} 88 89 /*! 90 Returns the value as it will be shown if this attribute is used in the object name pattern. 91 */ 92 function title( &$contentObjectAttribute ) 93 {literal}{{/literal} 94 return ""; 95 {literal}}{/literal} 96 97 /*! 98 \return true if the datatype can be indexed 99 */ 100 function isIndexable() 101 {literal}{{/literal} 102 return true; 103 {literal}}{/literal} 104 105 {literal}}{/literal} 106 107 eZDataType::register( {$constant_name}, "{$full_class_name}" ); 108 ?>
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 |