protected function addHeaderGroup(\Gems_Model_Bridge_ThreeColumnTableBridge $bridge, \MUtil_Model_ModelAbstract $model, \Gems_Menu_MenuList $links)
    {
        $controller = $this->request->getControllerName();
        $tData      = $this->util->getTokenData();

        $bridge->addItem('gto_id_token', null, array('colspan' => 1.5));
        $copiedFrom = $this->token->getCopiedFrom();
        if ($copiedFrom) {
            $bridge->tr();
            $bridge->tdh($this->_('Token copied from'));
            $bridge->td(array('colspan' => 2, 'skiprowclass' => true))
                    ->a([\MUtil_Model::REQUEST_ID => $copiedFrom], $copiedFrom);
        }
        $copiedTo = $this->token->getCopiedTo();
        if ($copiedTo) {
            $bridge->tr();
            $bridge->tdh($this->_('Token copied to'));
            $td = $bridge->td(array('colspan' => 2, 'skiprowclass' => true));
            foreach ($copiedTo as $copy) {
                $td->a([\MUtil_Model::REQUEST_ID => $copy], $copy);
                $td->append(' ');
            }
        }

        // Token status
        $bridge->tr();
        $bridge->tdh($this->_('Status'));
        $td = $bridge->td(
                ['colspan' => 2, 'skiprowclass' => true],
                $tData->getTokenStatusShowForBridge($bridge),
                ' ',
                $tData->getTokenStatusDescriptionForBridge($bridge)
                );

        // Buttons
        $bridge->gto_in_source;
        $buttons = $links->getActionLinks(true,
                'ask', 'take',
                'pdf', 'show',
                $controller, 'questions',
                $controller, 'answer',
                $controller, 'answer-export'
                );
        if (count($buttons)) {
            if (isset($buttons['ask.take']) && ($buttons['ask.take'] instanceof \MUtil_Html_HtmlElement)) {
                if ('a' == $buttons['ask.take']->tagName) {
                    $buttons['ask.take'] = $tData->getTokenAskButtonForBridge($bridge, true, true);
                }
            }
            if (isset($buttons['track.answer']) && ($buttons['track.answer'] instanceof \MUtil_Html_HtmlElement)) {
                if ('a' == $buttons['track.answer']->tagName) {
                    $buttons['track.answer'] = $tData->getTokenAnswerLinkForBridge($bridge, true);
                }
            }

            $bridge->tr();
            $bridge->tdh($this->_('Actions'));
            $bridge->td($buttons, array('colspan' => 2, 'skiprowclass' => true));
        }

        return true;
    }
protected function addHeaderGroup(\Gems_Model_Bridge_ThreeColumnTableBridge $bridge, \MUtil_Model_ModelAbstract $model, \Gems_Menu_MenuList $links)
    {
        $controller = $this->request->getControllerName();
        $tData      = $this->util->getTokenData();

        $bridge->addItem('gto_id_token', null, array('colspan' => 1.5));
        $copiedFrom = $this->token->getCopiedFrom();
        if ($copiedFrom) {
            $bridge->tr();
            $bridge->tdh($this->_('Token copied from'));
            $bridge->td(array('colspan' => 2, 'skiprowclass' => true))
                    ->a([\MUtil_Model::REQUEST_ID => $copiedFrom], $copiedFrom);
        }
        $copiedTo = $this->token->getCopiedTo();
        if ($copiedTo) {
            $bridge->tr();
            $bridge->tdh($this->_('Token copied to'));
            $td = $bridge->td(array('colspan' => 2, 'skiprowclass' => true));
            foreach ($copiedTo as $copy) {
                $td->a([\MUtil_Model::REQUEST_ID => $copy], $copy);
                $td->append(' ');
            }
        }

        // Token status
        $bridge->tr();
        $bridge->tdh($this->_('Status'));
        $td = $bridge->td(
                ['colspan' => 2, 'skiprowclass' => true],
                $tData->getTokenStatusShowForBridge($bridge),
                ' ',
                $tData->getTokenStatusDescriptionForBridge($bridge)
                );

        // Buttons
        $bridge->gto_in_source;
        $buttons = $links->getActionLinks(true,
                'ask', 'take',
                'pdf', 'show',
                $controller, 'questions',
                $controller, 'answer',
                $controller, 'answer-export'
                );
        if (count($buttons)) {
            if (isset($buttons['ask.take']) && ($buttons['ask.take'] instanceof \MUtil_Html_HtmlElement)) {
                if ('a' == $buttons['ask.take']->tagName) {
                    $buttons['ask.take'] = $tData->getTokenAskButtonForBridge($bridge, true, true);
                }
            }
            if (isset($buttons['track.answer']) && ($buttons['track.answer'] instanceof \MUtil_Html_HtmlElement)) {
                if ('a' == $buttons['track.answer']->tagName) {
                    $buttons['track.answer'] = $tData->getTokenAnswerLinkForBridge($bridge, true);
                }
            }

            $bridge->tr();
            $bridge->tdh($this->_('Actions'));
            $bridge->td($buttons, array('colspan' => 2, 'skiprowclass' => true));
        }

        return true;
    }
protected function addHeaderGroup ( \ Gems_Model_Bridge_ThreeColumnTableBridge $ bridge , \ MUtil_Model_ModelAbstract $ model , \ Gems_Menu_MenuList $ links ) { $ controller = $ this -> request -> getControllerName ( ) ; $ tData = $ this -> util -> getTokenData ( ) ; $ bridge -> addItem ( 'gto_id_token' , null , array ( 'colspan' => 1.5 ) ) ; $ copiedFrom = $ this -> token -> getCopiedFrom ( ) ; if ( $ copiedFrom ) { $ bridge -> tr ( ) ; $ bridge -> tdh ( $ this -> _ ( 'Token copied from' ) ) ; $ bridge -> td ( array ( 'colspan' => 2 , 'skiprowclass' => true ) ) -> a ( [ \ MUtil_Model :: REQUEST_ID => $ copiedFrom ] , $ copiedFrom ) ; } $ copiedTo = $ this -> token -> getCopiedTo ( ) ; if ( $ copiedTo ) { $ bridge -> tr ( ) ; $ bridge -> tdh ( $ this -> _ ( 'Token copied to' ) ) ; $ td = $ bridge -> td ( array ( 'colspan' => 2 , 'skiprowclass' => true ) ) ; foreach ( $ copiedTo as $ copy ) { $ td -> a ( [ \ MUtil_Model :: REQUEST_ID => $ copy ] , $ copy ) ; $ td -> append ( ' ' ) ; } } // Token status $ bridge -> tr ( ) ; $ bridge -> tdh ( $ this -> _ ( 'Status' ) ) ; $ td = $ bridge -> td ( [ 'colspan' => 2 , 'skiprowclass' => true ] , $ tData -> getTokenStatusShowForBridge ( $ bridge ) , ' ' , $ tData -> getTokenStatusDescriptionForBridge ( $ bridge ) ) ; // Buttons $ bridge -> gto_in_source ; $ buttons = $ links -> getActionLinks ( true , 'ask' , 'take' , 'pdf' , 'show' , $ controller , 'questions' , $ controller , 'answer' , $ controller , 'answer-export' ) ; if ( count ( $ buttons ) ) { if ( isset ( $ buttons [ 'ask.take' ] ) && ( $ buttons [ 'ask.take' ] instanceof \ MUtil_Html_HtmlElement ) ) { if ( 'a' == $ buttons [ 'ask.take' ] -> tagName ) { $ buttons [ 'ask.take' ] = $ tData -> getTokenAskButtonForBridge ( $ bridge , true , true ) ; } } if ( isset ( $ buttons [ 'track.answer' ] ) && ( $ buttons [ 'track.answer' ] instanceof \ MUtil_Html_HtmlElement ) ) { if ( 'a' == $ buttons [ 'track.answer' ] -> tagName ) { $ buttons [ 'track.answer' ] = $ tData -> getTokenAnswerLinkForBridge ( $ bridge , true ) ; } } $ bridge -> tr ( ) ; $ bridge -> tdh ( $ this -> _ ( 'Actions' ) ) ; $ bridge -> td ( $ buttons , array ( 'colspan' => 2 , 'skiprowclass' => true ) ) ; } return true ; }
Adds first group of rows showing token specific data

Overrule this function to add different columns to the browse table, without
having to recode the core table building code.

@param \Gems_Model_Bridge_ThreeColumnTableBridge $bridge
@param \MUtil_Model_ModelAbstract $model
@param \Gems_Menu_MenuList $links
@return boolean True when there was row output
Adds first group of rows showing token specific data