This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Project\API { | |
class Foo | |
{ | |
// actual functionality here | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/******************************************************************************* | |
Copyright 2013 Whole Foods Co-op | |
This file is part of IT CORE. | |
IT CORE is free software; you can redistribute it and/or modify | |
it under the terms of the GNU General Public License as published by | |
the Free Software Foundation; either version 2 of the License, or |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
switch ($infoW["minType"]) { | |
case "Q": // must purchase at least X | |
case "Q+": // must purchase more than X | |
case "Q-": // must purchase at least one, no more than X | |
$minQ = "select case when sum(ItemQtty) is null | |
then 0 else sum(ItemQtty) end | |
" . $this->baseSQL($transDB, $coupID, 'upc'); | |
$minR = $transDB->query($minQ); | |
$minW = $transDB->fetch_row($minR); | |
$validQtty = $minW[0]; |