if ($behavior->canGetProperty($name)) { return $behavior->$name; } } if (method_exists($this, 'set' . $name)) { throw new InvalidCallException('Getting write-only property: ' . get_class($this) . '::' . $name); } throw new UnknownPropertyException('Getting unknown property: ' . get_class($this) . '::' . $name); } /** * Sets the value of a component property. * * This method will check in the following order and act accordingly: * * - a property defined by a setter: set the property value * - an event in the format of "on xyz": attach the handler to the event "xyz"
return null; } if (isset($this->_related[$name]) || array_key_exists($name, $this->_related)) { return $this->_related[$name]; } $value = parent::__get($name); if ($value instanceof ActiveQueryInterface) { $this->setRelationDependencies($name, $value); return $this->_related[$name] = $value->findFor($name, $this); } return $value;
$tempArray['countryid'] = $countryId; $tempArray['country'] = $countryInfo->ctryname; $tempArray['slotsversion'] = $merchant->slotsversion; $tempArray['allowgroupbooking'] = $merchant->allowgroupbooking; $tempArray['maxpersonsgroupbooking'] = $merchant->maxpersonsgroupbooking; $tempArray['bookingdaysinadvance'] = $merchant->bookingdaysinadvance; $tempArray['confirmmerchantsms'] = $merchant->confirmmerchantsms; $tempArray['confirmmerchantnumber'] = $merchant->confirmmerchantnumber; $tempArray['photo'] = 'restaurantimages/'.$merchant->custid.'/medium_'.$merchant->custid.'.jpg'; return $tempArray; } else
$connection =\Yii::$app->db; $command =$connection->createCommand("Select frommonth, untilmonth, fromday, untilday, count(*) from merchant_openslots where custid_merchants = '$merchantID' GROUP BY frommonth, untilmonth, fromday, untilday"); $seasonList =$command->queryAll(); $seasonCount =count($seasonList); $INPUT_DT =date('Y-m-d'); $merchantInfo = $this->actionGetmerchantinfobyid($merchantID); $slotsversion = $merchantInfo['slotsversion']; if ( $seasonCount > 0 ) { foreach ($seasonList as $season) :
$TIME_ZONE = $DevappController->actionGetcountrytimezone($countryId); $merchantData = is_array($merchantinfo) ? 'merchantAvailable' : 'merchantNotavailable'; if( $merchantData == "merchantAvailable" ){ if ( $merchantinfo['activecustomer'] == 1 ) { $bookNow['merchant'] =$merchantinfo; $openslots =$WebController->actionGetopenslots($restaurant_id); $openslotData =is_array($openslots) ? 'openslotAvailable' : 'openslotnotAvailable'; if( $openslotData == "openslotAvailable" ){ if ( $merchantinfo['slotsversion'] == 1 ) { # If merchant having slot version == 1 (old merchants) $disableCalendardays =$WebController->actionDisabledays($restaurant_id, $openslots, 1, $date);
$args = $this->controller->bindActionParams($this, $params); Yii::debug('Running action: ' . get_class($this->controller) . '::' . $this->actionMethod . '()', __METHOD__); if (Yii::$app->requestedParams === null) { Yii::$app->requestedParams = $args; } return call_user_func_array([$this->controller, $this->actionMethod], $args); } }
} $result = null; if ($runAction && $this->beforeAction($action)) { // run the action $result = $action->runWithParams($params); $result = $this->afterAction($action, $result); // call afterAction on modules foreach ($modules as $module) { /* @var $module Module */
$parts = $this->createController($route); if (is_array($parts)) { /* @var $controller Controller */ list($controller, $actionID) = $parts; $oldController = Yii::$app->controller; Yii::$app->controller = $controller; $result = $controller->runAction($actionID, $params); if ($oldController !== null) { Yii::$app->controller = $oldController; } return $result; }
$params = $this->catchAll; unset($params[0]); } try { Yii::debug("Route requested: '$route'", __METHOD__); $this->requestedRoute = $route; $result = $this->runAction($route, $params); if ($result instanceof Response) { return $result; } $response = $this->getResponse(); if ($result !== null) {
{ try { $this->state = self::STATE_BEFORE_REQUEST; $this->trigger(self::EVENT_BEFORE_REQUEST); $this->state = self::STATE_HANDLING_REQUEST; $response = $this->handleRequest($this->getRequest()); $this->state = self::STATE_AFTER_REQUEST; $this->trigger(self::EVENT_AFTER_REQUEST); $this->state = self::STATE_SENDING_RESPONSE; $response->send();
require(__DIR__ . '/../vendor/autoload.php'); require(__DIR__ . '/../vendor/yiisoft/yii2/Yii.php'); $config = require(__DIR__ . '/../config/web.php'); (new yii\web\Application($config))->run();
$_GET = [ 'setlanguage' => 'fr', 'id' => '214', 'slug' => 'reserver-L\'Arc_Varsovie-Varsovie', ]; $_SESSION = [ '__flash' => [], 'language' => 'fr', ];