plugin/scorm/Event/ExportScormResourceEvent.php
public function addEmbedResource(AbstractResource $resource)
    {
        if (!in_array($resource, $this->embedResources)) {
            // Uses node ID as array key in order to avoid duplicates
            $this->embedResources[$resource->getResourceNode()->getId()] = $resource;
        }
    }
public function addEmbedResource(AbstractResource $resource)
    {
        if (!in_array($resource, $this->embedResources)) {
            // Uses node ID as array key in order to avoid duplicates
            $this->embedResources[$resource->getResourceNode()->getId()] = $resource;
        }
    }
public function addEmbedResource ( AbstractResource $ resource ) { if ( ! in_array ( $ resource , $ this -> embedResources ) ) { // Uses node ID as array key in order to avoid duplicates $ this -> embedResources [ $ resource -> getResourceNode ( ) -> getId ( ) ] = $ resource ; } }
Add an embed Resource.

@param AbstractResource $resource
Add an embed Resource .