/** * @param $handle * * @return EtModel|null * @throws EtException * @throws \Exception */ public function getUpdateFileInfo($handle) { $et = new Et(static::GetUpdateFileInfo); if ($handle !== 'craft') { $et->setHandle($handle); $plugin = craft()->plugins->getPlugin($handle); if ($plugin) { $pluginUpdateModel = new PluginUpdateModel(); $pluginUpdateModel->class = $plugin->getClassHandle(); $pluginUpdateModel->localVersion = $plugin->getVersion(); $et->setData($pluginUpdateModel); } } $etResponse = $et->phoneHome(); if ($etResponse) { return $etResponse->data; } }