AdminPageFrameworkLoader_AdminPageMetaBox_Notification::replyToDecideToLoad PHP Method

replyToDecideToLoad() public method

public replyToDecideToLoad ( $oScreen )
    public function replyToDecideToLoad($oScreen)
    {
        if (!$this->_isInThePage()) {
            return;
        }
        // For debugging, uncomment the below line to remove the transient.
        // $this->oUtil->deleteTransient(
        // AdminPageFrameworkLoader_Registry::TRANSIENT_PREFIX . 'devver'
        // );
        // Retrieve the development version.
        $this->_sDevelopmentVersion = $this->oUtil->getTransient(AdminPageFrameworkLoader_Registry::TRANSIENT_PREFIX . 'devver');
        // Disable the meta box if the development version is not above the running one.
        if (version_compare(AdminPageFramework_Registry::VERSION, $this->_sDevelopmentVersion, '>=')) {
            $this->oProp->aPageSlugs = array();
        }
        // If the value is not set, schedule retrieving the version.
        if (empty($this->_sDevelopmentVersion)) {
            $this->_scheduleEvent();
        }
    }
AdminPageFrameworkLoader_AdminPageMetaBox_Notification