/**
  * Get each version belongs to Extension
  * Url ID
  *
  * @param int $extensionId
  * @return dataobject
  */
 public static function get_latest_version_dist_url($extensionId)
 {
     return ExtensionVersion::get()->filter(array('ExtensionDataID' => $extensionId, 'Version' => '9999999-dev'))->First();
 }
コード例 #2
0
 /**
  * Delete old version of extension
  *
  * @param  int $id
  * @return boolean
  */
 public function deleteVersionData($id)
 {
     return ExtensionVersion::get()->filter('ExtensionDataID', $id)->removeAll();
 }