tFPDF::SetLink PHP Method

    function SetLink($link, $y = 0, $page = -1)
    {
        // Set destination of internal link
        if ($y == -1) {
            $y = $this->y;
        }
        if ($page == -1) {
            $page = $this->page;
        }
        $this->links[$link] = array($page, $y);
    }

Usage Example

Ejemplo n.º 1
0
 function SetLink($link, $y = 0, $page = -1)
 {
     if (is_subclass_of($this, 'TCPDF')) {
         $args = func_get_args();
         return call_user_func_array(array($this, 'TCPDF::SetLink'), $args);
     }
     if ($this->_intpl) {
         $this->Error('Setting links in templates aren\'t possible!');
     }
     parent::SetLink($link, $y, $page);
 }