public function __construct($parentNodeID, $classIdentifier) { if (!$parentNodeID && !$classIdentifier) { throw new InvalidArgumentException("Arguments not found"); } $this->ini = eZINI::instance('exportas.ini'); $this->setOptions($this->ini->group('Settings')); if (method_exists('OCOpenDataTools', 'getFieldBlacklist')) { $fieldBlacklist = OCOpenDataTools::getFieldBlacklist(); $this->options['ExcludeAttributeIdentifiers'] = array_keys($fieldBlacklist); } if (method_exists('OCOpenDataTools', 'getDatatypeBlackList')) { $datatypeBlacklist = OCOpenDataTools::getDatatypeBlackList(); $this->options['ExcludeDatatype'] = array_keys($datatypeBlacklist); } $this->setClassIdentifier($classIdentifier); $this->setParentNode($parentNodeID); $this->setFetchParameters(); $checkAccess = $this->checkAccess($this->functionName); if ($checkAccess !== true) { eZDebug::writeError($checkAccess, __METHOD__); throw new Exception('Current user can not export this csv'); } }
public static function getDatatypeBlackList() { return OCOpenDataTools::getDatatypeBlackList(); }