/** * @param XMLString $xml * @param int $version */ public function __construct(XMLString $xml) { parent::__construct($xml, 'eif'); // @todo - elife - nlisgo - there has to be a better way to reference validator.js $path_to_validator = realpath(dirname(__FILE__)) . '/../../../bower_components/elife-eif-schema/validator.js'; // If validator library is installed then set path to the validator. if (file_exists($path_to_validator)) { $this->validator = '`which node` ' . $path_to_validator; } }
/** * @param XMLString $xml */ public function __construct(XMLString $xml) { parent::__construct($xml, 'ris'); }