Example #1
0
/**
 * Compare two upgrader scripts by version to
 *
 * @param ScriptUpgraderScript $script1
 * @param ScriptUpgraderScript $script2
 * @return integer
 */
function compare_scripts_by_version_to($script1, $script2)
{
    if (!$script1 instanceof ScriptUpgraderScript || !$script2 instanceof ScriptUpgraderScript) {
        return 0;
    }
    // if
    return version_compare($script1->getVersionTo(), $script2->getVersionTo());
}
 /**
  * Construct the OnionUpgradeScript
  *
  * @param Output $output
  * @return OnionUpgradeScript
  */
 function __construct(Output $output)
 {
     parent::__construct($output);
     $this->setVersionFrom('0.6');
     $this->setVersionTo('0.7');
 }
 /**
  * Construct the PastafrolaUpgradeScript
  *
  * @param Output $output
  * @return PastafrolaUpgradeScript
  */
 function __construct(Output $output)
 {
     parent::__construct($output);
     $this->setVersionFrom('1.6.2');
     $this->setVersionTo('1.7.3.3');
 }
	 /**
	 * Construct the PamplonaUpgradeScript
	 *
	 * @param Output $output
	 * @return PamplonaUpgradeScript
	 */
	function __construct(Output $output) {
		parent::__construct($output);
		$this->setVersionFrom('2.1');
		$this->setVersionTo('2.2.4.1');
	} // __construct
 /**
  * Construct the ButiaUpgradeScript
  *
  * @param Output $output
  * @return ButiaUpgradeScript
  */
 function __construct(Output $output)
 {
     parent::__construct($output);
     $this->setVersionFrom('3.1.5.3');
     $this->setVersionTo('3.2.3');
 }
 /**
  * Construct the PastafrolaUpgradeScript
  *
  * @param Output $output
  * @return PastafrolaUpgradeScript
  */
 function __construct(Output $output)
 {
     parent::__construct($output);
     $this->setVersionFrom('1.7.4');
     $this->setVersionTo('2.0.1');
 }
 /**
  * Construct the MollejaUpgradeScript
  *
  * @param Output $output
  * @return MollejaUpgradeScript
  */
 function __construct(Output $output)
 {
     parent::__construct($output);
     $this->setVersionFrom('2.5.1.5');
     $this->setVersionTo('2.6.4-beta');
 }