[ Index ]
 

Code source de eZ Publish 3.9.0

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/extension/ezdhtml/lib/ -> commonfunctions.php (source)

   1  <?php
   2  //
   3  // Created on: <12-Oct-2006 10:10:02 ks>
   4  //
   5  // Copyright (C) 1999-2006 eZ systems as. All rights reserved.
   6  //
   7  
   8  function getCustomAttributes( $tagName, &$customAttributes, &$customAttrDefaults )
   9  {
  10      $ini =& eZINI::instance( 'content.ini' );
  11  
  12      include_once ( 'lib/version.php' );
  13      $eZPublishVersion = eZPublishSDK::majorVersion() + eZPublishSDK::minorVersion() * 0.1;
  14  
  15      if ( $ini->hasVariable( $tagName, 'CustomAttributesDefaults' ) )
  16          $customAttrDefaults = $ini->variable( $tagName, 'CustomAttributesDefaults' );
  17      else
  18          $customAttrDefaults = array();
  19  
  20      if ( $eZPublishVersion >= 3.9 )
  21      {
  22          if ( $ini->hasVariable( $tagName, 'CustomAttributes' ) )
  23              $customAttributes = $ini->variable( $tagName, 'CustomAttributes' );
  24          else
  25              $customAttributes = array();
  26      }
  27      else
  28      {
  29          $customAttributes = array_keys( $customAttrDefaults );
  30      }
  31  }
  32  
  33  ?>


Généré le : Sat Feb 24 10:30:04 2007 par Balluche grâce à PHPXref 0.7