'base64') * @var array */ protected $assetEncoders = [ 'js' => 'none', 'css' => 'none', 'font' => 'none', 'img' => 'none', 'audio' => 'none', 'video' => 'none']; protected $nestedResourcesInclusion; /** @var bool */ protected $skipValidation; public function __construct($assetEncoders = [], $nestedResourcesInclusion = true, bool $skipValidation = false) { $this->assetEncoders = array_merge($this->assetEncoders, $assetEncoders); $this->nestedResourcesInclusion = $nestedResourcesInclusion; $this->skipValidation = $skipValidation; } /** * Create a pack for an item. * * @param core_kernel_classes_Resource $item the item to pack * @param string $lang * @param Directory $directory * @return \oat\taoItems\model\pack\ItemPack */ abstract public function packItem(core_kernel_classes_Resource $item, $lang, Directory $directory); /** * @deprecated by fly-authoring * * @param core_kernel_classes_Resource $item * @param $lang * @return string * @throws common_Exception */ protected function getPath(core_kernel_classes_Resource $item, $lang = "") { throw new \BadMethodCallException(__CLASS__ . ' - ' . __METHOD__ . ' disable by fly-authoring'); } /** * @return array */ protected function getAssetEncoders() { return $this->assetEncoders; } /** * @param array $assetEncoders */ public function setAssetEncoders(array $assetEncoders) { $this->assetEncoders = $assetEncoders; } /** * @return boolean */ public function isNestedResourcesInclusion() { return $this->nestedResourcesInclusion; } /** * @param boolean $nestedResourcesInclusion */ public function setNestedResourcesInclusion($nestedResourcesInclusion) { $this->nestedResourcesInclusion = $nestedResourcesInclusion; } public function setSkipValidation(bool $skipValidation): void { $this->skipValidation = $skipValidation; } }