AdminPageFramework_Link_Base::__construct PHP Method

__construct() public method

public __construct ( $oProp, $oMsg = null )
    public function __construct($oProp, $oMsg = null)
    {
        if (!$this->_isLoadable($oProp)) {
            return;
        }
        $this->oProp = $oProp;
        $this->oMsg = $oMsg;
        add_action('in_admin_footer', array($this, '_replyToSetFooterInfo'));
        if ($this->_shouldSetPluginActionLinks()) {
            add_filter('plugin_action_links_' . plugin_basename($this->oProp->aScriptInfo['sPath']), array($this, '_replyToAddSettingsLinkInPluginListingPage'), 20);
        }
    }

Usage Example

 public function __construct($oProp, $oMsg = null)
 {
     parent::__construct($oProp, $oMsg);
     if (isset($_GET['post_type']) && $_GET['post_type'] == $this->oProp->sPostType) {
         add_action('get_edit_post_link', array($this, '_replyToAddPostTypeQueryInEditPostLink'), 10, 3);
     }
 }