Back to CheckJoomlaUpdatesCommand class

Method getUpdateInformationFromModel

private mixed
getUpdateInformationFromModel
()
Retrieves Update Information
Returns
  • mixed
Since
  • 4.0.0

Method getUpdateInformationFromModel - Source code

/**
 * Retrieves Update Information
 *
 * @return mixed
 *
 * @since 4.0.0
 */
private function getUpdateInformationFromModel()
{
    $app = $this->getApplication();
    $updatemodel = $app->bootComponent('com_joomlaupdate')->getMVCFactory($app)->createModel('Update', 'Administrator');
    $updatemodel->purge();
    $updatemodel->refreshUpdates(true);
    return $updatemodel;
}