public function addPublicAsset($asset)
    {
        // Remove from protected / deleted lists
        $key = $this->getAssetKey($asset);
        unset($this->protected[$key]);
        unset($this->deleted[$key]);
        // Skip if already public
        if (isset($this->public[$key])) {
            return false;
        }
        unset($asset['Variant']);
        $this->public[$key] = $asset;
        return true;
    }
public function addPublicAsset($asset)
    {
        // Remove from protected / deleted lists
        $key = $this->getAssetKey($asset);
        unset($this->protected[$key]);
        unset($this->deleted[$key]);
        // Skip if already public
        if (isset($this->public[$key])) {
            return false;
        }
        unset($asset['Variant']);
        $this->public[$key] = $asset;
        return true;
    }
public function addPublicAsset ( $ asset ) { // Remove from protected / deleted lists $ key = $ this -> getAssetKey ( $ asset ) ; unset ( $ this -> protected [ $ key ] ) ; unset ( $ this -> deleted [ $ key ] ) ; // Skip if already public if ( isset ( $ this -> public [ $ key ] ) ) { return false ; } unset ( $ asset [ 'Variant' ] ) ; $ this -> public [ $ key ] = $ asset ; return true ; }
Mark a file as public

@param array $asset Asset tuple
@return bool True if the asset was added to the public set
Mark a file as public