src/Util/DeepLinkResponse.php
public function addContentItem($url, $title=false, $text=false,
        $icon=false, $fa_icon=false, $additionalParams = array())
    {
        $params = array(
            'url' => $url,
            'title' => $title,
            'text' => $text,
            'icon' => $icon,
            'fa_icon' => $fa_icon,
        );
        // package the parameter list into an array for the helper function
        if (! empty($additionalParams['placementTarget']))
            $params['placementTarget'] = $additionalParams['placementTarget'];
        if (! empty($additionalParams['placementWidth']))
            $params['placementWidth'] = $additionalParams['placementWidth'];
        if (! empty($additionalParams['placementHeight']))
            $params['placementHeight'] = $additionalParams['placementHeight'];

        $this->addContentItemExtended($params);
    }
public function addContentItem($url, $title=false, $text=false,
        $icon=false, $fa_icon=false, $additionalParams = array())
    {
        $params = array(
            'url' => $url,
            'title' => $title,
            'text' => $text,
            'icon' => $icon,
            'fa_icon' => $fa_icon,
        );
        // package the parameter list into an array for the helper function
        if (! empty($additionalParams['placementTarget']))
            $params['placementTarget'] = $additionalParams['placementTarget'];
        if (! empty($additionalParams['placementWidth']))
            $params['placementWidth'] = $additionalParams['placementWidth'];
        if (! empty($additionalParams['placementHeight']))
            $params['placementHeight'] = $additionalParams['placementHeight'];

        $this->addContentItemExtended($params);
    }
public function addContentItem ( $ url , $ title = false , $ text = false , $ icon = false , $ fa_icon = false , $ additionalParams = array ( ) ) { $ params = array ( 'url' => $ url , 'title' => $ title , 'text' => $ text , 'icon' => $ icon , 'fa_icon' => $ fa_icon , ) ; // package the parameter list into an array for the helper function if ( ! empty ( $ additionalParams [ 'placementTarget' ] ) ) $ params [ 'placementTarget' ] = $ additionalParams [ 'placementTarget' ] ; if ( ! empty ( $ additionalParams [ 'placementWidth' ] ) ) $ params [ 'placementWidth' ] = $ additionalParams [ 'placementWidth' ] ; if ( ! empty ( $ additionalParams [ 'placementHeight' ] ) ) $ params [ 'placementHeight' ] = $ additionalParams [ 'placementHeight' ] ; $ this -> addContentItemExtended ( $ params ) ; }
addContentItem - Add an Content Item

@param url The launch URL of the tool that is about to be placed
@param title A plain text title of the content-item.
@param text A plain text description of the content-item.
@param icon An image URL of an icon
@param fa_icon The class name of a FontAwesome icon
addContentItem - Add an Content Item