function __construct(&$xmlData, $aliasedType, $contentObjectAttribute) { parent::__construct($xmlData, $aliasedType, $contentObjectAttribute); $this->IsInputValid = true; $this->ContentObjectAttribute = $contentObjectAttribute; $contentIni = eZINI::instance('content.ini'); }
/** * Constructor * For more info see {@link eZXMLInputHandler::__construct()} * * @param string $xmlData * @param string $aliasedType * @param eZContentObjectAttribute $contentObjectAttribute */ function __construct(&$xmlData, $aliasedType, $contentObjectAttribute) { parent::__construct($xmlData, $aliasedType, $contentObjectAttribute); $contentIni = eZINI::instance('content.ini'); if ($contentIni->hasVariable('header', 'UseStrictHeaderRule') === true) { if ($contentIni->variable('header', 'UseStrictHeaderRule') === 'true') { $this->IsStrictHeader = true; } } $this->eZPublishVersion = eZPublishSDK::majorVersion() + eZPublishSDK::minorVersion() * 0.1; $ezxmlIni = eZINI::instance('ezxml.ini'); if ($ezxmlIni->hasVariable('InputSettings', 'AllowMultipleSpaces') === true) { $allowMultipleSpaces = $ezxmlIni->variable('InputSettings', 'AllowMultipleSpaces'); $this->allowMultipleSpaces = $allowMultipleSpaces === 'true' ? true : false; } if ($ezxmlIni->hasVariable('InputSettings', 'AllowNumericEntities')) { $allowNumericEntities = $ezxmlIni->variable('InputSettings', 'AllowNumericEntities'); $this->allowNumericEntities = $allowNumericEntities === 'true' ? true : false; } }