/** * The constructor instantiate the Page object * @param application * @param module * @param type */ public function __construct(Application $app, $module, $type) { parent::__construct($app); $this->page = new Page($app, $type); $this->module = $module; $this->type = $type; $this->setView(); }
/** * Initialize the back controller. * @param Application $app The application. * @param string $module The module. * @param string $action The action. */ public function __construct(Application $app, $module, $action) { parent::__construct($app); $this->setModule($module); $this->setAction($action); $daos = new Daos($app); $this->managers = new Managers($daos); }
public function __construct(Application $app, $module, $action = '') { parent::__construct($app); $this->managers = new Managers('PDO', PDOFactory::getMysqlConnexion()); $this->page = new Page($app); $this->setModule($module); $this->setAction($action); $this->setView($action); }
public function __construct(Application $app, $module, $action) { parent::__construct($app); $this->managers = new Managers('PDO', PDOFactory::getMysqlConnexion()); $this->page = new Page($app); $this->cache = new Cache(__DIR__ . '/../../tmp/cache/datas', __DIR__ . '/../../tmp/cache/views'); $this->setModule($module); $this->setAction($action); $this->setView($action); }
public function __construct($app, $name) { parent::__construct($app); $this->dom = new \DOMDocument(); $this->file = '../../Applications/' . $this->app->name() . '/Config/' . $name . '.xml'; if (file_exists($this->file)) { $this->dom->load($this->file); $this->setVars(); } else { throw new \Exception(ErrorMessage::config(0, $this->file)); } }
/** * Initialize the back controller. * @param Application $app The application. * @param string $module The module. * @param string $action The action. */ public function __construct(Application $app, $module, $action) { parent::__construct($app); $this->setModule($module); $this->setAction($action); $daos = new Daos(); $this->managers = new Managers($daos); $this->config = new ModuleConfig($app, $module); $this->translation = new ModuleTranslation($app, $module, $action); $this->responseContent = new Page($app, $module, $action); $this->responseContent->setTranslation($this->translation); }
public function __construct(Application $app, $module, $action) { parent::__construct($app); $this->managers = new Managers('pdo', PDOFactory::getMysqlConnexion()); $this->page = new Page($app); $this->setModule($module); $this->setAction($action); $this->setView($action); if ($this->app->name() == 'frontend') { $this->initUser(); } else { $this->initAdmin(); } }
public function __construct(Application $app, $module, $action, $resxfile) { parent::__construct($app); $this->managers = new \Library\DAL\Managers('PDO', $app); $this->page = new Page($app); $this->user = $app->user(); $this->setModule($module); $this->setAction($action); $this->setView($action); $this->setResxFile($resxfile); $this->setDataPost($this->app->HttpRequest()->retrievePostAjaxData(FALSE)); $this->resxData = $this->app->i8n->getLocalResourceArray($this->resxfile); $this->setUploadingFiles(); $this->toolTips[\Applications\PMTool\Resources\Enums\ViewVariables\Popup::ellipsis_tooltip_settings] = \Applications\PMTool\Helpers\PopUpHelper::getTooltipEllipsisSettings('{"targetcontroller":"' . $this->module . '","targetaction": "' . $this->action . '"}', $app->name()); }
public function init() { $this->objModule = Modules::LoadByName(get_class($this)); //Load our module entry so we can access settings $this->MerchantID = $this->objModule->getConfig('AMAZON_MERCHANT_ID'); $this->MarketplaceID = $this->objModule->getConfig('AMAZON_MARKETPLACE_ID'); $amazon_check_time = $this->objModule->getConfig('amazon_check_time'); if (!empty($amazon_check_time)) { $this->amazon_check_time = $this->objModule->getConfig('amazon_check_time'); } $amazon_tag = $this->objModule->getConfig('amazon_tag'); if (!empty($amazon_tag)) { $this->amazon_tag = $amazon_tag; } $no_image_upload_tag = $this->objModule->getConfig('no_image_upload_tag'); if (!empty($no_image_upload_tag)) { $this->no_image_upload_tag = $no_image_upload_tag; } $this->MWS_ACCESS_KEY_ID = $this->objModule->getConfig('AMAZON_MWS_ACCESS_KEY_ID'); $this->MWS_SECRET_ACCESS_KEY = $this->objModule->getConfig('AMAZON_MWS_SECRET_ACCESS_KEY'); $this->APPLICATION_NAME = _xls_get_conf('STORENAME') . " MyCompany_AmazonMWS"; Yii::import('application.vendors.Amazon.*'); //Required to set our include path so the required_once's everywhere work require_once 'MarketplaceWebService/Client.php'; require_once 'MarketplaceWebServiceOrders/Client.php'; require_once 'MarketplaceWebServiceOrders/Interface.php'; require_once 'MarketplaceWebService/Model/SubmitFeedRequest.php'; require_once 'MarketplaceWebService/Model/GetFeedSubmissionListRequest.php'; require_once 'MarketplaceWebService/Model/GetFeedSubmissionResultRequest.php'; require_once 'MarketplaceWebServiceOrders/Model/ListOrdersRequest.php'; require_once 'MarketplaceWebServiceOrders/Model/ListOrdersResponse.php'; require_once 'MarketplaceWebServiceOrders/Model/ListOrdersResult.php'; require_once 'MarketplaceWebServiceOrders/Model/ListOrdersResult.php'; require_once 'MarketplaceWebServiceOrders/Model/ListOrderItemsRequest.php'; require_once 'MarketplaceWebServiceOrders/Model/ListOrderItemsResponse.php'; require_once 'MarketplaceWebServiceOrders/Model/ListOrderItemsResult.php'; require_once 'MarketplaceWebServiceOrders/Model/MarketplaceIdList.php'; require_once 'MarketplaceWebService/Model/IdList.php'; if (!defined('DATE_FORMAT')) { define('DATE_FORMAT', 'Y-m-d\\TH:i:s\\Z'); } $config = array('ServiceURL' => $this->getMWSUrl(), 'ProxyHost' => null, 'ProxyPort' => -1, 'MaxErrorRetry' => 3); $this->service = new MarketplaceWebService_Client($this->MWS_ACCESS_KEY_ID, $this->MWS_SECRET_ACCESS_KEY, $config, $this->APPLICATION_NAME, $this->APPLICATION_VERSION); parent::init(); }
/** * Constructor: set the appPrefix to set in front of all session values * @param \Puzzlout\Framework\Core\Application $app */ public function __construct(Application $app) { parent::__construct($app); $this->appPrefix = strtolower($app->name()); }
public function __construct(Application $app) { parent::__construct($app); }
public function __construct(Application $App) { parent::__construct($App); $this->template = 'layout.php'; }
/** * Initialize the module's component. * @param Application $app The application. * @param string $module The module. */ public function __construct(Application $app, $module) { parent::__construct($app); $this->module = $module; }
public function __construct($rootda, $domainda, $appname, $name, $basedir) { parent::__construct($rootda, $domainda, $appname, $name, $basedir); }
public function __construct($app) { parent::__construct($app); $this->config = new Config($app, 'routes'); }
/** * The constructor sets the variable template * @param application * @param template */ public function __construct(Application $app, $template) { parent::__construct($app); $this->template = $template; }