Override a function

Discussion in 'aMember Pro v.4' started by xindexer, Feb 3, 2013.

  1. xindexer

    xindexer Member

    Joined:
    Apr 17, 2011
    Messages:
    52
    I need to override this function
    Code:
    abstract class Am_Helpdesk_Grid extends Am_Grid_Editable_Helpdesk
    {
        public function renderSubject($record)
        {
            $url = Am_Di::getInstance()->helpdeskStrategy->assembleUrl(array(
                'page_id' => 'view',
                'action' => 'view',
                'ticket' => $record->ticket_mask
            ), 'inside-pages');
    
            return sprintf('<td><a href="%s" target="_top">%s</a></td>',
                $url,
                Am_Controller::escape($record->subject)
            );
        }
    }
    
    to remove the target="_top"

    How do I go about doing this? Right now I have hacked the code base but I really dislike that solution.

    Thanks
  2. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    Unfortunately this can't be done. You have to make modification in Am_Helpdesk_Grid class.

Share This Page