Exemple #1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getProductInventories()
 {
     return $this->hasMany(ProductInventory::className(), ['product_id' => 'id']);
 }
Exemple #2
0
<?php

//ini_set("display_errors",1);
require_once 'app_code/global.config.php';
require_once 'class/config.inc.php';
require_once 'class/class.ProductInventory.php';
$page = new basic_page();
/*******Checking Authentication****************/
$page->auth->Checklogin();
$user = new User();
$notify = new Notification();
$obj_product = new ProductInventory();
$ajax = new PHPLiveX();
$ajax->AjaxifyObjects(array("obj_product"));
/**********************************************/
/*******Setting Page access Rules & checking Authorization****************/
/*$access_rule = array(	"Admin"		=>"Admin" 
					);
$page -> setAccessRules($access_rule);
$page -> setAccessRulesType('all');		// any or all
$page -> CheckAuthorization();
*/
/************************************************************************/
$page->setPageKeywords('');
$page->setPageDescription('');
$page->setPageTitle("PRODUCT");
$page->setActiveButton('3');
$page->setInnerNav('');
//$page -> setImportCss1('main_style.css');
//$page -> setImportCss2('form.css'); // each page should have it's own .css sheet.  Link mulitple sheets here and below
$page->SetDynamicCSS_1('main_style.php');