query
stringlengths 7
5.25k
| document
stringlengths 15
1.06M
| metadata
dict | negatives
sequencelengths 3
101
| negative_scores
sequencelengths 3
101
| document_score
stringlengths 3
10
| document_rank
stringclasses 102
values |
---|---|---|---|---|---|---|
Get options for cart endpoint. | public static function getCartOptions()
{
return self::get('cart') ?: [];
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getCartOptions()\n {\n return [\n '1' => [\n 'name' => 'Цвет',\n 'variants' => ['1' => 'Красный', '2' => 'Белый', '3' => 'Синий'],\n ],\n '2' => [\n 'name' => 'Размер',\n 'variants' => ['4' => 'XL', '5' => 'XS', '6' => 'XXL'],\n ]\n ];\n }",
"public function getOptions();",
"public function getOptions();",
"public function getOptions();",
"public function getOptions();",
"public function getOptions();",
"public function getOptions();",
"public function getOptions();",
"public function getOptions();",
"public function getOptions();",
"public function getOptions();",
"public function getOptions();",
"public function getOptions();",
"public function getOptions();",
"public function getOptions();",
"public function getOptions();",
"public function getOptions();",
"public function getOptions() {}",
"public function getOptions() {}",
"public function getOptions() {}",
"public function getOptions()\n {\n return $this->get(self::OPTIONS);\n }",
"abstract public function getOptions();",
"protected function getOptions() {}",
"protected function getOptions() {}",
"protected function getOptions() {}",
"public function getOptions()\r\n {\r\n }",
"public function getOptions()\n { return $this->get('options'); }",
"public function getOptions()\n {\n return $this->optionRequested->get();\n }",
"protected function getOptions(): array\n {\n return [\n 'cost' => $this->cost\n ];\n }",
"public function getOptions(Request $request): array;",
"public static function getProductOptions()\n {\n return self::get('product') ?: [];\n }",
"public function options()\n {\n return $this->setMethod(__FUNCTION__)\n ->makeRequest();\n }",
"public function showOptions()\n {\n\treturn $this->getConfigData('checkout/delivery_options');\n }",
"public function get_options()\n {\n }",
"public function getCart()\n {\n return $this->getParam('cart');\n }",
"public function options($id)\n {\n return $this->http->get($this->app->getApiUrl(\"/items/{$id}/shipping_options\"));\n }",
"function getOptions();",
"function getOptions() ;",
"protected static abstract function getOptions();",
"public function getConfigItemOptions()\n {\n return Mage::helper('cataloginventory')->getConfigItemOptions();\n }",
"protected function getOptions()\n {\n return [\n ];\n }",
"protected function getOptions()\n {\n return [\n ];\n }",
"protected function getOptions()\n {\n return [\n ];\n }",
"protected function getOptions()\n {\n return [\n ];\n }",
"protected function getOptions()\n {\n return [\n ];\n }",
"protected function getOptions()\r\n {\r\n return [\r\n\r\n ];\r\n }",
"public function getCart();",
"public static function getProductsOptions()\n {\n return self::get('products') ?: [];\n }",
"public function getOptions(): array;",
"public function getOptions(): array;",
"public function getOptions(): array;",
"public function getOptions(): array;",
"public function getOptions(): array;",
"public function getOptions(): array;",
"public function getOptions(): array;",
"function getCart(){\n \treturn $this->myCart->getList();\n }",
"protected function getOptions()\n\t{\n\t\treturn [\n\t\t];\n\t}",
"protected function getOptions()\n\t{\n\t\treturn [];\n\t}",
"protected function getOptions()\n\t{\n\t\treturn [];\n\t}",
"protected function getOptions()\n\t{\n\t\treturn [];\n\t}",
"protected function getOptions()\n\t{\n\t\treturn [];\n\t}",
"protected function getOptions()\n\t{\n\t\treturn [];\n\t}",
"protected function getOptions()\n\t{\n\t\treturn [];\n\t}",
"protected function getOptions()\n\t{\n\t\treturn [];\n\t}",
"protected function getOptions()\n\t{\n\t\treturn [];\n\t}",
"protected function getOptions()\n\t{\n\t\treturn [];\n\t}",
"public final function getOptions()\n {\n return $this->_getOptions();\n }",
"protected function getOptions()\n {\n return [];\n }",
"protected function getOptions()\n {\n return [];\n }",
"protected function getOptions()\n {\n return [];\n }",
"protected function getOptions()\n {\n return [];\n }",
"protected function getOptions()\n {\n return [];\n }",
"protected function getOptions()\n {\n return [];\n }",
"protected function getOptions()\n {\n return [];\n }",
"protected function getOptions()\n {\n return [];\n }",
"protected function getOptions()\n {\n return [];\n }",
"public function getOptionList()\n {\n return Mage::helper('bundle/catalog_product_configuration')->getOptions($this->getItem());\n }",
"protected function get_options()\n\t{}",
"public function optionAction() \n {\n $result = array();\n \n $productIdOrSku = $this->getRequest()->getParam('product');\n $attributeOptionId = $this->getRequest()->getParam('id');\n\n try {\n \n $model = $this->getModel();\n $model->loadOptions($productIdOrSku, $attributeOptionId);\n $options = $model->getApiOptions(); \n \n $result = $options;\n \n \n } catch (Exception $e) {\n \n $result['error'] = true;\n $result['data'] = $e->getMessage();\n } \n \n $this->getResponse()->clearHeaders()->setHeader('Content-type','application/json',true)->setBody(Mage::helper('core')->jsonEncode($result));\n \n }",
"protected function getOptions()\n\t{\n\t\treturn [\n\t\t\t\n\t\t];\n\t}",
"protected function getOptions() {\n\t\treturn array();\n\t}",
"public function getOptions()\n {\n return $this->options->getOptions();\n }",
"public function getProductOption();",
"protected function getOptions() {\n return [];\n }",
"protected function getOptions() {\n return [];\n }",
"protected function getOptions()\n {\n return array();\n }",
"protected function getOptions()\n {\n return array();\n }",
"protected function getOptions()\n {\n return array();\n }",
"protected function getOptions()\n {\n return array();\n }",
"protected function getOptions()\n {\n return array();\n }",
"protected function getOptions()\n {\n return array();\n }",
"protected function getOptions()\n {\n return array();\n }",
"public function getOptions(){\n return $this->options;\n }",
"public function getOptions() {\n\n return $this->options;\n }",
"public function getOptions()\n {\n return $this->options;\n }",
"public function getOptions()\n {\n return $this->options;\n }",
"protected function getOptions()\r\n\t{\r\n\t\treturn array();\r\n\t}",
"public function getOptions()\n {\n return array();\n }",
"protected function getOptions()\n\t{\n\t\treturn array();\n\t}",
"protected function getOptions()\n\t{\n\t\treturn array();\n\t}"
] | [
"0.71079016",
"0.66131854",
"0.66131854",
"0.66131854",
"0.66131854",
"0.66131854",
"0.66131854",
"0.66131854",
"0.66131854",
"0.66131854",
"0.66131854",
"0.66131854",
"0.66131854",
"0.66131854",
"0.66131854",
"0.66131854",
"0.66131854",
"0.66060644",
"0.6605481",
"0.6605481",
"0.6449878",
"0.642791",
"0.64276844",
"0.64276844",
"0.64272904",
"0.6426069",
"0.63734055",
"0.63653487",
"0.6307127",
"0.6286429",
"0.62520015",
"0.62441534",
"0.62344015",
"0.6192715",
"0.6163421",
"0.61609095",
"0.6158602",
"0.6135617",
"0.61254996",
"0.61196035",
"0.6118464",
"0.6118464",
"0.6118464",
"0.6118464",
"0.6118464",
"0.61140436",
"0.6103699",
"0.6084673",
"0.6050167",
"0.6050167",
"0.6050167",
"0.6050167",
"0.6050167",
"0.6050167",
"0.6050167",
"0.60467374",
"0.60386443",
"0.602555",
"0.602555",
"0.602555",
"0.602555",
"0.602555",
"0.602555",
"0.602555",
"0.602555",
"0.602555",
"0.6012852",
"0.600725",
"0.600725",
"0.600725",
"0.600725",
"0.600725",
"0.600725",
"0.600725",
"0.600725",
"0.600725",
"0.6007099",
"0.6001428",
"0.5991629",
"0.598695",
"0.59854627",
"0.59812456",
"0.5978414",
"0.5968567",
"0.5968567",
"0.596547",
"0.596547",
"0.596547",
"0.596547",
"0.596547",
"0.596547",
"0.596547",
"0.59609586",
"0.5960134",
"0.5959392",
"0.5959392",
"0.595352",
"0.595279",
"0.59432304",
"0.59432304"
] | 0.8125265 | 0 |
Get options for categories endpoint. | public static function getCategoriesOptions()
{
return self::get('categories') ?: [];
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static function getCategoryOptions()\n {\n return self::get('category') ?: [];\n }",
"public function GetCategoryOptions() {\n $return = \"\";\n $this->GetCategories();\n \n // Create the Options\n foreach ($this->rs as $row) {\n $return .= '<option value=\"' . $row->categoryID .'\">'. $row->categoryName .'</option>';\n }\n \n // Return the <options>\n return $return;\n }",
"function GetCategories()\n\t{\n\t\t$result = $this->sendRequest(\"GetCategories\", array());\t\n\t\treturn $this->getResultFromResponse($result);\n\t}",
"function categories() {\n\n foreach ($this->loadCategoryAssoc() as $id=>$title) {\n $options[] = array(\n 'id' => intval($id),\n 'title' => $title,\n );\n }\n\n return $options;\n }",
"public function getCategoryList() {\n $categories = $this->couponServices_model->fetchCategories();\n\n $category_options = array();\n $category_options[\"\"] = \"-- Select category --\";\n foreach ($categories as $item) {\n $category_options[$item['categoryId']] = $item['categoryName'];\n }\n return $category_options;\n }",
"public function getCategories()\n {\n return $this->request(\"core_course_get_categories\");\n }",
"public function getCategories()\n {\n return [ 'categories' => self::CATEGORIES ];\n }",
"public function getCategories(){\n\t\t// preapres the request\n\t\t$ch = curl_init();\n\t\tcurl_setopt($ch, CURLOPT_HTTPHEADER, array('Authorization: ' . TOKEN));\n\t\tcurl_setopt($ch, CURLOPT_URL, \"http://\" . IP . \"/bde_site/api/category/\");\n\t\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\n\n\t\t// send the request\n\t\t$output = curl_exec($ch);\n\t\t$info = curl_getinfo($ch);\n\t\tcurl_close($ch);\n\n\t\t// decode the answer into a php object\n\t\t$categories = json_decode($output, true);\n\n\t\treturn $categories;\n\t}",
"public function listsCategoriesGet()\r\n {\r\n $response = Category::all();\r\n return response()->json($response, 200);\r\n }",
"public function getCategories();",
"public function getCategories();",
"public function categories()\n {\n return $this->apiResponse(Items::$categories, 2678400);\n }",
"function getAllCategories() {\n\t\t$url = $this->apiURL . \"categories/\" . $this->yourID . \"/\" . $this->yourAPIKey;\n\t\treturn $this->_curl_get($url);\n\t}",
"public function getCategories()\n {\n /** @var WebApplication|ConsoleApplication $this */\n return $this->get('categories');\n }",
"public function getAllCategories();",
"public function getCategoriesIdOption() {\r\n\t\t$database =& JFactory::getDBO();\r\n\r\n\t\t$catoptions = array();\r\n\r\n\t\treturn $catoptions;\r\n }",
"public function getCategories()\n {\n return CategoryResource::collection(Category::with('products')->get())\n ->response()\n ->setStatusCode(200);\n }",
"public function getCategories()\n {\n return $this->categories;\n }",
"public function getCategories()\n {\n return $this->categories;\n }",
"public function getCategories()\n {\n return $this->categories;\n }",
"public function getCategories()\n {\n return $this->categories;\n }",
"public function getCategories()\n {\n return $this->categories;\n }",
"public function getCategories()\n {\n return $this->categories;\n }",
"public function getCategories()\n {\n return $this->categories;\n }",
"public function getCategories()\n {\n return $this->categories;\n }",
"public function getCategories()\n {\n return $this->categories;\n }",
"public function getCategories()\n {\n return $this->categories;\n }",
"public function getCategories($options = array())\n {\n $return = $this->getListe(\"categories\", $options);\n return $return;\n }",
"public function getCategorias()\n {\n $cagetgorias = Categorias::get();\n return response()->json($cagetgorias);\n }",
"public function get_categories() {\n\t\treturn array( 'listeo' );\n\t}",
"public function getCategories (Request $request) {\n return $this->service->getAllCategories ();\n }",
"public function getCategoriesList() {\n return $this->_get(16);\n }",
"public function getCategories() {\n return $this->categories;\n }",
"public function getCategories(){\n\t\t$query = \"SELECT * FROM final_categoria\";\n\t\treturn $this->con->action($query);\n\t}",
"public function getTaskCategoryOptions() {\n return $this->taskCategoryOptions;\n }",
"public function get_categories() {\n\t\treturn $this->terms('category');\n\t}",
"public function categories()\n {\n // Cache results\n static $categories;\n\n if ($categories) {\n return $categories;\n }\n\n $app = \\Slim\\Slim::getInstance();\n $dataMapper = $app->dataMapper;\n $CategoryMapper = $dataMapper('CategoryMapper');\n\n return $categories = $CategoryMapper->getAllCategories();\n }",
"public function getCategory() {\n\t\t$categories = Category::all();\n\t\treturn Response::json($categories);\n\t}",
"public function forSelect()\n {\n $categories = Category::select('id', 'name', 'slug')->get();\n\n return response()->json($categories);\n }",
"public function get_categories()\n {\n $categorymenu = new ContentObjectCategoryMenu($this->get_workspace());\n $renderer = new OptionsMenuRenderer();\n $categorymenu->render($renderer, 'sitemap');\n\n return $renderer->toArray();\n }",
"public function Categories()\n {\n $this->_Categories->ClearAllOptions();\n return $this->_Categories;\n }",
"public function get_categories() {\n\t\treturn [ 'basic' ];\n\t}",
"public function get_categories() {\n\t\treturn [ 'happyden' ];\n\t}",
"public function get_categories() {\n\t\treturn [ 'general' ];\n\t}",
"public function get_categories() {\n\t\treturn [ 'general' ];\n\t}",
"public function get_categories() {\n\t\treturn [ 'general' ];\n\t}",
"public function categories() {\n\t\treturn $this->terms('category');\n\t}",
"public function tldCategoryList(){\n $expectedExceptions = array();\n $expectedExceptions[\"\\\\Kinikit\\\\MVC\\\\Exception\\\\RateLimitExceededException\"] = \"\\Netistrar\\ClientAPI\\Exception\\RateLimitExceededException\";\n return parent::callMethod(\"tldcategory\", \"GET\", array(),null,\"string[]\",$expectedExceptions);\n }",
"public function tldCategoryList(){\n $expectedExceptions = array();\n $expectedExceptions[\"\\\\Kinikit\\\\MVC\\\\Exception\\\\RateLimitExceededException\"] = \"\\Netistrar\\ClientAPI\\Exception\\RateLimitExceededException\";\n return parent::callMethod(\"tldcategory\", \"GET\", array(),null,\"string[]\",$expectedExceptions);\n }",
"function getCategoriesIdOption() {\r\n\t\t$database = & JFactory::getDBO();\r\n\r\n\t\t$catoptions = array();\r\n\r\n\t\treturn $catoptions;\r\n\t}",
"public function getCategories()\n\t{\n\t\treturn $this->categories;\n\t}",
"public function getCategories() : array;",
"public function get_categories()\n {\n return ['super-cat'];\n }",
"function getCategoriesIdOption() {\r\n\t\t$database = JFactory::getDBO();\r\n\r\n\t\t$catoptions = array();\r\n\r\n\t\treturn $catoptions;\r\n\t}",
"function getAllCategories()\n {\n return $this->data->getAllCategories();\n }",
"public function get_categories()\n {\n return ['general'];\n }",
"public function get_categories()\n {\n return ['general'];\n }",
"public function get_categories() {\n return array( 'apr-core' );\n }",
"public function get_categories () {\n\t\treturn Category::all();\n\t}",
"public function getCategories()\n {\n return Category::all();\n }",
"public function getCategory() {\n $productModel = new productModel();\n $categories = $productModel->getCategoryList();\n $this->JsonCall($categories);\n }",
"public function categories(): array\n {\n return $this->categories;\n }",
"public function getOptions();",
"public function getOptions();",
"public function getOptions();",
"public function getOptions();",
"public function getOptions();",
"public function getOptions();",
"public function getOptions();",
"public function getOptions();",
"public function getOptions();",
"public function getOptions();",
"public function getOptions();",
"public function getOptions();",
"public function getOptions();",
"public function getOptions();",
"public function getOptions();",
"public function getOptions();",
"public function getCategories(){\n return Category::get();\n }",
"protected function findAllCategories()\n {\n return resolve([]);\n }",
"public function getCategory() {}",
"public function get_categories()\n {\n return ['basic'];\n }",
"public function get_categories()\n\t{\n\t\treturn array('general');\n\t}",
"public function list()\n {\n $categories = Category::select(['id', 'name'])->get();\n\n return response()->json(['categories' => $categories], 200);\n }",
"public function categories( Request $request ){\n\n $search = $request->get('search') ?: false;\n\n /* @var \\Bolt\\Cache $cache */\n $cache = $this->app['cache'];\n\n $categories = $cache->fetch('tipser-categories');\n if(!$categories){\n $tipser = $this->loadCategories();\n $categories = $this->convertCategories($tipser);\n $cache->save('tipser-categories', $categories, self::CATEGORIES_TTL);\n }\n $categories = $this->filterCategories($categories, $search);\n\n return new JsonResponse([\n 'items' => $categories,\n 'stats' => [\n 'total' => count($categories)\n ],\n 'status' => true,\n ]);\n }",
"public function list_for_select(){\n\n\n $categories = new OsServiceCategoryModel();\n $categories = $categories->get_results();\n $response_html = '<option value=\"0\">'.__('Uncategorized', 'latepoint').'</option>';\n foreach($categories as $category){\n $response_html.= '<option>'.$category->name.'</option>';\n }\n echo wp_send_json(array('status' => 'success', 'message' => $response_html));\n }",
"private function actionGetCategories() {\n\t\tglobal $publishthis;\n\n\t\t$categories = array();\n\t\t$obj = new stdClass();\n\n\t\t//get taxonomies categories\n\t\t$all_taxonomies = get_taxonomies( array( 'public' => true ), $output = 'objects', $operator = 'and' );\n\t\t$taxonomies_keys = array_keys( $all_taxonomies );\n\t\t$all_terms = get_terms( $taxonomies_keys, array( 'orderby' => 'id', 'hide_empty' => 0, 'exclude' => array(1) ) );\n\n\t\t$tax_maps = $publishthis->get_option( 'tax_mapping' );\n\t\t$tax_maps = array_values($tax_maps);\n\n\t\tforeach ( $all_terms as $term ) {\n\t\t\tif ( !in_array( $term->taxonomy, array( 'post_format', 'post_tag' ) ) ) {\n\t\t\tif ( !in_array( $term->taxonomy, $tax_maps ) && !in_array( 'pt_tax_all', $tax_maps ) ) continue;\n\n\t\t\t$category = array(\n\t\t\t\t'id' => intval( $term->term_id ),\n\t\t\t\t'name' => $term->name,\n\t\t\t\t'taxonomyId' => intval( $term->term_taxonomy_id ),\n\t\t\t\t'taxonomyName' => $term->taxonomy,\n\t\t\t\t'subcategories' => array() );\n\t\t\tif( intval( $term->parent ) > 0 ) {\n\t\t\t\t\t$categories[ $term->parent ]['subcategories'][ $term->term_id ] = $category;\n\t\t\t}\n\t\t\telse {\n\t\t\t\t\t$categories[ $term->term_id ] = $category;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t$obj->success = true;\n\t\t$obj->errorMessage = null;\n\t\t$obj->categories = $this->array_values_recursive( $categories );\n\n\t\t$this->sendJSON( $obj );\n\t}",
"public function getCategories()\n {\n $category = ProductsCategory::all();\n\n $data = $category->map(function($category){\n return [\n 'name' => $category->category,\n 'image' => $category->img,\n 'link' => $category->link,\n ];\n });\n\n return response()->json(['data' => $data]);\n }",
"protected function getOptions() {\n\n\n\t\t$catId = $this->element['catid'] ? (string) $this->element['catid'] : -1;\n\t\t$db = JFactory::getDBO();\n\n //build the list of categories\n\t\t$query = 'SELECT a.title AS text, a.id AS value, a.parent_id as parentid'\n\t\t. ' FROM #__phocagallery_categories AS a'\n\t\t. ' WHERE a.published = 1'\n\t\t. ' ORDER BY a.ordering';\n\t\t$db->setQuery( $query );\n\t\t$phocagallerys = $db->loadObjectList();\n\n\t\t$tree = array();\n\t\t$text = '';\n\t\t$tree = self::CategoryTreeOption($phocagallerys, $tree, 0, $text, $catId);\n\t\tforeach ($tree as $k=>$v) {\n\t\t\t$tree[$k]->text = substr($v->text, 3); // strip - for root category level\n\t\t}\n\t\tarray_unshift($tree, (object)array('value' => 'all', 'text'=>'- '.JText::_('JALL').' -'));\n\t\treturn $tree;\n\n\t}",
"public function allCategories (){\n\n $categories = Category::orderBy('id','desc')->get();\n return response()->json([\n 'categories'=>$categories\n ],200);\n }",
"public static function getCategories()\n\t{\n\t\treturn Category::getAll();\n\t}",
"public function json_categories() {\n\t\t\n\t\t$list = [];\n\t\tforeach (\\App\\Models\\Category::get_all_categories() as $category) {\n\t\t\t$list[] = [\n\t\t\t\t'id' => $category->id,\n\t\t\t\t'title' => $category->full_path(),\n\t\t\t\t'short_title' => $category->val('title'),\n\t\t\t\t'background_color' => 'hsl(' . ($category->id * 53 % 360) . ', 46%, 50%)',\n\t\t\t\t'border_color' => 'hsl(' . ($category->id * 53 % 360) . ', 46%, 30%)'\n\t\t\t];\n\t\t}\t\n\t\t\n\t\treturn response()->json(['values' => $list]);\n\t}",
"public function get_categories() {\n\t\treturn [ 'kodeforest' ];\n\t}",
"public function get_categories() {\n\t\treturn [ 'kodeforest' ];\n\t}",
"public function get_categories() {\n return [ 'yx-super-cat' ];\n }",
"public function index()\n\t{\n\t\treturn Response::json(Category::get());\n\t}",
"public function get_categories()\n {\n return ['careerfy'];\n }",
"public function get_categories()\n {\n return ['careerfy'];\n }",
"public function getOptions() {}",
"public function getOptions() {}"
] | [
"0.8261367",
"0.70652246",
"0.706271",
"0.704938",
"0.70073146",
"0.7007286",
"0.6964633",
"0.69297147",
"0.690113",
"0.6773926",
"0.6773926",
"0.6707636",
"0.6640951",
"0.66292703",
"0.661323",
"0.65897006",
"0.65704167",
"0.65588415",
"0.65588415",
"0.65588415",
"0.65588415",
"0.65588415",
"0.65588415",
"0.65588415",
"0.65588415",
"0.65588415",
"0.65588415",
"0.6541545",
"0.6532904",
"0.6504864",
"0.6502592",
"0.64848113",
"0.64812636",
"0.64653534",
"0.64619875",
"0.64552486",
"0.644287",
"0.6429523",
"0.64179635",
"0.6415591",
"0.64143187",
"0.64137846",
"0.6406005",
"0.64010566",
"0.64010566",
"0.64010566",
"0.6383602",
"0.6381775",
"0.6381775",
"0.6376019",
"0.637391",
"0.6372794",
"0.63723606",
"0.6342468",
"0.63267195",
"0.6324765",
"0.6324765",
"0.63052917",
"0.62940305",
"0.6291752",
"0.626076",
"0.62573034",
"0.6255853",
"0.6255853",
"0.6255853",
"0.6255853",
"0.6255853",
"0.6255853",
"0.6255853",
"0.6255853",
"0.6255853",
"0.6255853",
"0.6255853",
"0.6255853",
"0.6255853",
"0.6255853",
"0.6255853",
"0.6255853",
"0.62476856",
"0.62423915",
"0.6230659",
"0.623027",
"0.62297106",
"0.62206054",
"0.62156415",
"0.62075645",
"0.620454",
"0.61939514",
"0.61890316",
"0.61829674",
"0.61825466",
"0.6182147",
"0.6182142",
"0.6182142",
"0.6176693",
"0.6168942",
"0.61641717",
"0.61641717",
"0.61615026",
"0.61612767"
] | 0.82011175 | 1 |
Get options for category endpoint. | public static function getCategoryOptions()
{
return self::get('category') ?: [];
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static function getCategoriesOptions()\n {\n return self::get('categories') ?: [];\n }",
"public function GetCategoryOptions() {\n $return = \"\";\n $this->GetCategories();\n \n // Create the Options\n foreach ($this->rs as $row) {\n $return .= '<option value=\"' . $row->categoryID .'\">'. $row->categoryName .'</option>';\n }\n \n // Return the <options>\n return $return;\n }",
"public function getOptions();",
"public function getOptions();",
"public function getOptions();",
"public function getOptions();",
"public function getOptions();",
"public function getOptions();",
"public function getOptions();",
"public function getOptions();",
"public function getOptions();",
"public function getOptions();",
"public function getOptions();",
"public function getOptions();",
"public function getOptions();",
"public function getOptions();",
"public function getOptions();",
"public function getOptions();",
"public function getTaskCategoryOptions() {\n return $this->taskCategoryOptions;\n }",
"public function getOptions() {}",
"public function getOptions() {}",
"public function getOptions() {}",
"public function getCategoryList() {\n $categories = $this->couponServices_model->fetchCategories();\n\n $category_options = array();\n $category_options[\"\"] = \"-- Select category --\";\n foreach ($categories as $item) {\n $category_options[$item['categoryId']] = $item['categoryName'];\n }\n return $category_options;\n }",
"abstract public function getOptions();",
"function categories() {\n\n foreach ($this->loadCategoryAssoc() as $id=>$title) {\n $options[] = array(\n 'id' => intval($id),\n 'title' => $title,\n );\n }\n\n return $options;\n }",
"protected function getOptions() {}",
"protected function getOptions() {}",
"protected function getOptions() {}",
"public function getOptions()\n {\n return $this->get(self::OPTIONS);\n }",
"public function getCategory() {}",
"public function getOptions()\r\n {\r\n }",
"public function listsCategoriesGet()\r\n {\r\n $response = Category::all();\r\n return response()->json($response, 200);\r\n }",
"public function getCategories()\n {\n return [ 'categories' => self::CATEGORIES ];\n }",
"public function getCategories(){\n\t\t// preapres the request\n\t\t$ch = curl_init();\n\t\tcurl_setopt($ch, CURLOPT_HTTPHEADER, array('Authorization: ' . TOKEN));\n\t\tcurl_setopt($ch, CURLOPT_URL, \"http://\" . IP . \"/bde_site/api/category/\");\n\t\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\n\n\t\t// send the request\n\t\t$output = curl_exec($ch);\n\t\t$info = curl_getinfo($ch);\n\t\tcurl_close($ch);\n\n\t\t// decode the answer into a php object\n\t\t$categories = json_decode($output, true);\n\n\t\treturn $categories;\n\t}",
"public function getOptions()\n { return $this->get('options'); }",
"function GetCategories()\n\t{\n\t\t$result = $this->sendRequest(\"GetCategories\", array());\t\n\t\treturn $this->getResultFromResponse($result);\n\t}",
"public function getCategoriesIdOption() {\r\n\t\t$database =& JFactory::getDBO();\r\n\r\n\t\t$catoptions = array();\r\n\r\n\t\treturn $catoptions;\r\n }",
"protected\n\tfunction getOptions()\n\t{\n\n\t\t// Initialize variables.\n\t\t$session = Factory::getSession();\n\t\t$options = array();\n\n\t\t// Initialize some field attributes.\n\t\t$extension = $this->element['extension'] ? (string) $this->element['extension'] : (string) $this->element['scope'];\n\t\t$published = (string) $this->element['published'];\n\n\t\t// OLD values\n\t\t// Load the category options for a given extension.\n\t\tif (!empty($extension))\n\t\t{\n\n\t\t\t// Filter over published state or not depending upon if it is present.\n\t\t\tif ($published)\n\t\t\t{\n\t\t\t\t$options = HTMLHelper::_('category.options', $extension, array('filter.published' => explode(',', $published)));\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$options = HTMLHelper::_('category.options', $extension);\n\t\t\t}\n\n\t\t\t// Verify permissions. If the action attribute is set, then we scan the options.\n\t\t\tif ($action = (string) $this->element['action'])\n\t\t\t{\n\n\t\t\t\t// Get the current user object.\n\t\t\t\t$user = Factory::getUser();\n\n\t\t\t\t// TODO: Add a preload method to Access so that we can get all the asset rules in one query and cache them.\n\t\t\t\t// eg Access::preload('core.create', 'com_content.category')\n\t\t\t\tforeach ($options as $i => $option)\n\t\t\t\t{\n\t\t\t\t\t// Unset the option if the user isn't authorised for it.\n\t\t\t\t\tif (!$user->authorise($action, $extension . '.category.' . $option->value))\n\t\t\t\t\t{\n\t\t\t\t\t\tunset($options[$i]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tFactory::getApplication()->enqueueMessage('500 - ' . Text::_('JLIB_FORM_ERROR_FIELDS_CATEGORY_ERROR_EXTENSION_EMPTY'), 'warning');\n\t\t}\n\n\t\t// if no value exists, try to load a selected filter category from the old category filters\n\t\tif (!$this->value && ($this->form instanceof Form))\n\t\t{\n\t\t\t$context = $this->form->getName();\n\t\t\t$this->value = array();\n\t\t\tfor ($i = 0; $i < 20; $i++)\n\t\t\t{\n\t\t\t\tif ($this->form->getValue(\"catid$i\", \"params\", 0))\n\t\t\t\t{\n\t\t\t\t\t$this->value[] = $this->form->getValue(\"catid$i\", \"params\", 0);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Merge any additional options in the XML definition.\n\t\t$options = array_merge(parent::getOptions(), $options);\n\n\t\treturn $options;\n\n\t}",
"protected static abstract function getOptions();",
"public function getOptions(Request $request): array;",
"public function get_options()\n {\n }",
"public function getCategories();",
"public function getCategories();",
"public function getOptionCategoryImage()\n {\n return $this->optionCategoryImage;\n }",
"protected function getOptions()\n\t{\n\t\t// Initialize variables.\n\t\t$options = array();\n\n require_once( JPATH_ROOT . DS . 'components' . DS . 'com_community' . DS . 'libraries' . DS . 'core.php' );\n CFactory::load( 'helpers' , 'event' );\n $model\t\t= CFactory::getModel( 'events' );\n\n $categories = $model->getCategories();\n\n\t\t$options = array();\n $options[] = JHTML::_('select.option', 0, '--');\n\t\tforeach ($categories as $option)\n\t\t{\n\t\t\t$options[] = JHTML::_('select.option', $option->id, $option->name);\n\t\t}\n\n\t\t// Merge any additional options in the XML definition.\n\t\t$options = array_merge(parent::getOptions(), $options);\n\n\t\treturn $options;\n\t}",
"protected function getOptions() {\n\n\n\t\t$catId = $this->element['catid'] ? (string) $this->element['catid'] : -1;\n\t\t$db = JFactory::getDBO();\n\n //build the list of categories\n\t\t$query = 'SELECT a.title AS text, a.id AS value, a.parent_id as parentid'\n\t\t. ' FROM #__phocagallery_categories AS a'\n\t\t. ' WHERE a.published = 1'\n\t\t. ' ORDER BY a.ordering';\n\t\t$db->setQuery( $query );\n\t\t$phocagallerys = $db->loadObjectList();\n\n\t\t$tree = array();\n\t\t$text = '';\n\t\t$tree = self::CategoryTreeOption($phocagallerys, $tree, 0, $text, $catId);\n\t\tforeach ($tree as $k=>$v) {\n\t\t\t$tree[$k]->text = substr($v->text, 3); // strip - for root category level\n\t\t}\n\t\tarray_unshift($tree, (object)array('value' => 'all', 'text'=>'- '.JText::_('JALL').' -'));\n\t\treturn $tree;\n\n\t}",
"public function getValueOptions()\n {\n if (empty($this->valueOptions)) {\n $module = $this->getOption('module')\n ?: Pi::service('module')->current();\n $this->valueOptions = Pi::model('category', $module)\n ->getSelectOptions();\n }\n\n return $this->valueOptions;\n }",
"public function getCategory() {\n\t\t$categories = Category::all();\n\t\treturn Response::json($categories);\n\t}",
"public function getCategory()\n {\n }",
"public function getCategories()\n {\n return $this->request(\"core_course_get_categories\");\n }",
"public function getOptions(): array;",
"public function getOptions(): array;",
"public function getOptions(): array;",
"public function getOptions(): array;",
"public function getOptions(): array;",
"public function getOptions(): array;",
"public function getOptions(): array;",
"public function tldCategoryList(){\n $expectedExceptions = array();\n $expectedExceptions[\"\\\\Kinikit\\\\MVC\\\\Exception\\\\RateLimitExceededException\"] = \"\\Netistrar\\ClientAPI\\Exception\\RateLimitExceededException\";\n return parent::callMethod(\"tldcategory\", \"GET\", array(),null,\"string[]\",$expectedExceptions);\n }",
"public function tldCategoryList(){\n $expectedExceptions = array();\n $expectedExceptions[\"\\\\Kinikit\\\\MVC\\\\Exception\\\\RateLimitExceededException\"] = \"\\Netistrar\\ClientAPI\\Exception\\RateLimitExceededException\";\n return parent::callMethod(\"tldcategory\", \"GET\", array(),null,\"string[]\",$expectedExceptions);\n }",
"public function getCategory();",
"public function getCategory();",
"function getOptions() ;",
"public function optionsIndex($resource_type_id): JsonResponse\n {\n if ($this->hasViewAccessToResourceType((int) $resource_type_id) === false) {\n return \\App\\HttpResponse\\Response::notFoundOrNotAccessible(trans('entities.resource-type'));\n }\n\n $response = new CategoryCollection($this->permissions((int) $resource_type_id));\n\n return $response->create()->response();\n }",
"public function getCategory() {\n $productModel = new productModel();\n $categories = $productModel->getCategoryList();\n $this->JsonCall($categories);\n }",
"function getCategoriesIdOption() {\r\n\t\t$database = & JFactory::getDBO();\r\n\r\n\t\t$catoptions = array();\r\n\r\n\t\treturn $catoptions;\r\n\t}",
"function getCategoriesIdOption() {\r\n\t\t$database = JFactory::getDBO();\r\n\r\n\t\t$catoptions = array();\r\n\r\n\t\treturn $catoptions;\r\n\t}",
"protected function get_options()\n\t{}",
"protected function getCategoryButton() {\n\t\treturn [\n\t\t\t'attributes' => [\n\t\t\t\t'href' => '#/categories',\n\t\t\t\t// add hidden class (the overlay works only, when JS is enabled (class will\n\t\t\t\t// be removed in categories/init.js)\n\t\t\t\t'class' => 'category-button hidden',\n\t\t\t],\n\t\t\t'label' => $this->msg( 'categories' )->text()\n\t\t];\n\t}",
"public function index()\n\t{\n\t\treturn Response::json(Category::get());\n\t}",
"public function get_categories()\n {\n return ['super-cat'];\n }",
"function getAllCategories() {\n\t\t$url = $this->apiURL . \"categories/\" . $this->yourID . \"/\" . $this->yourAPIKey;\n\t\treturn $this->_curl_get($url);\n\t}",
"function getOptions();",
"public function loadCategoryOptionAction(){\n $ebookers_obj = new Ep_Ebookers_Managelist();\n //to call a functio to update themes//\n $result = $ebookers_obj->loadCategoryOption($this->_request->getParams());\n $options = '<option value=\"\">Select</option>';\n $i=0;\n while($result[$i]) {\n $options .= '<option value=\"' . $result[$i]['cat_id'] . '\">' . utf8_encode($result[$i]['category_name']) . '</option>';\n $i++;\n }\n echo $options;\n //unset($_REQUEST);\n exit;\n\n }",
"public function categories()\n {\n return $this->apiResponse(Items::$categories, 2678400);\n }",
"public function getCategories()\n {\n return CategoryResource::collection(Category::with('products')->get())\n ->response()\n ->setStatusCode(200);\n }",
"public function getOptions() : array;",
"public function get_categories() {\n\t\treturn [ 'basic' ];\n\t}",
"public function getOptions(){\n return $this->options;\n }",
"public function get_categories() {\n\t\treturn [ 'happyden' ];\n\t}",
"public function getOptions()\n {\n return $this->options->getOptions();\n }",
"public function get_categories()\n {\n return ['general'];\n }",
"public function get_categories()\n {\n return ['general'];\n }",
"public function forSelect()\n {\n $categories = Category::select('id', 'name', 'slug')->get();\n\n return response()->json($categories);\n }",
"public function getCurlOptions()\n {\n return $this->curlOptions;\n }",
"public function getOptions() {\n\n return $this->options;\n }",
"public function getCategoriesList() {\n return $this->_get(16);\n }",
"public function get_categories() {\n\t\treturn array( 'listeo' );\n\t}",
"public function getOptions() {\n return $this->options;\n }",
"public function getOptions() {\n return $this->options;\n }",
"public final function getOptions()\n {\n return $this->_getOptions();\n }",
"public function getCategory()\n {\n $get_property_category =Category::get();\n return $get_property_category->tojson();\n }",
"protected function getOptions()\r\n {\r\n return [\r\n\r\n ];\r\n }",
"public function config_category()\n {\n require_javascript('checking');\n\n // Load up some basic details\n $category = $this->category;\n $post_url = build_url(array('page' => '_SELF', 'type' => 'set', 'id' => $category, 'redirect' => get_param_string('redirect', null)), '_SELF');\n $category_description = do_lang_tempcode('CONFIG_CATEGORY_DESCRIPTION__' . $category);\n\n // Find all options in category\n $hooks = find_all_hooks('systems', 'config');\n $options = array();\n foreach (array_keys($hooks) as $hook) {\n require_code('hooks/systems/config/' . filter_naughty_harsh($hook));\n $ob = object_factory('Hook_config_' . filter_naughty_harsh($hook));\n $option = $ob->get_details();\n if (($GLOBALS['CURRENT_SHARE_USER'] === null) || ($option['shared_hosting_restricted'] == 0)) {\n if ($category == $option['category']) {\n if ($ob->get_default() !== null) {\n if (!isset($option['order_in_category_group'])) {\n $option['order_in_category_group'] = 100;\n }\n $option['ob'] = $ob;\n $option['name'] = $hook;\n $options[$option['group']][$hook] = $option;\n }\n }\n }\n }\n\n // Add in special ones\n if ($category == 'SITE') {\n $options['INTERNATIONALISATION']['timezone'] = array('name' => 'timezone', 'human_name' => 'TIMEZONE', 'c_value' => '', 'type' => 'special', 'category' => 'SITE', 'group' => 'INTERNATIONALISATION', 'explanation' => 'DESCRIPTION_TIMEZONE_SITE', 'shared_hosting_restricted' => 0, 'order_in_category_group' => 1);\n }\n require_code('files');\n $upload_max_filesize = (ini_get('upload_max_filesize') == '0') ? do_lang('NA') : clean_file_size(php_return_bytes(ini_get('upload_max_filesize')));\n $post_max_size = (ini_get('post_max_size') == '0') ? do_lang('NA') : clean_file_size(php_return_bytes(ini_get('post_max_size')));\n\n // Sort the groups\n $all_known_groups = array();\n foreach (array_keys($options) as $group) {\n $_group = do_lang($group);\n\n $_group = strtolower(trim(cms_preg_replace_safe('#(&.*;)|[^\\w\\s]#U', '', strip_tags($_group))));\n if ((isset($all_known_groups[$_group])) && ($all_known_groups[$_group] != $group)) {\n $_group = 'std_' . $group; // If cat names translate to same things or are in non-latin characters like Cyrillic\n }\n\n $all_known_groups[$_group] = $group;\n }\n $advanced_key = strtolower(trim(cms_preg_replace_safe('#(&.*;)|[^\\w\\s]#U', '', do_lang('ADVANCED'))));\n ksort($all_known_groups);\n if (isset($all_known_groups[$advanced_key])) { // Advanced goes last\n $temp = $all_known_groups[$advanced_key];\n unset($all_known_groups[$advanced_key]);\n $all_known_groups[$advanced_key] = $temp;\n }\n\n // Render option groups\n $groups_arr = array();\n require_code('form_templates');\n $_groups = array();\n foreach ($all_known_groups as $group_codename) {\n if (!isset($options[$group_codename])) {\n continue;\n }\n\n $options_in_group = $options[$group_codename];\n\n $all_orders_default = true;\n foreach ($options_in_group as $name => $option) {\n if ($option['order_in_category_group'] != 100) {\n $all_orders_default = false;\n }\n $options_in_group[$name]['human_name_trans'] = do_lang($option['human_name']);\n }\n if ($all_orders_default) {\n sort_maps_by($options_in_group, 'human_name_trans');\n } else {\n sort_maps_by($options_in_group, 'order_in_category_group');\n }\n\n $out = '';\n foreach ($options_in_group as $name => $option) {\n // Language strings\n $human_name = do_lang_tempcode($option['human_name']);\n $_explanation = do_lang($option['explanation'], null, null, null, null, false);\n if ($_explanation === null) {\n $_explanation = do_lang('CONFIG_GROUP_DEFAULT_DESCRIP_' . $option['group'], null, null, null, null, false);\n if ($_explanation === null) {\n // So an error shows\n $_explanation = do_lang($option['explanation']);\n $explanation = do_lang_tempcode($option['explanation']);\n } else {\n $explanation = do_lang_tempcode('CONFIG_GROUP_DEFAULT_DESCRIP_' . $option['group']);\n }\n } else {\n $explanation = do_lang_tempcode($option['explanation']);\n }\n $default = get_default_option($name);\n\n if (isset($option['required'])) {\n $required = $option['required'];\n } else {\n if ($option['type'] == 'integer') {\n $required = true;\n } elseif ($option['type'] == 'float') {\n $required = true;\n } elseif ($option['type'] == 'list') {\n $required = true;\n } else {\n $required = false;\n }\n }\n\n // Render field inputter\n switch ($option['type']) {\n case 'special':\n switch ($name) {\n case 'timezone':\n $list = '';\n $timezone = get_site_timezone();\n foreach (get_timezone_list() as $_timezone => $timezone_nice) {\n $list .= static_evaluate_tempcode(form_input_list_entry($_timezone, $_timezone == $timezone, $timezone_nice));\n }\n $out .= static_evaluate_tempcode(form_input_list($human_name, $explanation, 'timezone', make_string_tempcode($list)));\n break;\n\n default:\n $ob = $option['ob'];\n $out .= static_evaluate_tempcode($ob->field_inputter($name, $option, $human_name, $explanation));\n break;\n }\n break;\n\n case 'integer':\n $explanation_with_default = do_lang_tempcode('EXPLANATION_WITH_DEFAULT', $explanation, ($default == '') ? do_lang_tempcode('BLANK_EM') : make_string_tempcode(escape_html($default)));\n $out .= static_evaluate_tempcode(form_input_integer($human_name, $explanation_with_default, $name, intval(get_option($name)), $required));\n break;\n\n case 'float':\n $explanation_with_default = do_lang_tempcode('EXPLANATION_WITH_DEFAULT', $explanation, escape_html(($default == '') ? do_lang_tempcode('BLANK_EM') : make_string_tempcode(float_format(floatval($default)))));\n $out .= static_evaluate_tempcode(form_input_float($human_name, $explanation_with_default, $name, floatval(get_option($name)), $required));\n break;\n\n case 'line':\n case 'transline':\n $explanation_with_default = do_lang_tempcode('EXPLANATION_WITH_DEFAULT', $explanation, ($default == '') ? do_lang_tempcode('BLANK_EM') : make_string_tempcode(escape_html($default)));\n $out .= static_evaluate_tempcode(form_input_line($human_name, $explanation_with_default, $name, get_option($name), $required, null, 100000));\n break;\n\n case 'text':\n case 'transtext':\n $out .= static_evaluate_tempcode(form_input_text($human_name, $explanation, $name, get_option($name), $required, null, true));\n break;\n\n case 'comcodeline':\n $explanation_with_default = do_lang_tempcode('EXPLANATION_WITH_DEFAULT', $explanation, ($default == '') ? do_lang_tempcode('BLANK_EM') : make_string_tempcode(escape_html($default)));\n $out .= static_evaluate_tempcode(form_input_line_comcode($human_name, $explanation_with_default, $name, get_option($name), $required));\n break;\n\n case 'comcodetext':\n $out .= static_evaluate_tempcode(form_input_text_comcode($human_name, $explanation, $name, get_option($name), $required, null, true));\n break;\n\n case 'list':\n $_default = make_string_tempcode(escape_html($default));\n $list = '';\n if (!$required) {\n $list .= static_evaluate_tempcode(form_input_list_entry('', false, do_lang_tempcode('NA_EM')));\n }\n $_value = get_option($name);\n $values = explode('|', $option['list_options']);\n foreach ($values as $value) {\n $__value = str_replace(' ', '__', $value);\n $_option_text = do_lang('CONFIG_OPTION_' . $name . '_VALUE_' . $__value, null, null, null, null, false);\n if ($_option_text !== null) {\n $option_text = do_lang_tempcode('CONFIG_OPTION_' . $name . '_VALUE_' . $__value);\n if ($value == $default) {\n $_default = $option_text;\n }\n } else {\n $option_text = make_string_tempcode($value);\n }\n $list .= static_evaluate_tempcode(form_input_list_entry($value, $_value == $value, $option_text));\n }\n $explanation_with_default = do_lang_tempcode('EXPLANATION_WITH_DEFAULT', $explanation, ($default == '') ? do_lang_tempcode('BLANK_EM') : $_default);\n $out .= static_evaluate_tempcode(form_input_list($human_name, $explanation_with_default, $name, make_string_tempcode($list), null, false, false));\n break;\n\n case 'tick':\n $explanation_with_default = do_lang_tempcode('EXPLANATION_WITH_DEFAULT', $explanation, escape_html(($default == '1') ? do_lang('YES') : do_lang('NO')));\n $out .= static_evaluate_tempcode(form_input_tick($human_name, $explanation_with_default, $name, get_option($name) == '1'));\n break;\n\n case 'username':\n $out .= static_evaluate_tempcode(form_input_username($human_name, $explanation, $name, get_option($name), $required, false));\n break;\n\n case 'colour':\n $out .= static_evaluate_tempcode(form_input_colour($human_name, $explanation, $name, get_option($name), $required));\n break;\n\n case 'date':\n $out .= static_evaluate_tempcode(form_input_date($human_name, $explanation, $name, $required, false, false, intval(get_option($name)), 40, intval(date('Y')) - 20, null));\n break;\n\n case 'forum':\n if ((get_forum_type() == 'cns') && (addon_installed('cns_forum'))) {\n $current_setting = get_option($name);\n if (!is_numeric($current_setting)) {\n $_current_setting = $GLOBALS['FORUM_DB']->query_select_value_if_there('f_forums', 'id', array('f_name' => $current_setting));\n if ($_current_setting === null) {\n if ($required) {\n $current_setting = strval(db_get_first_id());\n attach_message(do_lang_tempcode('FORUM_CURRENTLY_UNSET', $human_name), 'notice');\n } else {\n $current_setting = null;\n }\n } else {\n $current_setting = strval($_current_setting);\n }\n }\n $out .= static_evaluate_tempcode(form_input_tree_list($human_name, $explanation, $name, null, 'choose_forum', array(), $required, $current_setting));\n } else {\n $out .= static_evaluate_tempcode(form_input_line($human_name, $explanation, $name, get_option($name), $required));\n }\n break;\n\n case 'forum_grouping':\n if (get_forum_type() == 'cns') {\n $tmp_value = $GLOBALS['FORUM_DB']->query_select_value_if_there('f_forum_groupings', 'id', array('c_title' => get_option($name)));\n\n require_code('cns_forums2');\n $_list = new Tempcode();\n if (!$required) {\n $_list->attach(form_input_list_entry('', false, do_lang_tempcode('NA_EM')));\n }\n $_list->attach(cns_create_selection_list_forum_groupings(null, $tmp_value));\n $out .= static_evaluate_tempcode(form_input_list($human_name, $explanation, $name, $_list));\n } else {\n $out .= static_evaluate_tempcode(form_input_line($human_name, $explanation, $name, get_option($name), $required));\n }\n break;\n\n case 'usergroup':\n case 'usergroup_not_guest':\n if (get_forum_type() == 'cns') {\n $tmp_value = $GLOBALS['FORUM_DB']->query_select_value_if_there('f_groups', 'id', array($GLOBALS['FORUM_DB']->translate_field_ref('g_name') => get_option($name)));\n\n require_code('cns_groups');\n $_list = new Tempcode();\n if (!$required) {\n $_list->attach(form_input_list_entry('', false, do_lang_tempcode('NA_EM')));\n }\n $_list->attach(cns_create_selection_list_usergroups($tmp_value, $option['type'] == 'usergroup'));\n $out .= static_evaluate_tempcode(form_input_list($human_name, $explanation, $name, $_list));\n } else {\n $out .= static_evaluate_tempcode(form_input_line($human_name, $explanation, $name, get_option($name), $required));\n }\n break;\n\n default:\n fatal_exit('Invalid config option type: ' . $option['type'] . ' (for ' . $option['name'] . ')');\n }\n }\n\n // Render group\n $group_title = do_lang_tempcode($group_codename);\n $_group_description = do_lang('CONFIG_GROUP_DESCRIP_' . $group_codename, escape_html($post_max_size), escape_html($upload_max_filesize), null, null, false);\n if ($_group_description === null) {\n $group_description = new Tempcode();\n } else {\n $group_description = do_lang_tempcode('CONFIG_GROUP_DESCRIP_' . $group_codename, escape_html($post_max_size), escape_html($upload_max_filesize));\n }\n $groups_arr[] = array('GROUP_DESCRIPTION' => $group_description, 'GROUP_NAME' => $group_codename, 'GROUP' => $out, 'GROUP_TITLE' => $group_title);\n $_groups[$group_codename] = $group_title;\n }\n\n list($warning_details, $ping_url) = handle_conflict_resolution();\n\n // Render\n return do_template('CONFIG_CATEGORY_SCREEN', array(\n '_GUID' => 'd01b28b71c38bbb52b6aaf877c7f7b0e',\n 'CATEGORY_DESCRIPTION' => $category_description,\n '_GROUPS' => $_groups,\n 'PING_URL' => $ping_url,\n 'WARNING_DETAILS' => $warning_details,\n 'TITLE' => $this->title,\n 'URL' => $post_url,\n 'GROUPS' => $groups_arr,\n 'SUBMIT_ICON' => 'buttons__save',\n 'SUBMIT_NAME' => do_lang_tempcode('SAVE'),\n ));\n }",
"public function get_categories()\n {\n return ['basic'];\n }",
"public function getCategories() : array;",
"protected function getOptions()\n\t{\n\t\treturn [\n\t\t\t\n\t\t];\n\t}",
"public function getOptions()\n {\n return $this->options;\n }",
"public function getOptions()\n {\n return $this->options;\n }",
"public function get_categories() {\n\t\treturn [ 'general' ];\n\t}",
"public function get_categories() {\n\t\treturn [ 'general' ];\n\t}"
] | [
"0.7576817",
"0.6869979",
"0.66761726",
"0.66761726",
"0.66761726",
"0.66761726",
"0.66761726",
"0.66761726",
"0.66761726",
"0.66761726",
"0.66761726",
"0.66761726",
"0.66761726",
"0.66761726",
"0.66761726",
"0.66761726",
"0.66761726",
"0.66761726",
"0.66178155",
"0.6617386",
"0.6617197",
"0.6617197",
"0.6514194",
"0.64892375",
"0.6484986",
"0.64263076",
"0.64256626",
"0.64256626",
"0.6416884",
"0.63493943",
"0.634176",
"0.6331348",
"0.63304645",
"0.63224065",
"0.63187534",
"0.63143146",
"0.6235878",
"0.6235496",
"0.6222914",
"0.62153953",
"0.6209623",
"0.61551094",
"0.61551094",
"0.6151774",
"0.61456",
"0.6140204",
"0.61330813",
"0.6130122",
"0.6130007",
"0.6128581",
"0.611791",
"0.611791",
"0.611791",
"0.611791",
"0.611791",
"0.611791",
"0.611791",
"0.6092224",
"0.6092224",
"0.60911196",
"0.60911196",
"0.60804296",
"0.60769016",
"0.6074941",
"0.6070531",
"0.60507",
"0.6030127",
"0.6021491",
"0.6020714",
"0.60204744",
"0.5998112",
"0.5987283",
"0.5986167",
"0.5985597",
"0.5970402",
"0.5965765",
"0.593358",
"0.59232444",
"0.5915727",
"0.5908293",
"0.59060895",
"0.59060895",
"0.59051555",
"0.5900645",
"0.5897661",
"0.5893161",
"0.58860505",
"0.58844244",
"0.58844244",
"0.58802044",
"0.58799046",
"0.58759475",
"0.5874507",
"0.58699155",
"0.5862616",
"0.586064",
"0.58566815",
"0.58566815",
"0.58548933",
"0.58548933"
] | 0.8151903 | 0 |
Get options for products endpoint. | public static function getProductsOptions()
{
return self::get('products') ?: [];
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static function getProductOptions()\n {\n return self::get('product') ?: [];\n }",
"public function getProducts_options() {\n\t\treturn $this->products_options;\n\t}",
"public function getProductOption();",
"public function getOptionList()\n {\n return Mage::helper('bundle/catalog_product_configuration')->getOptions($this->getItem());\n }",
"public function optionAction() \n {\n $result = array();\n \n $productIdOrSku = $this->getRequest()->getParam('product');\n $attributeOptionId = $this->getRequest()->getParam('id');\n\n try {\n \n $model = $this->getModel();\n $model->loadOptions($productIdOrSku, $attributeOptionId);\n $options = $model->getApiOptions(); \n \n $result = $options;\n \n \n } catch (Exception $e) {\n \n $result['error'] = true;\n $result['data'] = $e->getMessage();\n } \n \n $this->getResponse()->clearHeaders()->setHeader('Content-type','application/json',true)->setBody(Mage::helper('core')->jsonEncode($result));\n \n }",
"public function getProducts() {\n\t\treturn $this->requester->request('GET', $this->url);\n\t}",
"public function getOptions();",
"public function getOptions();",
"public function getOptions();",
"public function getOptions();",
"public function getOptions();",
"public function getOptions();",
"public function getOptions();",
"public function getOptions();",
"public function getOptions();",
"public function getOptions();",
"public function getOptions();",
"public function getOptions();",
"public function getOptions();",
"public function getOptions();",
"public function getOptions();",
"public function getOptions();",
"public function getOptions() {}",
"public function getOptions() {}",
"public function getOptions() {}",
"public function getProducts($options = array())\n {\n $return = $this->getListe(\"products\", $options);\n return $return;\n }",
"public function getOptions()\n { return $this->get('options'); }",
"public function getProducts_options_values() {\n\t\treturn $this->products_options_values;\n\t}",
"function getAllProductVariantOptions(Request $request) {\n $collectionName = $request->query->get('collectionName');\n $arr = [];\n $em = $this->getDoctrine()->getManager();\n $products = [];\n if(strpos($collectionName, ';') !== false) {\n $collectionArray = explode(';', $collectionName);\n foreach ($collectionArray as $collectionName) {\n $collection = $em->getRepository('App:ProductTypes')->findOneBy(['name' => $collectionName]);\n $products[] = $em->getRepository('App:Products')->findBy(['type' => $collection]);\n }\n } else {\n $collection = $em->getRepository('App:ProductTypes')->findOneBy(['name' => $collectionName]);\n $products = $em->getRepository('App:Products')->findBy(['type' => $collection]);\n\n if (!$collection) {\n $brand = $em->getRepository('App:Brands')->findOneBy(['name' => $collectionName]);\n $products = $em->getRepository('App:Products')->findBy(['brand' => $brand]);\n }\n }\n\n $colorsArr = [];\n $sizeArr = [];\n $brandArr = [];\n\n foreach ($products as $product) {\n if(is_array($product)) {\n foreach ($product as $item) {\n if ($item->getSize()) {\n $sizeArr[] = $item->getSize()->getSize();\n }\n\n if($item->getColor()) {\n $colorsArr[] = $item->getColor()->getName();\n }\n\n if ($item->getBrand()) {\n $brandArr[] = $item->getBrand()->getName();\n }\n }\n } else {\n if ($product->getSize()) {\n $sizeArr[] = $product->getSize()->getSize();\n }\n\n if($product->getColor()) {\n $colorsArr[] = $product->getColor()->getName();\n }\n\n if ($product->getBrand()) {\n $brandArr[] = $product->getBrand()->getName();\n }\n }\n }\n\n $arr['colors'] = array_unique($colorsArr);\n $arr['sizes'] = array_unique($sizeArr);\n $arr['brands'] = array_unique($brandArr);\n\n return new JsonResponse($arr);\n }",
"protected function getOptions() {}",
"protected function getOptions() {}",
"protected function getOptions() {}",
"public function getProductOptions($pId)\n\t{\n\t\t// Get all SKUs' options and option groups\n\t\t$sql = \"\tSELECT\n\t\t\t\t\ts.`sId` AS skuId,\n\t\t\t\t\tso.`oId` AS skusOptionId,\n\t\t\t\t\ts.`sPrice`,\n\t\t\t\t\ts.`sAllowMultiple`,\n\t\t\t\t\ts.`sInventory`,\n\t\t\t\t\ts.`sTrackInventory`,\n\t\t\t\t\ts.`sRestricted`,\n\t\t\t\t\tog.`ogId`,\n\t\t\t\t\t`oName`,\n\t\t\t\t\t`ogName`\";\n\t\tif ($this->userScope)\n\t\t{\n\t\t\t$sql .= \" \t, pr.`uId`\";\n\t\t}\n\t\t$sql .= \"\tFROM `#__storefront_skus` s\n\t\t\t\t\tLEFT JOIN `#__storefront_sku_options` so ON s.`sId` = so.`sId`\n\t\t\t\t\tLEFT JOIN `#__storefront_options` o ON so.`oId` = o.`oId`\n\t\t\t\t\tLEFT JOIN `#__storefront_option_groups` og ON o.`ogId` = og.`ogId`\";\n\n\t\t// check user scope if needed\n\t\tif ($this->userScope)\n\t\t{\n\t\t\t$sql .= \" LEFT JOIN #__storefront_permissions pr ON (pr.`scope_id` = s.sId AND pr.scope = 'sku' AND pr.uId = '{$this->userScope}')\";\n\t\t}\n\n\t\t$sql .= \"\tWHERE s.`pId` = {$pId} AND s.`sActive` = 1\";\n\t\t$sql .= \" \tAND (s.`publish_up` IS NULL OR s.`publish_up` <= NOW())\";\n\t\t$sql .= \" \tAND (s.`publish_down` IS NULL OR s.`publish_down` = '0000-00-00 00:00:00' OR s.`publish_down` > NOW())\";\n\t\t$sql .= \"\tORDER BY og.`ogId`, o.`oId`\";\n\n\t\t$this->_db->setQuery($sql);\n\t\t$this->_db->query();\n\n\t\t// check some values to figure out what to return\n\t\t$returnObject = new \\stdClass();\n\t\t$returnObject->status = 'ok';\n\n\t\tif (!$this->_db->getNumRows())\n\t\t{\n\t\t\t$returnObject->status = 'error';\n\t\t\t$returnObject->msg = 'not found';\n\t\t\treturn $returnObject;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$results = $this->_db->loadObjectList();\n\t\t\t$res = $results;\n\n\t\t\t// Go through each SKU and do the checks to determine what needs to be returned\n\t\t\t// default value\n\t\t\t$permissionsRestricted = false;\n\n\t\t\trequire_once dirname(__DIR__) . DS . 'admin' . DS . 'helpers' . DS . 'restrictions.php';\n\n\t\t\tforeach ($res as $k => $line)\n\t\t\t{\n\t\t\t\t// see if the user is whitelisted for this SKU\n\t\t\t\t$skuWhitelisted = false;\n\t\t\t\tif ($this->userWhitelistedSkus && in_array($line->skuId, $this->userWhitelistedSkus))\n\t\t\t\t{\n\t\t\t\t\t$skuWhitelisted = true;\n\t\t\t\t}\n\n\t\t\t\tif (!$skuWhitelisted && $line->sRestricted && (!$this->userScope || $line->uId != $this->userScope))\n\t\t\t\t{\n\t\t\t\t\t// Sku is restricted and not available\n\t\t\t\t\t$permissionsRestricted = true;\n\t\t\t\t\t// remove it\n\t\t\t\t\tunset($res[$k]);\n\n\t\t\t\t}\n\t\t\t\telseif ($this->userCannotAccessProduct && !$skuWhitelisted)\n\t\t\t\t{\n\t\t\t\t\t// Sku is restricted and not available\n\t\t\t\t\t$permissionsRestricted = true;\n\t\t\t\t\t// remove it\n\t\t\t\t\tunset($res[$k]);\n\t\t\t\t}\n\n\t\t\t\tif ($line->sTrackInventory && $line->sInventory < 1)\n\t\t\t\t{\n\t\t\t\t\t// remove it\n\t\t\t\t\tunset($res[$k]);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (count($res) < 1)\n\t\t\t{\n\t\t\t\t$returnObject->status = 'error';\n\t\t\t\t$returnObject->msg = 'out of stock';\n\t\t\t\t// If at least one SKU is restricted, we cannot return 'out of stock'\n\t\t\t\tif ($permissionsRestricted)\n\t\t\t\t{\n\t\t\t\t\t$returnObject->msg = 'restricted';\n\t\t\t\t}\n\t\t\t\treturn $returnObject;\n\t\t\t}\n\t\t}\n\n\t\t// Initialize array for option groups\n\t\t$options = array();\n\t\t// Array for SKUs\n\t\t$skus = array();\n\n\t\t// Parse result and populate $options with option groups and corresponding options\n\t\t$currentOgId = false;\n\t\tforeach ($res as $line)\n\t\t{\n\t\t\t// Populate options\n\t\t\tif ($line->ogId)\n\t\t\t{\n\t\t\t\t// Keep track of option groups and do not do anything if no options\n\t\t\t\tif ($currentOgId != $line->ogId)\n\t\t\t\t{\n\t\t\t\t\t$currentOgId = $line->ogId;\n\n\t\t\t\t\t$ogInfo = new \\stdClass();\n\t\t\t\t\t$ogInfo->ogId = $line->ogId;\n\t\t\t\t\t$ogInfo->ogName = $line->ogName;\n\n\t\t\t\t\t$options[$currentOgId]['info'] = $ogInfo;\n\t\t\t\t\tunset($ogInfo);\n\t\t\t\t}\n\n\t\t\t\t$oInfo = new \\stdClass();\n\t\t\t\t$oInfo->oId = $line->skusOptionId;\n\t\t\t\t$oInfo->oName = $line->oName;\n\t\t\t\t$options[$currentOgId]['options'][$line->skusOptionId] = $oInfo;\n\t\t\t\tunset($oInfo);\n\t\t\t}\n\n\t\t\t// populate SKUs for JS\n\t\t\t$skusInfo = new \\stdClass();\n\t\t\t$skusInfo->sId = $line->skuId;\n\t\t\t$skusInfo->sPrice = $line->sPrice;\n\t\t\t$skusInfo->sAllowMultiple = $line->sAllowMultiple;\n\t\t\t$skusInfo->sTrackInventory = $line->sTrackInventory;\n\t\t\t$skusInfo->sInventory = $line->sInventory;\n\n\t\t\t$skus[$line->skuId]['info'] = $skusInfo;\n\t\t\t$skus[$line->skuId]['options'][] = $line->skusOptionId;\n\t\t\tunset($skusInfo);\n\n\t\t}\n\n\t\t$ret = new \\stdClass();\n\t\t$ret->options = $options;\n\t\t$ret->skus = $skus;\n\n\t\t$returnObject->options = $ret;\n\t\treturn $returnObject;\n\t}",
"abstract public function getOptions();",
"public function getProducts_options_id() {\n\t\treturn $this->products_options_id;\n\t}",
"public function getOptions()\r\n {\r\n }",
"public function getProductOptions($filter = array())\n {\n //$filter = null;\n $products = $this->em\n ->getRepository('GistInventoryBundle:Product')\n ->findBy(\n $filter,\n array('id' => 'ASC')\n );\n\n $prod_opts = array();\n foreach ($products as $prod)\n $prod_opts[$prod->getID()] = $prod->getName();\n\n return $prod_opts;\n }",
"public function getOptions()\n {\n return $this->get(self::OPTIONS);\n }",
"function products_get() {\n\n $products = $this->api_model->get_products();\n\n if(isset($products))\n {\n $this->response(array('status' => 'success', 'message' => $products));\n }\n else\n {\n $this->response(array('status' => 'failure', 'message' => 'The specified product could not be found'), REST_CONTROLLER::HTTP_NOT_FOUND);\n }\n\n\t}",
"public function getOptions()\n {\n return $this->optionRequested->get();\n }",
"function productoption()\n\t{\n\t\t$res = $this->product_model->productOptionList();\n\t\techo \"<pre />\";\n\t\tprint_r($res);\n\t\texit;\n\t\t\n\t\t//check if product type list is pulled. if not, list is set to empty array\n\t\t// $productTypeList = ( $res->rc == 0 ) ? $res->data->producttypelist : array();\n\t\t\n\t\t// $data['mainContent'] = 'producttype_list_view.tpl';\n\t\t\n\t\t// $data['data'] = array(\n\t\t\t// 'baseUrl'\t\t\t=> base_url(),\n\t\t\t// 'title'\t\t\t\t=> 'Product Type',\n\t\t\t// 'msgClass'\t\t\t=> $this->msgClass,\n\t\t\t// 'msgInfo'\t\t\t=> $this->msgInfo,\n\t\t\t// 'productTypeList'\t=> $productTypeList\n\t\t// );\n\t\t\n\t\t// $this->load->view($this->globalTpl, $data);\t\n\t}",
"public function productOptions()\n {\n // hasMany(RelatedModel, foreignKeyOnRelatedModel = sp_id, localKey = sp_id)\n return $this->hasMany('App\\ProductOption','sp_id','sp_id');\n }",
"public function getCustomOptions($product) {\n $options = array ();\n $optionsData = $product->getOptions ();\n foreach ( $optionsData as $option ) {\n $optionVal = array ();\n $optionValues = $option->getValues ();\n foreach ( $optionValues as $optVal ) {\n $optionVal [] = array (\n static::OPTIONID => $optVal->getOptionId (),\n 'option_type_id' => $optVal->getOptionTypeId (),\n 'sku' => $optVal->getSku (),\n 'sort_order' => $optVal->getSortOrder (),\n static::TITLE => $optVal->getTitle (),\n static::PRICE => $optVal->getPrice (),\n 'price_type' => $optVal->getPriceType () \n );\n }\n \n $options [] = array (\n 'type' => $option->getType (),\n static::OPTIONID => $option->getOptionId (),\n 'product_id' => $option->getProductId (),\n 'type' => $option->getType (),\n 'is_require' => $option->getIsRequire (),\n 'sort_order' => $option->getSortOrder (),\n static::TITLE => $option->getTitle (),\n static::PRICE => $option->getPrice (),\n 'price_type' => $option->getPriceType (),\n 'option_value' => $optionVal \n );\n }\n \n return $options;\n }",
"public function item_options($token)\n {\n \tif($this->_checkHasOption($token) === TRUE)\n \t{\n \t\treturn $this->_session['products'][$token]['options'];\n \t}\n }",
"function getOptions() ;",
"public static function getProducts($options = array()) {\n $perPage = isset($options['perPage']) ? $options['perPage'] : config('app.paging');\n \n $obj = static::with(['ratingArr'])->where('status', '=', 'active')->orderBy('id')->paginate($perPage);\n return $obj;\n }",
"public function getProduct();",
"public function get_options()\n {\n }",
"public function getOptions(Request $request): array;",
"protected function get_activated_products () {\n $response = array();\n $response = get_option( $this->token . '-activated', array() );\n if ( ! is_array( $response ) ) $response = array();\n return $response;\n }",
"protected static abstract function getOptions();",
"protected function CatalogOptionsList() {\n\treturn $this->GetFieldValue('ItOptions');\n }",
"public function getProducts(): ?array\n {\n return $this->getParam(self::PRODUCTS);\n }",
"function getOptions();",
"public function options(){\n\n return response()->json([\n \n 'methods' => [\n\n 'OPTIONS',\n 'GET',\n 'POST',\n 'PUT',\n 'DELETE'\n\n ],\n\n 'endpoints' => [\n\n /* O P T I O N S */\n\n [\n 'path' => '/',\n 'method' => 'OPTIONS',\n 'description' => 'returns available methods',\n 'authentication' => [\n 'api' => 'token'\n ],\n 'args' => [\n\n ],\n 'return_type' => 'json',\n 'return_data_structure' => []\n ],\n\n\n /* R E A D */\n\n //All Settings\n [\n 'path' => '/',\n 'method' => 'GET',\n 'description' => 'Get a listing of all settings',\n 'authentication' => [\n 'api' => 'token',\n 'login' => 'admin'\n ],\n 'args' => [\n\n ],\n 'return_type' => 'json',\n 'return_data_structure' => [\n 'failed_authentication' => [\n 'failed_authentication' => 'Please login as an admin'\n ],\n 'failed_authorization' => [\n 'failed_authentication' => 'Please login as an admin'\n ],\n 'errors' => [\n 'error' => 'error message'\n ],\n 'success' => [\n 'data' => [\n [\n 'name' => 'string',\n 'content' => 'json'\n ]\n ]\n ]\n ]\n ], \n\n //Single setting\n [\n 'path' => '/{name}',\n 'method' => 'GET',\n 'description' => 'Pull a single setting',\n 'authentication' => [\n 'api' => 'token',\n 'login' => 'admin'\n ],\n 'args' => [\n 'ROUTE' => [\n 'name' => [\n 'required' => true,\n 'description' => 'Name of setting to pull',\n 'type' => 'string'\n ]\n ]\n ],\n 'return_type' => 'json',\n 'return_data_structure' => [\n 'failed_authentication' => [\n 'failed_authentication' => 'Please login as an admin'\n ],\n 'failed_authorization' => [\n 'failed_authentication' => 'Please login as an admin'\n ],\n 'errors' => [\n 'error' => 'error message'\n ],\n 'success' => [\n 'data' => [\n 'name' => 'string',\n 'content' => 'json'\n ]\n ]\n ]\n ],\n\n /* C R E A T E */\n //Create new setting\n [\n 'path' => '/',\n 'method' => 'POST',\n 'description' => 'Add a new setting',\n 'authentication' => [\n 'api' => 'token',\n 'login' => 'admin'\n ],\n 'args' => [\n 'POST' => [\n 'name' => [\n 'required' => true,\n 'description' => 'Setting name',\n 'type' => 'string'\n ],\n 'content' => [\n 'required' => true,\n 'description' => 'Setting content',\n 'type' => ''\n ]\n ]\n ],\n 'return_type' => 'json',\n 'return_data_structure' => [\n 'failed_authentication' => [\n 'failed_authentication' => 'Please login as an admin'\n ],\n 'failed_authorization' => [\n 'failed_authentication' => 'Please login as an admin'\n ],\n 'failed_validation' => [\n 'field' => 'Validation message'\n ],\n 'errors' => [\n 'error' => 'error message'\n ],\n 'success' => [\n 'Empty response with 201 response code'\n ]\n ]\n ],\n\n /* U P D A T E */\n //Change the content of a Setting\n [\n 'path' => '/{name}',\n 'description' => 'Change content of a setting',\n 'authentication' => [\n 'api' => 'token',\n 'login' => 'admin'\n ],\n 'args' => [\n 'ROUTE' => [\n 'name' => [\n 'required' => true,\n 'description' => 'Setting name',\n 'type' => 'string'\n ]\n ],\n 'POST' => [\n 'content' => [\n 'required' => true,\n 'description' => 'Setting content',\n 'type' => 'json'\n ]\n ]\n ],\n 'return_type' => 'json',\n 'return_data_structure' => [\n 'failed_authentication' => [\n 'failed_authentication' => 'Please login as an admin'\n ],\n 'failed_authorization' => [\n 'failed_authentication' => 'Please login as an admin'\n ],\n 'errors' => [\n 'error' => 'error message'\n ],\n 'success' => [\n 'message' => 'Success message',\n 'data' => [\n 'name' => 'string',\n 'content' => 'json'\n ]\n ]\n ]\n ],\n\n /* D E L E T E */\n //Delete Setting\n [\n 'path' => '/{name}',\n 'description' => 'Delete setting',\n 'authentication' => [\n 'api' => 'token',\n 'login' => 'admin'\n ],\n 'args' => [\n \n ],\n 'return_type' => 'json',\n 'return_data_structure' => [\n 'failed_authentication' => [\n 'failed_authentication' => 'Please login as an admin'\n ],\n 'failed_authorization' => [\n 'failed_authentication' => 'Please login as an admin'\n ],\n 'errors' => [\n 'error' => 'error message'\n ],\n 'success' => [\n 'message' => 'Success message'\n ]\n ]\n ]\n\n ]\n\n ], 200);\n\n }",
"public function getProduct()\r\n {\r\n return $this->_params['product'];\r\n }",
"public function getOptions(): array;",
"public function getOptions(): array;",
"public function getOptions(): array;",
"public function getOptions(): array;",
"public function getOptions(): array;",
"public function getOptions(): array;",
"public function getOptions(): array;",
"function getProducts($params = array()){\n\t\tMpApi::sleep(); \n\t\treturn json_decode($this->callCurl(MpApi::GET , '/multivendor/product.json' , $params ),true);\n\t}",
"function getProducts() {\n\n try {\n $client = HttpClient::create();\n $response = $client->request('GET', shopifyApiurl . 'products.json');\n } catch (\\Exception $e) {\n var_dump($e);\n }\n\n return new JsonResponse($response->getContent());\n }",
"public function getProductosUrl(){\n return $this->vectorUrlsProductos;\n }",
"function alchemists_get_products_per_page_options(){\n\t$per_page = get_option( 'wc_glt_count', '6,12,24' );\n\t$per_page_array = array();\n\t$per_page_array = explode( ',', $per_page );\n\n\tforeach ( $per_page_array as $per_page_single ) {\n\t\t$per_page_array_new[$per_page_single] = esc_html__( 'Show', 'alchemists' ) . ' ' . $per_page_single . ' ' . esc_html__( 'per page', 'alchemists' );\n\t}\n\n\t$options = apply_filters( 'alchemists_products_per_page', $per_page_array_new);\n\n\treturn $options;\n}",
"public function getProductSelections();",
"public function showOptions()\n {\n\treturn $this->getConfigData('checkout/delivery_options');\n }",
"public function getProductOptionsTransfer($filter = array())\n {\n //$filter = null;\n $products = $this->em\n ->getRepository('GistInventoryBundle:Product')\n ->findBy(\n $filter,\n array('id' => 'ASC')\n );\n\n $prod_opts = array();\n foreach ($products as $prod)\n $prod_opts[$prod->getItemCode()] = $prod->getName();\n\n return $prod_opts;\n }",
"protected function get_options()\n\t{}",
"public function getProducts() {\n\t\t$baseUrl = 'https://'.$this->apiKey.':'.$this->password.'@'.$this->domain.'.myshopify.com';\n\t\t$request = '/admin/products.json';\n\t\t$method = 'GET';\n\n\t\t$result = $this->curl($baseUrl.$request, $method);\n\n\t\t$products = array();\n\t\tforeach($result->products as $shopify) {\n\t\t\tforeach($shopify->variants as $variant) {\n\t\t\t\t// need to make a class Product in this folder?\n\t\t\t\t$product = new stdClass;\n\t\t\t\t$product->id \t\t= $shopify->id;\n\t\t\t\t$product->sku \t\t= $variant->sku;\n\t\t\t\t$product->name \t\t= $shopify->title;\n\t\t\t\t$product->price \t= $variant->price;\n\t\t\t\t$product->quantity \t= $variant->inventory_quantity;\t\n\t\t\t\tarray_push($products, $product);\n\t\t\t}\n\t\t}\n\n\t\treturn $products;\n\t}",
"protected function getOptions()\r\n {\r\n return [\r\n\r\n ];\r\n }",
"public function getOptions(){\n return $this->options;\n }",
"function getProducts() {\n\techo \"Getting Products </br>\";\n\t$response = getRequest('/api/product');\n\tprintInfo($response);\n}",
"protected function getOptions()\n {\n return [\n ];\n }",
"protected function getOptions()\n {\n return [\n ];\n }",
"protected function getOptions()\n {\n return [\n ];\n }",
"protected function getOptions()\n {\n return [\n ];\n }",
"protected function getOptions()\n {\n return [\n ];\n }",
"public function getProductOptionsCollection()\n {\n $collection = $this->getOptionInstance()\n ->getProductOptionCollection($this);\n\n return $collection;\n }",
"public function getExtraServiceOptions();",
"public function getOptions()\n {\n $response = new Response();\n $options = null === $this->optionsProvider ? array() : $this->optionsProvider->getOptions();\n\n $response->setStatusCode(200);\n $response->setContent(empty($options) ? '{ }' : json_encode($options));\n $response->headers->set('Content-Type', 'application/json');\n\n return $response;\n }",
"public function getOptions()\n {\n return $this->options->getOptions();\n }",
"public function getOptions() {\n\n return $this->options;\n }",
"public final function getOptions()\n {\n return $this->_getOptions();\n }",
"protected function getOptions()\n {\n return [];\n }",
"protected function getOptions()\n {\n return [];\n }",
"protected function getOptions()\n {\n return [];\n }",
"protected function getOptions()\n {\n return [];\n }",
"protected function getOptions()\n {\n return [];\n }",
"protected function getOptions()\n {\n return [];\n }",
"protected function getOptions()\n {\n return [];\n }",
"protected function getOptions()\n {\n return [];\n }",
"protected function getOptions()\n {\n return [];\n }",
"public function options()\n {\n return $this->belongsToMany(Option::class, 'product_options')\n ->using(ProductOption::class)\n ->as('settings')\n ->withPivot(['default_amount', 'max_amount', 'min_amount', 'required']);\n }",
"public function getOptions()\n {\n return $this->options;\n }",
"public function getOptions()\n {\n return $this->options;\n }",
"function uds_pricing_render_product_options($product = null, $properties = array())\n{\n\tglobal $uds_pricing_column_options;\n\n\tforeach($uds_pricing_column_options as $key => $option) {\n\t\t$default = $product == null ? $option['default'] : $product[$key];\n\t\techo call_user_func('uds_pricing_render_product_options_'.$option['type'], $key, $default);\n\t}\n\t\n\tif(!empty($properties)) {\n\t\techo \"<div class='properties-separator'><h3>Properties</h3></div>\";\n\t\tforeach($properties as $name => $type) {\n\t\t\techo uds_pricing_render_product_options_property($name, $type, $product);\n\t\t}\n\t}\n}",
"public function options()\n {\n return $this->setMethod(__FUNCTION__)\n ->makeRequest();\n }"
] | [
"0.8232958",
"0.7722287",
"0.7475715",
"0.6926583",
"0.69037056",
"0.6831782",
"0.6676823",
"0.6676823",
"0.6676823",
"0.6676823",
"0.6676823",
"0.6676823",
"0.6676823",
"0.6676823",
"0.6676823",
"0.6676823",
"0.6676823",
"0.6676823",
"0.6676823",
"0.6676823",
"0.6676823",
"0.6676823",
"0.6649442",
"0.6648424",
"0.6648424",
"0.6643593",
"0.6642509",
"0.65896916",
"0.657428",
"0.6478002",
"0.6478002",
"0.6477664",
"0.64234823",
"0.6420919",
"0.64146036",
"0.6404981",
"0.63982165",
"0.63794076",
"0.63657165",
"0.6362753",
"0.6358685",
"0.634877",
"0.6336364",
"0.6268985",
"0.6238536",
"0.6238317",
"0.62315786",
"0.62213904",
"0.62195206",
"0.62123674",
"0.62111497",
"0.6203845",
"0.62036794",
"0.61815953",
"0.6180402",
"0.61754566",
"0.617176",
"0.617176",
"0.617176",
"0.617176",
"0.617176",
"0.617176",
"0.617176",
"0.61695665",
"0.6164698",
"0.6151503",
"0.6147469",
"0.61208946",
"0.6119212",
"0.6117277",
"0.61026293",
"0.61007524",
"0.60837364",
"0.607407",
"0.60653484",
"0.6061942",
"0.6061942",
"0.6061942",
"0.6061942",
"0.6061942",
"0.6058398",
"0.60534656",
"0.60471696",
"0.60446024",
"0.6024225",
"0.60087425",
"0.6003268",
"0.6003268",
"0.6003268",
"0.6003268",
"0.6003268",
"0.6003268",
"0.6003268",
"0.6003268",
"0.6003268",
"0.5995214",
"0.5993765",
"0.5993765",
"0.5992634",
"0.59925425"
] | 0.8249201 | 0 |
Get options for product endpoint. | public static function getProductOptions()
{
return self::get('product') ?: [];
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static function getProductsOptions()\n {\n return self::get('products') ?: [];\n }",
"public function getProductOption();",
"public function getProducts_options() {\n\t\treturn $this->products_options;\n\t}",
"public function getOptionList()\n {\n return Mage::helper('bundle/catalog_product_configuration')->getOptions($this->getItem());\n }",
"public function getOptions() {}",
"public function getOptions() {}",
"public function getOptions() {}",
"public function getOptions();",
"public function getOptions();",
"public function getOptions();",
"public function getOptions();",
"public function getOptions();",
"public function getOptions();",
"public function getOptions();",
"public function getOptions();",
"public function getOptions();",
"public function getOptions();",
"public function getOptions();",
"public function getOptions();",
"public function getOptions();",
"public function getOptions();",
"public function getOptions();",
"public function getOptions();",
"public function optionAction() \n {\n $result = array();\n \n $productIdOrSku = $this->getRequest()->getParam('product');\n $attributeOptionId = $this->getRequest()->getParam('id');\n\n try {\n \n $model = $this->getModel();\n $model->loadOptions($productIdOrSku, $attributeOptionId);\n $options = $model->getApiOptions(); \n \n $result = $options;\n \n \n } catch (Exception $e) {\n \n $result['error'] = true;\n $result['data'] = $e->getMessage();\n } \n \n $this->getResponse()->clearHeaders()->setHeader('Content-type','application/json',true)->setBody(Mage::helper('core')->jsonEncode($result));\n \n }",
"public function getOptions()\n { return $this->get('options'); }",
"protected function getOptions() {}",
"protected function getOptions() {}",
"protected function getOptions() {}",
"abstract public function getOptions();",
"public function getOptions()\r\n {\r\n }",
"public function getOptions()\n {\n return $this->get(self::OPTIONS);\n }",
"public function getOptions()\n {\n return $this->optionRequested->get();\n }",
"protected static abstract function getOptions();",
"public function get_options()\n {\n }",
"function getOptions() ;",
"public function getOptions(): array;",
"public function getOptions(): array;",
"public function getOptions(): array;",
"public function getOptions(): array;",
"public function getOptions(): array;",
"public function getOptions(): array;",
"public function getOptions(): array;",
"function getOptions();",
"public function getOptions(){\n return $this->options;\n }",
"public function getExtraServiceOptions();",
"protected function getOptions()\r\n {\r\n return [\r\n\r\n ];\r\n }",
"public function getOptions() {\n\n return $this->options;\n }",
"protected function get_options()\n\t{}",
"public function getOptions()\n {\n return $this->target->getOptions();\n }",
"public function getOptions()\n {\n return $this->options->getOptions();\n }",
"public function getOptions()\n {\n return $this->options;\n }",
"public function getOptions()\n {\n return $this->options;\n }",
"protected function getOptions()\n {\n return [\n ];\n }",
"protected function getOptions()\n {\n return [\n ];\n }",
"protected function getOptions()\n {\n return [\n ];\n }",
"protected function getOptions()\n {\n return [\n ];\n }",
"protected function getOptions()\n {\n return [\n ];\n }",
"public function getOptions() {\n return $this->options;\n }",
"public function getOptions() {\n return $this->options;\n }",
"public final function getOptions()\n {\n return $this->_getOptions();\n }",
"public function options(){\n\n return response()->json([\n \n 'methods' => [\n\n 'OPTIONS',\n 'GET',\n 'POST',\n 'PUT',\n 'DELETE'\n\n ],\n\n 'endpoints' => [\n\n /* O P T I O N S */\n\n [\n 'path' => '/',\n 'method' => 'OPTIONS',\n 'description' => 'returns available methods',\n 'authentication' => [\n 'api' => 'token'\n ],\n 'args' => [\n\n ],\n 'return_type' => 'json',\n 'return_data_structure' => []\n ],\n\n\n /* R E A D */\n\n //All Settings\n [\n 'path' => '/',\n 'method' => 'GET',\n 'description' => 'Get a listing of all settings',\n 'authentication' => [\n 'api' => 'token',\n 'login' => 'admin'\n ],\n 'args' => [\n\n ],\n 'return_type' => 'json',\n 'return_data_structure' => [\n 'failed_authentication' => [\n 'failed_authentication' => 'Please login as an admin'\n ],\n 'failed_authorization' => [\n 'failed_authentication' => 'Please login as an admin'\n ],\n 'errors' => [\n 'error' => 'error message'\n ],\n 'success' => [\n 'data' => [\n [\n 'name' => 'string',\n 'content' => 'json'\n ]\n ]\n ]\n ]\n ], \n\n //Single setting\n [\n 'path' => '/{name}',\n 'method' => 'GET',\n 'description' => 'Pull a single setting',\n 'authentication' => [\n 'api' => 'token',\n 'login' => 'admin'\n ],\n 'args' => [\n 'ROUTE' => [\n 'name' => [\n 'required' => true,\n 'description' => 'Name of setting to pull',\n 'type' => 'string'\n ]\n ]\n ],\n 'return_type' => 'json',\n 'return_data_structure' => [\n 'failed_authentication' => [\n 'failed_authentication' => 'Please login as an admin'\n ],\n 'failed_authorization' => [\n 'failed_authentication' => 'Please login as an admin'\n ],\n 'errors' => [\n 'error' => 'error message'\n ],\n 'success' => [\n 'data' => [\n 'name' => 'string',\n 'content' => 'json'\n ]\n ]\n ]\n ],\n\n /* C R E A T E */\n //Create new setting\n [\n 'path' => '/',\n 'method' => 'POST',\n 'description' => 'Add a new setting',\n 'authentication' => [\n 'api' => 'token',\n 'login' => 'admin'\n ],\n 'args' => [\n 'POST' => [\n 'name' => [\n 'required' => true,\n 'description' => 'Setting name',\n 'type' => 'string'\n ],\n 'content' => [\n 'required' => true,\n 'description' => 'Setting content',\n 'type' => ''\n ]\n ]\n ],\n 'return_type' => 'json',\n 'return_data_structure' => [\n 'failed_authentication' => [\n 'failed_authentication' => 'Please login as an admin'\n ],\n 'failed_authorization' => [\n 'failed_authentication' => 'Please login as an admin'\n ],\n 'failed_validation' => [\n 'field' => 'Validation message'\n ],\n 'errors' => [\n 'error' => 'error message'\n ],\n 'success' => [\n 'Empty response with 201 response code'\n ]\n ]\n ],\n\n /* U P D A T E */\n //Change the content of a Setting\n [\n 'path' => '/{name}',\n 'description' => 'Change content of a setting',\n 'authentication' => [\n 'api' => 'token',\n 'login' => 'admin'\n ],\n 'args' => [\n 'ROUTE' => [\n 'name' => [\n 'required' => true,\n 'description' => 'Setting name',\n 'type' => 'string'\n ]\n ],\n 'POST' => [\n 'content' => [\n 'required' => true,\n 'description' => 'Setting content',\n 'type' => 'json'\n ]\n ]\n ],\n 'return_type' => 'json',\n 'return_data_structure' => [\n 'failed_authentication' => [\n 'failed_authentication' => 'Please login as an admin'\n ],\n 'failed_authorization' => [\n 'failed_authentication' => 'Please login as an admin'\n ],\n 'errors' => [\n 'error' => 'error message'\n ],\n 'success' => [\n 'message' => 'Success message',\n 'data' => [\n 'name' => 'string',\n 'content' => 'json'\n ]\n ]\n ]\n ],\n\n /* D E L E T E */\n //Delete Setting\n [\n 'path' => '/{name}',\n 'description' => 'Delete setting',\n 'authentication' => [\n 'api' => 'token',\n 'login' => 'admin'\n ],\n 'args' => [\n \n ],\n 'return_type' => 'json',\n 'return_data_structure' => [\n 'failed_authentication' => [\n 'failed_authentication' => 'Please login as an admin'\n ],\n 'failed_authorization' => [\n 'failed_authentication' => 'Please login as an admin'\n ],\n 'errors' => [\n 'error' => 'error message'\n ],\n 'success' => [\n 'message' => 'Success message'\n ]\n ]\n ]\n\n ]\n\n ], 200);\n\n }",
"protected function getOptions()\n {\n return $this->options;\n }",
"public function getOptions() \n {\n return $this->options;\n }",
"public function getOptions()\n {\n return $this->options;\n }",
"public function getOptions()\n {\n return $this->options;\n }",
"public function getOptions()\n {\n return $this->options;\n }",
"public function getOptions()\n {\n return $this->options;\n }",
"public function getOptions()\n {\n return $this->options;\n }",
"public function getOptions()\n {\n return $this->options;\n }",
"public function getOptions()\n {\n return $this->options;\n }",
"public function getOptions()\n {\n return $this->options;\n }",
"public function getOptions()\n {\n return $this->options;\n }",
"public function getOptions()\n {\n return $this->options;\n }",
"public function getOptions()\n {\n return $this->options;\n }",
"public function getOptions()\n {\n return $this->options;\n }",
"public function getOptions()\n {\n return $this->options;\n }",
"public function getOptions()\n {\n return $this->options;\n }",
"public function getOptions()\n {\n return $this->options;\n }",
"public function getOptions()\n {\n return $this->options;\n }",
"public function getOptions()\n {\n return $this->options;\n }",
"public function getOptions()\n {\n return $this->options;\n }",
"public function getOptions()\n {\n return $this->options;\n }",
"public function getOptions()\n {\n return $this->options;\n }",
"public function getOptions()\n {\n return $this->options;\n }",
"protected function getOptions()\n {\n return [];\n }",
"protected function getOptions()\n {\n return [];\n }",
"protected function getOptions()\n {\n return [];\n }",
"protected function getOptions()\n {\n return [];\n }",
"protected function getOptions()\n {\n return [];\n }",
"protected function getOptions()\n {\n return [];\n }",
"protected function getOptions()\n {\n return [];\n }",
"protected function getOptions()\n {\n return [];\n }",
"protected function getOptions()\n {\n return [];\n }",
"public function getCustomOptions($product) {\n $options = array ();\n $optionsData = $product->getOptions ();\n foreach ( $optionsData as $option ) {\n $optionVal = array ();\n $optionValues = $option->getValues ();\n foreach ( $optionValues as $optVal ) {\n $optionVal [] = array (\n static::OPTIONID => $optVal->getOptionId (),\n 'option_type_id' => $optVal->getOptionTypeId (),\n 'sku' => $optVal->getSku (),\n 'sort_order' => $optVal->getSortOrder (),\n static::TITLE => $optVal->getTitle (),\n static::PRICE => $optVal->getPrice (),\n 'price_type' => $optVal->getPriceType () \n );\n }\n \n $options [] = array (\n 'type' => $option->getType (),\n static::OPTIONID => $option->getOptionId (),\n 'product_id' => $option->getProductId (),\n 'type' => $option->getType (),\n 'is_require' => $option->getIsRequire (),\n 'sort_order' => $option->getSortOrder (),\n static::TITLE => $option->getTitle (),\n static::PRICE => $option->getPrice (),\n 'price_type' => $option->getPriceType (),\n 'option_value' => $optionVal \n );\n }\n \n return $options;\n }",
"public function options()\n {\n return $this->setMethod(__FUNCTION__)\n ->makeRequest();\n }",
"protected function CatalogOptionsList() {\n\treturn $this->GetFieldValue('ItOptions');\n }",
"function get_options(){\n\t\treturn $this->options;\n\t}",
"public function getProducts_options_values() {\n\t\treturn $this->products_options_values;\n\t}",
"public function getProductOptions($pId)\n\t{\n\t\t// Get all SKUs' options and option groups\n\t\t$sql = \"\tSELECT\n\t\t\t\t\ts.`sId` AS skuId,\n\t\t\t\t\tso.`oId` AS skusOptionId,\n\t\t\t\t\ts.`sPrice`,\n\t\t\t\t\ts.`sAllowMultiple`,\n\t\t\t\t\ts.`sInventory`,\n\t\t\t\t\ts.`sTrackInventory`,\n\t\t\t\t\ts.`sRestricted`,\n\t\t\t\t\tog.`ogId`,\n\t\t\t\t\t`oName`,\n\t\t\t\t\t`ogName`\";\n\t\tif ($this->userScope)\n\t\t{\n\t\t\t$sql .= \" \t, pr.`uId`\";\n\t\t}\n\t\t$sql .= \"\tFROM `#__storefront_skus` s\n\t\t\t\t\tLEFT JOIN `#__storefront_sku_options` so ON s.`sId` = so.`sId`\n\t\t\t\t\tLEFT JOIN `#__storefront_options` o ON so.`oId` = o.`oId`\n\t\t\t\t\tLEFT JOIN `#__storefront_option_groups` og ON o.`ogId` = og.`ogId`\";\n\n\t\t// check user scope if needed\n\t\tif ($this->userScope)\n\t\t{\n\t\t\t$sql .= \" LEFT JOIN #__storefront_permissions pr ON (pr.`scope_id` = s.sId AND pr.scope = 'sku' AND pr.uId = '{$this->userScope}')\";\n\t\t}\n\n\t\t$sql .= \"\tWHERE s.`pId` = {$pId} AND s.`sActive` = 1\";\n\t\t$sql .= \" \tAND (s.`publish_up` IS NULL OR s.`publish_up` <= NOW())\";\n\t\t$sql .= \" \tAND (s.`publish_down` IS NULL OR s.`publish_down` = '0000-00-00 00:00:00' OR s.`publish_down` > NOW())\";\n\t\t$sql .= \"\tORDER BY og.`ogId`, o.`oId`\";\n\n\t\t$this->_db->setQuery($sql);\n\t\t$this->_db->query();\n\n\t\t// check some values to figure out what to return\n\t\t$returnObject = new \\stdClass();\n\t\t$returnObject->status = 'ok';\n\n\t\tif (!$this->_db->getNumRows())\n\t\t{\n\t\t\t$returnObject->status = 'error';\n\t\t\t$returnObject->msg = 'not found';\n\t\t\treturn $returnObject;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$results = $this->_db->loadObjectList();\n\t\t\t$res = $results;\n\n\t\t\t// Go through each SKU and do the checks to determine what needs to be returned\n\t\t\t// default value\n\t\t\t$permissionsRestricted = false;\n\n\t\t\trequire_once dirname(__DIR__) . DS . 'admin' . DS . 'helpers' . DS . 'restrictions.php';\n\n\t\t\tforeach ($res as $k => $line)\n\t\t\t{\n\t\t\t\t// see if the user is whitelisted for this SKU\n\t\t\t\t$skuWhitelisted = false;\n\t\t\t\tif ($this->userWhitelistedSkus && in_array($line->skuId, $this->userWhitelistedSkus))\n\t\t\t\t{\n\t\t\t\t\t$skuWhitelisted = true;\n\t\t\t\t}\n\n\t\t\t\tif (!$skuWhitelisted && $line->sRestricted && (!$this->userScope || $line->uId != $this->userScope))\n\t\t\t\t{\n\t\t\t\t\t// Sku is restricted and not available\n\t\t\t\t\t$permissionsRestricted = true;\n\t\t\t\t\t// remove it\n\t\t\t\t\tunset($res[$k]);\n\n\t\t\t\t}\n\t\t\t\telseif ($this->userCannotAccessProduct && !$skuWhitelisted)\n\t\t\t\t{\n\t\t\t\t\t// Sku is restricted and not available\n\t\t\t\t\t$permissionsRestricted = true;\n\t\t\t\t\t// remove it\n\t\t\t\t\tunset($res[$k]);\n\t\t\t\t}\n\n\t\t\t\tif ($line->sTrackInventory && $line->sInventory < 1)\n\t\t\t\t{\n\t\t\t\t\t// remove it\n\t\t\t\t\tunset($res[$k]);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (count($res) < 1)\n\t\t\t{\n\t\t\t\t$returnObject->status = 'error';\n\t\t\t\t$returnObject->msg = 'out of stock';\n\t\t\t\t// If at least one SKU is restricted, we cannot return 'out of stock'\n\t\t\t\tif ($permissionsRestricted)\n\t\t\t\t{\n\t\t\t\t\t$returnObject->msg = 'restricted';\n\t\t\t\t}\n\t\t\t\treturn $returnObject;\n\t\t\t}\n\t\t}\n\n\t\t// Initialize array for option groups\n\t\t$options = array();\n\t\t// Array for SKUs\n\t\t$skus = array();\n\n\t\t// Parse result and populate $options with option groups and corresponding options\n\t\t$currentOgId = false;\n\t\tforeach ($res as $line)\n\t\t{\n\t\t\t// Populate options\n\t\t\tif ($line->ogId)\n\t\t\t{\n\t\t\t\t// Keep track of option groups and do not do anything if no options\n\t\t\t\tif ($currentOgId != $line->ogId)\n\t\t\t\t{\n\t\t\t\t\t$currentOgId = $line->ogId;\n\n\t\t\t\t\t$ogInfo = new \\stdClass();\n\t\t\t\t\t$ogInfo->ogId = $line->ogId;\n\t\t\t\t\t$ogInfo->ogName = $line->ogName;\n\n\t\t\t\t\t$options[$currentOgId]['info'] = $ogInfo;\n\t\t\t\t\tunset($ogInfo);\n\t\t\t\t}\n\n\t\t\t\t$oInfo = new \\stdClass();\n\t\t\t\t$oInfo->oId = $line->skusOptionId;\n\t\t\t\t$oInfo->oName = $line->oName;\n\t\t\t\t$options[$currentOgId]['options'][$line->skusOptionId] = $oInfo;\n\t\t\t\tunset($oInfo);\n\t\t\t}\n\n\t\t\t// populate SKUs for JS\n\t\t\t$skusInfo = new \\stdClass();\n\t\t\t$skusInfo->sId = $line->skuId;\n\t\t\t$skusInfo->sPrice = $line->sPrice;\n\t\t\t$skusInfo->sAllowMultiple = $line->sAllowMultiple;\n\t\t\t$skusInfo->sTrackInventory = $line->sTrackInventory;\n\t\t\t$skusInfo->sInventory = $line->sInventory;\n\n\t\t\t$skus[$line->skuId]['info'] = $skusInfo;\n\t\t\t$skus[$line->skuId]['options'][] = $line->skusOptionId;\n\t\t\tunset($skusInfo);\n\n\t\t}\n\n\t\t$ret = new \\stdClass();\n\t\t$ret->options = $options;\n\t\t$ret->skus = $skus;\n\n\t\t$returnObject->options = $ret;\n\t\treturn $returnObject;\n\t}",
"public function getOptions(Request $request): array;"
] | [
"0.7604395",
"0.75408506",
"0.7381102",
"0.7118237",
"0.71144694",
"0.7113813",
"0.7113813",
"0.7113068",
"0.7113068",
"0.7113068",
"0.7113068",
"0.7113068",
"0.7113068",
"0.7113068",
"0.7113068",
"0.7113068",
"0.7113068",
"0.7113068",
"0.7113068",
"0.7113068",
"0.7113068",
"0.7113068",
"0.7113068",
"0.71072364",
"0.7042209",
"0.69687545",
"0.6968525",
"0.6968525",
"0.6957881",
"0.6912884",
"0.68689334",
"0.6801955",
"0.675587",
"0.66760963",
"0.6666897",
"0.6585932",
"0.6585932",
"0.6585932",
"0.6585932",
"0.6585932",
"0.6585932",
"0.6585932",
"0.65858525",
"0.65544724",
"0.65479064",
"0.6519099",
"0.65180624",
"0.6516547",
"0.651429",
"0.6503497",
"0.64958596",
"0.64958596",
"0.64940745",
"0.64940745",
"0.64940745",
"0.64940745",
"0.64940745",
"0.64738166",
"0.64738166",
"0.6469226",
"0.64427924",
"0.6431068",
"0.64272",
"0.6420585",
"0.6420585",
"0.6420585",
"0.6420585",
"0.6420585",
"0.6420585",
"0.6420585",
"0.6420585",
"0.6420585",
"0.6420585",
"0.6420585",
"0.6420585",
"0.6420585",
"0.6420585",
"0.6420585",
"0.6420585",
"0.6420585",
"0.6420585",
"0.6420585",
"0.6420585",
"0.6420585",
"0.64167655",
"0.64167655",
"0.64167655",
"0.64167655",
"0.64167655",
"0.64167655",
"0.64167655",
"0.64167655",
"0.64167655",
"0.6411324",
"0.6409803",
"0.6404947",
"0.64009655",
"0.6386879",
"0.63828105",
"0.6378554"
] | 0.79135555 | 0 |
Registers an event to be published when the aggregate is saved, containing the given payload and optional metadata. | protected function registerEvent($payload, $metadata = null)
{
if ($payload instanceof AbstractDomainEvent && null === $payload->aggregateId) {
$payload->setAggregateId($this->getId());
}
return $this->getEventContainer()
->addEvent($payload, $metadata);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function push($event, $payload = array())\n {\n $this->listen($event .'_pushed', function() use ($event, $payload)\n {\n $this->dispatch($event, $payload);\n });\n }",
"public function publish($event, $bus);",
"public function register($slug, $args = [], $description = \"\") {\n if (!$this->event_exists($slug)) {\n $this->events[$slug] = [];\n $this->events[$slug][\"args\"] = $args;\n $this->events[$slug][\"description\"] = $description;\n $this->events[$slug][\"listeners\"] = [];\n }\n else{\n $this->msg(\"Event \\\"{$slug}\\\" already exists\");\n }\n }",
"public function storeEvent($event)\n {\n $this->entityManager->persist($event);\n $this->entityManager->flush();\n }",
"public function storeEvent(){\n \t$eventStore = new Event_Store();\n\n\t\t$eventStore->command = $this->command; \t\n\t\t$eventStore->event = $this->event;\n\t\t$eventStore->status = \"published\";\n\t\t$eventStore->created_at = now();\n\t\t$eventStore->updated_at = now();\n\n\n\t\t$eventStore->save();\n }",
"public function publish($event, $typeHint = null);",
"public function addPayload($payload)\n {\n $this->payload = $payload;\n }",
"public function save() {\n\t\tglobal $wpdb;\n\n\t\t$defaults = array(\n\t\t\t\t'id' => null,\n\t\t\t\t'slug' => null,\n\t\t\t\t'payload' => null,\n\t\t\t\t'remote_host' => null,\n\t\t\t\t'remote_ip' => null,\n\t\t\t\t'timestamp' => date( \"Y-m-d H:i:s\" ),\n\t\t\t);\n\t\t$data = array_merge( $defaults, (array)$this->data );\n\n\t\tif ( empty( $data['slug'] ) )\n\t\t\treturn new WP_Error( 'invalid-arguments', \"'slug' is a required argument.\" );\n\n\t\tif ( ! empty( $data['remote_ip'] ) )\n\t\t\t$data['remote_ip'] = ip2long( $data['remote_ip'] );\n\n\t\tif ( empty( $data['id'] ) ) {\n\t\t\tunset( $data['id'] );\n\t\t\t$ret = $wpdb->insert( $wpdb->notify_events, $data );\n\t\t\t$data['id'] = (int) $wpdb->insert_id;\n\t\t} else {\n\t\t\t$ret = $wpdb->update( $wpdb->notify_events, $data, array( 'id' => $data['id'] ) );\n\t\t}\n\n\t\tif ( ! empty( $data['remote_ip'] ) )\n\t\t\t$data['remote_ip'] = long2ip( $data['remote_ip'] );\n\n\t\tif ( $ret ) {\n\t\t\t$this->data = (object)$data;\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn new WP_Error( 'mysql-failure', \"Couldn't insert/update event into database.\" );\n\t\t}\n\t}",
"public function recordEvent($eventName, $payload)\n {\n if (! Telescope::isRecording() || $this->shouldIgnore($eventName)) {\n return;\n }\n\n $formattedPayload = $this->extractPayload($eventName, $payload);\n\n Telescope::recordEvent(IncomingEntry::make([\n 'name' => $eventName,\n 'payload' => empty($formattedPayload) ? null : $formattedPayload,\n 'listeners' => $this->formatListeners($eventName),\n 'broadcast' => class_exists($eventName)\n ? in_array(ShouldBroadcast::class, (array) class_implements($eventName))\n : false,\n ])->tags(class_exists($eventName) && isset($payload[0]) ? ExtractTags::from($payload[0]) : []));\n }",
"public function eventPayload($payload)\n {\n $this->eventPayload = $payload;\n\n return $this;\n }",
"public function setPayload($payload);",
"public function store(Request $request)\n {\n $events = new Event();\n $events->type = $request->type;\n $events->title = $request->title;\n $events->description = $request->description;\n $save = $events->save();\n if ($save) {\n Auth::guard('admin')->user()->notify(new EventNotification($events));\n return redirect()->back()->with('success', 'Event has been add successfully');\n } else {\n return redirect()->back()->with('error', 'Something went wrong!');\n }\n }",
"public function store($payload)\n {\n $payload['name'] = htmlentities($payload['name']);\n\n return $this->model->create($payload);\n }",
"public function givenAPublished($event);",
"protected function _registerEvent(Mage_Index_Model_Event $event)\n\t{\n\t\tif ($event->getEntity() == Asm_Solr_Model_Cms_Page::ENTITY\n\t\t\t&& $event->getType() == Mage_Index_Model_Event::TYPE_SAVE\n\t\t) {\n\t\t\t$event->setData('solr_update_page_id', $event->getDataObject()->getId());\n\t\t}\n\t}",
"public function register( \\Aimeos\\MW\\Observer\\Publisher\\Iface $p );",
"public function store(CreateEventRequest $request)\n {\n $event = $this->event_repo->save(\n $request->all(),\n (new EventFactory())->create(auth()->user(), auth()->user()->account_user()->account)\n );\n Notification::send(auth()->user(), new EventCreated($event));\n return $event->toJson();\n }",
"public function saveAction()\r\n\t{\r\n\t\t$eventId = $this->getRequest()->getParam('event_id');\r\n\t\t$eventModel = Mage::getModel('master_example/event')->load($eventId);\r\n\r\n\t\tif($data = $this->getRequest()->getPost()){\r\n\t\t\ttry{\r\n\t\t\t\t$eventModel->addData($data)\r\n\t\t\t\t\t->save();\r\n\r\n\t\t\t\tMage::getSingleton('adminhtml/session')->addSuccess($this->__(\"your event has been saved\"));\r\n\t\t\t} catch (Exception $e){\r\n\t\t\t\tMage::getSingleton('adminhtml/session')->addError($e->getMessage());\r\n\t\t\t\tMage::getSingleton('adminhtml/session')->setEventFormData($data); // persist the values\r\n\t\t\t\t$this->_redirect('*/*/edit', array('_current' => true));\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t$this->_redirect('*/*/index');\t\r\n\t}",
"public function store()\n\t{\n\t\t\t\n\t\t\t$event = new EventData();\n\t\t\t$event->message_severity = Input::get('message_severity');\n\t\t\t$publisherCode = Input::get('publisher_code');\n\t\t\t$typeCode = Input::get('type_code');\n\t\t\t$eventData = Input::get('event_data');\n\t\t\t\n\t\t\t$publishers = DB::table('event_publishers')->where('publisher_code', '=', $publisherCode)->get();\n\t\t\t$publisherId = null;\n\t\t\tforeach ($publishers as $publisher)\n\t\t\t{\n\t\t\t\t$publisherId = $publisher->id;\n\t\t\t}\n\t\t\tif (is_null($publisherId)) {\n\t\t\t\treturn Response::json(array('error' => true, 'message' => 'Publisher Code does not exist.'), 400);\n\t\t\t}\n\t\t\tif (is_null($typeCode)) {\n\t\t\t\treturn Response::json(array('error' => true, 'message' => 'Event Type Code is required.'), 400);\n\t\t\t}\n\t\t\tif (is_null($eventData)) {\n\t\t\t\treturn Response::json(array('error' => true, 'message' => 'Event Data is required.'), 400);\n\t\t\t}\n\t\t\t\t\n\t\t\t$event->event_publisher_id = $publisherId;\n\t\t\t$event->event_type_code = $typeCode;\n\t\t\t\n\t\t\t$event->event_data = json_encode($eventData);\n\t\t\t\n\t\t\t$event->save();\n\t\t\t\n\t\t\tNotificationRulesProcessor::processRule($event,'api');\n\t\t\treturn Response::json(array('error' => false,'event' => $event->toArray()),200);\n\t}",
"public function addEventSubscriber(IEventSubscriber $subscriber);",
"public function registerPublishedBuild($save = true) {\n $this->lastPublished = new \\DateTime();\n if ($save)\n $this->save();\n }",
"public function postPersist(LifecycleEventArgs $args): void\n {\n // Get the object and make sure it is what we need.\n $object = $args->getObject();\n if (!$object instanceof PublishableInterface) {\n return;\n }\n\n // Execute published event after the object is persisted.\n if ($object->isPublished()) {\n $event = new EntityPublishedEvent($object);\n $this->event_dispatcher->dispatch(EntityPublishedEvent::NAME, $event);\n }\n }",
"public function store(Request $request)\n {\n $request->validate([\n 'title' =>'required|string|max:255',\n 'date' =>'required|date',\n 'time' =>'required',\n 'image' =>'required|file',\n 'description' =>'required'\n ]);\n\n $event = Event::create($request->all());\n\n return (new EventResource($event))\n ->response()\n ->setStatusCode(201);\n }",
"function eventRegister($eventName, EventListener $listener);",
"public function save(Domain\\AggregateRoot $aggregateRoot)\r\n {\r\n }",
"public function addSubscriber(EventSubscriberInterface $subscriber);",
"protected function expectAddEvent()\n {\n $this->eventPublisher->expects($this->once())\n ->method('addEvent')\n ->with(['uuid' => '123']);\n }",
"private function registerEventStore() : void\n {\n $this->app->bind(IlluminateEventStore::class, function ($app) {\n $connection = $app->make(Connection::class);\n $serializer = $app->make(Serializer::class);\n $eventStoreTable = $app->config->get('event_sourcing.event_store_table');\n\n return new IlluminateEventStore(\n $connection,\n $serializer,\n $eventStoreTable\n // decorators (we could decorate the stream with account_id)\n );\n });\n\n $this->app->bind(\n EventStore::class,\n IlluminateEventStore::class\n );\n }",
"public static function saved($event) {\n\n\t\t$account = $event->getSubject();\n\t\t$new = $event['new'];\n\n\t}",
"public function save()\n {\n $data = [\n 'eventKey' => $this->eventKey,\n 'eventType' => $this->getEventType(),\n 'eventAction' => $this->getEventAction(),\n 'eventSubjectID' => $this->getSubjectID(),\n 'eventSubjectData' => trim($this->getSubjectData()),\n 'eventUserID' => ($this->user) ? $this->user->id() : 0,\n 'eventTriggered' => date('Y-m-d H:i:s')\n ];\n\n $PerchAPI = new PerchAPI(1.0, 'redfinch_logger');\n $Events = new RedFinchLogger_Events($PerchAPI);\n\n return $Events->create($data);\n }",
"public function registerHook($event, $signature) {\n $this->hooks[$event] = $signature;\n }",
"public function registerEvent(EventInterface $event);",
"function Core_PostEvent( $eventName, &$object = null, $info = array() )\n{\n\t$notification = new Event_Notification($object, $eventName, $info);\n\tCore_ModuleManager::getInstance()->dispatcher->postNotification( $notification, true, false );\n}",
"public function persist()\n {\n\n $this->persistor->persist(\n $this->event,\n $this->relatedEntities,\n $this->eventRequest->getApplication(),\n $this->eventRequest->getAccount(),\n $this->eventRequest->getProduct(),\n $this->eventRequest->appendCustomer\n );\n\n }",
"public function publish($event, $data = null, $username = null)\n\t{\n\n\t\tRedis::publish(static::CHANNEL, $this->makeMessage($event, $data, $username));\n\t}",
"public function store(EventRequest $request, $resourceId)\n {\n $eventable = $this->getEventableRepository()->model()->findOrFail($resourceId);\n\n $event = $this->event->create($request);\n\n if ($event && method_exists($eventable, 'events')) {\n $eventable->events()->attach($event->id);\n\n $message = 'Successfully created event.';\n\n return redirect()->route($this->routes['index'], $eventable->id)->withSuccess($message);\n } else {\n $message = 'There was an issue creating an event. Please try again.';\n\n return redirect()->route($this->routes['create'])->withErrors($message);\n }\n }",
"public function store(EventRequest $request) {\n if (Auth::user()->profile != 'admin') {\n abort(403);\n } else {\n \\App\\Event::create([\n 'name' => $request->name,\n 'event' => $request->event,\n 'point' => $request->point,\n 'start' => $request->start,\n 'end' => $request->end,\n ]);\n $request->session()->flash('alert', 'success');\n $request->session()->flash('status', 'เพิ่มข้อมูลกิจกรรมเรียบร้อยแล้ว');\n return redirect()->back();\n }\n }",
"public function store(Request $request)\n {\n $event = Event::create([\n 'user_id' => auth()->id(),\n 'slug' => rand()\n ]);\n\n return redirect('/create-your-event/'. $event->slug . '/location');\n\n }",
"public function store(Request $request)\n {\n\n $this->validate($request, [\n 'slug' => 'required|alpha_dash|min:5|max:255|unique:events,slug',\n 'title' => 'required|min:5|max:255',\n 'date_range' => 'required'\n ]);\n\n $event = new Event;\n\n if ($image = Input::file('image')) {\n $filename = $image->hashName();\n $path_thumb = public_path('media/thumb/' . $filename);\n Image::make($image->getRealPath())->resize(350, null, function ($constraint) {\n $constraint->aspectRatio();\n })->crop(350, 177)->save($path_thumb);\n\n $path = public_path('media/images/' . $filename);\n Image::make($image->getRealPath())->save($path);\n $event->image = $filename;\n }\n\n $splitDate = explode(' - ', $request->date_range, 2);\n $start_date = date('Y-m-d', strtotime($splitDate[0]));\n $end_date = date('Y-m-d', strtotime($splitDate[1]));\n\n $event->slug = $request->slug;\n $event->title = $request->title;\n $event->user_id = Auth::user()->id;\n $event->content = $request->description;\n $event->start_at = $start_date;\n $event->end_at = $end_date;\n $event->status = $request->status; // published or drafts, boolean\n $event->plugin = $request->dataPlugin;\n\n if (empty($request->seo)) {\n $event->seo = strip_tags(str_limit($request->description, 150));\n } else {\n $event->seo = $request->seo;\n }\n if (empty($request->keyword)) {\n $event->keyword = $request->title;\n } else {\n $event->keyword = $request->keyword;\n }\n $event->save();\n\n if ($request->publish == 1) {\n $status = 'Publish';\n } elseif ($request->publish == 0) {\n $status = 'Draft';\n }\n\n $redirectTo = 'events/drafts';\n if ($request->status == true) {\n $redirectTo = 'events/published';\n }\n\n return redirect($redirectTo)->with('message', 'Success Update');\n\n }",
"public function collect($eventName, $payload)\n {\n if (!Meter::isMonitoring() || $this->shouldIgnore($eventName)) {\n return;\n }\n\n $formattedPayload = $this->extractPayload($eventName, $payload);\n\n $content = [\n 'time' => floor((microtime(true) - $this->startTime) * 1000),\n 'name' => $eventName,\n 'payload' => empty($formattedPayload) ? null : $formattedPayload,\n 'listeners' => $this->formatListeners($eventName),\n 'broadcast' => class_exists($eventName)\n ? in_array(ShouldBroadcast::class, (array)class_implements($eventName), true)\n : false,\n ];\n\n $this->record(Type::EVENT, false, $content);\n }",
"public function saved($event)\n {\n if (!request()->hasAny(['pid', 'amount'])) {\n return;\n }\n\n $event->products()->sync([]);\n\n $products = request('pid');\n $quantity = request('amount');\n $locations = request('locationID');\n\n for ($i = 0; $i < count($quantity) - 1; $i++) {\n $event->products()->attach([\n $products[$i] => [\n 'quantity' => $quantity[$i],\n 'rack_id' => $locations[$i],\n ]\n ]);\n }\n }",
"public function postEventRegister() {\n\n $data = $this->request->all();\n $this->eventRegistar->create($data);\n return json_encode(array('status' => 200, 'message' => 'Saved successfuly'));\n }",
"public function onSaveEvent(Event $event)\n {\n $this->raiseEvent('onSaveEvent', $event);\n }",
"public function publish($topic,$payload)\n {\n \treturn $this->getClient()->publish([\n \t\t'Message' => json_encode($payload),\n \t\t'TopicArn' => $this->getTopic($topic)['arn'],\n 'Subject' => $topic,\n \t]);\n }",
"public function store(StoreEvent $request)\n {\n Event::storeNew($request);\n\n return \\response('Event created successfully!', 200);\n }",
"function Piwik_PostEvent( $eventName, &$object = null, $info = array() )\n{\n\tPiwik_PluginsManager::getInstance()->dispatcher->post( $object, $eventName, $info, true, false );\n}",
"public function store(CreateEventRequest $request)\n {\n \n $event = Event::create(\n $request->validated()\n );\n\n\n return response()->json([\n 'event' => $event\n ], 201);\n }",
"public function postSave(EntityEvent $event) {\n $GLOBALS['feeds_test_events'][] = (__METHOD__ . ' called');\n }",
"public function store(Request $request)\n {\n $this->validate($request, ['title' => 'required']);\n\n $postData = $request->all();\n $postData['img'] = $this->fileUpload($request);\n $postData['user_id'] = \\Auth::id();\n\n Events::create($postData);\n\n return redirect('admin/events')->with('flash_message', 'Event added!');\n }",
"public function create($payload)\n {\n return $this->notification->create($payload);\n }",
"public function onPreSave(StorageEvent $event)\n {\n // The ContentType of the record being saved\n $contenttype = $event->getContentType();\n\n // The record being saved\n $record = $event->getContent();\n\n // A flag to tell if the record was created, updated or deleted,\n // for more information see the page in the documentation\n $created = $event->isCreate();\n\n // Do whatever you want with this data\n // See page in the documentation for a logging example\n }",
"public function store(StoreEventsRequest $request)\n {\n // $this->validate($request, [\n // 'photo.*' => 'image|mimes:png,jpg,jpeg|max:10000'\n // ]);\n\n if (! Gate::allows('event_create')) {\n return abort(401);\n }\n\n $event = Event::create($request->all());\n\n // edited\n if($request->hasfile('photo'))\n { \n $image = $request->file('photo');\n $name=time(). '.' .$image->getClientOriginalName();\n $image->move(public_path().'/images/events/', $name);\n $event->photo = $name;\n $event->save();\n }\n return redirect()->route('admin.events.index')->with('success', 'Your message has been sent successfully!');\n }",
"public function store(Request $request)\n {\n $this->validate($request, [\n 'description' => 'required|string',\n 'end_date' => 'required|date',\n 'featured' => 'boolean',\n 'group' => 'required|exists:groups,id',\n 'image' => 'required|string',\n 'location' => 'required|string',\n 'name' => 'required|string',\n 'recurrence' => 'string',\n 'short_description' => 'required|string',\n 'short_name' => 'required|string',\n 'start_date' => 'required|date',\n ]);\n\n $event = new Event();\n\n $event->description = $request->input('description');\n $event->end_date = $request->input('end_date');\n $event->featured = $request->input('featured', false);\n $event->group_id = $request->input('group');\n $event->image = $request->input('image');\n $event->location = $request->input('location');\n $event->name = $request->input('name');\n $event->recurrence = $request->input('recurrence');\n $event->short_description = $request->input('short_description');\n $event->short_name = $request->input('short_name');\n $event->start_date = $request->input('start_date');\n\n $event->save();\n\n return new JsonResponse(\n $event,\n Response::HTTP_CREATED\n );\n }",
"function add_custom_meta_for_asso_event()\n{\n add_meta_box('asso_event_meta_box',\n 'Asso. event',\n 'display_asso_event_meta_box',\n 'asso_event', 'normal', 'high'\n );\n}",
"public function register($event, $listener, $params = array(), $first = false);",
"public function setPayload($payload)\n {\n $this->payload = $payload;\n }",
"public function registerEvent($event, $object, $fn){\n\t\t$this->actions[$event][] = new \\OWeb\\manage\\events\\Event($object, $fn);\n\t}",
"public function publish( Location $location );",
"public function pushEvent($name)\n {\n $this->data['event'] = $name;\n }",
"public function store(Request $request)\n {\n $this->validate($request, [\n 'title' => 'required',\n 'content' => 'required',\n 'location' => 'required',\n 'date' => 'required'\n ]);\n\n $event = Event::create([\n 'title' => $request->input('title'),\n 'slug' => Str::slug($request->input('title'), '-'),\n 'content' => $request->input('content'),\n 'location' => $request->input('location'),\n 'date' => $request->input('date')\n ]);\n\n if ($event) {\n //redirect dengan pesan sukses\n return redirect()->route('admin.event.index')->with(['success' => 'Data Berhasil Disimpan!']);\n } else {\n //redirect dengan pesan error\n return redirect()->route('admin.event.index')->with(['error' => 'Data Gagal Disimpan!']);\n }\n }",
"public function postEventadd();",
"public function store(Request $request)\n {\n Validator::make($request->all(), [\n 'name' => ['required','max:255'],\n 'description' => ['required'],\n 'deadline' => ['date'],\n 'qr' => [],\n 'answers' => ['present', 'array', 'required']\n ])->validateWithBag('createNewEvent');\n\n //Post::create($request->all());\n $event = new \\App\\Models\\Event;\n $event->name = $request->name;\n $event->description = $request->description;\n $event->answers = json_encode(array_filter($request->answers, 'strlen'));\n $event->deadline = Carbon::parse($request->deadline);\n $event->qr = $request->qr ? 1:0;\n $event->user_id = Auth::id();\n $event->save();\n\n $hashids = new Hashids(env('APP_KEY'));\n $event->external_id = $hashids->encode($event->id, $event->user_id);\n $event->save();\n\n return redirect()->back()->with('message', 'Post Created Successfully.');\n }",
"private function saveChanges(\n Oxy_EventStore_Event_StorableEventsCollectionInterface $events, \n Oxy_Guid $guid\n )\n {\n try{\n $collection = $this->_db->selectCollection('events');\n $aggregateCollection = $this->_db->selectCollection('aggregates');\n\n // Add new events\n foreach ($events as $storableEvent) {\n $eventInstance = $storableEvent->getEvent();\n if(!$eventInstance instanceof Oxy_EventStore_Event_ArrayableInterface){\n throw new Oxy_EventStore_Storage_Exception(\n sprintf('Event must implement Oxy_EventStore_Event_ArrayableInterface interface')\n ); \n }\n $event = (object)$eventInstance->toArray();\n \n if((string)$storableEvent->getProviderGuid() === (string)$guid){\n $data = array(\n 'd' => date('Y-m-d H:i:s'),\n 'ag' => (string)$guid,\n 'e' => $event,\n 'ec' => (string)get_class($eventInstance)\n );\n } else {\n $data = array(\n 'd' => date('Y-m-d H:i:s'),\n 'ag' => (string)$guid,\n 'eg' => (string)$storableEvent->getProviderGuid(),\n 'e' => $event,\n 'ec' => (string)get_class($eventInstance)\n );\n }\n $collection->insert($data, array(\"safe\" => true));\n }\n return true;\n } catch(MongoCursorException $ex){\n return false;\n } catch(MongoConnectionException $ex){\n return false;\n } catch(MongoCursorTimeoutException $ex){\n return false;\n } catch(MongoGridFSException $ex){\n return false;\n } catch(MongoException $ex){\n return false;\n } catch (Exception $ex){\n return false;\n } \n \n return false;\n }",
"function submitted_events_insert_post($submission, $title, $content) {\n\t// post meta data needed\n\t$meta_data = array (\n\t\t\t'event-date' => $submission->date,\n\t\t\t'event-time' => $submission->starttime,\n\t\t\t'event-days' => 1,\n\t\t\t'event-repeat' => 0,\n\t\t\t'event-end' => 0 \n\t);\n\t\n\t$postarr = array (\n\t\t\t'post_title' => $title,\n\t\t\t'post_type' => 'event-list-cal',\n\t\t\t'post_content' => $content,\n\t\t\t'post_category' => submitted_events_calendar ( $submission ),\n\t\t\t'meta_input' => $meta_data \n\t);\n\t\n\t$post_id = wp_insert_post ( $postarr );\n\t\n\t// echo ID of created event?\n\techo '<p>Created event ID ' . $post_id . '</p>';\n}",
"public function publishEvent(EventTranslatorInterface $translator, Threaded $args = null)\n {\n $this->_checkTranslator($translator);\n $this->_translateAndPublish($translator, $this->sequencer->next(), $args);\n }",
"static function event($unique_user_id, $title, $params = array())\n {\n\n if (!$params || !is_array($params)) {\n $params = array();\n }\n\n $params['title'] = $title;\n \n $message = array(\n 'unique_id' => $unique_user_id,\n 'event' => 'custom',\n 'created_at' => self::get_time(),\n 'params' => $params,\n );\n\n self::store_or_send('event', 'POST', $message);\n }",
"public function handle($payload = null)\n {\n Log::debug(\"@EventMessageHandler payload=\".json_encode($payload));\n return true;\n }",
"final protected function addEvent($payload)\n\t\t{\n\n\t\t\tglobal $time_event__duplication, $form_fill_required_vals;\n\t\t\tglobal $time_addEvent__success, $time_addEvent__failure;\n\n\t\t\tif(in_array(null, array_values($payload)))\n\t\t\t\treturn $this->addFrontendError($form_fill_required_vals[$GLOBALS['lang']]);\n\n\t\t\t# Compensation for label of select as first item\n\t\t\tif($payload['type'] !== 0) $payload['type'] -= 1;\n\t\t\telse return $this->addFrontendError($form_fill_required_vals[$GLOBALS['lang']]);\n\n\t\t\t# Get Type\n\t\t\t$type = array(\n\t\t\t\t\"id\" => $payload['type'],\n\t\t\t\t\"name\" => $payload['type'] === 3 ? \"fragranceCollective_spray\" : static::EVENT_TYPES[$payload['type']]\n\t\t\t);\n\n\t\t\t# Ensure DB conn has been established\n\t\t\t$this->init();\n\n\t\t\t# Check unit duplication\n\t\t\t$occurences = $this->db->selectValue(\n\t\t\t\t'SELECT COUNT(*) FROM mod_time WHERE event_name = ?', [$payload['name']]\n\t\t\t);\n\n\t\t\tif($occurences >= 1)\n\t\t\t\treturn $this->addFrontendError($time_event__duplication[$GLOBALS['lang']]);\n\n\t\t\t# Call Model\n\t\t\t$action = $this->callModelFunc(\"mod\", \"saveDataForSpecificModule\", static::ACTIVE_MOD, array(\n\t\t\t\t\"event_name\" => $payload['name'],\n\t\t\t\t\"event_type\" => $type['id'],\n\t\t\t\t\"event_targetUnits\" => $payload['units_csv'],\n\t\t\t\t\"event_loop\" => $payload['loop'] === \"on\" ? true : false,\n\t\t\t\t\"event_plannedExecution_time\" => $payload['time'],\n\t\t\t\t\"event_plannedExecution_date\" => dateToDBDate($payload['date']),\n\t\t\t\t\"event_executedAt\" => null\n\t\t\t));\n\n\t\t\t# End with status report\n\t\t\tif($action) $this->addFrontendMessage($time_addEvent__success[$GLOBALS['lang']]);\n\t\t\telse $this->addFrontendError($time_addEvent__failure[$GLOBALS['lang']]);\n\n\t\t\t$this->startListeningForEvents();\n\n\t\t\t$this->refresh();\n\n\t\t}",
"public function store(Requests\\StoreCalendarEvent $request)\n {\n $calendar_event = new CalendarEvent();\n // Validation in type-hinted form request\n $this->saveCalendarEvent($request, $calendar_event);\n\n return redirect()->route('calendar_events.index')->with('success', 'Item created successfully.');\n }",
"public static function StoreEvent($farmid, Event $event)\r\n\t\t{\r\n\t\t\tif ($event->SkipDeferredOperations)\r\n\t\t\t\treturn true;\r\n\t\t\t\r\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\t$DB = Core::GetDBInstance();\r\n\t\t\t\t\t\r\n\t\t\t\t// Get Smarty object\r\n\t\t\t\t$Smarty = Core::GetSmartyInstance();\r\n\t\t\t\t\r\n\t\t\t\t// Assign vars\r\n\t\t\t\t$Smarty->assign(array(\"event\" => $event));\r\n\t\t\t\t\r\n\t\t\t\t// Generate event message \r\n\t\t\t\tif (file_exists(CF_TEMPLATES_PATH.\"/event_messages/{$event->GetName()}.tpl\")) {\r\n\t\t\t\t\t$message = $Smarty->fetch(\"event_messages/{$event->GetName()}.tpl\");\r\n\t\t\t\t\t$short_message = $Smarty->fetch(\"event_messages/{$event->GetName()}.short.tpl\");\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t// Store event in database\r\n\t\t\t\t\t$DB->Execute(\"INSERT INTO events SET \r\n\t\t\t\t\t\tfarmid\t= ?, \r\n\t\t\t\t\t\ttype\t= ?, \r\n\t\t\t\t\t\tdtadded\t= NOW(),\r\n\t\t\t\t\t\tmessage\t= ?,\r\n\t\t\t\t\t\tshort_message = ?, \r\n\t\t\t\t\t\tevent_object = ?,\r\n\t\t\t\t\t\tevent_id\t = ?\r\n\t\t\t\t\t\t\",\r\n\t\t\t\t\t\tarray($farmid, $event->GetName(), $message, $short_message, serialize($event), $event->GetEventID())\r\n\t\t\t\t\t);\r\n\t\t\t\t\t\r\n\t\t\t\t\t$eventid = $DB->Insert_ID();\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Add task for fire deferred event\r\n\t\t\t\t\tTaskQueue::Attach(QUEUE_NAME::DEFERRED_EVENTS)->AppendTask(new FireDeferredEventTask($eventid));\r\n\t\t\t\t} else\r\n\t\t\t\t\tLogger::getLogger(__CLASS__)->warn(sprintf(_(\"Cannot store event in database: '{$event->GetName()}' message template not found\")));\r\n\t\t\t}\r\n\t\t\tcatch(Exception $e)\r\n\t\t\t{\r\n\t\t\t\tLogger::getLogger(__CLASS__)->fatal(sprintf(_(\"Cannot store event in database: %s\"), $e->getMessage()));\r\n\t\t\t}\r\n\t\t}",
"public function store(Request $request)\n {\n $validator = $this->validateEvent();\n if($validator->fails()){\n return response()->json($validator->messages(), 422);\n }\n\n $event = Event::create($validator->validate());\n return response()->json(['message'=>'Event Created','data'=>$event],201);\n }",
"public function store(EventRequest $request)\n {\n $event = new Event;\n $event->event = $request->event;\n $event->organizer = $request->organizer;\n $event->description = $request->description;\n\n $event->start_date = Carbon::parse($request->start_date);\n $event->end_date = Carbon::parse($request->end_date);\n $week= Carbon::parse($request->start_date)->dayOfWeekIso;\n $color_array = ['#f39c12', '#e84393', '#27ae60', '#d35400', '#2980b9', '#8e44ad', '#c0392b'];\n $event->color = $color_array[$week-1];\n $event->user_id = $request->author;\n $event->view = \"0\";\n $event->slug = slug_th($request->event);\n $event->save();\n return back()->with([\n 'alert' => 'alert-success',\n 'message' => 'บันทึกข้อมูลเรียบร้อย!',\n ]);\n }",
"public function store(Request $request)\n {\n $events = new Events();\n $events->photo = $request->input('photo');\n $events->title = $request->input('title');\n $events->descriptions = $request->input('descriptions');\n $events->venue = $request->input('venue');\n $events->date = date('04/02/2018');\n $events->time = time('h:i:s');\n $events->save();\n }",
"public function store(Request $request)\n {\n try {\n $event = new Event();\n $event->description = $request->description;\n $event->start_at = $request->start_at;\n $event->end_at = $request->end_at;\n $event->observation = $request->observation;\n $event->owner_id = Auth::id();\n $event->responsable_id = $request->responsable;\n $event->save();\n\n return $this->sendResponse($event, 'success');\n } catch (\\Exception $e) {\n return $this->sendError($e->getMessage());\n }\n }",
"public function store(Request $request)\n {\n\n $this->validate($request, [\n 'event_name' => 'required|min:2|max:255'\n\n ]);\n\n EventType::create([\n 'event_name' => $request['event_name']\n\n ]);\n\n return redirect()->route('eventtype.create')->with('success', 'Successfully Recorded!');\n\n }",
"function register_events() {\n\n\t\t// Labels for the backend Event publisher\n\t\t$event_labels = array(\n\t\t\t'name'\t\t\t\t\t=> 'Events',\n\t\t\t'singular_name'\t\t\t=> 'Event',\n\t\t\t'add_new'\t\t\t\t=> 'New Event',\n\t\t\t'add_new_item'\t\t\t=> 'Schedule Event',\n\t\t\t'edit_item'\t\t\t\t=> 'Edit Event',\n\t\t\t'new_item'\t\t\t\t=> 'New Event',\n\t\t\t'view_item'\t\t\t\t=> 'View Event',\n\t\t\t'search_items'\t\t\t=> 'Search Events',\n\t\t\t'not_found'\t\t\t\t=> 'No events found',\n\t\t\t'not_found_in_trash'\t=> 'No events found in Trash', \n\t\t\t'parent_item_colon'\t\t=> '',\n\t\t\t'menu_name'\t\t\t\t=> 'Events',\n\t\t);\n\t\t\n\t\t$event_capabilities = array(\n\t\t\t'edit_post'\t\t\t\t=> 'edit_post',\n\t\t\t'edit_posts'\t\t\t=> 'edit_posts',\n\t\t\t'edit_others_posts'\t\t=> 'edit_others_posts',\n\t\t\t'publish_posts'\t\t\t=> 'publish_posts',\n\t\t\t'read_post'\t\t\t\t=> 'read_post',\n\t\t\t'read_private_posts'\t=> 'read_private_posts',\n\t\t\t'delete_post'\t\t\t=> 'delete_post'\n\t\t);\t\t\t\n\t\t\t\n\t\t// Construct the arguments for our custom slide post type\n\t\t$event_args = array(\n\t\t\t'labels'\t\t\t\t=> $event_labels,\n\t\t\t'description'\t\t\t=> 'Scheduled calendar events',\n\t\t\t'public'\t\t\t\t=> true,\n\t\t\t'publicly_queryable'\t=> true,\n\t\t\t'exclude_from_search'\t=> true,\n\t\t\t'show_ui'\t\t\t\t=> true,\n\t\t\t'show_in_menu'\t\t\t=> true,\n\t\t\t'show_in_nav_menus'\t\t=> false,\n\t\t\t'menu_icon'\t\t\t\t=> THEME_URI . '/images/icons/calendar-icon-20.png',\n\t\t\t'capabilities'\t\t\t=> $event_capabilities,\n\t\t\t'map_meta_cap'\t\t\t=> true,\n\t\t\t'hierarchical'\t\t\t=> false,\n\t\t\t'supports'\t\t\t\t=> array( 'title', 'editor', 'thumbnail' ),\n\t\t\t'taxonomies'\t\t\t=> array( 'calendar' , 'occurence' ),\n\t\t\t'has_archive'\t\t\t=> false,\n\t\t\t'rewrite'\t\t\t\t=> array(\n\t\t\t\t\t\t\t\t\t\t'slug' \t=> 'event',\n\t\t\t\t\t\t\t\t\t\t'feeds'\t=> false,\n\t\t\t\t\t\t\t\t\t\t'pages'\t=> false,\n\t\t\t\t\t\t\t\t\t\t),\n\t\t\t'query_var'\t\t\t\t=> true,\n\t\t\t'can_export'\t\t\t=> true,\n\t\t);\n\n\t\t\n\t\t// Register the Event post type!\n\t\tregister_post_type( 'event', $event_args );\n\t}",
"function dp_save_event_info($post_id) {\n // if not, then return\n if ('event' != $_POST['post_type']) {\n return;\n }\n\n // checking for the 'save' status\n $is_autosave = wp_is_post_autosave($post_id);\n $is_revision = wp_is_post_revision($post_id);\n $is_valid_nonce = (isset($_POST['dp-event-info-nonce']) && (wp_verify_nonce($_POST['dp-event-info-nonce'], basename(__FILE__)))) ? true : false;\n\n // exit depending on the save status or if the nonce is not valid\n if ($is_autosave || $is_revision || !$is_valid_nonce) {\n return;\n }\n\n // checking for the values and performing necessary actions\n if (isset($_POST['dp-event-date'])) {\n update_post_meta($post_id, 'event-date', strtotime($_POST['dp-event-date']));\n }\n\n if (isset($_POST['dp-event-glat'])) {\n update_post_meta($post_id, 'event-glat', sanitize_text_field($_POST['dp-event-glat']));\n }\n\n if (isset($_POST['dp-event-glng'])) {\n update_post_meta($post_id, 'event-glng', sanitize_text_field($_POST['dp-event-glng']));\n }\n\n if (isset($_POST['dp-event-url'])) {\n update_post_meta($post_id, 'event-url', sanitize_text_field($_POST['dp-event-url']));\n }\n}",
"public function testEventCanBeSubscribedToAndCanBePublished()\n\t{\n\t\tConfig::set('history::bus.driver', 'memory');\n\n\t\t$expected = false;\n\n\t\tBus::subscribe('TestEvent', function($event) use (&$expected)\n\t\t{\n\t\t\t$expected = $event->data == 'Hello World!';\n\t\t});\n\n\t\tBus::publish(new TestEvent);\n\n\t\t$this->assertTrue($expected);\n\t}",
"public function store(EventRequest $request)\n {\n Event::create($request->all());\n\n return redirect('events');\n }",
"protected function registerPublisher()\n {\n $this->app->singleton('antares.publisher', function ($app) {\n $memory = $app->make('antares.platform.memory');\n\n return (new PublisherManager($app))->attach($memory);\n });\n }",
"public function add_event($_data){\r\n\t\t$args=$this->create_args($_data);\r\n\t\treturn($this->execute('add_event',$args));\r\n\t}",
"public function post_publish()\n\t{\n\t\t$this->get_publish();\n\t}",
"function _entryapi_ui_event_form_save_event($form, &$form_state, $location, $organiser) {\n\n $values = $form_state['values'];\n\n $update = FALSE;\n if (isset($form['#event'])) {\n $update = TRUE;\n $event = $form['#event'];\n }\n else {\n $event = new CultureFeed_Cdb_Item_Event();\n }\n\n // Publication date\n if ($values['publication_date']) {\n $event->setPublicationDate($values['publication_date']);\n }\n\n // Age\n $event->setAgeFrom(($values['age'] ? $values['age'] : 0));\n\n // Timestamps as calendar.\n if ($values['when'] == 'one_day' || $values['when'] == 'multiple_days') {\n _entry_api_ui_event_save_timestamps($event, $values);\n }\n\n // Period or permanent as calendar.\n elseif ($values['when'] == 'period' || $values['when'] == 'permanent') {\n _entry_api_ui_event_save_weekscheme($event, $values);\n }\n\n // Categories.\n $category_values = $values['kijken_en_luisteren'];\n $category_values += $values['doen'];\n $category_values += $values['bezoeken'];\n $category_options = $form['what']['kijken_en_luisteren']['#options'];\n $category_options += $form['what']['doen']['#options'];\n $category_options += $form['what']['bezoeken']['#options'];\n\n $categories = new CultureFeed_Cdb_Data_CategoryList();\n foreach ($category_values as $key => $value) {\n if ($value) {\n $categories->add(new CultureFeed_Cdb_Data_Category(CultureFeed_Cdb_Data_Category::CATEGORY_TYPE_EVENT_TYPE, $value, $category_options[$value]));\n }\n }\n $event->setCategories($categories);\n\n // Event details.\n $detail = new CultureFeed_Cdb_Data_EventDetail();\n $detail->setTitle($values['title']);\n if (!empty($values['short_description'])) {\n $detail->setShortDescription($values['short_description']);\n }\n $detail->setLanguage(culturefeed_search_get_preferred_language());\n\n $details = new CultureFeed_Cdb_Data_EventDetailList();\n $details->add($detail);\n $event->setDetails($details);\n\n // Location / Address.\n $addresses = $location->getEntity()->getContactInfo()->getAddresses();\n $address = $addresses[0];\n\n // Event location\n $cdbLocation = new CultureFeed_Cdb_Data_Location($address);\n $cdbLocation->setLabel($values['location']);\n $cdbLocation->setCdbid($location->getId());\n $event->setLocation($cdbLocation);\n\n // Event organiser.\n $organiser_object = new CultureFeed_Cdb_Data_Organiser();\n $organiser_object->setLabel($values['organiser']);\n $organiser_object->setCdbid($organiser->getId());\n $event->setOrganiser($organiser_object);\n\n // Contact info.\n $physical_address = $address->getPhysicalAddress();\n $contact_object = new CultureFeed_Cdb_Data_ContactInfo();\n $contact_object->addAddress(new CultureFeed_Cdb_Data_Address($physical_address));\n\n foreach ($values['contacts'] as $contact) {\n\n if (!empty($contact['text'])) {\n switch ($contact['type']) {\n\n case 'website':\n $contact_object->addUrl(new CultureFeed_Cdb_Data_Url($contact['text'], FALSE, $contact['reservation']));\n break;\n\n case 'email':\n $contact_object->addMail(new CultureFeed_Cdb_Data_Mail($contact['text'], FALSE, $contact['reservation']));\n break;\n\n case 'phone':\n $contact_object->addPhone(new CultureFeed_Cdb_Data_Phone($contact['text'], CultureFeed_Cdb_Data_Phone::PHONE_TYPE_PHONE, FALSE, $contact['reservation']));\n break;\n\n }\n }\n\n\n }\n\n $event->setContactInfo($contact_object);\n\n try {\n\n if ($update) {\n DrupalCultureFeed_EntryApi::updateEvent($event);\n $form_state['#event_id'] = $event->getCdbId();\n }\n else {\n $form_state['#event_id'] = DrupalCultureFeed_EntryApi::createEvent($event);\n }\n\n $form_state['#update_event'] = $update;\n\n }\n catch (Exception $e) {\n watchdog_exception('entry_api_ui', $e);\n form_set_error('', 'Er ging iets fout tijdens het bewaren.');\n }\n\n}",
"public function publishEventToQueue(Serializable $event): void\n {\n $message = ['event' => get_class($event), 'serialize' => $event->serialize()];\n $this->queueProducer->sendEvent($this->queueEventProcessor::getTopic(), $message);\n }",
"public function store(Request $request)\n {\n $this->validate($request,[\n\n ]);\n\n $event = new Event();\n $event->title = $request->title;\n $event->start = $request->start;\n $event->end = $request->end;\n $event->note = $request->note;\n $event->admin_id = $request->admin;\n $event->programme_id = $request->degree;\n $event->save();\n return $event;\n }",
"function save_event( $post_id , $post = '' ) {\n\t\n\t\t// Don't do anything if it's not an event\n\t\tif ( 'event' != $post->post_type ) return;\n\n\t\t// Verify the nonce before proceeding.\n\t\tif ( !isset( $_POST['event-details-box'] ) || !wp_verify_nonce( $_POST['event-details-box'], basename( __FILE__ ) ) )\n\t\t\treturn $post_id;\t\t\t\n\n\t\t/* -----------------------------------\n\t\t\tSAVE EVENT TIME \n\t\t------------------------------------*/\n\n\t\t// Retrieve the event time\n\t\t$event_time = date( 'Y-m-d H:i:s' , strtotime($_POST['event-time']) );\n\t\t$prior_time\t= $post->post_date;\n\n\t\t// Update the post object\n\t\t$post->post_date \t\t= $event_time;\n\t\tremove_action( 'save_post' , array( $this , 'save_event' )\t);\n\t\twp_update_post( $post );\n\t\tadd_action( 'save_post'\t, array( $this , 'save_event' )\t, 10, 2 );\n\t\n\t\t/* -----------------------------------\n\t\t\tSAVE META INFORMATION \n\t\t------------------------------------ */\n\n\t\t// Define the meta to look for\n\t\t$meta = array(\n\t\t\t'event_duration'\t=> $_POST['event-duration'],\n\t\t\t'event_capacity'\t=> $_POST['event-capacity'],\n\t\t\t'event_rsvp'\t\t=> $_POST['event-rsvp'],\n\t\t\t'event_role'\t\t=> $_POST['event-role'],\n\n\t\t);\n\t\t\n\t\t// Loop through each meta, saving it to the database\n\t\tforeach ( $meta as $meta_key => $new_meta_value ) {\n\t\t\n\t\t\t// Get the meta value of the custom field key.\n\t\t\t$meta_value = get_post_meta( $post_id, $meta_key, true );\n\n\t\t\t// If there is no new meta value but an old value exists, delete it.\n\t\t\tif ( current_user_can( 'delete_post_meta', $post_id, $meta_key ) && '' == $new_meta_value && $meta_value )\n\t\t\t\tdelete_post_meta( $post_id, $meta_key, $meta_value );\n\n\t\t\t// If a new meta value was added and there was no previous value, add it.\n\t\t\telseif ( current_user_can( 'add_post_meta', $post_id, $meta_key ) && $new_meta_value && '' == $meta_value )\n\t\t\t\tadd_post_meta( $post_id, $meta_key, $new_meta_value, true );\n\n\t\t\t// If the new meta value does not match the old value, update it.\n\t\t\telseif ( current_user_can( 'edit_post_meta', $post_id, $meta_key ) && $new_meta_value && $new_meta_value != $meta_value )\n\t\t\t\tupdate_post_meta( $post_id, $meta_key, $new_meta_value );\n\t\t}\n\n\t\t// Delete the RSVP meta if the date has changed\n\t\tif ( $event_time != $prior_time )\n\t\t\tdelete_post_meta( $post_id , 'event_rsvps' );\n\n\t\t/* -----------------------------------\n\t\t\tBUDDYPRESS NOTIFICATION\n\t\t------------------------------------ */\n\t\t\t\n\t\t// Get event data\n\t\tglobal $bp, $wpdb;\n\t\tif ( !$user_id )\n\t\t\t$user_id = $post->post_author;\n\n\t\t// Figure out which calendars this event belongs to\n\t\t$calendars = wp_get_post_terms( $post_id , 'calendar' );\n\t\t$group_slugs = array();\n\t\t\t\n\t\t// For each calendar, check if it's a group calendar\n\t\tforeach ( $calendars as $calendar ) {\n\t\t\tif ( is_group_calendar( $calendar->term_id ) )\n\t\t\t\t$groups[] = $calendar;\n\t\t}\t\n\t\t\n\t\t// If this event does not belong to a group, we can stop here\n\t\tif ( empty( $groups ) ) return $post_id;\t\n\t\t\n\t\t// Only register notifications for future or published events\n\t\tif ( !in_array( $post->post_status , array('publish','future') ) ) return $post_id;\t\n\t\t\n\t\t// Loop through each group, adding an activity entry for each one\n\t\tforeach ( $groups as $group ) {\n\t\t\n\t\t\t// Get the group data\n\t\t\t$group_id \t= groups_get_id( $group->slug );\n\t\t\t$group_name\t= $group->name;\n\n\t\t\t// Configure the activity entry\n\t\t\t$post_permalink \t= get_permalink( $post_id );\n\t\t\t$activity_action \t= sprintf( '%1$s added the event %2$s to the %3$s.' , bp_core_get_userlink( $post->post_author ), '<a href=\"' . $post_permalink . '\">' . $post->post_title . '</a>' , $group_name . ' <a href=\"' . SITEURL . '/calendar/' . $group->slug .'\">group calendar</a>' );\n\t\t\t$activity_content \t= $post->post_content;\n\n\t\t\t// Check for existing entry\n\t\t\t$activity_id = bp_activity_get_activity_id( array(\n\t\t\t\t'user_id' => $user_id,\n\t\t\t\t'component' => $bp->groups->id,\n\t\t\t\t'type' => 'new_calendar_event',\n\t\t\t\t'item_id' => $group_id,\n\t\t\t\t'secondary_item_id' => $post_id,\n\t\t\t) );\n\t\t\t\n\t\t\t// Record the entry\n\t\t\tgroups_record_activity( array(\n\t\t\t\t'id'\t\t\t\t=> $activity_id,\n\t\t\t\t'user_id' \t\t\t=> $user_id,\n\t\t\t\t'action' \t\t\t=> $activity_action,\n\t\t\t\t'content' \t\t\t=> $activity_content,\n\t\t\t\t'primary_link' \t\t=> $post_permalink,\n\t\t\t\t'type' \t\t\t\t=> 'new_calendar_event',\n\t\t\t\t'item_id' \t\t\t=> $group_id,\n\t\t\t\t'secondary_item_id' => $post_id,\n\t\t\t));\n\t\t\t\n\t\t\t// Update the group's last activity meta\n\t\t\tgroups_update_groupmeta( $group_id, 'last_activity' , bp_core_current_time() );\n\t\t\t\n\t\t\t// Maybe notify every group member\n\t\t\tif ( $_POST['event-rsvp'] ) :\n\t\t\t\tif ( bp_group_has_members( $args = array( 'group_id' => $group_id, 'exclude_admins_mods' => false , 'per_page' => 99999 ) ) ) :\twhile ( bp_members() ) : bp_the_member();\n\t\t\t\t\t\t\n\t\t\t\t\t// Remove any existing notifications ( $user_id, $item_id, $component_name, $component_action, $secondary_item_id = false )\n\t\t\t\t\tbp_notifications_delete_notifications_by_item_id( bp_get_group_member_id() , $group_id , $bp->groups->id , 'new_calendar_event' , $post_id );\n\t\t\t\n\t\t\t\t\t// Send a notification ( itemid , groupid , component, action , secondary )\n\t\t\t\t\tbp_notifications_add_notification( array(\n\t\t\t\t\t\t'user_id'\t\t\t=> bp_get_group_member_id(),\n\t\t\t\t\t\t'item_id'\t\t\t=> $group_id,\n\t\t\t\t\t\t'secondary_item_id'\t=> $post_id,\n\t\t\t\t\t\t'component_name'\t=> $bp->groups->id,\n\t\t\t\t\t\t'component_action'\t=> 'new_calendar_event'\t\t\t\t\t\n\t\t\t\t\t));\t\t\t\t\t\t\n\t\t\t\tendwhile; endif;\n\t\t\tendif;\n\t\t}\n\t}",
"public function onRegistrantCreated(MeetingRegistrantCreated $event) {\n\n $meetingId = (string)$event->getObject()['id'];\n\n $meeting = Meeting::whereZoomId($meetingId)->first();\n\n if(!empty($meeting)){\n\n $this->logEvent($event);\n try{\n $zoomRegistrant = new Registrant();\n $zoomRegistrant->create($event->getObject()['registrant']);\n\n $registrantModel = null;\n\n switch ($meeting->getSetting(ZoomMeeting::SETTINGS_KEY_REGISTRATION_TYPE)){\n case ZoomMeeting::SETTINGS_REGISTRATION_TYPE_ONCE_ALL_OCCURRENCES:\n case ZoomMeeting::SETTINGS_REGISTRATION_TYPE_ONCE_MANY_OCCURRENCES:\n $occurrences = isset($event->getObject()['occurrences']) ? $event->getObject()['occurrences'] : $meeting->occurrences;\n foreach($occurrences as $occurrence){\n $occurrenceId = is_array($occurrence) ? $occurrence['occurrence_id'] : $occurrence->occurrence_id;\n $this->saveRegistrant($zoomRegistrant, $meetingId, $occurrenceId);\n }\n break;\n case ZoomMeeting::SETTINGS_REGISTRATION_TYPE_ONCE_ONE_OCCURRENCES:\n $this->saveRegistrant($zoomRegistrant, $meetingId, $event->getObject()['occurrences'][0]['occurrence_id']);\n break;\n }\n\n $registrantModel = $this->getRegistrantFromEvent($event);\n\n event(new SendRegistrantConfirm($registrantModel));\n\n event(new SendNewRegistrant($registrantModel));\n\n $this->logFinishEvent();\n }catch (\\Exception $exception){\n $this->logFailedEvent($exception);\n }\n }else{\n $this->logNotFoundEvent();\n }\n\n }",
"public function store(Request $request)\n {\n \n $requestData = $request->all();\n \n evento::create($requestData);\n\n return redirect('evento')->with('flash_message', 'evento added!');\n }",
"public function create(RegistrationPostCreatedEvent $event): void\n {\n }",
"function analytics($job){\n //Get the info of the job\n list($domain, $id, $data) = unserialize($job->workload());\n \n //Ensure the minimum info\n if(empty($id) || empty($data) || empty($domain)){\n echo sprintf(\"%s: To register an event we need the data and the id\\n\", date('r'));\n $job->sendFail();\n \n return FALSE;\n }\n \n echo sprintf(\"%s: Received a task to store an analytics event\\n\", date('r'));\n echo sprintf(\"%s: Sending the event #%s to %s domain\\n\", date('r'), $id, $domain);\n $document = new Zend_Cloud_DocumentService_Document($data, $id);\n \n try{\n $amazonSDB = getAmazonSDB();\n \n try{\n $amazonSDB->insertDocument($domain, $document);\n }catch(Zend_Cloud_DocumentService_Exception $e){\n echo sprintf(\"%s: Connectivity issues, sleeping 0.5s\\n\", date('r'));\n usleep(500000);\n $amazonSDB->insertDocument($domain, $document);\n }\n \n echo sprintf(\"%s: Event #%s stored\\n\\n\", date('r'), $id);\n \n $job->sendComplete(TRUE);\n \n return TRUE;\n }catch(Zend_Cloud_DocumentService_Exception $e){\n logError(sprintf(\"%s: Error while storing the event #%s - %s\\n\\n\",date('r'), $id, $e->getMessage()));\n \n $job->sendFail();\n \n return FALSE;\n }\n}",
"public function store(Request $request)\n {\n $event = new Event($request->all());\n $id = Event::max('id')+1;\n if ($request->hasFile('photo')) {\n $pathToMove = '';\n if (App::environment('local')) {\n $pathToMove = public_path('/images/events/');\n }else{\n $pathToMove = base_path() . '/public_html/images/events/';\n }\n $photo_name = 'event-' . $id . '.png';\n $request->photo->move($pathToMove, $photo_name);\n $event->photo = $photo_name;\n }\n $event->registerer = Auth::user()->id;\n $event->save();\n return redirect('admin/eventos');\n }",
"public function store(Request $request)\n {\n $this->validate($request, [\n 'eventname'=>'required',\n 'venue' =>'required',\n 'sdate' =>'required',\n 'edate'=>'required',\n 'description'=>'required',\n 'eimage'=>'nullable'\n ]);\n\n $event = new Event;\n $event->EventName=$request->eventname;\n $event->Description=$request->description;\n $event->Venue=$request->venue;\n $event->Startdate=$request->sdate;\n $event->Enddate=$request->edate;\n $event->Image=$request->eimage;\n $event->save();\n\n return redirect(route('event_list'))->with('success', 'Event Added');\n }",
"public function store(StoreRequest $request): EventResource\n {\n return new EventResource(\n auth()\n ->guard('api')\n ->user()\n ->events()\n ->create(array_filter($request->only(self::ALLOWED_FIELDS)))\n );\n }",
"public function store(Request $request)\n {\n $this->validate($request, [\n 'title' => 'required',\n 'start_at' => 'required'\n ]);\n $requestData = $request->all();\n\n $start = $requestData['start_at'];\n $end = $requestData['end_at'];\n\n $requestData['start_at'] = date('Y-m-d H:i:s', strtotime($start));\n $requestData['end_at'] = date('Y-m-d H:i:s', strtotime($end));\n\n if ($end == '') {\n $requestData['end_at'] = date('Y-m-d', strtotime($start)) . ' 23:59:59';\n }\n\n Event::create($requestData);\n\n if ($request->wantsJson()) {\n return response()->json([\n 'message' => __('Data created successfully')\n ]);\n }\n\n return redirect(route('events.index'))->with('message', __('Data created successfully'));\n }",
"public function store(EventRequest $request)\n {\n $event = $this->eventRepo->store($request->merge(['user_id' => $request->user()->id])->all());\n return Response::created(new EventResource($event));\n }",
"public function it_stores_events_raised_by_our_jas_app() : void\n {\n $id = '8741e80e-153f-4254-b13e-21ac8ac34948';\n $this->json('POST', '/store-jas-events', [\n 'id' => $id,\n 'name' => 'GameStarted',\n 'date' => 1_503_301_742_819,\n 'payload' => [\n 'game_id' => 'hoi'\n ]\n ])->seeJson([\n 'created' => true\n ]);\n\n $this->seeInDatabase('jas_events', [\n 'uuid' => $id,\n 'name' => 'GameStarted',\n 'date' => 1_503_301_742_819,\n ]);\n }",
"public function store(Request $request)\n {\n $event = \\App\\Models\\UserEvents::firstOrCreate([\n 'user_id' => $request->input('user_id'),\n 'event_id' => $request->input('event_id')\n ]);\n $event->user_id = $request->input('user_id');\n $event->event_id = $request->input('event_id');\n $event->save();\n $request->session()->flash('message', 'Event has been saved to profile');\n\n return redirect()->action('EventsController@showAll');\n\n }",
"public static function onSave($param)\n {\n try\n {\n // open a transaction with database 'samples'\n TTransaction::open('samples');\n \n // get the form data into an active record Entry\n $data = (object) $param;\n \n $object = new CalendarEvent;\n $object->color = $data->color;\n $object->id = $data->id;\n $object->title = $data->title;\n $object->description = $data->description;\n $object->start_time = $data->start_date . ' ' . str_pad($data->start_hour, 2, '0', STR_PAD_LEFT) . ':' . str_pad($data->start_minute, 2, '0', STR_PAD_LEFT) . ':00';\n $object->end_time = $data->end_date . ' ' . str_pad($data->end_hour, 2, '0', STR_PAD_LEFT) . ':' . str_pad($data->end_minute, 2, '0', STR_PAD_LEFT) . ':00';\n \n $object->store(); // stores the object\n \n TTransaction::close(); // close the transaction\n \n TScript::create(\"Template.closeRightPanel()\");\n \n $posAction = new TAction(array('FullCalendarSplitView', 'onReload'));\n $posAction->setParameter('target_container', 'adianti_div_content');\n $posAction->setParameter('view', $data->view);\n $posAction->setParameter('date', $data->start_date);\n \n // shows the success message\n new TMessage('info', TAdiantiCoreTranslator::translate('Record saved'), $posAction);\n }\n catch (Exception $e) // in case of exception\n {\n // shows the exception error message\n new TMessage('error', $e->getMessage());\n \n // undo all pending operations\n TTransaction::rollback();\n }\n }",
"public function store(Request $request)\n { \n $event = new Event;\n $event->id = $request->id;\n $event->name = $request->name;\n $event->startDate= $request->startDate;\n $event->startTime= $request->startTime;\n $event->endDate= $request->endDate;\n $event->endTime= $request->endTime;\n $event->location = $request->location;\n $event->detail = $request->detail;\n $event->image_src = $request->image_src;\n $event->save();\n return ['message' => $event];\n }",
"public function emit($event, $parameters);"
] | [
"0.5790317",
"0.5744322",
"0.5651529",
"0.5641642",
"0.5621258",
"0.560686",
"0.5526483",
"0.5516685",
"0.5459593",
"0.53452635",
"0.53317636",
"0.51465344",
"0.5091057",
"0.50896096",
"0.5042483",
"0.50397635",
"0.50018495",
"0.49942774",
"0.49684134",
"0.4965024",
"0.4951837",
"0.4930787",
"0.49267155",
"0.4921911",
"0.49205318",
"0.49146944",
"0.48853725",
"0.4873547",
"0.48734435",
"0.4854031",
"0.48487103",
"0.48487067",
"0.48245394",
"0.48222184",
"0.481915",
"0.48121157",
"0.481135",
"0.48097858",
"0.47985727",
"0.47924775",
"0.47730243",
"0.47635743",
"0.47547647",
"0.47538644",
"0.4752265",
"0.4739667",
"0.47384658",
"0.47199258",
"0.4712166",
"0.47089207",
"0.47077653",
"0.47006282",
"0.47003525",
"0.4695075",
"0.4689013",
"0.46872553",
"0.4676154",
"0.4672773",
"0.4672399",
"0.46692497",
"0.46686155",
"0.46600553",
"0.46585336",
"0.46570337",
"0.46560517",
"0.46545836",
"0.46538338",
"0.46461803",
"0.46433768",
"0.46381348",
"0.4629639",
"0.46245635",
"0.46241766",
"0.4622048",
"0.4615572",
"0.46101868",
"0.4606193",
"0.46025875",
"0.45996034",
"0.4596936",
"0.45745403",
"0.45686808",
"0.45609492",
"0.45577767",
"0.45447725",
"0.45346314",
"0.45340523",
"0.4529569",
"0.4525944",
"0.45255664",
"0.4519201",
"0.45093244",
"0.4508682",
"0.44998047",
"0.44974643",
"0.44967768",
"0.44963172",
"0.44918802",
"0.4491696",
"0.44901672"
] | 0.7300139 | 0 |
Marks this aggregate as deleted, instructing a Repository to remove that aggregate at an appropriate time | protected function markAsDeleted()
{
$this->deleted = true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function delete(): void\n {\n $this->record(new AgendaWasDeleted($this->identity));\n }",
"public function delete() \n {\n DomainWatcher::addDeletedObject($this);\n }",
"public function setDeleted() {}",
"public function deleteWithType(string $aggregateType): void;",
"public function delete()\n {\n persistableCollection::getInstance($this->resourceName)->deleteObject($this);\n }",
"public function deleted() {\n // TODO Implement this\n }",
"public function delete() {\n\t\t$this->deleted = true;\n\t}",
"public function deleteObject(){\n $qry = new DeleteEntityQuery($this);\n $this->getContext()->addQuery($qry);\n //$this->removeFromParentCollection();\n }",
"public function afterDeleteCommit(): void\n {\n }",
"public function delete() {\r\n\t\t$this->getMapper()->delete($this);\r\n\t}",
"public function delete()\n {\n $this->repository->delete($this->id);\n }",
"public function delete()\n {\n $this->invalidateCache();\n parent::delete();\n }",
"public function delete()\n {\n $this->invalidateCache();\n parent::delete();\n }",
"public function onAfterDelete() {\n\t\tparent::onAfterDelete();\n\n\t\tif($this->isPublished()) {\n\t\t\t$this->doUnpublish();\n\t\t}\n\t}",
"public function delete()\n {\n $this->_validateModifiable();\n\n $this->_getDataSource()->delete($this);\n }",
"function delete() {\n $this->that->delete($this->id, $this->name);\n $this->put_id();\n }",
"public static function onAfterDelete(ORM\\Event $event): void\n\t{\n\t\tModel\\Price::clearSettings();\n\t}",
"protected function deleteInternal() {\n $this->isdeleted = 1;\n $this->deleteduser = \\Yii::$app->user->getId();\n $this->deletedtime = date(\"Y-m-d H:i:s\");\n \n return parent::updateInternal(['isdeleted', 'deletedtime', 'deleteduser']);\n }",
"protected function entityDelete(){\n // TODO: deal with errors\n // delete from api\n $deleted = $this->resourceService()->delete($this->getId());\n }",
"function delete() {\n\t\n\t\t$this->getMapper()->delete($this);\n\t\t\n\t}",
"abstract public static function deleted($callback);",
"public function deleted($artistAlias)\n {\n parent::deleted($artistAlias);\n\n Log::Info(\"Deleted artist alias\", ['artist alias' => $artistAlias->id, 'artist' => $artistAlias->artist->id]);\n }",
"public function markDeleted()\n\t{\n\t\t$this->unpost();\n\n\t\treturn parent::markDeleted();\n\t}",
"public function addDeleted()\n {\n try {\n $date = new DateTime();\n $this->deleted_at = $date->format('Y-m-d H:i:s');\n $this->deleted_by = 0;\n } catch (Exception $e) {\n print_r($e);\n }\n }",
"public function after_delete() {}",
"protected function afterDelete()\r\n {\r\n }",
"protected function afterDelete()\n {\n }",
"public function forceDeleted(Building $building)\n {\n //\n }",
"public function delete() {}",
"public function delete() {}",
"public function delete() {}",
"public function delete() {}",
"public final function delete() {\n }",
"public function deleted(Transaction $transaction)\n {\n //\n }",
"public function deleted(Transaction $transaction)\n {\n //\n }",
"public function deleted(Transaction $transaction)\n {\n //\n }",
"public function deleted(Transaction $transaction)\n {\n //\n }",
"public function _delete()\n\t {\n\t \t$this->notifyObservers(__FUNCTION__);\n\t }",
"public function deleting($artistAlias)\n {\n parent::deleting($artistAlias);\n\t\t\n Log::Debug(\"Deleting artist alias\", ['artist alias' => $artistAlias->id, 'artist' => $artistAlias->artist->id]);\n\n\t\t$artist = $artistAlias->artist;\n $artist->updated_by = Auth::user()->id;\n\t\t$artist->save();\n\t\t$artist->touch();\n }",
"public function deleted(Exchange $exchange)\n {\n //\n }",
"public function forceDeleted(Region $region)\n {\n //\n }",
"protected function _afterDeleteCommit()\n {\n parent::_afterDeleteCommit();\n\n /** @var \\Mage_Index_Model_Indexer $indexer */\n $indexer = Mage::getSingleton('index/indexer');\n\n $indexer->processEntityAction($this, $this::ENTITY, Mage_Index_Model_Event::TYPE_DELETE);\n }",
"protected function _afterDeleteCommit()\n {\n parent::_afterDeleteCommit();\n\n /** @var \\Mage_Index_Model_Indexer $indexer */\n $indexer = Mage::getSingleton('index/indexer');\n\n $indexer->processEntityAction($this, self::ENTITY, Mage_Index_Model_Event::TYPE_DELETE);\n }",
"public function delete(){\n $this->update(['deleted_by', Auth::user()->id]);\n return parent::delete();\n }",
"function annotation_grade_item_delete($annotation) {\n global $CFG;\n require_once($CFG->libdir.'/gradelib.php');\n\n return grade_update('mod/annotation', $annotation->course, 'mod', 'annotation',\n $annotation->id, 0, null, array('deleted' => 1));\n}",
"public function deleted(Article $article)\n {\n //\n }",
"public function delete() {\n $this->isdeleted = 1;\n $this->deleteduser = \\Yii::$app->user->getId();\n $this->deletedtime = date(\"Y-m-d H:i:s\");\n \n return parent::update(FALSE, ['isdeleted', 'deletedtime', 'deleteduser']);\n }",
"public function deleted(EntryInterface $entry)\n {\n //$this->dispatch(new DeleteStream($entry));\n\n parent::deleted($entry);\n }",
"public function markDeleted()\r\n\t{\r\n\t\tparent::markDeleted();\r\n\t\treturn $this;\r\n\t}",
"protected function _postDelete() {}",
"protected function _postDelete() {}",
"public function onAfterDelete()\n {\n parent::onAfterDelete();\n $this->createAudit($this->owner->toMap());\n }",
"public function delete()\n {\n parent::delete();\n $this->azure->deleteMessage($this->job);\n }",
"public function deleted(SaleService $saleService)\n {\n //\n }",
"public function markForDelete() {\n\t$this->_markForDelete = true;\n }",
"public function deleted(Attachment $attachment)\n {\n \n UnSearchableJob::dispatch($attachment->name);\n \n }",
"public function purge()\n {\n $this->owner()->where('current_organization_id', $this->id)\n ->update(['current_organization_id' => null]);\n\n $this->users()->where('current_organization_id', $this->id)\n ->update(['current_organization_id' => null]);\n\n $this->users()->detach();\n\n $this->delete();\n }",
"public function instance_deleted() {\n $this->purge_all_definitions();\n @rmdir($this->filestorepath);\n }",
"public function delete()\n {\n DB::transaction(function () {\n $this->devedores()->delete();\n parent::delete();\n });\n }",
"public function deleted(Contribute $contribute)\n {\n //\n }",
"public function deleted(Auditable $model)\n {\n Auditor::execute($model->setAuditEvent('deleted'));\n }",
"function delete() {\n\t\t$this->status = \"deleted\";\n\t\t$sql = \"UPDATE \" . POLARBEAR_DB_PREFIX . \"_articles SET status = '$this->status' WHERE id = '$this->id'\";\n\t\tglobal $polarbear_db;\n\t\t$polarbear_db->query($sql);\n\n\t\t$args = array(\n\t\t\t\"article\" => $this,\n\t\t\t\"objectName\" => $this->getTitleArticle()\n\t\t);\n\t\tpb_event_fire(\"pb_article_deleted\", $args);\n\n\t\treturn true;\n\t}",
"public function forceDeleted(Contribute $contribute)\n {\n //\n }",
"public function forceDeleted(SaleService $saleService)\n {\n //\n }",
"public function delete() {\r\n }",
"public function forceDeleted(Apartment $apartment)\n {\n //\n }",
"public function undelete(EntityAccess $entity): void\n {\n $entityManager = $this->entityFactory->getEntityManager();\n \n $metadata = $entityManager->getClassMetaData(get_class($entity));\n $metadata->setIdGeneratorType(ClassMetadata::GENERATOR_TYPE_NONE);\n $metadata->setIdGenerator(new AssignedGenerator());\n \n $versionField = $metadata->versionField;\n $metadata->setVersioned(false);\n $metadata->setVersionField(null);\n \n $entityManager->persist($entity);\n $entityManager->flush();\n \n $metadata->setVersioned(true);\n $metadata->setVersionField($versionField);\n }",
"protected function _preDelete() {}",
"public function isDeleted() {}",
"public function isDeleted() {}",
"protected function delete() {\n\t}",
"public abstract function delete();",
"public function forceDeleted(MilestoneInvestment $milestoneInvestment)\n {\n //\n }",
"function after_delete() {}",
"public function afterDelete()\n {\n if ($this->image) $this->image->delete();\n if ($this->reindex) Slide::reindex();\n }",
"public function deleted(RideShareTransaction $rideShareTransaction)\n {\n //\n }",
"public function delete(AggregateRootInterface $object)\n {\n }",
"public function forceDeleted(Exchange $exchange)\n {\n //\n }",
"public function forceDeleted(Article $article)\n {\n //\n }",
"public function markForDeletion(): void\n {\n $this->oldFileName = $this->fileName;\n $this->fileName = null;\n }",
"public function isDeleted();",
"public function isDeleted();",
"public function deleted(Contract $contract)\n {\n //\n }",
"public function handleDeleted(Deleted $event): void\n {\n $entity = $event->entity();\n\n $this->scheduleRemovingOldDocuments($entity);\n\n $this->elasticsearchManager->commit();\n }",
"function delete()\n {\n $this->getDi()->hook->call(Am_Event::INVOICE_BEFORE_DELETE, array('invoice' => $this));\n foreach ($this->getItems() as $item) {\n $item->delete();\n }\n // $this->deleteFromRelatedTable('?_invoice_log'); // not good idea to delete\n $this->deleteFromRelatedTable('?_invoice_payment');\n $this->deleteFromRelatedTable('?_invoice_refund');\n $this->deleteFromRelatedTable('?_invoice_item_option');\n foreach ($this->getAccessRecords() as $access) {\n $access->delete();\n }\n parent::delete();\n $this->getUser()->checkSubscriptions(true);\n $this->getDi()->hook->call(Am_Event::INVOICE_AFTER_DELETE, array('invoice' => $this));\n return $this;\n }",
"public function deleted(Credit $credit)\n {\n\n }",
"public function forceDeleted(Brand $brand)\n {\n //\n }",
"public function deleted(Order $order)\n\t{\n\t\t//\n\t}",
"public function deleted(Order $order)\n\t{\n\t\t//\n\t}",
"public function delete($event): void;",
"public function forceDeleted(RideShareTransaction $rideShareTransaction)\n {\n //\n }",
"public function forceDeleted(Investor $investor)\n {\n //\n }",
"public function onAfterUnpublish()\n {\n\t\t$this->flushChanges();\n\t}",
"public function delete($entity){ \n //TODO: Implement remove record.\n }",
"public function deleted(Order $Order)\n {\n //code...\n }",
"public function deleted(Order $order)\n {\n //\n }",
"public function deleted(Order $order)\n {\n //\n }",
"public function testDeleted()\n {\n // Make a tag, then request it's deletion\n $tag = $this->resources->tag();\n $result = $this->writedown->getService('api')->tag()->delete($tag->id);\n\n // Attempt to grab the tag from the database\n $databaseResult = $this->writedown->getService('entityManager')\n ->getRepository('ByRobots\\WriteDown\\Database\\Entities\\Tag')\n ->findOneBy(['id' => $tag->id]);\n\n $this->assertTrue($result['success']);\n $this->assertNull($databaseResult);\n }",
"public function deleted(Region $region)\n {\n $this->cache->cacheFlush([\n ['allRegions'],\n ['allRegionChildren'],\n ['RegionAncestors']\n ]);\n \\Artisan::call('search:init');\n }",
"public function delete(RegistrationPostDeletedEvent $event): void\n {\n }"
] | [
"0.6455938",
"0.63599354",
"0.6344514",
"0.63070667",
"0.6233095",
"0.6202059",
"0.6080586",
"0.5922379",
"0.5883026",
"0.5741899",
"0.5735816",
"0.57260025",
"0.57260025",
"0.56892633",
"0.56830907",
"0.5680832",
"0.5678253",
"0.56656677",
"0.5664621",
"0.56623995",
"0.5660626",
"0.56603783",
"0.564813",
"0.5645014",
"0.5613604",
"0.561255",
"0.56083745",
"0.5604371",
"0.5596508",
"0.5596508",
"0.5596002",
"0.5595389",
"0.5591916",
"0.55839074",
"0.55839074",
"0.55839074",
"0.55839074",
"0.5582763",
"0.5576112",
"0.55641806",
"0.5559126",
"0.5549221",
"0.554866",
"0.55418795",
"0.55191195",
"0.5507858",
"0.54962283",
"0.5495217",
"0.54886466",
"0.5479169",
"0.5478993",
"0.54739743",
"0.5472355",
"0.5465265",
"0.5463306",
"0.54627705",
"0.5454293",
"0.5446838",
"0.5440284",
"0.5438949",
"0.54351217",
"0.54308426",
"0.54092735",
"0.53954434",
"0.5382072",
"0.53766185",
"0.53747904",
"0.5367302",
"0.536468",
"0.5364374",
"0.5362279",
"0.53617316",
"0.5359468",
"0.5349374",
"0.5349363",
"0.53446597",
"0.5342677",
"0.5336457",
"0.5329795",
"0.5327969",
"0.53191847",
"0.53191847",
"0.53125244",
"0.53111",
"0.5307609",
"0.53031397",
"0.53031176",
"0.53022844",
"0.53022844",
"0.53009564",
"0.52969366",
"0.52967435",
"0.5279844",
"0.52792376",
"0.52752113",
"0.5273386",
"0.5273386",
"0.5270262",
"0.526826",
"0.52655786"
] | 0.6168649 | 6 |
Retrieves the header name | public function getName(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function GetHeader()\n {\n return $this->HeaderName;\n }",
"function GetHeader() {\n return ($this->ses['response']['header']);\n }",
"public function getHeader(): string\n {\n return $this->header;\n }",
"public function getHeader()\n {\n return $this->getFilename();\n }",
"public function get_header() {\n $this->do_header();\n return $this->c_header;\n }",
"public function get_header() {\n\t\tif (!isset($this->header)) {\n\t\t\t$this->get_array();\n\t\t}\n\t\treturn $this->header;\n\t}",
"function get_header()\n\t{\n\t\treturn $this->header;\n\t}",
"public function get_header()\n\t{\n\t\t$header\t\t=\t$this->lang->get_line( \"controller_title\", $this->table );\n\t\tif ( !$header )\n\t\t{\n\t\t\t$header\t\t=\t( substr( strtolower( get_class( $this ) ), 0, strrpos( strtolower( get_class( $this ) ), \"_\" , -1 ) ) );\n\t\t\t$controller\t=\t$this->singlepack->get_controller( $header );\n\t\t\tif ( !$controller )\n\t\t\t{\n\t\t\t\treturn ucfirst( substr( strtolower( get_class( $this ) ), 0, strrpos( strtolower( get_class( $this ) ), \"_\" , -1 ) ) );\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn $controller->nome; // str_replace( '_', ' ', $header );\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn $header;\n\t\t}\n\t}",
"public function header($name) {\n return isset($this->headers[$name])? $this->headers[ucfirst($name)] : null;\n }",
"function getHeader( $headername )\r\n\t{\r\n\t\tif( $this->debug & DBGTRACE ) echo \"getHeaderName( $headername )\\n\";\r\n\t\treturn $this->responseHeaders[$headername];\r\n\t}",
"public function getHeader()\n {\n return $this->content['header'];\n }",
"function getHeader()\n {\n return (string) $this->_sHeader;\n }",
"function getHeader()\n {\n return (string) $this->_sHeader;\n }",
"public function getHeader()\n\t{\n\t\treturn $this->header;\n\t}",
"public function getHeader(string $name): string;",
"public function getTagsHeaderName()\n {\n return $this->headerFormatter->getTagsHeaderName();\n }",
"public function getHeader ()\n {\n return $this->header;\n }",
"public function getHeader() {\n return (isset($this->header)) ? $this->header : '';\n }",
"public function getHeader()\n {\n return $this->header;\n }",
"public function getHeader()\n {\n return $this->header;\n }",
"public function getHeader()\n {\n return $this->header;\n }",
"public function getHeader()\n {\n return $this->header;\n }",
"public function getHeader()\n {\n return $this->header;\n }",
"public function getHeader();",
"public function getHeader();",
"public function getHeader();",
"public function getHeaderString () {\n\t\t$headers = array();\n\t\tforeach ($this->_headers as $name => $value) {\n\t\t $headers[] = $name . \": \" . $value;\n\t\t}\n\t\treturn implode(\"\\r\\n\", $headers);\n\t}",
"public function getHeader() {\n return $this->header;\n }",
"public function getHeader() {\r\n return $this->__header;\r\n }",
"public static function getHeader()\n {\n return self::$_header;\n }",
"public function getHeader(string $name);",
"public function getHeader($name);",
"function getHeader()\n\t{\n\t\treturn $this->header;\n\t}",
"function getresponseheader($header = false){\n $headers = $this->getLastResponseHeaders();\n foreach ($headers as $head){\n if ( is_integer(strpos ($head, $header) )){\n $hstart = strpos ($head, \": \");\n $head = trim(substr($head,$hstart+2,100));\n return $head;\n }\n }\n }",
"public function getHeader()\n {\n return $this->Header;\n }",
"public function getHeader(){\n\t\treturn $this->header;\n\t}",
"public function getHeader() {\n return $this->Header;\n }",
"public function requestheader() {\n return $this->info['request_header'];\n }",
"private function getParamHeader()\n {\n $header = $this->getMenuParams()->get( 'header', '' );\n return (string)$header;\n }",
"public function getHeader(string $header): string;",
"function getHeader($name){\n\t\t$name = strtoupper($name);\n\t\tforeach(array_keys($this->_Headers) as $_key){\n\t\t\tif(strtoupper($_key)== strtoupper($name)){\n\t\t\t\treturn $this->_Headers[$_key];\n\t\t\t}\n\t\t}\n\t}",
"public function getHeaderString() {\n return $this->getPayload(FALSE);\n }",
"public function header()\n\t{\n\t\t$header = Request::current()->headers();\n\t\treturn $header;\n\t}",
"public function getHeader()\n {\n return $this->httpHeader;\n }",
"public function get_header($key)\n {\n }",
"public function getHeader() {\n }",
"public function getHeader()\r\n {\r\n return $this->headers;\r\n }",
"public function getRequestHeader()\n {\n return $this->get(self::REQUEST_HEADER);\n }",
"public function header() {\n return $this->header;\n }",
"public function getHeader($header) {\n\n $normalized = strtolower($header);\n\n if (isset($this->headers[$normalized])) {\n return $this->headers[$normalized]['value'];\n }\n\n return '';\n\n }",
"protected function get_header_name(string $p_name): string {\n return $this->header_map[strtolower($p_name)] ?? $p_name;\n }",
"public function getHeader()\n {\n $p = $this->path . '/HEADER.html';\n if (is_file($p))\n return file_get_contents($p);\n return '';\n }",
"public function getHeader($headerName);",
"public function getHeader($name)\n {\n }",
"public function getHeader($name)\n {\n }",
"private function header($name = '')\r\n {\r\n static $header = null;\r\n\r\n if (is_null($header)) {\r\n $header = [];\r\n $server = $_SERVER;\r\n\r\n foreach ($server as $key => $val) {\r\n if (0 === strpos($key, 'HTTP_')) {\r\n $key = str_replace('_', '-', strtolower(substr($key, 5)));\r\n $header[$key] = $val;\r\n }\r\n }\r\n\r\n if (isset($server['CONTENT_TYPE'])) {\r\n $header['content-type'] = $server['CONTENT_TYPE'];\r\n }\r\n\r\n if (isset($server['CONTENT_LENGTH'])) {\r\n $header['content-length'] = $server['CONTENT_LENGTH'];\r\n }\r\n\r\n $header = array_change_key_case($header);\r\n }\r\n\r\n if ('' === $name) {\r\n return $header;\r\n }\r\n\r\n $name = str_replace('_', '-', strtolower($name));\r\n\r\n return $header[$name] ?? null;\r\n }",
"public function getHeader()\n {\n return isset($this->header) ? $this->header : null;\n }",
"public function getHeader()\n {\n return isset($this->header) ? $this->header : null;\n }",
"public function getHeader($key)\n {\n return isset ($this->headers[$key]) ? $this->headers [$key] : '';\n }",
"public function getHeader($name = null) {}",
"function get_header($name = \\null, $args = array())\n {\n }",
"public function getAttributeName()\n {\n return 'InternetMessageHeader';\n }",
"protected function getHeader(string $key): string\n {\n $key = strtolower($key);\n\n return isset($this->headers[$key]) ? $this->headers[$key] : \"\";\n }",
"public function getFullHeader()\n {\n }",
"public function header($name)\n\t{\n\t\treturn isset($this->_headers[$name]) ? $this->_headers[$name] : null;\n\t}",
"public static function getHeader($name = null) {}",
"public function header($key)\n {\n if (isset($this->headers[$key])) {\n return $this->headers[$key];\n }\n return null;\n }",
"public function getHeader($key) {\n\t\treturn $this->response_headers [$key];\n\t}",
"public function getHeader($name)\n {\n if (preg_match('/^'.$name.': (.*)$/m',$this->response,$result))\n {\n return trim($result[1]);\n }\n else\n {\n return false;\n }\n }",
"public function getHeader($name)\n {\n if (preg_match('/^'.$name.': (.*)$/m',$this->response,$result))\n {\n return trim($result[1]);\n }\n else\n {\n return false;\n }\n }",
"public function getHeader($name) {\r\n\t\t$name = $this->_normalizeHeader ( $name );\r\n\t\tforeach ( $this->headers as $header ) {\r\n\t\t\tif ($header ['name'] == $name) {\r\n\t\t\t\treturn $header ['value'];\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public function header($name)\n {\n return $this->connection->header($name);\n }",
"public function getHeader($name)\n {\n if (isset($this->headers[$name])) {\n return $this->headers[$name];\n }\n }",
"public function getPageHeader()\n\t{\n\t\treturn $this->_pageHeader;\n\t}",
"public function getTitle()\n\t{\n\t\treturn $this->getAttribute('headerTitle', '');\n\t}",
"protected function getHeaderName($index)\n {\n return sprintf('word/header%d.xml', $index);\n }",
"public function getHeader($key) {\n if (isset($this->httpHeaders[$key])) {\n return $this->httpHeaders[$key];\n }\n return null;\n }",
"public function getHeader($name)\r\n {\r\n // TODO: Implement getHeader() method.\r\n }",
"function getHeader() {\n return '';\n }",
"public function getHeader($headerKey);",
"public function getHeader($key){\n $key = FW_String::strtolower($key);\n \n if($this->getHeader($key)){\n return $this->header[$key];\n }\n \n return null;\n }",
"public function get_header(string $p_name) {\n $orig_name = $this->get_header_name($p_name);\n\n return $this->headers[$orig_name] ?? null;\n\n }",
"protected function headerName($name)\n {\n return strtr(strtoupper($name), '-', '_');\n }",
"protected function getRequestName()\n {\n $title = $this->extractText('h1');\n $title = str_replace('PHP RFC:', '', $title);\n $title = str_replace('RFC:', '', $title);\n $title = str_replace('Request for Comments:', '', $title);\n\n return trim($title);\n }",
"public function getAuthorizationHeader()\n\t{\n\t\tif ( is_null($this->_authenticationInstance) ) {\n\t\t\treturn '';\n\t\t}\n\t\treturn $this->_authenticationInstance->getAuthorizationHeader();\n\t}",
"public function getHeader($name)\r\n {\r\n $name = strtolower($name);\r\n if ($this->hasHeader($name)) {\r\n return $this->headers[$name];\r\n }\r\n return NUll;\r\n }",
"static function header($name)\n\t{\n\t\t$key = 'HTTP_' . str_replace('-', '_', strtoupper($name));\n\t\tif (isset($_SERVER[$key])) {\n\t\t\treturn $_SERVER[$key];\n\t\t}\n\t\treturn null;\n\t}",
"public function getHeader($name)\n {\n // TODO: Implement getHeader() method.\n }",
"public function getHeader($key)\n {\n return $this->getRequest()->getHeader($key);\n }",
"public function getHeaderCode() {\n\n\t\t$scripts = (array) $this->getMeta( App::s()->getPrefix( '_scripts' ), array() );\n\n\t\treturn isset( $scripts['header'] ) ? $scripts['header'] : '';\n\n\t}",
"protected function getHeaderName(string $name): string\n\t{\n\t\treturn $this->headerMap[strtolower($name)] ?? $name;\n\t}",
"protected function getHeader($header)\n {\n $this->initialize();\n $header = str_replace('-','_',$header);\n return isset($this->parsed['headers'][$header]) ? $this->parsed['headers'][$header] : null;\n }",
"public function getHeader($header)\n {\n foreach ($this->headers as $key => $value)\n {\n if (str_replace('-', '_', strtolower($key)) == str_replace('-', '_', strtolower($header)))\n {\n return $value;\n }\n }\n }",
"public function header($name = null)\n {\n if ($name === null) {\n return $this->_getHeaders();\n }\n $header = $this->getHeader($name);\n if (count($header) === 1) {\n return $header[0];\n }\n\n return $header;\n }",
"public function getHeaders()\r\n {\r\n return isset($this->data[self::HEADER_INDEX]) ? $this->data[self::HEADER_INDEX] : null;\r\n }",
"public function getExternalHeader()\n {\n $parts = explode('\\\\', $this->namespace);\n return 'ext/' . strtolower($parts[0] . DIRECTORY_SEPARATOR . str_replace('\\\\', DIRECTORY_SEPARATOR, $this->namespace) . DIRECTORY_SEPARATOR . $this->name) . '.zep';\n }",
"protected function makeHeader()\n {\n $header = '';\n foreach(self::$headers as $k => $v) {\n $header .= $k . \": \" . $v . \"\\r\\n\";\n }\n\n return $header;\n }",
"public function getHeader($key);",
"protected function _getExportHeaders()\n {\n return Mage::helper('storelocator')->getHeaderFile();\n }",
"public function __get($name)\n {\n $name = strtolower(preg_replace('/([A-Z])/', '-$1', $name));\n\n return isset($this->headers[$name]) ? $this->headers[$name] : NULL;\n }",
"public function header($name = null) {\n\t\t\tif($name === null) {\n\t\t\t\treturn $this->headers;\n\t\t\t} elseif(array_key_exists($name, $this->headers)) {\n\t\t\t\treturn $this->headers[$name];\n\t\t\t} else {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}"
] | [
"0.8567895",
"0.76895946",
"0.7636202",
"0.7605889",
"0.7583854",
"0.75554377",
"0.74483895",
"0.7374315",
"0.73455065",
"0.7338316",
"0.73331475",
"0.7329789",
"0.7329789",
"0.7318487",
"0.7305961",
"0.7301965",
"0.72643113",
"0.7261471",
"0.7259218",
"0.7259218",
"0.7259218",
"0.7259218",
"0.7259218",
"0.72583675",
"0.72583675",
"0.72583675",
"0.7217066",
"0.71963817",
"0.7191401",
"0.71831393",
"0.7179528",
"0.71636516",
"0.7159351",
"0.7141084",
"0.7122057",
"0.7109185",
"0.71042293",
"0.70908266",
"0.7074206",
"0.7069923",
"0.70632124",
"0.7059086",
"0.7037254",
"0.70164156",
"0.6999905",
"0.69926614",
"0.6980057",
"0.6925616",
"0.69229853",
"0.6897381",
"0.6891973",
"0.6879538",
"0.6874774",
"0.68724364",
"0.68724364",
"0.6845759",
"0.6828538",
"0.6828538",
"0.6821782",
"0.6815392",
"0.68068093",
"0.680416",
"0.6780753",
"0.6746628",
"0.6731129",
"0.67279506",
"0.6725095",
"0.6723804",
"0.67237866",
"0.67237866",
"0.67054296",
"0.6703091",
"0.67023754",
"0.6697623",
"0.6685611",
"0.668004",
"0.6666384",
"0.6635877",
"0.6634999",
"0.66274625",
"0.6600869",
"0.66008234",
"0.65664816",
"0.65560657",
"0.65549374",
"0.65543157",
"0.65498686",
"0.6548746",
"0.6548178",
"0.65397125",
"0.6529465",
"0.65275574",
"0.65197873",
"0.6507036",
"0.64992493",
"0.64886093",
"0.6471212",
"0.6464008",
"0.645409",
"0.6447923",
"0.64430636"
] | 0.0 | -1 |
Retrieves the header value | public function getValue(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function GetHeader() {\n return ($this->ses['response']['header']);\n }",
"public function getHeader(){\n\t\treturn $this->header;\n\t}",
"public function getHeader();",
"public function getHeader();",
"public function getHeader();",
"public function get_header() {\n\t\tif (!isset($this->header)) {\n\t\t\t$this->get_array();\n\t\t}\n\t\treturn $this->header;\n\t}",
"function getHeader()\n {\n return (string) $this->_sHeader;\n }",
"function getHeader()\n {\n return (string) $this->_sHeader;\n }",
"public function getHeader ()\n {\n return $this->header;\n }",
"public function getHeader() {\r\n return $this->__header;\r\n }",
"public function getHeader()\n\t{\n\t\treturn $this->header;\n\t}",
"function getHeader()\n\t{\n\t\treturn $this->header;\n\t}",
"public function getHeader() {\n return $this->header;\n }",
"public function getHeader()\n {\n return $this->content['header'];\n }",
"public static function getHeader()\n {\n return self::$_header;\n }",
"function get_header()\n\t{\n\t\treturn $this->header;\n\t}",
"public function getHeader()\n {\n return $this->header;\n }",
"public function getHeader()\n {\n return $this->header;\n }",
"public function getHeader()\n {\n return $this->header;\n }",
"public function getHeader()\n {\n return $this->header;\n }",
"public function getHeader()\n {\n return $this->header;\n }",
"public function getHeader() {\n return $this->Header;\n }",
"public function getHeader()\n {\n return $this->Header;\n }",
"public function get_header() {\n $this->do_header();\n return $this->c_header;\n }",
"public function getHeader(): string\n {\n return $this->header;\n }",
"public function GetHeader()\n {\n return $this->HeaderName;\n }",
"public function getHeader()\n {\n return isset($this->header) ? $this->header : null;\n }",
"public function getHeader()\n {\n return isset($this->header) ? $this->header : null;\n }",
"public function getHeader()\r\n {\r\n return $this->headers;\r\n }",
"public function getHeader()\n {\n return $this->httpHeader;\n }",
"public function getHeader() {\n return (isset($this->header)) ? $this->header : '';\n }",
"public function header() {\n return $this->header;\n }",
"public function getHeader() {\n }",
"function getresponseheader($header = false){\n $headers = $this->getLastResponseHeaders();\n foreach ($headers as $head){\n if ( is_integer(strpos ($head, $header) )){\n $hstart = strpos ($head, \": \");\n $head = trim(substr($head,$hstart+2,100));\n return $head;\n }\n }\n }",
"public function getHeader($name) {\r\n\t\t$name = $this->_normalizeHeader ( $name );\r\n\t\tforeach ( $this->headers as $header ) {\r\n\t\t\tif ($header ['name'] == $name) {\r\n\t\t\t\treturn $header ['value'];\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public function getHeader($header) {\n\n $normalized = strtolower($header);\n\n if (isset($this->headers[$normalized])) {\n return $this->headers[$normalized]['value'];\n }\n\n return '';\n\n }",
"public function getHeader(string $header): string;",
"public function getHeaderValue();",
"public function getHeaderValue()\n {\n }",
"public function header()\n\t{\n\t\t$header = Request::current()->headers();\n\t\treturn $header;\n\t}",
"public function getHeaderString() {\n return $this->getPayload(FALSE);\n }",
"protected function get_header_value($header, $token) {\n\n /*\n * Init header value container\n */\n $header_value = FALSE;\n\n /*\n * Init language / content encoding containers\n */\n $content_encoding = FALSE;\n $content_language = FALSE;\n\n /*\n * Remove any trailing WSP\n */\n $header = trim($header);\n\n /*\n * Unfolding according to RFC 2822, chapter 2.2.3\n */\n $header = str_replace(\"\\r\\n \", \" \", $header);\n $header = str_replace(\"\\r\\n\\t\", \" \", $header);\n\n /*\n * Unfolding with compatibility with some non-standard mailers\n * that only add \\n instead of \\r\\n\n */\n $header = str_replace(\"\\n \", \" \", $header);\n $header = str_replace(\"\\n\\t\", \" \", $header);\n\n /*\n * explode headers on new line\n */\n $rows = explode(\"\\n\", $header);\n\n /*\n * standard delimiter is ':', match '=' only for following properties\n */\n $delimiter = $this->get_header_delimiter($token);\n\n /*\n * convert token to uppercase to perform case-insensitive search\n */\n $ci_token = strtoupper($token);\n\n /*\n * loop each row searching for supplied token\n */\n foreach ($rows as &$row) {\n\n /*\n * trim whitespaces\n */\n $row = trim($row);\n\n /*\n * split row by ';' to manage multiple key=>value pairs within same row\n */\n $items = explode(';', $row);\n\n foreach ($items as &$item) {\n\n $item = trim($item);\n\n /*\n * Parameter Value Continuations\n * \n * Long MIME media type or disposition parameter values do not interact\n * well with header line wrapping conventions. In particular, proper\n * header line wrapping depends on there being places where linear\n * whitespace (LWSP) is allowed, which may or may not be present in a\n * parameter value, and even if present may not be recognizable as such\n * since specific knowledge of parameter value syntax may not be\n * available to the agent doing the line wrapping. The result is that\n * long parameter values may end up getting truncated or otherwise\n * damaged by incorrect line wrapping implementations.\n * \n * A mechanism is therefore needed to break up parameter values into\n * smaller units that are amenable to line wrapping. Any such mechanism\n * MUST be compatible with existing MIME processors. This means that\n * \n * (1) the mechanism MUST NOT change the syntax of MIME media\n * type and disposition lines, and\n * \n * (2) the mechanism MUST NOT depend on parameter ordering\n * since MIME states that parameters are not order\n * sensitive. Note that while MIME does prohibit\n * modification of MIME headers during transport, it is\n * still possible that parameters will be reordered when\n * user agent level processing is done.\n * \n * The obvious solution, then, is to use multiple parameters to contain\n * a single parameter value and to use some kind of distinguished name\n * to indicate when this is being done. And this obvious solution is\n * exactly what is specified here: The asterisk character (\"*\") followed\n * by a decimal count is employed to indicate that multiple parameters\n * are being used to encapsulate a single parameter value. The count\n * starts at 0 and increments by 1 for each subsequent section of the\n * parameter value. Decimal values are used and neither leading zeroes\n * nor gaps in the sequence are allowed.\n * \n * The original parameter value is recovered by concatenating the\n * various sections of the parameter, in order. For example, the\n * content-type field\n * \n * Content-Type: message/external-body; access-type=URL;\n * URL*0=\"ftp://\";\n * URL*1=\"cs.utk.edu/pub/moore/bulk-mailer/bulk-mailer.tar\"\n * \n * is semantically identical to\n * \n * Content-Type: message/external-body; access-type=URL;\n * URL=\"ftp://cs.utk.edu/pub/moore/bulk-mailer/bulk-mailer.tar\"\n * \n * Note that quotes around parameter values are part of the value\n * syntax; they are NOT part of the value itself. Furthermore, it is\n * explicitly permitted to have a mixture of quoted and unquoted\n * continuation fields.\n * \n * \n * \n * =================================================================\n * \n * \n * Combining Character Set, Language, and Parameter Continuations\n * \n * Character set and language information may be combined with the\n * parameter continuation mechanism. For example:\n * \n * Content-Type: application/x-stuff\n * title*0*=us-ascii'en'This%20is%20even%20more%20\n * title*1*=%2A%2A%2Afun%2A%2A%2A%20\n * title*2=\"isn't it!\"\n * \n * Note that:\n * \n * (1) Language and character set information only appear at\n * the beginning of a given parameter value.\n * \n * (2) Continuations do not provide a facility for using more\n * than one character set or language in the same\n * parameter value.\n * \n * (3) A value presented using multiple continuations may\n * contain a mixture of encoded and unencoded segments.\n * \n * (4) The first segment of a continuation MUST be encoded if\n * language and character set information are given.\n * \n * (5) If the first segment of a continued parameter value is\n * encoded the language and character set field delimiters\n * MUST be present even when the fields are left blank.\n * \n * https://tools.ietf.org/html/rfc2231\n */\n\n \n // filename*=UTF-8''Sito%20Feste%20dell%E2%80%99unita%CC%80.docx\n // filename*0*=UTF-8''OVIDIO-TECH-RELAZIONE-DEL-REVISORE-LEGALE-DEI-CONTI-31\n \n // UTF8 decode filename\n if(strpos($item, 'UTF-8') !== false && strpos($item, 'filename') !== false){\n $res = array();\n preg_match('/=UTF-8\\'\\'(.*)$/', $item, $res);\n $item = $res[1];\n $filename_tmp = urldecode($item);\n $item = 'filename=\"'. $filename_tmp . '\"';\n }\n\n if (preg_match(\"/^{$ci_token}\\*0\\*{$delimiter}/i\", $item)) {\n /*\n * - multi-line property\n * - first occurrence\n * - language and encoding supplied (they could be empty though)\n * - must decode value\n * \n * example: title*0*=us-ascii'en'This%20is%20even%20more%20\n */\n list($key, $value) = explode($delimiter, $item, 2);\n\n /*\n * Split content on:\n * 1. content encoding\n * 2. language\n * 3. value\n */\n $exploded = explode(\"'\", $value);\n\n $content_encoding = strtoupper($exploded[0]);\n $content_language = strtoupper($exploded[1]);\n\n $value = implode(\"'\", array_slice($exploded, 2));\n\n /*\n * Content encoding supplied?\n */\n if (strlen($content_encoding) > 0 && $content_encoding != 'UTF-8') {\n $value = mb_convert_encoding($value, 'UTF-8', $content_encoding);\n }\n\n /*\n * Decode ASCII chars (if present)\n */\n $value = urldecode($value);\n } elseif (preg_match(\"/^{$ci_token}\\*\\d\\*{$delimiter}/i\", $item)) {\n\n /*\n * - multi-line property\n * - following occurrence\n * - language and encoding (if any) are supplied within first occurrence\n * - must decode value\n * \n * example: title*1*=%2A%2A%2Afun%2A%2A%2A%20\n */\n list($key, $value) = explode($delimiter, $item, 2);\n\n /*\n * Content encoding supplied?\n */\n if (strlen($content_encoding) > 0 && $content_encoding != 'UTF-8') {\n $value = mb_convert_encoding($value, 'UTF-8', $content_encoding);\n }\n\n /*\n * Decode ASCII chars (if present)\n */\n $value = urldecode($value);\n } elseif (preg_match(\"/^{$ci_token}\\*\\d{$delimiter}/i\", $item)) {\n\n /*\n * - multi-line property\n * - must NOT decode value\n * \n * example: title*2=\"isn't it!\"\n */\n list($key, $value) = explode($delimiter, $item, 2);\n } elseif (preg_match(\"/^{$ci_token}{$delimiter}/i\", $item)) {\n /*\n * - single-line property\n * - must NOT decode value\n * \n * example: title=myTitle\n */\n list($key, $value) = explode($delimiter, $item, 2);\n } else {\n /*\n * Doesn't match!\n */\n continue;\n }\n\n /*\n * remove trailing / leading:\n * - spaces \n * - quotes\n * - double quotes\n * from $value\n */\n $value = trim($value);\n\n if (strlen($value) > 2 && substr($value, 0, 1) == \"'\" && substr($value, -1) == \"'\") {\n $value = trim($value, \"'\");\n } elseif (strlen($value) > 2 && substr($value, 0, 1) == \"\\\"\" && substr($value, -1) == \"\\\"\") {\n $value = trim($value, \"\\\"\");\n }\n\n /*\n * Init header value to empty string (if needed) \n */\n if (strlen($header_value) == 0) {\n $header_value = '';\n }\n\n $header_value .= $value;\n }\n }\n\n return $header_value;\n }",
"public function getHeader($header)\n {\n foreach ($this->headers as $key => $value)\n {\n if (str_replace('-', '_', strtolower($key)) == str_replace('-', '_', strtolower($header)))\n {\n return $value;\n }\n }\n }",
"public function getValueForHeader($header)\n {\n switch ($header){\n case 'ID':\n return $this->id;\n case 'Ponto':\n return $this->title;\n case 'Endereço':\n return $this->address;\n case 'Cidade':\n return $this->city . ' - ' . $this->state;\n }\n }",
"private function getParamHeader()\n {\n $header = $this->getMenuParams()->get( 'header', '' );\n return (string)$header;\n }",
"public function requestheader() {\n return $this->info['request_header'];\n }",
"protected function getHeader($header)\n {\n $this->initialize();\n $header = str_replace('-','_',$header);\n return isset($this->parsed['headers'][$header]) ? $this->parsed['headers'][$header] : null;\n }",
"public function getHeader()\n {\n return $this->getFilename();\n }",
"public function get_header($key)\n {\n }",
"public function getValueForHeader($header)\n {\n switch ($header) {\n\n\n case \"Descrição\":\n return $this->descricao;\n }\n }",
"public function getValueForHeader($header)\n {\n switch ($header){\n case '#':\n return $this->id;\n case 'Fatura':\n return $this->fatura_join()->first()->nome;\n case 'Ordem Serviço':\n return $this->ordem_servico_join()->first()->nome;\n }\n }",
"function getHeader( $headername )\r\n\t{\r\n\t\tif( $this->debug & DBGTRACE ) echo \"getHeaderName( $headername )\\n\";\r\n\t\treturn $this->responseHeaders[$headername];\r\n\t}",
"public function getHeader($key){\n $key = FW_String::strtolower($key);\n \n if($this->getHeader($key)){\n return $this->header[$key];\n }\n \n return null;\n }",
"public function getHeader($headerKey);",
"public function getValueForHeader($header)\n {\n switch ($header) {\n case '#':\n return $this->id;\n case 'Descrição':\n return $this->description;\n }\n }",
"public function header($key)\n {\n if (isset($this->headers[$key])) {\n return $this->headers[$key];\n }\n return null;\n }",
"public function getRequestHeader()\n {\n return $this->get(self::REQUEST_HEADER);\n }",
"public function get($header)\n {\n }",
"public function getHeader($key) {\n if (isset($this->httpHeaders[$key])) {\n return $this->httpHeaders[$key];\n }\n return null;\n }",
"public function getHeaderString () {\n\t\t$headers = array();\n\t\tforeach ($this->_headers as $name => $value) {\n\t\t $headers[] = $name . \": \" . $value;\n\t\t}\n\t\treturn implode(\"\\r\\n\", $headers);\n\t}",
"public function getHeader()\n {\n $this->withHeader = true;\n if (ftell($this->handle) == 0) {\n $this->header = $this->read();\n }\n return $this->header;\n }",
"public function getHeader()\n {\n $p = $this->path . '/HEADER.html';\n if (is_file($p))\n return file_get_contents($p);\n return '';\n }",
"public function getHeaderValue() {\n return (\n $this->name.'='.\n ($this->value === '' ? 'deleted' : $this->value).\n ($this->expires !== 0 ? '; expires='.gmdate('D, d-M-Y H:i:s \\G\\M\\T', $this->expires) : '').\n ($this->path !== '' ? '; path='.$this->path : '').\n ($this->domain !== '' ? '; domain='.$this->domain : '').\n ($this->secure ? '; secure' : '')\n );\n }",
"public function getHeader() \r\n {\r\n return $this->_bagHeader; \r\n }",
"public function getFullHeader()\n {\n }",
"public function getHeaderData() {}",
"public function header()\n {\n return $this->headerRequested;\n }",
"public function getHeader($header)\n {\n return isset($this->headers[$header]) ? $this->headers[$header] : null;\n }",
"public function getHeader($key);",
"public function getHeader(string $name): string;",
"public function getHeader($key) {\n\t\treturn $this->response_headers [$key];\n\t}",
"public function getHeader($headerName);",
"public function getHeader($name)\n {\n if (preg_match('/^'.$name.': (.*)$/m',$this->response,$result))\n {\n return trim($result[1]);\n }\n else\n {\n return false;\n }\n }",
"public function getHeader($name)\n {\n if (preg_match('/^'.$name.': (.*)$/m',$this->response,$result))\n {\n return trim($result[1]);\n }\n else\n {\n return false;\n }\n }",
"public function getHeader($name);",
"public function getHeader(string $name);",
"public function header($name) {\n return isset($this->headers[$name])? $this->headers[ucfirst($name)] : null;\n }",
"public function getPageHeader()\n\t{\n\t\treturn $this->_pageHeader;\n\t}",
"public function offsetGet($offset)\n {\n return $this->headers[$offset];\n }",
"function getHeader($name){\n\t\t$name = strtoupper($name);\n\t\tforeach(array_keys($this->_Headers) as $_key){\n\t\t\tif(strtoupper($_key)== strtoupper($name)){\n\t\t\t\treturn $this->_Headers[$_key];\n\t\t\t}\n\t\t}\n\t}",
"public function getHeader($name) {\n if (!$this->headers->hasHeader($name)) {\n return null;\n }\n\n $header = $this->headers->getHeader($name);\n\n if (!is_array($header)) {\n return $header->getValue();\n }\n\n $values = array();\n foreach ($header as $h) {\n $values[] = $h->getValue();\n }\n\n return $values;\n }",
"public function getHeader($key)\n {\n return isset ($this->headers[$key]) ? $this->headers [$key] : '';\n }",
"private function getHeader() : object {\n return imap_rfc822_parse_headers($this->currentEmail);\n }",
"public function getHeaders()\r\n {\r\n return isset($this->data[self::HEADER_INDEX]) ? $this->data[self::HEADER_INDEX] : null;\r\n }",
"function getHeader($header, $loc = '') {\n\tglobal $sql;\n\t$sql = \"SELECT header FROM \" . $loc . \"snapshot_headers WHERE id=\".$header;\n\t$query = mysql_query($sql);\n\tcheckDBError($sql);\n\tif ($result = mysql_fetch_array($query))\n\t\treturn $result['header'];\n\treturn \"\";\n}",
"function getHeader($ch, $header) {\r\n\t\t$i = strpos($header, ':');\r\n\t\tif (!empty($i)) {\r\n\t\t\t$key = str_replace('-', '_', strtolower(substr($header, 0, $i)));\r\n\t\t\t$value = trim(substr($header, $i + 2));\r\n\t\t\t$this->http_header[$key] = $value;\r\n\t\t}\t\t\r\n\t\treturn strlen($header);\r\n\t}",
"public final function headers()\n {\n return $this->_header;\n }",
"public function getHeader(): array {\n\t\treturn $this->_header;\n\t}",
"function getHeader($ch, $header) {\n $i = strpos($header, ':');\n if (!empty($i)) {\n $key = str_replace('-', '_', strtolower(substr($header, 0, $i)));\n $value = trim(substr($header, $i + 2));\n $this->http_header[$key] = $value;\n }\n return strlen($header);\n }",
"public function getValueForHeader($header)\n {\n switch ($header) {\n case '#':\n return $this->id;\n case 'Autor':\n return $this->author->name;\n case 'Título':\n if (file_exists($this->zip_file)) {\n $route = route('books.download', ['id' => $this->id]);\n return \"<a href=\\\"{$route}\\\" target=\\\"_blank\\\">{$this->title}</a>\";\n } else {\n return $this->title;\n }\n case 'Subtítulo':\n return $this->subtitle;\n case 'Preço':\n return $this->price;\n case 'Categorias':\n return $this->formCategoriesNameAttribute();\n // return $this->categories()->pluck('name');\n }\n }",
"public function getHeader($name)\r\n {\r\n $name = strtolower($name);\r\n if ($this->hasHeader($name)) {\r\n return $this->headers[$name];\r\n }\r\n return NUll;\r\n }",
"public function getHeader($name)\n {\n if (isset($this->headers[$name])) {\n return $this->headers[$name];\n }\n }",
"public function get_var() {\r\n\t\treturn $this->header_vars;\r\n\t}",
"public function getHeaderRandom()\r\n\t{\r\n\t\treturn $this->headers[SONIC_HEADER__RANDOM];\r\n\t}",
"public function getHeaderDate()\r\n\t{\r\n\t\treturn $this->headers[SONIC_HEADER__DATE];\r\n\t}",
"public function getHeader($header)\n {\n return $this->wrapped->getHeader($header);\n }",
"public function header($key = NULL)\n\t{\n\t\tif ($this->executed)\n\t\t{\n\t\t\tif ($key === NULL)\n\t\t\t\treturn $this->header;\n\t\t\telseif (array_key_exists($key, $this->header))\n\t\t\t\treturn $this->header[$key];\n\t\t}\n\n\t\treturn NULL;\n\t}",
"function getHeader($ch, $header) {\n $i = strpos($header, ':');\n if (!empty($i)) {\n $key = str_replace('-', '_', strtolower(substr($header, 0, $i)));\n $value = trim(substr($header, $i + 2));\n $this->http_header[$key] = $value;\n }\n return strlen($header);\n }",
"function getHeader($ch, $header) {\n\t\t$i = strpos($header, ':');\n\t\tif (!empty($i)) {\n\t\t\t$key = str_replace('-', '_', strtolower(substr($header, 0, $i)));\n\t\t\t$value = trim(substr($header, $i + 2));\n\t\t\t$this->http_header[$key] = $value;\n\t\t}\n\t\t\n\t\treturn strlen($header);\n\t}",
"public function get_header($param = null)\n\t{\n\t\treturn\n\t\t\tis_null($param)\n\t\t\t? $this->header_info\n\t\t\t: isset($this->header_info[$param])\n\t\t\t\t? $this->header_info[$param]\n\t\t\t\t: false;\n\t}",
"function getHeader($ch, $header) {\n\t\t$i = strpos($header, ':');\n\t\tif (!empty($i)) {\n\t\t\t$key = str_replace('-', '_', strtolower(substr($header, 0, $i)));\n\t\t\t$value = trim(substr($header, $i + 2));\n\t\t\t$this->http_header[$key] = $value;\n\t\t}\n\t\treturn strlen($header);\n\t}"
] | [
"0.7875334",
"0.78291184",
"0.77661765",
"0.77661765",
"0.77661765",
"0.7740645",
"0.7717945",
"0.7717945",
"0.7695466",
"0.7681195",
"0.76694906",
"0.7660063",
"0.7658685",
"0.7647285",
"0.7628768",
"0.7627286",
"0.76238763",
"0.76238763",
"0.76238763",
"0.76238763",
"0.76238763",
"0.7610816",
"0.75766015",
"0.7546658",
"0.7546622",
"0.75307465",
"0.73212177",
"0.73212177",
"0.730708",
"0.7296088",
"0.7279922",
"0.72591615",
"0.72411686",
"0.7153272",
"0.70946336",
"0.70570743",
"0.7048859",
"0.7038826",
"0.70241904",
"0.69714653",
"0.6939955",
"0.6923491",
"0.6893882",
"0.68906474",
"0.6887346",
"0.68725383",
"0.68710303",
"0.68654245",
"0.68642336",
"0.68410105",
"0.6815583",
"0.6804786",
"0.679462",
"0.6747576",
"0.67374235",
"0.6696291",
"0.6694802",
"0.66493",
"0.6642041",
"0.6638929",
"0.6632982",
"0.6629596",
"0.6593658",
"0.659026",
"0.658443",
"0.65214205",
"0.65172446",
"0.6511487",
"0.65047604",
"0.6496883",
"0.64968723",
"0.64945316",
"0.64933896",
"0.64933896",
"0.648678",
"0.64771354",
"0.646906",
"0.64610726",
"0.64465135",
"0.6441139",
"0.6419051",
"0.6414729",
"0.64145255",
"0.63900125",
"0.63428104",
"0.6330527",
"0.6325989",
"0.6315069",
"0.6314737",
"0.6313219",
"0.63086534",
"0.62792367",
"0.62747914",
"0.6233416",
"0.6227936",
"0.62259585",
"0.62251544",
"0.6220722",
"0.62196827",
"0.621866",
"0.62110424"
] | 0.0 | -1 |
Creates and return a string representation of header | public function __toString(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private function buildHeaderString()\n {\n $out = '';\n foreach($this->headers as $header => $value) {\n $out .= \"$header: $value\\r\\n\";\n }\n return $out;\n }",
"protected function makeHeader()\n {\n $header = '';\n foreach(self::$headers as $k => $v) {\n $header .= $k . \": \" . $v . \"\\r\\n\";\n }\n\n return $header;\n }",
"public function getHeaderString () {\n\t\t$headers = array();\n\t\tforeach ($this->_headers as $name => $value) {\n\t\t $headers[] = $name . \": \" . $value;\n\t\t}\n\t\treturn implode(\"\\r\\n\", $headers);\n\t}",
"public function __toString() {\n\n $payload = (string) $this->payload;\n\n if (empty($payload) || $payload === \"{}\") {\n return (string) $this->header;\n }\n return sprintf('%s.%s', $this->header, $payload);\n }",
"public function toString()\n\t{\n\t\t$str = \"\";\n\t\tforeach($this->headers as $header)\n\t\t{\n\t\t\tforeach ($header[\"values\"] as $value)\n\t\t\t{\n\t\t\t\t$str .= $header[\"name\"] . \": \" . $value . \"\\r\\n\";\n\t\t\t}\n\t\t}\n\n\t\treturn $str;\n\t}",
"public function compileHeader()\r\r\n {\r\r\n $header = [];\r\r\n foreach($this->requestHeaders as $k => $v) {\r\r\n $header[] = $k . ': ' . $v;\r\r\n }\r\r\n\r\r\n return implode(\"\\r\\n\", $header);\r\r\n }",
"protected function assembleHeaders(){\n\t\t$finalHeader = array();\n\t\tforeach($this->headers as $header => $value){\n\t\t\t$finalHeader[] = sprintf(\"%s: %s\", ucwords($header), trim($value));\n\t\t}\n\t\treturn implode(\"\\r\\n\", $finalHeader);\n\t}",
"public function getHeaderString() {\n return $this->getPayload(FALSE);\n }",
"public function __toString() {\r\n $ret = '';\r\n\r\n foreach($this->headers as $key => $value) {\r\n $ret .= $key . ': ' . $value . \"\\n\";\r\n }\r\n\r\n return rtrim($ret);\r\n }",
"private function header2String($header)\n {\n $str = '';\n if (is_array($header)) foreach ($header as $k=>$v) {\n if (is_numeric($k)) continue;\n $str .= $k . ': ' . $v . \"\\r\\n\";\n } else {\n $str = $header;\n }\n return $str;\n }",
"public function buildHeader ()\n {\n $header = array();\n foreach ($this->header as $param => $value) {\n if ($value != \"\") {\n array_push($header, $param . ': ' . $value);\n }\n }\n return $header;\n }",
"public function __toString()\n {\n $headers = $this->headers();\n\n $buffer = [];\n foreach ($headers as $k => $v) {\n $buffer[] = $k . ': ' . $v;\n }\n\n return implode(\"\\t\", $buffer);\n }",
"private function generateHeader() {\n $rounds = $this->rounds;\n $flag = (($this->sha1 == true AND function_exists(\"sha1\")) ? 1 : 0) << 7;\n \n return substr(base64_encode(pack(\"N*\", $rounds | $flag << 24)), 0, 6);\n }",
"public function buildHeader($object = null): string\n {\n $characters = $this->getControlCharacters();\n\n return $characters['header']['start']['string'].\n $characters['prefix']['start']['string'].\n $this->getPrefix().\n $characters['prefix']['stop']['string'].\n $characters['field']['start']['string'].\n 'version'.\n $characters['field']['delimiter']['string'].\n self::getVersionForPrefix().\n $characters['field']['stop']['string'].\n (is_null($object) ? '' :\n $characters['field']['start']['string'].\n 'type'.\n $characters['field']['delimiter']['string'].\n gettype($object).'['.(is_object($object) ? get_class($object) : 'native').']'.\n $characters['field']['stop']['string']\n ).\n $characters['header']['stop']['string'];\n }",
"public function getHeader(): string\n {\n return $this->header;\n }",
"private function createHeader() {\r\n\t\t$headerHtml = $this->getHeaderHtml();\r\n\t\t//Guardo el archivo del header\r\n\t\t$htmlPath = $this->localTmpFolder . $this->fileName . '_currentHeader' . '.html';\r\n\t\t$fh = fopen($htmlPath, 'w');\r\n\t\tfwrite($fh, $headerHtml);\r\n\t\tfclose($fh);\r\n\t\treturn $headerHtml;\r\n\t}",
"public function __toString(): string\n {\n $result = [];\n foreach ($this->headers as $name => $value) {\n $result[] = $name . ': ' . $value;\n }\n\n return join(\"\\r\\n\", $result);\n }",
"public function getHeader()\n {\n return <<<EOF\n<info>\nWW WW UU UU RRRRRR FFFFFFF LL \nWW WW UU UU RR RR FF LL \nWW W WW UU UU RRRRRR FFFF LL \n WW WWW WW UU UU RR RR FF LL \n WW WW UUUUU RR RR FF LLLLLLL \n \n</info>\n\nEOF;\n\n}",
"public function getFormatedHeaders(): string{\n $headers = 'MIME-Version: 1.0' . \"\\r\\n\";\n $headers .= 'Content-type: text/html; charset=iso-8859-1' . \"\\r\\n\";\n\n if (!empty($this->_to)){\n $headers .= 'To: ' . implode(\", \", $this->_to) . \"\\r\\n\";\n }\n if (!empty($this->from)){\n $headers .= 'From: ' . $this->from . \"\\r\\n\";\n }\n if (!empty($this->replyTo)){\n $headers .= 'Reply-To: ' . $this->replyTo . \"\\r\\n\";\n }\n if (!empty($this->_cc)){\n $headers .= 'Cc: ' . implode(\", \", $this->_cc) . \"\\r\\n\";\n }\n if (!empty($this->_bcc)){\n $headers .= 'Bcc: ' . implode(\", \", $this->_bcc) . \"\\r\\n\";\n }\n $headers .= 'X-Mailer: PHP/' . phpversion().\"\\r\\n\";\n if (!empty($this->_headers)){\n $headers .= implode(\"\\r\\n\", $this->_headers).\"\\r\\n\";\n }\n \n return $headers;\n }",
"protected function generateHeader()\n\t{\n\t\t$header \t= [];\n\t\t$header[] \t= 'Authorization: Basic '.$this->credentials;\n\t\t$header[] \t= 'Content-Type: application/x-www-form-urlencoded;charset=UTF-8';\n\n\t\treturn $header;\n\t}",
"public function getHeaderValue() {\n return (\n $this->name.'='.\n ($this->value === '' ? 'deleted' : $this->value).\n ($this->expires !== 0 ? '; expires='.gmdate('D, d-M-Y H:i:s \\G\\M\\T', $this->expires) : '').\n ($this->path !== '' ? '; path='.$this->path : '').\n ($this->domain !== '' ? '; domain='.$this->domain : '').\n ($this->secure ? '; secure' : '')\n );\n }",
"public function getHeader(string $header): string;",
"public function getHeaderLine(): string\n {\n $headerLine = sprintf('%s=%s', rawurlencode($this->name), rawurlencode($this->value));\n if ($this->expireTime) {\n $headerLine .= ';Expires=' . gmdate(\\DateTime::COOKIE, $this->getExpire());\n $headerLine .= ';Max-Age=' . $this->expireTime;\n }\n\n if ($this->path) {\n $headerLine .= ';Path=' . $this->path;\n }\n\n if ($this->domain) {\n $headerLine .= ';Domain=' . $this->domain;\n }\n\n if ($this->secure) {\n $headerLine .= ';Secure';\n }\n\n if ($this->httponly) {\n $headerLine .= ';HttpOnly';\n }\n return $headerLine;\n }",
"protected function makeMailerHeaderString() {\n\t\treturn 'X-Mailer: ' . $this->_mailMailer . $this->_endString;\n\t}",
"public function to_header()\n {\n $out ='Authorization: OAuth realm=\"\"';\n $total = array();\n foreach ($this->parameters as $k => $v)\n {\n if (substr($k, 0, 5) != \"oauth\") continue;\n if (is_array($v)) throw new OAuthException('Arrays not supported in headers');\n $out .= ',' . OAuthUtil::urlencode_rfc3986($k) . '=\"' . OAuthUtil::urlencode_rfc3986($v) . '\"';\n }\n return $out;\n }",
"function getHeader()\n {\n return (string) $this->_sHeader;\n }",
"function getHeader()\n {\n return (string) $this->_sHeader;\n }",
"public function getHeader();",
"public function getHeader();",
"public function getHeader();",
"protected function makeFileContentTransferEncodingHeaderString() {\n\t\treturn 'Content-transfer-encoding: ' . $this->_mailFileContentTransferEncoding . $this->_endString;\n\t}",
"protected function makeHeader()\n {\n }",
"function _generateHeaderInfo()\n {\n return '0504';\n }",
"public function format_for_header()\n {\n }",
"protected function makeMimeVersionHeaderString() {\n\t\treturn $this->_mailMimeVersion . $this->_endString;\n\t}",
"public function getHeaderString(): string\n {\n $parts = [\n $this->name . '=' . rawurlencode($this->value),\n $this->getMaxAgeString(),\n $this->getExpiresString(),\n $this->getDomainString(),\n $this->getPathString(),\n $this->getSecureString(),\n $this->getHttpOnlyString(),\n $this->getDomainString(),\n $this->getSameSiteString()\n ];\n \n // in this case, there is no callback supplied,\n // so all entries of array equal to FALSE will be removed\n $filteredParts = array_filter($parts);\n \n return implode('; ', $filteredParts);\n }",
"protected function makeUserAgentHeaderString() {\n\t\treturn 'User-Agent: ' . $this->_mailMailer . $this->_endString;\n\t}",
"public function get_header() {\n $this->do_header();\n return $this->c_header;\n }",
"public function getHeaderConcatPayloadString()\n {\n return $this->header->toBase64String() . \".\" . $this->payload->toBase64String();\n }",
"public function getFullHeader()\n {\n }",
"public function toHeaderValue() : string\n {\n return \\json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR);\n }",
"public function toHeaderValue() : string\n {\n return \\json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR);\n }",
"public function toHeaderValue() : string\n {\n return \\json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR);\n }",
"public function toHeaderValue() : string\n {\n return \\json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR);\n }",
"public function toHeaderValue() : string\n {\n return \\json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR);\n }",
"public function toHeaderValue() : string\n {\n return \\json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR);\n }",
"public function buildHeader() {\n $header['label'] = $this->t('Label');\n $header['workflow'] = $this->t('Workflow');\n $header['status'] = $this->t('Status');\n $header['transition'] = $this->t('Transitions');\n $header['roles'] = $this->t('Email Roles');\n $header['author'] = $this->t('Email Author');\n $header['emails'] = $this->t('Adhoc Emails');\n return $header + parent::buildHeader();\n }",
"function mime_make_header($headers) {\n\t\t$o = array();\n\t\tforeach($headers as $header => $value) {\n\t\t\t$o[] = ucfirst($header).\": \".wordwrap($value, 74, \"\\n\\t\", 1);\n\t\t}\n\t\treturn join(\"\\n\", $o);\n\t}",
"protected function makeDateHeaderString() {\n\t\t$timeZone = date(\"Z\");\n\t\t$op = ($timeZone[0] == '-') ? '-' : '+';\n\t\t$timeZone = abs($timeZone);\n\t\t$timeZone = floor($timeZone / 3600) * 100 + ($timeZone % 3600) / 60;\n\t\t$dateString = sprintf(\"%s %s%04d\", date(\"D, j M Y H:i:s\"), $op, $timeZone);\n\t\treturn \"Date: \" . $dateString . $this->_endString;\n\t}",
"public function toString()\n {\n $string = $this->headers->toString();\n $string .= $this->bodyToString();\n\n return $string;\n }",
"public function toString(): string\n\t{\n\t\t$aPkt = unpack('C*',$this->getData());\n\t\t$sReturn = \"Header | Type : \".$this->getPacketType().\" Port : \".$this->getPort().\" Control : \".$this->iCb.\" Pad : \".$this->iPadding.\" Seq : \".$this->iSeq.\" | Body |\".implode(\":\",$aPkt).\" |\";\n\t\treturn $sReturn;\t\n\t}",
"public function getHeader() {\n\t\tif (!empty($this->header)) {\n\t\t\t$this->header = preg_replace('%(\\r\\n|\\r|\\n)%', self::$crlf, $this->header);\n\t\t}\n\t\t\n\t\t$this->header .=\n\t\t\t'X-Priority: 3'.self::$crlf\n\t\t\t.'X-Mailer: WoltLab Community Framework Mail Package'.self::$crlf\t\t\t\t\t\t\t\t\t\n\t\t\t.'MIME-Version: 1.0'.self::$crlf\n\t\t\t.'From: '.$this->getFrom().self::$crlf\n\t\t\t.($this->getCCString() != '' ? 'CC:'.$this->getCCString().self::$crlf : '')\n\t\t\t.($this->getBCCString() != '' ? 'BCC:'.$this->getBCCString().self::$crlf : '');\t\t\t\t\t\n\t\t\t\n\t\tif (count($this->getAttachments())) {\n\t\t\t$this->header .= 'Content-Transfer-Encoding: 8bit'.self::$crlf;\n\t\t\t$this->header .= 'Content-Type: multipart/mixed;'.self::$crlf;\n\t\t\t$this->header .= \"\\tboundary=\".'\"'.$this->getBoundary().'\";'.self::$crlf;\n\t\t}\n\t\telse {\n\t\t\t$this->header .= 'Content-Transfer-Encoding: 8bit'.self::$crlf;\n\t\t\t$this->header .= 'Content-Type: '.$this->getContentType().'; charset='.CHARSET.self::$crlf;\n\t\t}\n\t\t\n\t\treturn $this->header;\n\t}",
"function _buildHeader($header, $mode = 'standard') {\n\n\t\tif (is_string($header)) {\n\t\t\treturn $header;\n\t\t} elseif (!is_array($header)) {\n\t\t\treturn false;\n\t\t}\n\n\t\t$returnHeader = '';\n\t\tforeach ($header as $field => $contents) {\n\n\t\t\tif (is_array($contents) && $mode == 'standard') {\n\t\t\t\t$contents = implode(',', $contents);\n\t\t\t}\n\n\t\t\tforeach ((array) $contents as $content) {\n\t\t\t\t$contents = preg_replace(\"/\\r\\n(?![\\t ])/\", \"\\r\\n \", $content);\n\t\t\t\t$field = $this->_escapeToken($field);\n\t\t\t\t$returnHeader .= $field.': '.$contents.$this->line_break;\n\t\t\t}\n\t\t}\n\n\t\treturn $returnHeader;\n\t}",
"private function getHeaderString(): string {\r\n //TODO: actually do multiple types of Authentication\r\n $headerString = \"OAuth \";\r\n\r\n $overloadedClientParams = $this->clientParams;\r\n $overloadedClientParams['oauth_signature'] = $this->getSignature();\r\n $paramCount = count($overloadedClientParams);\r\n $tracker = 0;\r\n foreach($overloadedClientParams as $key => $value){\r\n $headerString .= urlencode($key) . '=\"' . urlencode($value) . '\"';\r\n if (++$tracker !== $paramCount) {\r\n $headerString .= \", \";\r\n }\r\n }\r\n\r\n return $headerString;\r\n }",
"public function buildHeader()\r\n\t{\r\n\t\tif ($this->method == 'POST')\r\n\t\t{\r\n\t\t\t$header = 'POST '.$this->path.\" HTTP/1.0\\r\\n\";\r\n\t\t\t$header .= 'Host: '.$this->host.\"\\r\\n\";\r\n\t\t\t$header .= \"Content-type: application/x-www-form-urlencoded\\r\\n\";\r\n\t\t\t$header .= 'Content-length: '.Tools::strlen($this->data).\"\\r\\n\\r\\n\";\r\n\t\t\t$header .= $this->data;\r\n\t\t}\r\n\t\telseif ($this->method == 'GET')\r\n\t\t{\r\n\t\t\tif (Tools::strlen($this->path.$this->data) > 2048)\r\n\t\t\t\tCertissimLogger::insertLog(__METHOD__.' : '.__LINE__, 'Maximum length in get method reached('.Tools::strlen($this->path.$this->data).')');\r\n\t\t\t$header = 'GET '.$this->path.'?'.$this->data.\" HTTP/1.1\\r\\n\";\r\n\t\t\t$header .= 'Host: '.$this->host.\"\\r\\n\";\r\n\t\t\t$header .= \"Connection: close\\r\\n\\r\\n\";\r\n\t\t}\r\n\r\n\t\treturn ($header);\r\n\t}",
"public function authorizationHeader()\n {\n return sprintf('%s %s', $this->type, $this->accessToken);\n }",
"public function toHeaderValue() : string\n {\n return json_encode(ObjectSerializer::sanitizeForSerialization($this));\n }",
"public function toHeaderValue() : string\n {\n return json_encode(ObjectSerializer::sanitizeForSerialization($this));\n }",
"public function __toString()\n {\n return $this->rawHeaders . \"\\n\\n\" . $this->rawBody;\n }",
"public function get_header() {\n\t\tif (!isset($this->header)) {\n\t\t\t$this->get_array();\n\t\t}\n\t\treturn $this->header;\n\t}",
"private static function buildHeaderString(array $headers) {\n $return = '';\n foreach ($headers as $key => $value) {\n $return .= \"$key $value\\r\\n\";\n }\n return \"$return\\r\\n\\r\\n\";\n }",
"protected function makePriorityHeaderString() {\n\t\treturn 'X-Priority: ' . $this->_mailPriority . $this->_endString;\t\t\n\t}",
"public function getHeader() {\n return (isset($this->header)) ? $this->header : '';\n }",
"public function GetHeader()\n {\n return $this->HeaderName;\n }",
"private function writeHeader(): void\n {\n $record = 0x0014; // Record identifier\n\n /* removing for now\n // need to fix character count (multibyte!)\n if (strlen($this->phpSheet->getHeaderFooter()->getOddHeader()) <= 255) {\n $str = $this->phpSheet->getHeaderFooter()->getOddHeader(); // header string\n } else {\n $str = '';\n }\n */\n\n $recordData = StringHelper::UTF8toBIFF8UnicodeLong($this->phpSheet->getHeaderFooter()->getOddHeader());\n $length = strlen($recordData);\n\n $header = pack('vv', $record, $length);\n\n $this->append($header . $recordData);\n }",
"public function getHeader() {\n }",
"function get_header()\n\t{\n\t\treturn $this->header;\n\t}",
"private function compileHeader()\n\t\t{\n\t\t\t$query = @$this->getUrl(\"query\");\n\t\t\t$url = $this->getUrl(\"path\") . ($query == null ? null : \"?{$query}\");\n\t\t\t\n\t\t\t// Set data length\n\t\t\tif(($length = strlen($this->getBody())) > 0)\n\t\t\t\t$this->_headers->set(new HttpHeaderItem(\"Content-Length\", $length));\n\t\t\t\n\t\t\t// Sort and build header\n\t\t\t$headers = $this->convertHeadersToAssocArray($this->_headers);\n\t\t\tarsort($headers);\n\t\t\t\n\t\t\t$header = $this->getMethod() . \" {$url} \" . $this->getProtocolVersion() . self::HTTP_SEPERATOR;\n\t\t\t$header .= $this->mergeAssocArray(\": \", self::HTTP_SEPERATOR, $headers);\n\t\t\t\n\t\t\t// Return generated header\n\t\t\treturn $header . self::HTTP_DOUBLE_SEPERATOR;\n\t\t}",
"function getHeader() {\n return '';\n }",
"protected function dumpHeader() {}",
"public function __toString() {\n return chr($this->headerData) . chr($this->regionCode) . $this->startIp . \"\\0\" . $this->filter . \"\\0\";\n }",
"public function getHeaderData() {}",
"protected function getAuthorizationHeader(){\n return base64_encode(\n Controller\\Controller::getEnvironmentData('CCP_SSO_CLIENT_ID') . ':'\n . Controller\\Controller::getEnvironmentData('CCP_SSO_SECRET_KEY')\n );\n }",
"public function createVariableHeader(): string\n {\n return $this->getPacketIdentifierBinaryRepresentation();\n }",
"public function _header( $key, $value = null ) {\n\t\tif ( null === $value ) {\n\t\t\treturn $key;\n\t\t}\n\n\t\t$key = str_replace( ' ', '-', ucwords( str_replace( ' - ', ' ', $key ) ) );\n\n\t\treturn \"$key: $value\";\n\t}",
"public function build()\n {\n # Fixed Header\n # Control Packet Type\n $cmd = $this->getMessageType() << 4;\n\n $cmd |= ($this->reserved_flags & 0x0F);\n\n $header = chr($cmd) . $this->remaining_length_bytes;\n\n $header .= $this->buildVariableHeader();\n\n return $header;\n }",
"protected function makeSubjectHeaderString() {\n\t\tif(($this->_mailProtocol != 'mail') AND (!empty($this->_mailSubject))) { \n\t\t\treturn 'Subject: ' . $this->_mailSubject . $this->_endString;\n\t\t}\n\t\treturn '';\n\t}",
"private function getAuthHeader()\n {\n $credential = $this->apiContext->getCredential();\n\n $header = '<wsse:Security SOAP-ENV:mustUnderstand=\"1\" xmlns:wsse=\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd\">';\n $header .= '<wsse:UsernameToken wsu:Id=\"UsernameToken-9\" xmlns:wsu=\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd\">';\n $header .= '<wsse:Username>' . $credential->getUsername() . '</wsse:Username>';\n $header .= '<wsse:Password Type=\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText\">' . $credential->getPassword() . '</wsse:Password>';\n $header .= '</wsse:UsernameToken>';\n $header .= '</wsse:Security>';\n\n $headerbody = new \\SoapVar($header, XSD_ANYXML, null, null, null);\n return new \\SOAPHeader(self::PAYU_NAMESPACE, 'Security', $headerbody, true);\n }",
"protected function makeTextPlainContentTransferEncodingHeaderString() {\n\t\treturn 'Content-transfer-encoding: ' . $this->_mailTextPlainContentTransferEncoding . $this->_endString;\n\t}",
"public function buildHeader() {\n return [\n ['data' => t('Teaching format'), 'class' => ['align-middle']],\n ['data' => t('Event'), 'class' => ['align-middle']],\n ['data' => t('Tutor'), 'class' => ['align-middle']],\n ['data' => t('Location'), 'class' => ['align-middle']],\n ['data' => t('Room'), 'class' => ['align-middle']],\n [\n 'data' => t('Date/time'),\n 'field' => 'time.field_event_time_value',\n 'sort' => 'desc',\n 'class' => ['align-middle'],\n ],\n ['data' => t('Registration status'), 'class' => ['align-middle']],\n ];\n }",
"public function to_header($realm=null) {\n $first = true;\n\tif($realm) {\n $out = 'Authorization: OAuth realm=\"' . OAuthUtil::urlencode_rfc3986($realm) . '\"';\n $first = false;\n } else\n $out = 'Authorization: OAuth';\n\n $total = array();\n foreach ($this->parameters as $k => $v) {\n if (substr($k, 0, 5) != \"oauth\") continue;\n if (is_array($v)) {\n throw new OAuthException('Arrays not supported in headers');\n }\n $out .= ($first) ? ' ' : ',';\n $out .= OAuthUtil::urlencode_rfc3986($k) .\n '=\"' .\n OAuthUtil::urlencode_rfc3986($v) .\n '\"';\n $first = false;\n }\n return $out;\n }",
"protected function makeTextHtmlContentTransferEncodingHeaderString() {\n\t\treturn 'Content-transfer-encoding: ' . $this->_mailTextHtmlContentTransferEncoding . $this->_endString;\n\t}",
"protected function _getXMLHeader()\n {\n return '<?xml version=\"1.0\" encoding=\"' . self::XML_ENCODING . '\" ?>';\n }",
"private function getXMLHeader() {\n\t\treturn '<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\" ?>' . \"\\n\";\n\t}",
"private function build_header() {\n\t\t// if we've already got the cart ID, use it\n\t\t$header = self::fetch('cart_header', [':cart_id' => $this->id()]);\n\n\t\t$header['date_created'] = ck_datetime::datify(@$header['date_created']);\n\t\tif (!empty($header['date_updated'])) $header['date_updated'] = ck_datetime::datify($header['date_updated']);\n\n\t\t$this->skeleton->load('header', $header);\n\t}",
"public function header() {\n return $this->header;\n }",
"function getHeader()\n {\n $header = '';\n $header .= \"<head>\\n\";\n $header .= \"<meta http-equiv=\\\"Content-Type\\\" content=\\\"text/html; charset=$this->documentCharset\\\">\\n\";\n $header .= \"<meta name=\\\"ProgId\\\" content=\\\"Word.Document\\\">\\n\";\n $header .= \"<meta name=\\\"Generator\\\" content=\\\"$this->appName $this->appVersion\\\">\\n\";\n $header .= \"<meta name=\\\"Originator\\\" content=\\\"$this->appName $this->appVersion\\\">\\n\";\n $header .= \"<!--[if !mso]>\\n\";\n $header .= \"<style>\\n\";\n $header .= \"v\\:* {behavior:url(#default#VML);}\\n\";\n $header .= \"o\\:* {behavior:url(#default#VML);}\\n\";\n $header .= \"w\\:* {behavior:url(#default#VML);}\\n\";\n $header .= \".shape {behavior:url(#default#VML);}\\n\";\n $header .= \"</style>\\n\";\n $header .= \"<![endif]-->\\n\";\n \n $header .= \"<style>\\n\";\n $header .= \"<!--\\n\";\n $header .= \"/* Style Definitions */\\n\";\n \n $this->prepareDefaultHeader();\n \n $header .= $this->formatBuffer . \"\\n\";\n \n $header .= \"-->\\n\";\n $header .= \"</style>\\n\";\n $header .= \"</head>\\n\";\n \n return $header;\n }",
"public function getHeader() {\n return $this->Header;\n }",
"public function status_header() {\n return 'HTTP/1.1 ' . $this->status_code . ' ' . $this->status_meaning();\n }",
"public function getHeaderRaw(string $name): string;",
"public function getHeader($header) {\n\n $normalized = strtolower($header);\n\n if (isset($this->headers[$normalized])) {\n return $this->headers[$normalized]['value'];\n }\n\n return '';\n\n }",
"public function getHeader()\n {\n return $this->Header;\n }",
"public function __toString() \n {\n $headers = $this->getHeaders();\n if (count($headers) > 0) {\n array_walk(\n $headers, function (&$value, $key) {\n $value = ($value !== null && $value !== false) ? sprintf(\"%s: %s\", $key, $value) : null;\n }\n );\n }\n\n return sprintf(\n \"%s %s\\n%s\\n\",\n $this->getMethod(),\n $this->getEndpoint(),\n implode(\"\\n\", array_filter($headers))\n );\n }",
"public function createHeader() {\n\t\t$header = new PHPWord_Section_Header($this->_sectionCount);\n\t\t$this->_header = $header;\n\t\treturn $header;\n\t}",
"public function getHeader ()\n {\n return $this->header;\n }",
"public function getHeader()\n {\n $p = $this->path . '/HEADER.html';\n if (is_file($p))\n return file_get_contents($p);\n return '';\n }",
"public function getHeader()\n {\n return $this->header;\n }",
"public function getHeader()\n {\n return $this->header;\n }",
"public function getHeader()\n {\n return $this->header;\n }",
"public function getHeader()\n {\n return $this->header;\n }",
"public function getHeader()\n {\n return $this->header;\n }"
] | [
"0.8115835",
"0.8008297",
"0.7826503",
"0.7441749",
"0.73919845",
"0.7375235",
"0.7330166",
"0.7295407",
"0.7205809",
"0.7118909",
"0.7095242",
"0.70943624",
"0.70449674",
"0.70424074",
"0.7006436",
"0.6998963",
"0.69664806",
"0.6951746",
"0.69485366",
"0.6947877",
"0.69449306",
"0.6938066",
"0.6935321",
"0.69214",
"0.6904582",
"0.6893191",
"0.6893191",
"0.6886536",
"0.6886536",
"0.6886536",
"0.6846127",
"0.68214685",
"0.68183166",
"0.6817368",
"0.67635083",
"0.67545825",
"0.67522323",
"0.671884",
"0.671667",
"0.6697208",
"0.66924095",
"0.66924095",
"0.66924095",
"0.66924095",
"0.66924095",
"0.66924095",
"0.66831833",
"0.66767555",
"0.6673643",
"0.66563714",
"0.66127247",
"0.6608219",
"0.65806246",
"0.6576525",
"0.6554091",
"0.65237474",
"0.65114707",
"0.65114707",
"0.65085673",
"0.6503747",
"0.6494083",
"0.64931923",
"0.6485926",
"0.64678466",
"0.6465105",
"0.64636153",
"0.64514655",
"0.6444206",
"0.6418109",
"0.64071083",
"0.6400428",
"0.63932073",
"0.6385529",
"0.6385424",
"0.63557446",
"0.63442916",
"0.63326573",
"0.6320913",
"0.631825",
"0.630781",
"0.62817943",
"0.6263362",
"0.62552476",
"0.6240542",
"0.6234074",
"0.622511",
"0.6216616",
"0.6184796",
"0.6165971",
"0.616458",
"0.6160969",
"0.6159306",
"0.6159287",
"0.61568624",
"0.61542785",
"0.61508274",
"0.61484194",
"0.61484194",
"0.61484194",
"0.61484194",
"0.61484194"
] | 0.0 | -1 |
Display a listing of the resource. | public function index(Request $request)
{
try {
$iso = $request->lang ? $request->lang : config('user.language_default');
$language = Language::where('iso', $iso)->first();
if ($language != null) {
$domain = request()->root();
$limit = $request->limit ? $request->limit : config('user.page_limit');
$data = place::where('language_id', $language->id)->paginate($limit);
foreach ($data as $imgs) {
foreach ($imgs->album as $i) {
$i->album = $domain . '/img/album/' . $i->album;
}
}
return response()->json($data, 200);
} else {
$data = "404 Not found";
return response()->json(["data" => $data], 404);
}
} catch (\Throwable $th) {
$data = "Server 500 error";
return response()->json(["data" => $data], 404);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function indexAction()\n {\n $limit = $this->Request()->getParam('limit', 1000);\n $offset = $this->Request()->getParam('start', 0);\n $sort = $this->Request()->getParam('sort', array());\n $filter = $this->Request()->getParam('filter', array());\n\n $result = $this->resource->getList($offset, $limit, $filter, $sort);\n\n $this->View()->assign($result);\n $this->View()->assign('success', true);\n }",
"public function listing();",
"function index() {\n\t\t$this->show_list();\n\t}",
"public function actionList() {\n $this->_getList();\n }",
"public function listAction()\n {\n $model = $this->_getPhotoModel();\n $entries = $model->fetchEntries($this->_getParam('page', 1));\n\n $this->view->url = 'http://' . $this->_request->getHttpHost() . $this->_request->getBaseUrl(); \n $this->view->paginator = $entries;\n }",
"public function index()\n {\n $items = Item::all();\n return ItemForShowResource::collection($items);\n }",
"public function index()\n {\n return Resource::collection(($this->getModel())::paginate(10));\n }",
"function index()\n\t{\n\t\t$this->_list();\n\t\t$this->display();\n\t}",
"public function listingAction(){\n if (!LoginHelper::isAdmin()){\n Router::redirect('home', '<p class=\"alert alert-danger\">Unauthorized</p>');\n }\n $this->view->render('patient/list', Patient::all());\n }",
"public function index()\n {\n //\n $list = $this->obj->all();\n\n return $this->render('index', compact('list'));\n }",
"public function action_index()\n\t{\n\t\t$this->template->title = 'Resources';\n\t\t$this->view = View::factory('admin/resource/index');\n\t\t$this->template->scripts[] = 'media/js/jquery.tablesorter.min.js';\n\t\t$this->template->scripts[] = 'media/js/admin/resource.js';\n\t\t\n\t\t$resources = Sprig::factory('resource')->load(NULL, FALSE);\n\t\tif (!empty($resources))\n\t\t{\n\t\t\t$this->view->resources = $resources->as_array();\n\t\t}\n\t}",
"function listing()\n\t\t{\n\t\t// en $this->_view->_listado para poder acceder a el desde la vista.\n\t\t\t$this->_view->_listado = $listado = $this->_instrumentoModel->getInstrumento();\n\t\t\t$this->_view->render('listing', '', '',$this->_sidebar_menu);\n\t\t}",
"public function listAction()\n {\n $em = $this->getDoctrine()->getManager();\n \n $todos = $em->getRepository(Todo::class)->findAll();\n \n return $this->render('todo/index.html.twig', array(\n 'todos' => $todos,\n ));\n }",
"public function index()\n\t{\n $this->authorize('list', Instance::class);\n\n\t\treturn $this->ok($this->repo->paginate($this->request->all()));\n\t}",
"public function actionRestList() {\n\t $this->doRestList();\n\t}",
"public function listing()\n\t{\n\t\t$hospitalID = $this->request->getSession()->read(\"hospital_id\") ? $this->request->getSession()->read(\"hospital_id\") : \"\";\n\t\t\n\t\t$patientMonitored = 1;\n\t\t$patientActive = 1;\n\t\t\n\t\t//GET ALL PATIENTS\n\t\t$patientsData = $this->Patients->allPatients($hospitalID,$patientMonitored,$patientActive);\n\t\t//GET ALL PATIENTS\n\t\t\n\t\t//echo \"<pre>\"; print_r($patientsData);die;\n\t\t$this->set(compact(\"patientsData\"));\n\t}",
"public function listAction()\n {\n $htmlpage = '<!DOCTYPE html>\n<html>\n <head>\n <meta charset=\"UTF-8\">\n <title>todos list!</title>\n </head>\n <body>\n <h1>todos list</h1>\n <p>Here are all your todos:</p>\n <ul>';\n \n $em = $this->getDoctrine()->getManager();\n $todos = $em->getRepository(Todo::class)->findAll();\n foreach($todos as $todo) {\n $htmlpage .= '<li>\n <a href=\"/todo/'.$todo->getid().'\">'.$todo->getTitle().'</a></li>';\n }\n $htmlpage .= '</ul>';\n\n $htmlpage .= '</body></html>';\n \n return new Response(\n $htmlpage,\n Response::HTTP_OK,\n array('content-type' => 'text/html')\n );\n }",
"public function index()\n {\n // Get Persons\n $person = Person::paginate(10);\n\n //Return collection of person as a resource\n return PersonResource::collection($person);\n }",
"public function listAction() {\n\t\t$this->view->title = $this->translator->translate(\"Invoice list\");\n\t\t$this->view->description = $this->translator->translate(\"Here you can see all the invoices.\");\n\t\t$this->view->buttons = array(array(\"url\" => \"/admin/invoices/new/\", \"label\" => $this->translator->translate('New'), \"params\" => array('css' => null)));\r\n\t\t$this->datagrid->setConfig ( Invoices::grid() )->datagrid ();\n\t}",
"public function listAll()\n\t{\n\t\t$this->render(self::PATH_VIEWS . '/list', [\n\t\t\t'pages' => $this->pagesDb->findAll('id', 'DESC'),\n\t\t]);\n\t}",
"public function list()\n {\n // récupérer les données : toutes les catégories enregistrées\n $productList = Product::findAll();\n\n $this->show('product/list', [\n 'productList' => $productList\n ]);\n }",
"public function index()\n {\n // CRUD -> Retrieve --> List\n // BREAD -> Browse Read Edit Add Delete\n // return Item::all();\n return view('list_items',compact('items'));\n }",
"public function index()\n {\n // Get manufacturers\n $manufacturers = Manufacturer::orderBy('created_at', 'desc')->paginate(15);\n\n // Return collection of manufacturers as a resource\n return ManufacturerResource::collection($manufacturers);\n }",
"public function index()\n {\n return ArtistResource::collection(Artist::orderBy('created_at', 'desc')->get());\n }",
"public function indexAction() {\n\t\t$page = intval($this->getInput('page'));\n\t\t$perpage = $this->perpage;\n\t\t\n\t\tlist(,$files) = Lock_Service_FileType::getAllFileType();\n\t\t$data = array();\n\t\tforeach ($files as $key=>$value) {\n\t\t\t$data[$key]['id'] = $value['id'];\n\t\t\t$data[$key]['title'] = $value['name'];\n\t\t}\n\t\tlist($total, $filetype) = Lock_Service_FileType::getList($page, $perpage);\n\t\t$this->assign('filetype', $filetype);\n\t\t$this->assign('pager', Common::getPages($total, $page, $perpage, $this->actions['listUrl'].'/?'));\n\t\t$this->assign('data', json_encode($data));\n\t}",
"public function listAction()\n {\n $qb = $this->getRepository()->queryAll();\n\n $view = new ImportListView;\n $view->imports = $qb->getQuery()->execute();\n\n return $this->templating->renderResponse('InfiniteImportBundle:Import:list.html.twig', array(\n 'data' => $view\n ));\n }",
"public function index()\n\t{\n\t\t//Return model all()\n\t\t$instances = $this->decorator->getListingModels();\n\n\t\treturn View::make($this->listingView, array(\n\t\t\t'instances' => $instances,\n\t\t\t'controller' => get_class($this), \n\t\t\t'modelName' => class_basename(get_class($this->decorator->getModel())),\n\t\t\t'columns' => $this->getColumnsForInstances($instances),\n\t\t\t'editable' => $this->editable\n\t\t));\n\t}",
"public function index()\n {\n return InfografiResources::collection(\n Infografi::orderBy('date', 'desc')->get()\n );\n }",
"public function listAction()\n\t {\n\t\t\t$this->_forward('index');\n \n\t\t}",
"public function index()\n {\n $this->list_view();\n }",
"public function index()\n {\n $this->list_view();\n }",
"public function index()\n {\n $this->list_view();\n }",
"public function listAction()\n {\n $defaults = array(\n 'page' => null,\n 'order' => null,\n 'limit' => null,\n 'offset' => null,\n 'filter' => array(),\n );\n $body = $this->getRequest()->getBody();\n $options = $body + $defaults;\n\n // Process the options\n if (is_string($options['order'])) {\n $options['order'] = array_map('trim', explode(',', $options['order']));\n }\n if (is_string($options['page'])) {\n $options['page'] = (int)$options['page'];\n }\n if (is_string($options['limit'])) {\n $options['limit'] = (int)$options['limit'];\n }\n if (is_string($options['offset'])) {\n $options['offset'] = (int)$options['offset'];\n }\n $filter = $options['filter'];\n unset($options['filter']);\n\n $options = array_filter($options);\n\n return $this->getBinding()->find($filter, $options);\n }",
"public function index()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n /* Get the resources from the model */\n $resources = $this->resourcesList($this->model);\n\n /* Sets the view */\n if (view()->exists(\"admin.{$this->name}.index\")) {\n $view = \"admin.{$this->name}.index\";\n } else {\n $view = 'admin.includes.actions.index';\n }\n\n /* Display a listing of the resources */\n return view($view)\n ->with('resources', $resources)\n ->with('module', $this->module);\n }",
"public function index()\n {\n $modules = Module::all();\n return Resource::collection($modules);\n }",
"public function index()\n\t{\n\t\t$data['lists'] = $this->mdl_student->get_all();\n\t\t$this->template->set('title', 'Student Hostel List');\n\t\t$this->template->load('template', 'contents', 'student_hostel/student_hostel_list', $data);\n\t}",
"public function index()\n {\n // List all resources from user entity\n $users = User::all();\n\n return $this->showAll($users);\n }",
"public function index()\n {\n // Get todos\n $todos = Todo::orderBy('created_at', 'desc')->paginate(3);\n\n // Return collection of articles as a resource\n return TodoResource::collection($todos);\n }",
"public function index()\n {\n return CourseListResource::collection(\n Course::query()->withoutGlobalScope('publish')\n ->latest()->paginate()\n );\n }",
"public function index()\n {\n return Resources::collection(Checking::paginate());\n }",
"public function index()\n {\n $cars = Car::paginate(15);\n return CarResource::collection($cars);\n }",
"public function index()\n {\n // Get articles\n $articles = Article::orderBy('created_at', 'desc')->paginate(5);\n\n // Return collection of articles as a resource\n return ArticleResource::collection($articles);\n }",
"public function index()\n {\n $authors = Author::paginate(10);\n\n return AuthorResource::collection($authors);\n }",
"public function index()\n {\n //Get Books\n $books = Book::paginate(10);\n \n if ($books) {\n return (BookResource::collection($books))->additional([\n 'status_code' => 200,\n 'status' => 'success',\n ]);\n } else {\n return (BookResource::collection([]))->additional([\n 'status_code' => 200,\n 'status' => 'success',\n ]);\n }\n return view('index')->with('data', $books);\n }",
"public function index()\n {\n $books = Book::latest()\n ->paginate(20);\n\n return BookResource::collection($books);\n }",
"public function view(){\n\t\t$this->buildListing();\n\t}",
"public function index()\n {\n $listing = Listing::orderBy('id', 'desc')->paginate(10);\n return view('listings.index')->withListings($listing);\n }",
"public function index()\n {\n $services = $this->serviceRepository->paginate();\n\n return ServiceResource::collection($services);\n }",
"public function listAction()\n {\n $this->_getSession()->setFormData([]);\n\n $this->_title($this->__('Training Cms'))\n ->_title($this->__('Pages'));\n\n $this->loadLayout();\n\n $this->_setActiveMenu('training_cms');\n $this->_addBreadcrumb($this->__('Training Cms'), $this->__('Training Cms'));\n $this->_addBreadcrumb($this->__('Pages'), $this->__('Pages'));\n\n $this->renderLayout();\n }",
"public function index()\n {\n $resources = ResourceManagement::paginate(5);\n $users = User::get();\n\n return view('resources-mgmt/index', ['resources' => $resources, 'users' => $users]);\n }",
"public function index()\n {\n $catalogs = Catalog::where('status', '=', Catalog::PUBLICADO)\n ->orderBy('id', 'DESC')->get();\n \n $data = CatalogResource::collection($catalogs);\n\n return [\n 'items' => $data,\n 'mensaje' => ''\n ];\n }",
"public function listAction(){\n // In a controller this can be:\n // $this->request->getQuery('page', 'int'); // GET\n $currentPage = $this->request->getPost('pageindex', 'int'); // POST\n $pageNum = ($currentPage == null) ? 1 : $currentPage;\n\n // The data set to paginate\n $message = new Notice();\n $results = $message->getMsg4Admin();\n\n // Create a Model paginator, show 10 rows by page starting from $currentPage\n $paginator = new PaginatorArray(\n array(\n \"data\" => $results,\n \"limit\" => 10,\n \"page\" => $pageNum\n )\n );\n\n // Get the paginated results\n $page = $paginator->getPaginate();\n\n return $this->response->setJsonContent($page);\n\n }",
"public function list()\n {\n try {\n return $this->success($this->service->list());\n } catch (\\Exception $exception) {\n return $this->error($exception->getMessage());\n }\n }",
"public function index()\n {\n return $this->sendResponse(CrisisResource::collection(Crisis::paginate(10)), 'Data fetched successfully');\n }",
"public function index()\n\t{\n\t\t$%Alias = new %Model();\n\t\t$params = array();\n\t\t\n\t\t$Paginator = new Paginator( $%Alias->findSize( $params ), $this->getLimit(), $this->getPage() );\n\t\t$this->getView()->set( '%Aliass', $%Alias->findList( $params, 'Id desc', $this->getOffset(), $this->getLimit() ) );\n\t\t$this->getView()->set( 'Paginator', $Paginator );\n\t\treturn $this->getView()->render();\n\t}",
"public function listAction() {}",
"public function index()\n {\n\n return RecipeResource::collection(Recipe::all());\n }",
"public function listAction()\n {\t\n\t\t$this->removeSession();\n\t\t$this->verifySessionRights();\n\t\t$this->setActivity(\"List view\");\n $em = $this->getDoctrine()->getManager();\n $oRepClient = $em->getRepository('BoAdminBundle:Client');\n\t\t$nb_tc = $oRepClient->getTotal();\n\t\t//get page\n\t\t$page = $this->get('session')->get('page');\n\t\tif($page==null){\n\t\t\t$page=1;\n\t\t\t$this->get('session')->set('page',1);\n\t\t}\n\t\t//get number line per page\n\t\t$nb_cpp = $em->getRepository('BoAdminBundle:Param')->getParam(\"display_list_page_number\",1);\n\t\t$nb_pages = ceil($nb_tc/$nb_cpp);\n\t\t$offset = $page>0?($page-1) * $nb_cpp:0;\n\t\t$clients = $em->getRepository('BoAdminBundle:Client')->findBy(array(),array('id' => 'desc'),$nb_cpp,$offset);\n $form = $this->createForm('Bo\\AdminBundle\\Form\\ClientType', new Client());\n return $this->render('client/index.html.twig', array(\n 'clients' => $clients,\n\t\t\t'page' => $page, // forward current page to view,\n\t\t\t'nb_pages' => $nb_pages, //total number page,\n 'form' => $form->createView(),\n\t\t\t'total'=>$nb_tc, // record number.\n\t\t\t'nb_cpp' => $nb_cpp,// line's number to display\n\t\t\t'pm'=>\"contracts\",\n\t\t\t'sm'=>\"client\",\n ));\n }",
"public function index()\n {\n $this->indexPage('list-product', 'List Product');\n }",
"public function index()\n {\n return AcResource::collection(Ac::latest()->paginate()); //\n }",
"public function executeList()\n {\n $this->setTemplate('list');\n }",
"function listing() {\r\n\r\n }",
"public function indexAction()\n {\n $books = Book::getAll();\n\n View::renderTemplate('Books/index.html', [\n 'books' => $books\n ]);\n }",
"public function listar() {\n $rs = $this->model->listar();\n\n echo $this->toJson($rs);\n }",
"public function index()\n {\n return BookResource::collection(Book::orderby('id')->get());\n }",
"public function index()\n {\n $client = Client::paginate();\n return ClientResource::collection($client);\n }",
"public function doRestList()\n {\n $this->outputHelper( \n 'Records Retrieved Successfully', \n $this->getModel()->with($this->nestedRelations)->filter($this->restFilter)->orderBy($this->restSort)->limit($this->restLimit)->offset($this->restOffset)->findAll(),\n $this->getModel()->with($this->nestedRelations)->filter($this->restFilter)->count()\n );\n\t}",
"public function index()\n {\n return TagResource::collection(\n Tag::orderBy('name', 'ASC')->paginate(request('per_page', 10))\n );\n }",
"public function index()\n\t{\n\t\t$data['lists'] = $this->gallery_mdl->get_all();\n\t\t$this->template->set('title', 'Gallery');\n\t\t$this->template->render('template', 'list', $data);\n\t}",
"public function _index(){\n\t $this->_list();\n\t}",
"function drush_restapi_list() {\n\n $resources = restapi_get_resources();\n $last_module = NULL;\n $rows = [\n [dt('Module'), dt('Path'), dt('Class')],\n ];\n\n foreach($resources as $resource) {\n if ($last_module != $resource->getModule()) {\n $module = $last_module = $resource->getModule();\n }\n else {\n $module = '';\n }\n $rows[] = [$module, $resource->getPath(), $resource->getClass()];\n }\n\n drush_print_table($rows, TRUE);\n drush_log(dt('Displaying !count total resources', [\n '!count' => count($resources),\n ]), 'ok');\n\n}",
"public function index()\n {\n $this->booklist();\n }",
"public function index()\n {\n //\n $accounts = accounts::paginate(15);\n\n //return the collection of employees as a resource\n return accountResource::collection($accounts);\n\n\n }",
"public function index()\n {\n $items = Item::all();\n return view('items::list_items',compact('items'));\n }",
"public function index()\n {\n // Get houses\n $houses = House::orderBy('created_at', 'desc')->paginate(self::PAGINATE);\n \n // Return collection of houses\n \n return HouseResource::collection($houses);\n }",
"public function index()\n {\n $products = Product::paginate(6);\n return ProductResource::collection($products);\n }",
"public function index() {\n $this->template->allFoundItems = Found::showAll();\n $this->template->display( 'index.html.php' );\n }",
"public function indexAction() {\n $this->_forward('list');\n }",
"public function index()\n {\n $data = Productcategory::paginate(10);\n\t\treturn ProductcategoryResource::Collection($data);\n }",
"public function index()\n {\n return SongResource::collection(\\App\\Song::orderBy('created_at', 'desc')->get());\n }",
"public function index () {\n permiss ( 'role.list' );\n\n $data = $this->entity\n ->orderBy('created_at', 'desc')->get();\n\n return new ModelResource($data);\n }",
"public function ListView()\n\t{\n\t\t\n\t\t// Requer permissão de acesso\n\t\t$this->RequirePermission(Usuario::$P_ADMIN,\n\t\t\t\t'SecureExample.LoginForm',\n\t\t\t\t'Autentique-se para acessar esta página',\n\t\t\t\t'Você não possui permissão para acessar essa página ou sua sessão expirou');\n\t\t\n\t\t//$usuario = Controller::GetCurrentUser();\n\t\t//$this->Assign('usuario',$usuario);\n\t\t$this->Render();\n\t}",
"public function showResources()\n {\n $resources = Resource::get();\n return view('resources', compact('resources'));\n }",
"public function index()\n {\n //get articless\n $articles = Article::paginate(15);\n\n //Return collection of article has a resource\n return ArticleResource::collection($articles);\n\n }",
"public function actionList() {\n header(\"Content-type: application/json\");\n $verb = $_SERVER[\"REQUEST_METHOD\"];\n\n if ($verb === 'GET') {\n echo \"{\\\"data\\\":\" . CJSON::encode(Donneur::model()->findAll()) . \"}\";\n } else if ($verb == 'POST') {\n if (Donneur::model()->exists('id' === $_POST['id'])) {\n $this->actionListUpdate($_POST);\n } else {\n $this->actionListPost();\n }\n } else if ($verb == 'DELETE') {\n $this->actionListDelete();\n }\n }",
"public function list()\n {\n return $this->http->request(HttpMethods::GET, $this->endpoint);\n }",
"public function indexAction(){\n $data = array(\n 'collection' => $this->model->getCollection(),\n \n ); \t\n return $this->getView($data);\n }",
"public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $entities = $em->getRepository('DiverPriceLisrBundle:Items')->findAll();\n\n return $this->render('DiverPriceLisrBundle:Items:index.html.twig', array(\n 'entities' => $entities,\n ));\n }",
"public function actionIndex()\n {\n $dataProvider = new ActiveDataProvider([\n 'query' => Slaves::find(),\n ]);\n\n return $this->render('index', [\n 'dataProvider' => $dataProvider,\n ]);\n }",
"public function listAction() {\n\t\t// Recogemos el repositorio\n\t\t$repository = $this->getDoctrine() ->getRepository('AppBundle:Product');\n\t\n\t\t// Recuperamos todos los productos.\n\t\t$products = $repository->findAll();\n\t\t// Pasamos a la plantilla el aray products\n\t\treturn $this->render('product/listActionProduct.html.twig', array( 'products' => $products));\n\t\n\t}",
"public function actionList()\n {\n // get model\n $model = new $this->_model('search');\n $model->unsetAttributes();\n\n // set filter\n if (isset($_GET[$this->_model])) {\n $model->attributes = $_GET[$this->_model];\n }\n $model->u_cms_album_id = $_GET['album'];\n\n // search\n $dataProvider = $model->search(Yii::app()->language);\n // sort\n $sort = $dataProvider->getSort();\n // route\n $sort->route = $this->id . '/list';\n\n // pagination parameters\n $pagination = $dataProvider->getPagination();\n $pagination->route = $this->id . '/list';\n $pagination->pageSize = UInterfaceSetting::model()->getSettings($this->id . ':' . $this->module->id, Yii::app()->user->id)->page_size;\n $pagination->itemCount = $dataProvider->totalItemCount;\n\n // datas\n $datas = $dataProvider->getData();\n\n // related datas\n $relatedDatas = $this->_loadRelatedData();\n\n // template\n $template = isset($_REQUEST['partial']) ? 'list/_table' : 'list/main';\n\n $jsonParams = array();\n if (Yii::app()->request->isAjaxRequest) {\n // filters\n $filtersDatas = array();\n if (isset($_GET[$this->_model])) {\n $filtersDatas[$this->_model] = $_GET[$this->_model];\n }\n if (isset($_GET[$sort->sortVar])) {\n $filtersDatas[$sort->sortVar] = $_GET[$sort->sortVar];\n }\n\n $jsonParams = array(\n 'filters' => http_build_query($filtersDatas)\n );\n }\n\n $this->dynamicRender(\n $template,\n array(\n 'dataView' => new $this->crudComponents['listDataView'](\n $datas, $relatedDatas, $model, $sort, $pagination, $this\n )\n ),\n $jsonParams\n );\n }",
"public function listAction()\n\t {\n\t\t$model = $this->_getModel();\n\t\t$result = $model->getLayouts();\t\n\t\t$page = (int)($this->_request->getParam('page')); \n\t\tif(count($result) > 0)\n\t\t{ \n\t\t\tGlobals::doPaging($result, $page, $this->view);\n\t\t}\n\t\t\t\t\n\t\t$this->view->page = $page;\n\t }",
"public function index()\n {\n return view('listings.index')->with('listings', Listing::all());\n }",
"public function get_index()\n\t{\n\t\t$pages = Page::recent_available()->paginate(30);\n\t\t$table = Cello\\Presenter\\Page::table($pages);\n\t\t$data = array(\n\t\t\t'eloquent' => $pages,\n\t\t\t'table' => $table,\n\t\t);\n\n\t\tSite::set('title', __('cello::title.pages.list'));\n\n\t\treturn View::make('cello::api.resources.index', $data);\n\t}",
"public function index()\n {\n $category = GalleryCategory::paginate(15);\n\n // return collection of category as a resource.\n return Resource::collection($category);\n }",
"public function index()\n {\n return ProductResource::collection(Product::latest()->paginate(10));\n }",
"public function index()\n {\n //\n $news = News::latest()->paginate(18);\n\n return NewsResource::collection($news);\n }",
"public function indexAction() {\n\t\t$list_info = Zend_Registry::get('list_info');\n if (!Engine_Api::_()->core()->hasSubject('list_listing')) {\n return $this->setNoRender();\n }\n \n $this->view->expiry_setting = Engine_Api::_()->list()->expirySettings();\n\n //GET SUBJECT\n $this->view->list = $list = Engine_Api::_()->core()->getSubject('list_listing');\n\n\t\t//GET CATEGORY TABLE\n\t\t$this->view->tableCategory = Engine_Api::_()->getDbTable('categories', 'list');\n\n //GET CATEGORIES NAME\n\t\t$this->view->category_name = $this->view->subcategory_name = $this->view->subsubcategory_name = '';\n\n\t\tif(!empty($list->category_id)) {\n\t\t\tif($this->view->tableCategory->getCategory($list->category_id))\n\t\t\t$this->view->category_name = $this->view->tableCategory->getCategory($list->category_id)->category_name;\n\n\t\t\tif(!empty($list->subcategory_id)) {\n\t\t\t\tif($this->view->tableCategory->getCategory($list->subcategory_id))\n\t\t\t\t$this->view->subcategory_name = $this->view->tableCategory->getCategory($list->subcategory_id)->category_name;\n\n\t\t\t\tif(!empty($list->subsubcategory_id)) {\n\t\t\t\t\tif($this->view->tableCategory->getCategory($list->subsubcategory_id))\n\t\t\t\t\t$this->view->subsubcategory_name = $this->view->tableCategory->getCategory($list->subsubcategory_id)->category_name;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n //GET LISTING TAGS\n $this->view->listTags = $list->tags()->getTagMaps();\n\n\t\t//GET OTHER DETAILS\n\t\t$this->view->list_description = Zend_Registry::get('list_descriptions');\n $this->view->addHelperPath(APPLICATION_PATH . '/application/modules/Fields/View/Helper', 'Fields_View_Helper');\n $this->view->fieldStructure = Engine_Api::_()->fields()->getFieldsStructurePartial($list);\n\t\tif(empty($list_info)){ return $this->setNoRender(); }\n }",
"public function index()\n {\n return $this->service->fetchResources(Author::class, 'authors');\n }",
"public function index()\n {\n return view('admin.resources.index');\n }",
"public function doRestList() {\n\t\t$this->outputHelper ( 'Collections Retrieved Successfully', $this->getModel ()->with ( $this->nestedRelations )->filter ( $this->restFilter )->orderBy ( $this->restSort )->limit ( $this->restLimit )->offset ( $this->restOffset )->findAll (), $this->getModel ()->with ( $this->nestedRelations )->filter ( $this->restFilter )->count () );\n\t}"
] | [
"0.7446377",
"0.7361922",
"0.72984487",
"0.7248631",
"0.7162871",
"0.7148215",
"0.7131838",
"0.71028054",
"0.7102395",
"0.70988023",
"0.7048243",
"0.6993516",
"0.6989079",
"0.69341344",
"0.69001913",
"0.6899167",
"0.68920904",
"0.6887188",
"0.68661547",
"0.6849159",
"0.683002",
"0.6801792",
"0.6796645",
"0.67952746",
"0.678579",
"0.6760132",
"0.6741144",
"0.67304057",
"0.6726034",
"0.6723304",
"0.6723304",
"0.6723304",
"0.67188966",
"0.67061126",
"0.67046595",
"0.67042124",
"0.6664004",
"0.6663109",
"0.66603667",
"0.66595376",
"0.6656908",
"0.66536283",
"0.6648508",
"0.6619696",
"0.66191936",
"0.66145146",
"0.66056865",
"0.6600895",
"0.66007215",
"0.6593214",
"0.6587006",
"0.6585572",
"0.6584028",
"0.65802413",
"0.65751636",
"0.6574276",
"0.6572553",
"0.65703243",
"0.6569474",
"0.6563628",
"0.6563418",
"0.65516967",
"0.655156",
"0.65460885",
"0.65367365",
"0.6533626",
"0.6533064",
"0.6527408",
"0.65251255",
"0.6524834",
"0.65202224",
"0.6517302",
"0.65167385",
"0.6516062",
"0.65148616",
"0.6506742",
"0.65018",
"0.6501768",
"0.6494415",
"0.64921784",
"0.6486631",
"0.6485237",
"0.6484199",
"0.64841217",
"0.6479556",
"0.6478558",
"0.6469807",
"0.646858",
"0.64683306",
"0.6466808",
"0.64637285",
"0.64616066",
"0.6458575",
"0.6457558",
"0.64535207",
"0.64534074",
"0.64524984",
"0.64491946",
"0.6448726",
"0.6447211",
"0.64461327"
] | 0.0 | -1 |
Store a newly created resource in storage. | public function store(Request $request)
{
//
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function store($data, Resource $resource);",
"public function store()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n if (method_exists($this, 'storeValidations')) {\n $this->request->validate($this->storeValidations());\n }\n\n /* Create a new resource */\n $resource = $this->model::create(Input::all());\n\n /* Redirect to newly created resource page */\n return redirect()\n ->route($this->name . '.edit', $resource->id)\n ->with(\n 'success',\n Lang::has($this->name . '.resource-created') ?\n $this->name . '.resource-created' :\n 'messages.alert.resource-created'\n );\n }",
"public function store(CreateStorageRequest $request)\n {\n $this->storage->create($request->all());\n\n return redirect()->route('admin.product.storage.index')\n ->withSuccess(trans('core::core.messages.resource created', ['name' => trans('product::storages.title.storages')]));\n }",
"public function createStorage();",
"public function store(StoreStorage $request)\n {\n $storage = Storage::create($request->all());\n $request->session()->flash('alert-success', 'Запись успешно добавлена!');\n return redirect()->route('storage.index');\n }",
"public function saveShopifyResource() {\n if (is_null($this->getShopifyId())) { // if there is no id...\n $this->createShopifyResource(); // create a new resource\n } else { // if there is an id...\n $this->updateShopifyResource(); // update the resource\n }\n }",
"public function store(Request $request, NebulaResource $resource): RedirectResponse\n {\n $this->authorize('create', $resource->model());\n\n $validated = $request->validate($resource->rules(\n $resource->createFields()\n ));\n\n $resource->storeQuery($resource->model(), $validated);\n\n $this->toast(__(':Resource created', [\n 'resource' => $resource->singularName(),\n ]));\n\n return redirect()->back();\n }",
"function storeAndNew() {\n $this->store();\n }",
"public function store(Request $request)\n {\n $currentUser = JWTAuth::parseToken()->authenticate();\n $validator = Validator::make($request->all(), [\n 'content' => 'required|string',\n 'image_link' => 'sometimes|url',\n ]);\n\n if ($validator->fails()) {\n return APIHandler::response(0, $validator->errors(), [], 400);\n }\n\n $resource = new Resource;\n $resource->user_id = $currentUser['id'];\n $resource->title = $request->get('title');\n $resource->content = $request->get('content');\n $resource->image_link = $request->get('imageLink');\n $resource->video_link = $request->get('videoLink');\n $resource->file_link = $request->get('fileLink');\n $resource->audio_link = $request->get('audioLink');\n $resource->tags = collect($request->get('tags'))->implode('text', ',');\n $resource->is_public = 0;\n $resource->save();\n $data['resource'] = $resource;\n\n if ($request->get('programId')) {\n $this->addToProgram($resource, $request->programId);\n // event(new NewLearningPathResourcePublished($resource, $invitee));\n }\n\n User::find($currentUser['id'])->increment('points', 2);\n\n return APIHandler::response(1, \"New resource has been created\", $data, 201);\n }",
"public function store()\n {\n if (!$this->id) { // Insert\n $this->insertObject();\n } else { // Update\n $this->updateObject();\n }\n }",
"public function store()\n\t{\n\t\t\n\t\t//\n\t}",
"public function store()\r\n\t{\r\n\t\t//\r\n\t}",
"public function store()\r\n\t{\r\n\t\t//\r\n\t}",
"public function store()\r\n\t{\r\n\t\t//\r\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}"
] | [
"0.7286258",
"0.71454436",
"0.7132821",
"0.6640289",
"0.6621105",
"0.6566493",
"0.65255576",
"0.65087926",
"0.6448317",
"0.63752604",
"0.63736314",
"0.6365631",
"0.6365631",
"0.6365631",
"0.634229",
"0.634229",
"0.634229",
"0.634229",
"0.634229",
"0.634229",
"0.634229",
"0.634229",
"0.634229",
"0.634229",
"0.634229",
"0.634229",
"0.634229",
"0.634229",
"0.634229",
"0.634229",
"0.634229",
"0.634229",
"0.634229",
"0.634229",
"0.634229",
"0.634229",
"0.634229",
"0.634229",
"0.634229",
"0.634229",
"0.634229",
"0.634229",
"0.634229",
"0.634229",
"0.634229",
"0.634229",
"0.634229",
"0.634229",
"0.634229",
"0.634229",
"0.634229",
"0.634229",
"0.634229",
"0.634229",
"0.634229",
"0.634229",
"0.634229",
"0.634229",
"0.634229",
"0.634229",
"0.634229",
"0.634229",
"0.634229",
"0.634229",
"0.634229",
"0.634229",
"0.634229",
"0.634229",
"0.634229",
"0.634229",
"0.634229",
"0.634229",
"0.634229",
"0.634229",
"0.634229",
"0.634229",
"0.634229",
"0.634229",
"0.634229",
"0.634229",
"0.634229",
"0.634229",
"0.634229",
"0.634229",
"0.634229",
"0.634229",
"0.634229",
"0.634229",
"0.634229",
"0.634229",
"0.634229",
"0.634229",
"0.634229",
"0.634229",
"0.634229",
"0.634229",
"0.634229",
"0.634229",
"0.634229",
"0.634229",
"0.634229"
] | 0.0 | -1 |
Display the specified resource. | public function show($id)
{
try {
$domain = request()->root();
$data = place::where('slug', $id)->first();
if ($data != null) {
foreach ($data->album as $i) {
$i->album = $domain . '/img/album/' . $i->album;
}
return response()->json(["data" => $data], 200);
} else {
$data = "404 Not found";
return response()->json(["data" => $data], 404);
}
} catch (\Throwable $th) {
$data = "Server 500 error";
return response()->json(["data" => $data],500);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function show(Resource $resource)\n {\n // not available for now\n }",
"public function show(Resource $resource)\n {\n //\n }",
"function Display($resource_name, $cache_id = null, $compile_id = null)\n {\n $this->_smarty->display($resource_name, $cache_id, $compile_id);\n }",
"private function showResourceable($resourceable)\n {\n save_resource_url();\n\n return $this->view('resources.create_edit')\n ->with('resource', $resourceable)\n ->with('photos', $resourceable->photos)\n ->with('videos', $resourceable->videos)\n ->with('documents', $resourceable->documents);\n }",
"function display($resource_name, $cache_id = null, $compile_id = null) {\n\t\t$this->_getResourceInfo($resource_name); // Saves resource info to a Smarty class var for debugging\n\t\t$_t3_fetch_result = $this->fetch($resource_name, tx_smarty_div::getCacheID($cache_id), $compile_id);\n if ($this->debugging) { // Debugging will have been evaluated in fetch\n require_once(SMARTY_CORE_DIR . 'core.display_debug_console.php');\n $_t3_fetch_result .= smarty_core_display_debug_console(array(), $this);\n }\n\t\treturn $_t3_fetch_result;\n\t}",
"public function show(ResourceSubject $resourceSubject)\n {\n //\n }",
"public function show(ResourceManagement $resourcesManagement)\n {\n //\n }",
"public function viewEditResources()\n {\n $database = new Database();\n $id = $this->_params['id'];\n\n $resource = $database->getResourceById($id);\n\n $availableResource = new Resource($resource['ResourceID'], $resource['ResourceName'], $resource['Description']\n , $resource['ContactName'] , $resource['ContactEmail'] , $resource['ContactPhone'] ,\n $resource['Link'], $resource['active']);\n $this->_f3->set('Resource', $availableResource);\n\n echo Template::instance()->render('view/include/head.php');\n echo Template::instance()->render('view/include/top-nav.php');\n echo Template::instance()->render('view/edit-resources.php');\n echo Template::instance()->render('view/include/footer.php');\n }",
"public function retrieve(Resource $resource);",
"public function showResource($resouceable, $id)\n {\n $model_name = str_replace('-', ' ',ucwords($resouceable));\n $model_name = str_replace(' ', '',ucwords($model_name));\n\n $resource_type = 'App\\Models\\\\'.$model_name;\n $model = app($resource_type);\n $model = $model->find($id);\n\n return $this->showResourceable($model);\n }",
"public function showAction(Ressource $ressource)\n {\n $deleteForm = $this->createDeleteForm($ressource);\n\n return $this->render('ressource/show.html.twig', array(\n 'ressource' => $ressource,\n 'delete_form' => $deleteForm->createView(),\n ));\n }",
"public function show(Dispenser $dispenser)\n {\n //\n }",
"public function show($id)\n {\n $resource = Resource::find($id);\n dd($resource);\n }",
"public function displayAction() {\n\t\tif(is_numeric($this->req_id)) {\n\t\t\tAPI::DEBUG(\"[DefaultController::displayAction()] Getting \" . $this->req_id, 1);\n\t\t\t$this->_view->data['info'] = $this->_model->get($this->req_id);\n\t\t\t$this->_view->data['action'] = 'edit';\n\n\t\t} else {\n\t\t\t$this->_view->data['action'] = 'new';\n\t\t}\n\t\t// auto call the hooks for this module/action\n\t\terror_log(\"Should Call: \" . $this->module .\"/\".$this->action.\"/\".\"controller.php\");\n\t\tAPI::callHooks($this->module, $this->action, 'controller', $this);\n\n\t\t$this->addModuleTemplate($this->module, 'display');\n\n\t}",
"public function show(NebulaResource $resource, $item): View\n {\n $this->authorize('view', $item);\n\n return view('nebula::resources.show', [\n 'resource' => $resource,\n 'item' => $item,\n ]);\n }",
"public function resource(string $resource, string $controller): void\n {\n $base = $this->plural($resource);\n $entity = '/{'.$resource.'}';\n\n $this->app->get($base, $controller.'@index');\n $this->app->post($base, $controller.'@store');\n $this->app->get($base.$entity, $controller.'@show');\n $this->app->patch($base.$entity, $controller.'@update');\n $this->app->delete($base.$entity, $controller.'@destroy');\n }",
"function displayCustom($resource_name, $cache_id = null, $compile_id = null)\n\t{\n\t return $this->display(DotbAutoLoader::existingCustomOne($resource_name), $cache_id, $compile_id);\n\t}",
"public function show($id)\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n /* Get the specified resource */\n $resource = $this->model::findOrFail($id);\n\n /* Sets the view */\n if (view()->exists(\"admin.{$this->name}.show\")) {\n $view = \"admin.{$this->name}.show\";\n } else {\n $view = 'admin.includes.actions.show';\n }\n\n /* Displays the specified resource page */\n return view($view)\n ->with('resource', $resource)\n ->with('name', $this->name);\n }",
"public function show($id)\n {\n $currentUser = JWTAuth::parseToken()->authenticate();\n $rules = [\n 'id' => 'required|integer'\n ];\n\n $validator = Validator::make(['id' => $id], $rules);\n if ($validator->fails()) {\n return APIHandler::response(0, $validator->errors(), 400);\n }\n $resource = $this->resourceRepository->fetchResource($id);\n $this->resourceRepository->storeView($id, $currentUser['id']);\n\n $data = [\n 'resource' => $resource,\n 'related_resources' => $this->resourceRepository->getResourcesRelatedTo($resource->id, $resource->mentoring_area_id)\n ];\n\n return APIHandler::response(1, \"Show Resource\", $data);\n }",
"public function get(Resource $resource);",
"public function showAction()\n {\n $model = $this->_getPhotoModel();\n $photo = $model->fetchEntry($this->getRequest()->getParam('id'));\n\n if (null === $photo) {\n return $this->_forward('notfound', 'error');\n }\n\n $this->view->auth = Zend_Auth::getInstance();\n $this->view->title = $photo->title;\n $this->view->photo = $photo;\n }",
"public function show($id)\n {\n //\n $data=Resource::find($id);\n return view('resourceDetails',compact('data'));\n }",
"function display() {\n\t\t$view = &$this->getView();\n\t\t$view->display();\n\t}",
"public function show(ShowResourceRequest $request, $id)\n {\n // TODO: Implement show() method.\n }",
"function show( $resource ){\n\n $where = \"reservation_status <> 'Pending' AND id = {$resource}\";\n $reservation = where( 'reservations', $where );\n $reservation = $reservation[0];\n\n return view('admin/reservation/preview_reservation', compact( 'reservation' ));\n}",
"public function show()\n {\n if ($this->twig !== false) {\n $this->twigDefaultContext();\n if ($this->controller) {\n $this->controller->display($this->data);\n }\n echo $this->twig->render($this->twig_template, $this->data);\n } else {\n $filename = $this->findTemplatePath($this->template);\n require($filename);\n }\n }",
"public function edit(Resource $resource)\n {\n //\n }",
"public function show(rc $rc)\n {\n //\n }",
"public function show(Resolucion $resolucion)\n {\n //\n }",
"public function showAction(furTexture $furTexture)\n {\n\n return $this->render('furtexture/show.html.twig', array(\n 'furTexture' => $furTexture,\n ));\n }",
"public function show()\n\t{\n\t\t//\n\t}",
"public function show()\n\t{\n\t\t//\n\t}",
"public function show()\n\t{\n\t\t//\n\t}",
"public function show(Resena $resena)\n {\n }",
"public function edit(Resource $resource)\n {\n return view('admin.resources.edit', compact('resource'));\n }",
"public function showAction() {\n $docId = $this->getParam('id');\n\n // TODO verify parameter\n\n $document = new Opus_Document($docId);\n\n $this->_helper->layout()->disableLayout();\n\n $this->view->doc = $document;\n $this->view->document = new Application_Util_DocumentAdapter($this->view, $document);\n }",
"public function action_display()\r\n\t{\r\n\t\t$event = ORM::factory('event', array('id' => $this->request->param('id')));\r\n\t\r\n\t\tif ( ! $event->loaded())\r\n\t\t{\r\n\t\t\tNotices::error('event.view.not_found');\r\n\t\t\t$this->request->redirect(Route::url('event'));\r\n\t\t}\r\n\t\t\r\n\t\t// Can user view this event?\r\n\t\tif ( ! $this->user->can('event_view', array('event' => $event)))\r\n\t\t{\r\n\t\t\t// Error notification\r\n\t\t\tNotices::error('event.view.not_allowed');\r\n\t\t\t$this->request->redirect(Route::url('event'));\r\n\t\t}\r\n\t\t\r\n\t\t// Pass event data to the view class\r\n\t\t$this->view->event_data = $event;\r\n\t\t$this->view->user = $this->user;\r\n\t}",
"public function execute()\n {\n // HTTP Request Get\n if ($this->type == \"resource\") {\n $action = $this->getResourceAction();\n switch ($action) {\n case \"show\":\n $this->show();\n break;\n case \"create\":\n $this->create();\n break;\n case \"edit\":\n $this->edit();\n break;\n case \"destroy\":\n $this->destroy();\n break;\n default:\n echo $this->render();\n break;\n }\n } else {\n $action = $this->Request->action;\n switch ($action) {\n case \"show\":\n $this->show();\n break;\n case \"create\":\n $this->create();\n break;\n case \"edit\":\n $this->edit();\n break;\n case \"destroy\":\n $this->destroy();\n break;\n default:\n echo $this->render();\n break;\n }\n }\n }",
"public function show(Resident $resident)\n {\n $this->authorize('admin.resident.show', $resident);\n\n // TODO your code goes here\n }",
"public function display()\n {\n echo $this->getDisplay();\n $this->isDisplayed(true);\n }",
"public function display()\n\t{\n\t\tparent::display();\n\t}",
"public function get_resource();",
"public function show()\n\t{\n\t\t\n\t}",
"function display() {\n\n\t\t// Check authorization, abort if negative\n\t\t$this->isAuthorized() or $this->abortUnauthorized();\n\n\t\t// Get the view\n\t\t$view = $this->getDefaultView();\n\n\t\tif ($view == NULL) {\n\t\t\tthrow new Exception('Display task called, but there is no view assigned to that controller. Check method getDefaultView.');\n\t\t}\n\n\t\t$view->listing = true;\n\n\t\t// Wrap the output of the views depending on the way the stuff should be shown\n\t\t$this->wrapViewAndDisplay($view);\n\n\t}",
"public function viewResources()\n {\n $database = new Database();\n\n $resources = $database->getAllActiveResourcesNoLimit();\n\n\n $resourceArray = array();\n $i = 1;\n\n foreach ($resources as $resource) {\n $availableResource = new Resource($resource['ResourceID'], $resource['ResourceName'], $resource['Description']\n , $resource['ContactName'] , $resource['ContactEmail'] , $resource['ContactPhone'] ,\n $resource['Link'], $resource['active']);\n array_push($resourceArray, $availableResource);\n $i += 1;\n }\n $resourceSize = sizeof($resourceArray);\n $this->_f3->set('resourcesByActive', $resourceArray);\n $this->_f3->set('resourcesSize', $resourceSize);\n echo Template::instance()->render('view/include/head.php');\n echo Template::instance()->render('view/include/top-nav.php');\n echo Template::instance()->render('view/resources.php');\n echo Template::instance()->render('view/include/footer.php');\n }",
"public function show($id)\n {\n $this->title .= ' show';\n $this->one($id);\n }",
"public function display($title = null)\n {\n echo $this->fetch($title);\n }",
"public function display(){}",
"public function show($id)\n\t{\n\t\t//\n\t\t//\n\t\n\t}",
"public function viewAction()\n\t{\n\t\t//get Id param from request\n\t\tif (!$id = $this->_getParam('id')) {\n\t\t\t$this->getFlashMessenger()->addMessage('Product ID was not specified');\n\t\t\t$this->getRedirector()->gotoSimple('list');\n\t\t}\n\n\t\t//fetch requested ProductID from DB\n\t\tif (!$this->_model->fetch($id)) {\n\t\t\t$this->render('not-found');\n\t\t} else {\n\t\t\t$this->view->model = $this->_model;\n\t\t}\n\t}",
"public function show($id)\n {\n // Get single person\n $person = Person::findOrFail($id);\n\n // Return single person as a resource\n return '<h1>Person Number '.$id.'</h1><br>'.json_encode(new PersonResource($person));\n }",
"#[TODO] use self object?\n\tprotected function GET(ResourceObject $resource) {\n#[TODO]\t\tif ($resource->getMTime())\n#[TODO]\t\t\t$this->response->headers->set('Last-modified', gmdate('D, d M Y H:i:s ', $resource->getMTime()) . 'GMT');\n#[TODO]\t\tif ($resource->getCTime())\n#[TODO]\t\t\t$this->response->headers->set('Date', gmdate('D, d M Y H:i:s ', $resource->getCTime()) . 'GMT');\n\n\n#[TODO] handle file streams\n\t\t// get ranges\n#\t\t$ranges = WebDAV::getRanges($this->request, $this->response);\n\n\t\t// set the content of the response\n\t\tif ($resource instanceof ResourceDocument) {\n\t\t\t$this->response->content->set($resource->getContents());\n\t\t\t$this->response->content->setType($resource->getMIMEType());\n\t\t\t$this->response->content->encodeOnSubmit(true);\n\t\t}\n\t}",
"public function display() {\n echo $this->render();\n }",
"public function show($id)\n\t{\n\t//\n\t}",
"public function show($id)\n\t{\n\t//\n\t}",
"function Fetch($resource_name, $cache_id = null, $compile_id = null, $display = false)\n {\n return $this->_smarty->fetch($resource_name, $cache_id, $compile_id, $display);\n }",
"public function show($id)\n {\n //\n $this->_show($id);\n }",
"public function show()\n\t{\n\n\t}",
"public function show($id) {\n\t\t//\n\t}",
"public function show($id) {\n\t\t//\n\t}",
"public function show($id) {\n\t\t//\n\t}",
"public function show($id) {\n\t\t//\n\t}",
"public function show($id) {\n\t\t//\n\t}",
"public function show($id) {\n\t\t//\n\t}",
"public function show($id) {\n\t\t//\n\t}",
"public function show($id) {\n\t\t//\n\t}",
"public function show($id) {\n\t\t//\n\t}",
"public function show($id) {\n\t\t//\n\t}",
"public function show($id) {}",
"static public function showCallback(O_Dao_Renderer_Show_Params $params) {\r\n\t\t/* @var $r R_Mdl_Resource */\r\n\t\t$r = $params->record();\r\n\t\t// Setting layout title\r\n\t\t$params->layout()->setTitle($r->getPageTitle());\r\n\r\n?><h1><?=$r->title?></h1><div id=\"resource\"><?\r\n\t\tif($r->getContent()) {\r\n\t\t\t// page has its own content -- show it\r\n\t\t\t$r->getContent()->show($params->layout(), \"content\");\r\n\t\t} else {\r\n\t\t\t// It is a post unit, show all childs\r\n\t\t\tif($r->is_unit == 1) {\r\n\t\t\t\t$r->addQueryAccessChecks($r->getChilds(1))->show($params->layout(), \"content\");\r\n\r\n\t\t\t// It is a folder with several units, show paginator\r\n\t\t\t} elseif($r->show_def == \"last-units\") {\r\n\t\t\t\tlist($type, $perpage) = explode(\":\", $r->show_def_params);\r\n\t\t\t\t/* @var $p O_Dao_Paginator */\r\n\t\t\t\t$p = $r->addQueryAccessChecks($r->getChilds())->test(\"is_unit\", 1)->getPaginator(array($r, \"getPageUrl\"), $perpage);\r\n\t\t\t\t$p->show($params->layout(), $type);\r\n\t\t\t// It is a folder with subfolders, boxes, contents. Show one childs level\r\n\t\t\t} else {\r\n\t\t\t\t$r->addQueryAccessChecks($r->getChilds(1))->show($params->layout(), \"on-parent-page\");\r\n\t\t\t}\r\n\r\n\t\t}\r\n?></div><?\r\n\t}",
"public function show($id)\r\n\t{\r\n\t\t//\r\n\r\n\r\n\r\n\t}",
"public function show($resourceId, $eventId)\n {\n $routes = $this->routes;\n\n $eventable = $this->getEventableRepository()->model()->findOrFail($resourceId);\n\n if (method_exists($eventable, 'events')) {\n $event = $eventable->events()->find($eventId);\n\n if ($event) {\n $apiObject = $this->event->findApiObject($event->api_id);\n\n return view('events.eventables.show', compact('routes', 'eventable', 'event', 'apiObject'));\n }\n }\n\n abort(404);\n }",
"public abstract function display();",
"abstract public function resource($resource);",
"public function show($id)\r\r\n\t{\r\r\n\t\t//\r\r\n\t}",
"public function show( $id ) {\n\t\t//\n\t}",
"public function show( $id ) {\n\t\t//\n\t}",
"public function show(Response $response)\n {\n //\n }",
"public function show()\n {\n return auth()->user()->getResource();\n }",
"public function show($id)\n\t{\n\t\t//\n\t}",
"public function show($id)\n\t{\n\t\t//\n\t}",
"public function show($id)\n\t{\n\t\t//\n\t}",
"public function show($id)\n\t{\n\t\t//\n\t}",
"public function show($id)\n\t{\n\t\t//\n\t}",
"public function show($id)\n\t{\n\t\t//\n\t}",
"public function show($id)\n\t{\n\t\t//\n\t}",
"public function show($id)\n\t{\n\t\t//\n\t}",
"public function show($id)\n\t{\n\t\t//\n\t}",
"public function show($id)\n\t{\n\t\t//\n\t}",
"public function show($id)\n\t{\n\t\t//\n\t}",
"public function show($id)\n\t{\n\t\t//\n\t}",
"public function show($id)\n\t{\n\t\t//\n\t}",
"public function show($id)\n\t{\n\t\t//\n\t}",
"public function show($id)\n\t{\n\t\t//\n\t}",
"public function show($id)\n\t{\n\t\t//\n\t}",
"public function show($id)\n\t{\n\t\t//\n\t}",
"public function show($id)\n\t{\n\t\t//\n\t}",
"public function show($id)\n\t{\n\t\t//\n\t}",
"public function show($id)\n\t{\n\t\t//\n\t}",
"public function show($id)\n\t{\n\t\t//\n\t}",
"public function show($id)\n\t{\n\t\t//\n\t}"
] | [
"0.8233718",
"0.8190437",
"0.6828712",
"0.64986944",
"0.6495974",
"0.6469629",
"0.6462615",
"0.6363665",
"0.6311607",
"0.62817234",
"0.6218966",
"0.6189695",
"0.61804265",
"0.6171014",
"0.61371076",
"0.61207956",
"0.61067593",
"0.6105954",
"0.6094066",
"0.6082806",
"0.6045245",
"0.60389996",
"0.6016584",
"0.598783",
"0.5961788",
"0.59606946",
"0.5954321",
"0.59295714",
"0.59182066",
"0.5904556",
"0.59036547",
"0.59036547",
"0.59036547",
"0.5891874",
"0.58688277",
"0.5868107",
"0.58676815",
"0.5851883",
"0.58144855",
"0.58124036",
"0.58112013",
"0.5803467",
"0.58012545",
"0.5791527",
"0.57901084",
"0.5781528",
"0.5779676",
"0.5757105",
"0.5756208",
"0.57561266",
"0.57453394",
"0.57435393",
"0.57422745",
"0.5736634",
"0.5736634",
"0.5730559",
"0.57259274",
"0.5724891",
"0.5722562",
"0.5722562",
"0.5722562",
"0.5722562",
"0.5722562",
"0.5722562",
"0.5722562",
"0.5722562",
"0.5722562",
"0.5722562",
"0.5718969",
"0.5713412",
"0.57091093",
"0.5706405",
"0.57057405",
"0.5704541",
"0.5704152",
"0.57026845",
"0.57026845",
"0.56981397",
"0.5693083",
"0.5684962",
"0.5684962",
"0.5684962",
"0.5684962",
"0.5684962",
"0.5684962",
"0.5684962",
"0.5684962",
"0.5684962",
"0.5684962",
"0.5684962",
"0.5684962",
"0.5684962",
"0.5684962",
"0.5684962",
"0.5684962",
"0.5684962",
"0.5684962",
"0.5684962",
"0.5684962",
"0.5684962",
"0.5684962"
] | 0.0 | -1 |
Update the specified resource in storage. | public function update(Request $request, $id)
{
//
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function updateShopifyResource() {\n $this->saving();\n $this->getShopifyApi()->call([\n 'URL' => API::PREFIX . $this->getApiPathSingleResource(),\n 'METHOD' => 'PUT',\n 'DATA' => [\n static::getResourceSingularName() => $this->shopifyData\n ]\n ]);\n }",
"public function update(Request $request, Resource $resource)\n {\n $request->validate([\n 'name' => 'required',\n 'description' => 'required|string',\n 'file' => 'required|mimes:jpg,jpeg,png,doc,docx,pdf,ppt,txt',\n ]);\n\n $resource->update($request->all());\n\n if ( $request->hasFile('file') ) {\n $resource = 'resource-'.time().'.'.$request->file('file')->extension();\n $request->file->storeAs('resources', $resource,'public');\n $resource->file = $resource;\n }\n\n if ( $resource->save() ) {\n return redirect()->route('admin.resources.index')->with('success', 'Resource updated');\n } else {\n return redirect()->route('admin.resources.index')->with('error', 'Something went wrong');\n }\n }",
"public function update(Request $request, Resource $resource)\n {\n //\n }",
"public function updateStream($resource);",
"public function update(Request $request, Storage $storage)\n {\n $storage->product_id = $request->product_id;\n $storage->amount = $request->amount;\n\n $storage->save();\n\n return redirect()->route('storages.index');\n }",
"protected function updateImageResource($fileName, $imageId, $storage)\n {\n //Get image name and storage location for image\n $image = Image::where('id', '=', $imageId)->first();\n\n //Delete old image\n $this->deleteResource($image->name, $image->storage);\n\n //Store the new image\n $image->name = $fileName;\n $image->storage = $storage;\n\n $image->save();\n }",
"public function update(Storage $storage, UpdateStorageRequest $request)\n {\n $this->storage->update($storage, $request->all());\n\n return redirect()->route('admin.product.storage.index')\n ->withSuccess(trans('core::core.messages.resource updated', ['name' => trans('product::storages.title.storages')]));\n }",
"public function update(StoreStorage $request, Storage $storage)\n {\n $storage->fill($request->all())->save();\n $request->session()->flash('alert-success', 'Запись успешно обновлена!');\n return redirect()->route('storage.index');\n }",
"public function update_asset($id, Request $request){\n \t\tif(!Auth::user()){\n\t\t\treturn redirect('/');\n\t\t}\n \t\t$asset = Storage::find($id);\n \t\t$asset->name = $request->name;\n \t\t$asset->quantity = $request->quantity;\n \t\t$asset->category_id = $request->category;\n \t\tif($request->file('image') != null){\n\t\t\t$image = $request->file('image');\n\t\t\t$image_name = time(). \".\" . $image->getClientOriginalExtension();\n\t\t\t$destination = \"images/\";\n\t\t\t$image->move($destination, $image_name);\n\t\t\t$asset->image_url = $destination.$image_name;\n\t\t} \n\t\t$asset->save();\n\t\tsession()->flash('success_message', 'Item Updated successfully');\n\t\treturn redirect(\"/storage\");\n \t}",
"public function update(Request $request, Flight $exercise, FlightResource $resource)\n {\n $request->validate([\n 'display_name' => 'required|string|max:100',\n 'file' => 'nullable|file|max:10240|mimes:pdf',\n 'uri' => 'nullable|url|max:255',\n ]);\n\n if ($resource->type === 'file' && $request->file('file')) {\n Storage::drive('public')->delete($resource->resource);\n $resource->resource = $request->file('file')->store('smartcars/exercises/resources', ['disk' => 'public']);\n } elseif ($resource->type === 'uri' && $request->input('uri')) {\n $resource->resource = $request->input('uri');\n }\n\n $resource->save();\n\n return redirect()->route('adm.smartcars.exercises.resources.index', $exercise)\n ->with('success', 'Resource edited successfully.');\n }",
"public function update(Request $request, $id)\n {\n $validator = Validator::make($request->all(), [\n 'title' => 'required|string',\n 'content' => 'required|string',\n 'mentoring_area_id' => 'required|integer',\n 'featured_image_uri' => 'string',\n ]);\n\n if ($validator->fails()) {\n return APIHandler::response(0, $validator->errors(), 400);\n }\n \n $resource = Resource::find($id);\n $resource->title = $request->get('title');\n $resource->content = $request->get('content');\n $resource->featured_image_uri = $request->get('featured_image_uri');\n $resource->updated_at = \\Carbon\\Carbon::now();\n $resource->mentoring_area_id = $request->get('mentoring_area_id');\n $resource->save();\n $data['resource'] = $resource;\n return APIHandler::response(1, \"Resource has been updated\");\n }",
"protected function updateVideoResource($fileName, $videoId, $storage, $premium=1)\n {\n //Get video name and storage location for video\n $video = Video::where('id', '=', $videoId)->first();\n\n //Check the storage medium\n if($storage == 'vimeo' || $storage == 'youtube')\n {\n $video->name = $fileName;\n $video->storage = $storage;\n $video->premium = $premium;\n $video->save();\n }\n else\n {\n if($video['storage'] == 'local' || $video['storage'] == 's3')\n {\n //Delete old video\n $this->deleteResource($video->name, $video->storage);\n }\n \n //Store the new video\n $video->name = $fileName;\n $video->storage = $storage;\n $video->premium = $premium;\n $video->save();\n }\n }",
"public function put($resource, $with=[]){\n return $this->fetch($resource, self::PUT, $with);\n }",
"public function update($id, $resource) {\n SCA::$logger->log(\"update resource\");\n return $this->orders_service->update($id, $resource);\n }",
"public function update($path);",
"public function update($id, $resource)\n {\n SCA::$logger->log(\"Entering update()\");\n //check whether it is an sdo or an xml string.\n if ($resource instanceof SDO_DataObjectImpl) {\n //if the thing received is an sdo convert it to xml\n if ($this->xml_das !== null) {\n $xml = SCA_Helper::sdoToXml($this->xml_das, $resource);\n } else {\n throw new SCA_RuntimeException(\n 'Trying to update a resource with SDO but ' .\n 'no types specified for reference'\n );\n }\n } else {\n $xml = $resource;\n }\n\n $slash_if_needed = ('/' === $this->target_url[strlen($this->target_url)-1])?'':'/';\n\n $handle = curl_init($this->target_url.$slash_if_needed.\"$id\");\n curl_setopt($handle, CURLOPT_HEADER, false);\n curl_setopt($handle, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($handle, CURLOPT_CUSTOMREQUEST, \"PUT\");\n curl_setopt($handle, CURLOPT_POSTFIELDS, $xml);\n\n //replace with Content-Type: atom whatever\n $headers = array(\"User-Agent: SCA\",\n \"Content-Type: text/xml;\",\n \"Accept: text/plain\");\n curl_setopt($handle, CURLOPT_HTTPHEADER, $headers);\n\n $result = curl_exec($handle);\n\n $response_http_code = curl_getinfo($handle, CURLINFO_HTTP_CODE);\n\n curl_close($handle);\n\n $response_exception = $this->buildResponseException($response_http_code, '200');\n\n if ($response_exception != null) {\n throw $response_exception;\n } else {\n //update does not return anything in the body\n return true;\n }\n }",
"public function update(Request $request, $id)\n {\n $this->validate($request, [\n 'name' => 'required',\n 'link' => 'required',\n 'description' => 'required'\n ]);\n\n $resource = Resource::find($id);\n $resource->name = $request->name;\n $resource->type_id = $request->type_id;\n $resource->has_cost = ($request->has('has_cost')) ? 1 : 0;\n $resource->language_id = $request->language_id;\n $resource->link = $request->link;\n $resource->description = $request->description;\n $resource->tags = '';\n\n $resource->save();\n //return back()->with('success', 'Recurso actualizado satisfactoriamente');\n return redirect('/resource')->with('success', 'Recurso actualizado satisfactoriamente');\n }",
"public function update(Request $request, $id)\n {\n $oldProduct = Product::findOrFail($id);\n $data = $request->all();\n if(isset($data['img'])){\n // $file = $request->file('photo');\n // return $file;\n $imgName = time().'.'.$request->img->extension();\n $data['img'] = $imgName;\n // Storage::putFile('spares', $file);\n $path = $request->img->storeAs('public/uploads', $imgName); //in Storage\n\n //delete old file\n if($oldProduct->img != 'product-default.png'){\n Storage::delete(\"public/uploads/\".$oldProduct->img);\n // return 'deleted';\n }\n \n }else{\n $data['img'] = $oldProduct->img;\n }\n $oldProduct->update($data);\n return redirect()->route('product.index'); \n\n }",
"public function update($request, $id) {\n\t\t\t$image = $request['photo'];\n\t\t\tif($image !== null) {\n\t\t\t\t$name = time().'.' . explode('/', explode(':', substr($image, 0, strpos($image, ';')))[1])[1];\n\t\t\t\t\\Image::make($request['photo'])->save(public_path('storage/products/').$name);\n\t\t\t\t$request['photo'] = $name;\n\t\t\t} else {\n\t\t\t\t$currenPhoto = Product::all()->where('id', $id)->first();\n\t\t\t\t$request['photo'] = $currenPhoto->photo;\n\t\t\t}\n return $this->product->update($id, $request);\n\t}",
"public function updateStream($path, $resource, Config $config)\n {\n }",
"public function edit(Resource $resource)\n {\n //\n }",
"public function updateResourceIndex(&$resource) {\n if ($this->connector != null) {\n\n // STEP 1: Update or insert this resource as a node:\n $this->logger->addDebug(\"Updating/Inserting Node into Neo4J database\");\n $result = $this->connector->run(\"MATCH (a:Resource {id: {id} }) SET a.title = {title}, a.version = {version}, a.href = {href}\n return a;\",\n [\n 'id' => $resource->getID(),\n 'version' => $resource->getVersion(),\n 'title' => $resource->getTitle(),\n 'href' => $resource->getLink()\n ]\n );\n\n // Check to see if anything was added\n $records = $result->getRecords();\n if (empty($records)) {\n // Must create this record instead\n $result = $this->connector->run(\"CREATE (n:Resource) SET n += {infos};\",\n [\n \"infos\" => [\n 'id' => $resource->getID(),\n 'version' => $resource->getVersion(),\n 'title' => $resource->getTitle(),\n 'href' => $resource->getLink()\n ]\n ]\n );\n }\n\n // STEP 2: Update or insert the resource's link to holding repository\n $result = $this->connector->run(\"MATCH (a:Resource {id: {id} })-[r:HIRELATION]->()\n return r;\",\n [\n 'id' => $resource->getID(),\n ]\n );\n $records = $result->getRecords();\n if (!empty($records)) {\n // delete the one there so that we can add the correct one (just in case)\n $result = $this->connector->run(\"MATCH (a:Resource {id: {id}})-[r:HIRELATION]->() delete r;\",\n [\n 'id' => $resource->getID()\n ]\n );\n\n }\n\n // If resource has a repository, then add a link\n if ($resource->getRepository() != null && $resource->getRepository()->getID() != null) {\n $this->connector->run(\"MATCH (a:Identity {id: {id1} }) MATCH (b:Resource {id: {id2} }) CREATE (b)-[r:HIRELATION]->(a);\",\n [\n 'id1' => (string) $resource->getRepository()->getID(),\n 'id2' => $resource->getID()\n ]);\n }\n }\n }",
"public function update($data) {}",
"public function update($data) {}",
"public function putStream($resource);",
"public function update(Request $request, NebulaResource $resource, $item): RedirectResponse\n {\n $this->authorize('update', $item);\n\n $validated = $request->validate($resource->rules(\n $resource->editFields()\n ));\n\n $resource->updateQuery($item, $validated);\n\n $this->toast(__(':Resource updated', [\n 'resource' => $resource->singularName(),\n ]));\n\n return redirect()->back();\n }",
"public function saveShopifyResource() {\n if (is_null($this->getShopifyId())) { // if there is no id...\n $this->createShopifyResource(); // create a new resource\n } else { // if there is an id...\n $this->updateShopifyResource(); // update the resource\n }\n }",
"public function update($entity);",
"public function update($entity);",
"public function setResource($resource);",
"public function updateStream($path, $resource, Config $config)\n {\n return $this->upload($path, $resource, $config);\n }",
"public function isUpdateResource();",
"public function update(Request $request, $id)\n {\n $device = Device::findOrFail($id);\n $device->fill($request->all());\n if ($request->hasFile('icon')) {\n if ($device->hasMedia('icon')) {\n $device->deleteMedia($device->getFirstMedia('icon'));\n }\n $device->addMediaFromRequest('icon')->toMediaCollection('icon');\n }\n $device->save();\n return new DeviceResource($device);\n }",
"public function update(Request $request, $id)\n {\n //\n $product = Product::findOrFail($id);\n \n $product->update($request->all());\n \n $file = $request->file('url_image')->move('upload', $request->file('url_image')->getClientOriginalName());\n\n Product::where('id',$id)->update(['url_image'=>$file]);\n \n \\Session::flash('flash_message', 'Edit product successfully.'); \n \n //cũ : return redirect('articles');\n return redirect()->route('products.index');\n }",
"public function store($data, Resource $resource);",
"public function update(Request $request, $id)\n {\n \n $product = Product::find($id);\n\n\n $product->fill($request->all())->save();\n\n //Verificamos que tenemos una imagen\n if($request->file('photo_1')){\n\n\n //En caso de tenerla la guardamos en la clase Storage en la carpeta public en la carpeta image.\n $path = Storage::disk('public')->put('photo_1',$request->file('photo_1'));\n\n //Actualizamos el Post que acabamos de crear\n $product->fill(['photo_1' => asset($path)])->save();\n\n }\n\n\n return redirect()->route('products.index')->with('info', 'Producto actualizado exitosamente!');\n }",
"public function update(Request $request, $id)\n {\n $product = Product::find($id);\n\n if (\\Input::hasFile('image')) {\n $this->imgsave($request, $product);\n }\n\n\n if (!empty($request->input('tags'))) {\n $product->tags()->sync($request->input('tags'));\n } else {\n $product->tags()->detach();\n }\n\n $product->update($request->all());\n\n return redirect()->to('dashboard/product')->with('message', 'update success');\n }",
"public function put($resource_path, array $variables = array()) {\n return $this->call($resource_path, $variables, 'PUT');\n }",
"public function update($id)\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n if (method_exists($this, 'updateValidations')) {\n $this->request->validate($this->updateValidations());\n }\n\n /* Get the specified resource */\n $resource = $this->model::findOrFail($id);\n\n /* Update the specified resource */\n $resource->update(Input::all());\n\n /* Redirect back */\n return redirect()->back()\n ->with(\n 'info',\n Lang::has($this->name . '.resource-updated') ?\n $this->name . '.resource-updated' :\n 'messages.alert.resource-updated'\n );\n }",
"public function putResponse($request)\n {\n $idSearched = $this->searcher->searchResourceIndex(\n $request, \n $this->db[$request['resource']]\n );\n if ($idSearched) {\n $resource = $this->db[$request['resource']][$idSearched];\n $bodyInput = json_decode($this->standardInput, true);\n $resource = BodyRequest::canApplyBody($bodyInput);\n $resource['id'] = (int)$request['param'];\n foreach($resource as $key => $value) {\n $this->db[$request['resource']][$idSearched][$key] = $value;\n }\n file_put_contents(DB_PATH, json_encode($this->db));\n }\n }",
"public function update(Storedataset $request, dataset $dataset){\n $dataset->title = $request->input('title');\n $dataset->caption = $request->input('caption');\n $dataset->file_url = $request->input('file_url');\n $dataset->type = $request->input('type');\n $dataset->status = $request->input('status');\n $dataset->publication_id = $request->input('publication_id');\n\n $dataset->save();\n\n return redirect()->route('datasets.show', ['dataset' => $dataset]);\n }",
"public function update(Request $request, $id)\n\n {\n ResourceManagement::findOrFail($id);\n $constraints = [\n 'title' => 'required|max:100',\n 'url'=> 'required|max:191',\n 'content' => 'required'\n ];\n\n $input = [\n 'title' => $request['title'],\n 'url' => $request['url'],\n 'content' => $request['content'],\n 'type' => $request['type'],\n 'level' => $request['level'],\n 'user_id' => $request['user']\n ];\n// $this->validate($input, $constraints);\n ResourceManagement::where('id', $id)\n ->update($input);\n\n return redirect()->intended('/resource-management');\n }",
"public function update(Request $request, $id)\n {\n $this->validate($request, [\n 'title' => 'required',\n 'description' => 'required|string',\n 'price' => 'required|numeric',\n 'reference'=>'required'\n ]);\n \n $product = Product::find($id);\n $product->update($request->all());\n \n $im = $request->file('picture');\n \n if (!empty($im)) {\n \n $link = $request->file('picture')->store('images');\n \n \n $product->update([\n 'url_image' => $link,\n ]);\n } \n //dump($request->all());\n return redirect()->route('product.index')->with('message', 'Article modifié avec succès');\n }",
"public function update(StoreOrUpdateAsset $request, Asset $asset)\n {\n if (Storage::exists($asset->path) && !Storage::delete($asset->path)) {\n abort(500);\n }\n\n $file = $request->file('file');\n $path = $file->store('assets');\n\n if (!$path) {\n abort(500);\n }\n\n // We wonder if we should delete the old file or not...\n\n $asset->name = $file->getClientOriginalName();\n $asset->size = $file->getSize();\n $asset->type = $file->getMimeType();\n $asset->path = $path;\n\n if ($asset->save()) {\n flash('The asset has been saved.')->success();\n } else {\n abort(500);\n }\n\n return redirect('/admin/assets');\n }",
"public function update(FoodRecipeRequest $request, $id)\n {\n $foodRecipe = FoodRecipe::with('ingredients','cookingProcesses')->findOrFail($id);\n if ($request->input('name')!= null)\n $foodRecipe->name = $request->input('name');\n if ($request->input('detail')!= null)\n $foodRecipe->detail = $request->input('detail');\n if($request->file('photo') != null) {\n $old_file = $foodRecipe->photo;\n if($old_file != null){\n $path = public_path().'/storage/'.$old_file;\n File::delete($path);\n }\n $file = $request->file('photo');\n $name = '/foodRecipe/' . Carbon::now()->format(\"dnY-Hisu\") . \".\" . $file->extension();\n $file->storePubliclyAs('public', $name);\n $foodRecipe->photo = $name;\n }\n $foodRecipe->save();\n return new FoodRecipeResource($foodRecipe);\n }",
"public function update(StorageTypeRequest $request, $id)\n {\n try {\n $this->service->updateStorageType($request, $id);\n return $this->NoContent();\n } catch (EntityNotFoundException $e) {\n \\Log::error($e->getMessage());\n return $this->NotFound($e->getMessage());\n } catch(\\QueryException $e) {\n \\Log::error($e->getMessage());\n return $this->ServerError();\n } catch(Exception $e) {\n \\Log::error($e->getMessage());\n return $this->ServerError();\n }\n }",
"public function update(Request $request, $id)\n {\n //validation\n $this->validate(request(),[\n 'image' => 'image'\n ]);\n\n $slider = HomeSliders::find($id);\n \n $slider->link = request('link');\n\n //get old image to delete if updated\n $oldImage = request('oldImage');\n //get the new image\n $NewImage=$request->file('image');\n\n if($NewImage)\n {\n $filenameToStore= helpers::updatePhoto('image','homeSliders',$request);\n $slider->image=$filenameToStore;\n\n Storage::delete('public/Images/homeSliders/'.$oldImage);\n }\n\n $slider->save();\n\n Alert::success(config('app.name'), trans('messages.Updated Successfully') );\n return redirect()->route('admin.homeSlider',$slider->type);\n }",
"public function update(Qstore $request, $id)\n {\n //\n }",
"public function update(IEntity $entity);",
"protected function performUpdate(): bool\n {\n // Abort if resource does not support update operations\n if (!$this->isUpdatable()) {\n throw new UnsupportedOperation(sprintf('API does not support update operation for %s resources', $this->resourceNameSingular()));\n }\n\n $id = $this->id();\n $prepared = $this->prepareBeforeUpdate($this->toArray());\n\n $payload = [\n $this->resourceNameSingular() => $prepared\n ];\n\n $response = $this\n ->request()\n ->put($this->endpoint($id), $payload);\n\n // Extract and (re)populate resource (if possible)\n // Note: Unlike the \"create\" method, Redmine does NOT\n // appear to send back a full resource when it has been\n // successfully updated.\n $this->fill(\n $this->decodeSingle($response)\n );\n\n return true;\n }",
"public function update($request, $id);",
"function put($resource, $data = null) {\r\n\t\t\r\n\t\tif(isset($data)) {\r\n\t\t\t$this->request_body = $data;\r\n\t\t}\r\n\r\n\t\t// make the call chief\r\n\t\t$this->exec ( \"PUT\", '/' . $resource );\r\n\r\n\t\t// check the request status\r\n\t\tif($this->status_code != 200){\r\n\t\t\t$this->Logger->error(\r\n\t\t\t\tsprintf(\r\n\t\t\t\t\t'GET Call for resource \\'%s\\' Failed.\r\n\t\t\t\t\tStatus: %d,\r\n\t\t\t\t\tRequest: %s\r\n\t\t\t\t\tAPI Error Message: \r\n\t\t\t\t\t%s',\r\n\t\t\t\t\t$resource,\r\n\t\t\t\t\t$this->status_code,\r\n\t\t\t\t\t$this->request_body_raw,\r\n\t\t\t\t\t$this->response_body\r\n\t\t\t\t)\r\n\t\t\t);\r\n\t\t\tthrow new Exception($this->response_body);\r\n\t\t} else {\r\n\t\t\treturn $this->response_parsed;\r\n\t\t}\r\n\t}",
"public function updateEntities($resource)\n {\n $json = [\n 'resource' => $resource,\n ];\n $request = $this->createRequest('PUT', '/entities', ['json' => $json]);\n $response = $this->send($request);\n return $response;\n }",
"public function updateStream($path, $resource, Config $config)\n {\n return $this->writeStream($path, $resource, $config);\n }",
"public function update(Request $request, $id)\n {\n\n $product = Product::findOrFail($id);\n $product->name = $request['name'];\n $product->price = $request['price'];\n $product->stock = $request['stock'];\n $product->description = $request['description'];\n\n $file = $request->file('image');\n $fileName = $file->getClientOriginalName();\n if($fileName != $product->image){\n $request->file('image')->move('images/',$fileName);\n $product->image = $fileName;\n }\n\n $product->save();\n\n return redirect()->route('products.show',\n $product->id)->with('flash_message',\n 'Article, '. $product->name.' updated');\n }",
"protected function handleUpdate()\n {\n $resource = $this->argument('resource');\n $action = $this->option('action');\n $startPage = (int)$this->option('startPage');\n $perPage = (int)$this->option('perPage');\n\n try {\n $harvest = Harvest::where('resource', $resource)->where('action', $action)->firstOrFail();\n } catch (\\Exception $e) {\n $this->info('There is no existing action for updating ' . ucwords($action) . ' ' . ucwords($resource) . '.');\n exit('Nothing was updated.');\n }\n\n $options = [\n 'startPage' => $startPage,\n 'perPage' => $perPage,\n 'lastRun' => $harvest->last_run_at\n ];\n\n // If a lastRun was given use that\n // OR if this has never been run before use 2001-01-01\n if (!empty($this->option('lastRun'))) {\n $options['lastRun'] = new Carbon($this->option('lastRun'));\n } elseif (is_null($options['lastRun'])) {\n $options['lastRun'] = new Carbon('2001-01-01');\n }\n\n $job = new UpdateResourceJob(\n $harvest,\n $options\n );\n\n $message = 'Updating ' . $action . ' ' . $resource . ' ' . $perPage . ' at a time';\n if (isset($lastRun)) {\n $message .= ' with entries updated since ' . $lastRun->format('r');\n }\n $this->info($message);\n $this->dispatch($job);\n }",
"abstract public function put($data);",
"public function update($id, $data);",
"public function update($id, $data);",
"public function update($id, $data);",
"public function update($id, $data);",
"public function update($id, $data);",
"public function testUpdateSupplierUsingPUT()\n {\n }",
"public function update(Request $request, $id)\n {\n $storageplace = Storageplace::findOrFail($id);\n $storageplace->update($request->only(['storageplace']));\n return $storageplace;\n }",
"public function updateRelatedImage(Request $request, $id)\n {\n // Delete display image in Storage\n Validator::make($request->all(), ['photos' => \"required|file|image|mimes:jpg,png,jpeg|max:5000\"])->validate();\n\n\n if ($request->hasFile(\"photos\")) {\n\n $photo = ProductsPhoto::find($id);\n $imageName = $photo->photos;\n $exists = Storage::disk('local')->exists(\"public/product_images/\" . $photo->photos);\n\n //delete old image\n if ($exists) {\n Storage::delete('public/product_images/' . $imageName);\n }\n\n //upload new image\n $ext = $request->file('photos')->getClientOriginalExtension(); //jpg\n\n $request->photos->storeAs(\"public/product_images/\", $imageName);\n\n $arrayToUpdate = array('photos' => $imageName);\n DB::table('products_photos')->where('id', $id)->update($arrayToUpdate);\n\n return redirect()->route(\"adminDisplayRelatedImageForm\", ['id' => $photo->product_id]);\n } else {\n\n $error = \"NO Image was Selected\";\n return $error;\n }\n }",
"public function update(Request $request, $id)\n {\n $skill = Skill::findOrFail($id);\n\n $skill->skill = $request->skill;\n\n if ($request->hasFile('image')) {\n \\Cloudder::upload($request->file('image'));\n $c=\\Cloudder::getResult();\n // $image = $request->file('image');\n // $filename = time() . '.' . $image->getClientOriginalExtension();\n // $location = public_path('images/' . $filename);\n // Image::make($image)->save($location);\n\n $skill->image = $c['url'];\n }\n\n $skill->save();\n\n Session::flash('success', 'Successsfully updated your skill!');\n return redirect()->route('skills.index');\n }",
"public function updateStream($path, $resource, Config $config = null)\n {\n $contents = stream_get_contents($resource);\n\n return $this->write($path, $contents, $config);\n }",
"public abstract function update($object);",
"public static function update($id, $file)\n {\n Image::delete($id);\n\n Image::save($file);\n }",
"public function update(Request $request, $id)\n {\n $product = Product::find($id);\n $image = $product->image;\n if($request->hasFile('image')){\n $image = $request->file('image')->store('files');\n \\Storage::delete($product->image);\n } \n $product->name = $request->get('name');\n $product->price = $request->get('price');\n $product->description = $request->get('description');\n $product->additional_info = $request->get('additional_info');\n $product->category_id = $request->get('category');\n $product->subcategory_id = $request->get('subcategory');\n $product->image = $image;\n $product->save();\n return redirect()->back();\n }",
"public function update(Request $request, $id)\n {\n $sli=Slider::find($id);\n $sli->sort_order=$request->input('sort_order');\n $image = $request->file('slider');\n if($image == ''){\n $image = $sli->slider;\n }else{\n $image = base64_encode(file_get_contents($request->file('slider')));\n }\n $sli->slider = $image;\n $sli->save();\n return redirect()->back();\n }",
"public function update(ProductRequest $request, $id)\n {\n $input = Product::find($id);\n $data = $request->all();\n if ($file = $request->file('product_photo')){\n $name = time().$file->getClientOriginalName();\n $file->move('product_image',$name);\n $data['product_photo']=$name;\n// $input->update($data);\n }\n $input->update($data);\n return redirect('admin/products/');\n }",
"public function update(Request $request, $id)\n {\n $volume = $this->findVolume($id);\n\n if(count($volume) > 0) {\n $volume->str_volume_name = $request->str_volume_name;\n\n $volume->save();\n }\n\n return response()\n ->json(\n array(\n 'message' => 'Volume is successfully updated.',\n 'volume' => $volume\n ),\n 201\n );\n }",
"public function update(Request $request, $id)\n {\n $product = ProductModel::find($id);\n $product->name = $request->name;\n $product->description = $request->description;\n $product->price = $request->price;\n $product->stock = $request->stock;\n\n if($request->image!=null){\n $imageName = time().'.'.$request->image->extension();\n $request->image->move(public_path('images'), $imageName);\n $product->image = \"/images/\".$imageName;\n }\n $product->save();\n return redirect(\"/products/index\")->with('success','Product has been updated');\n }",
"public function update()\n {\n $accessory = Accessories::find(request('id'));\n\n if ($accessory == null) {\n return response()->json([\"error\" => \"aksesuaras nerastas\"], 404);\n }\n\n $this->validateData();\n $path = $accessory->src;\n\n if (request()->hasFile('src')) {\n\n if (Storage::disk('public')->exists($accessory->src)) {\n Storage::disk('public')->delete($accessory->src);\n }\n $path = request()->file('src')->store('accessoriesImages', 'public');\n }\n\n $accessory->update(array_merge($this->validateData(), ['src' => $path]));\n\n return response()->json([\"data\" => $accessory], 200);\n }",
"public function update(ProductStoreRequest $request,$id)\n {\n $data = $request->validated();\n $product = Product::where('id',$id);\n $product->update($data);\n return response(\"Producto actualizado con éxito\",200);\n }",
"public function update($entity)\n {\n \n }",
"public function updateStream($path, $resource, Config $config)\n {\n return $this->write($path,stream_get_contents($resource),$config);\n }",
"public function update($id, Request $request)\n {\n date_default_timezone_set('Asia/Taipei');\n $data = $request->all();\n $dbData = Product::find($id);\n $myfile = Storage::disk('local');\n if ($request->hasFile('img')) {\n $file = $request->file('img');\n $path = $myfile->putFile('public', $file);\n $data['img'] = $myfile->url($path);\n File::delete(public_path($dbData->img));\n }\n $dbData->update($data);\n\n if ($request->hasFile('imgs')) {\n // $this->fetchDestroyByProdId($id);\n $localS = Storage::disk('local');\n\n $fileS = $request->file('imgs');\n $imgs = [];\n foreach ($fileS as $i) {\n $pathS = $localS->putFile('public', $i);\n $imgs[] = $localS->url($pathS);\n }\n foreach ($imgs as $img) {\n ProductImg::create([\n 'product_id' => $id,\n 'img' => $img\n ]);\n }\n }\n\n return redirect()->route('admin');\n }",
"public function update(Request $request, Product $product)\n { $remfile= $product->image;\n if($request->filep){\n $product->image=$request->filep;\n File::delete(storage_path('app/public/products/'.$remfile));\n }else{\n $product->image=$remfile;\n }\n //rmdir(storage_path('app/public/products/'.$remfile));\n $product->name = $request->name;\n $product->description = $request->description;\n $product->price = $request->price;\n $product->save();\n sleep(3);\n toast('Details updated successfully','info');\n return redirect('/products');\n }",
"public function update($id, $input);",
"public function update(ProductRequest $request,int $id): ProductResource\n {\n $attributes = $request->only('supplier_id', 'name', 'warehouses');\n\n return new ProductResource($this->productRepository->update($id, $attributes)); }",
"public function update(Request $request, $id)\n {\n $slider=new Slider;\n $slider=$slider::find($id);\n \n \n if($file =$request->file('slider')){\n if(Storage::delete('public/slider/'.$slider->slider)){\n\n //Get file original name//\n \n$original_name=$file->getClientOriginalName();\n\n //Get just the file name\n$filename=pathinfo($original_name,PATHINFO_FILENAME);\n\n//Create new file name\n$name=$filename.'_'.time().'.'.$file->getClientOriginalExtension();\n\n $destination='public/slider';\n $path=$request->slider->storeAs($destination,$name);\n $slider->slider=$name;\n $slider->save();\n return redirect('Admin/slider');\n\n }\n }\n}",
"public function update(Request $request, $id)\n {/* dd($request->all()); */\n $acheivePic = $this->acheiveRepo->find($id);\n $acheive = $request->except('_method', '_token', 'photo', 'ar', 'en');\n $acheiveTrans = $request->only('ar', 'en');\n\n if ($request->hasFile('icon')) {\n // Delete old image first.\n $oldPic = public_path() . '/images/acheives/' . $acheivePic->icon;\n File::delete($oldPic);\n\n // Save the new one.\n $image = $request->file('icon');\n $imageName = $this->upload($image, 'acheives');\n $acheive['icon'] = $imageName;\n }\n\n $this->acheiveRepo->update($id, $acheive, $acheiveTrans);\n\n return redirect('admin-panel/widgets/acheive')->with('updated', 'updated');\n }",
"public function update(Request $request, $id)\n {\n $data = $request->all();\n extract($data);\n\n $productVarient = new ProductVariant();\n $productVarient = $productVarient->find($id);\n $productVarient->vendor_id = auth()->user()->id;\n $productVarient->description = $prod_desc;\n $productVarient->price = $price;\n\n if(request()->hasFile('photo')){\n $image = request()->file('photo')->getClientOriginalName();\n $imageNewName = auth()->user()->id.'-'.$image;\n $file = request()->file('photo');\n $file->storeAs('images/product',$imageNewName, ['disk' => 'public']);\n $productVarient->image = $imageNewName;\n }\n \n $productVarient->save();\n\n return back()->withStatus(__('Product successfully updated.'));\n }",
"public function update(Request $request, $id)\n {\n //if upload new image, delete old image\n $myfile=$request->old_photo;\n if($request->hasfile('photo'))\n {\n $imageName=time().'.'.$request->photo->extension();\n $name=$request->old_photo;\n\n if(file_exists(public_path($name))){\n unlink(public_path($name));\n $request->photo->move(public_path('backendtemplate/truefalseimg'),$imageName);\n $myfile='backendtemplate/truefalseimg/'.$imageName;\n }\n }\n //Update Data\n $truefalsequestion=TrueFalseQuestion::find($id);\n $truefalsequestion->name=$request->name;\n $truefalsequestion->photo=$myfile;\n $truefalsequestion->answer = $request->answer;\n $truefalsequestion->question_id = $request->question;\n $truefalsequestion->save();\n\n //Redirect\n return redirect()->route('truefalsequestions.index'); \n }",
"public function update($id);",
"public function update($id);",
"private function update()\n {\n $this->data = $this->updateData($this->data, $this->actions);\n $this->actions = [];\n }",
"public function put($path, $data = null);",
"public function update(Request $request, $id)\n {\n $request->validate([\n 'path_image'=>'image',\n 'status'=>'required|in:0,1'\n ]);\n $slider=Slider::whereId($id)->first();\n if (is_null($slider)){\n return redirect()->route('sliders.index')->with('error','Slider does not exist');\n }\n try {\n if ($request->hasFile('path_image')){\n $file = $request->file('path_image');\n\n $image_path= $file->store('/sliders',[\n 'disk'=>'uploads'\n ]);\n Storage::disk('uploads')->delete($slider->image);\n\n $request->merge([\n 'image'=>$image_path,\n ]);\n }\n\n $slider->update( $request->only(['status','image']));\n return redirect()->route('sliders.index')->with('success','Updated successful');\n }catch (\\Exception $exception){\n return redirect()->route('sliders.index')->with(['error'=>'Something error try again']);\n\n }\n }",
"public function update() {\n $this->accessory->update($this->accessory_params());\n\n if ($this->accessory->is_valid()) {\n $this->update_accessory_image($this->accessory);\n redirect('/backend/accessories', ['notice' => 'Successfully updated.']);\n } else {\n redirect(\n '/backend/accessories/edit',\n ['error' => $this->accessory->errors_as_string()],\n ['id' => $this->accessory->id]\n );\n }\n }",
"public function update(Entity $entity);",
"public function update(Request $request, $id)\n {\n $icon = SliderIcon::find($id);\n $data = $request->all();\n $data['active'] = $request->has('active') ? 1 : 0;\n if ($request->hasFile('img')) {\n if (Storage::disk('public')->exists(str_replace('storage', '', $icon->img))){\n Storage::disk('public')->delete(str_replace('storage', '', $icon->img));\n }\n $image = $request->file('img');\n $fileName = time().'_'.Str::lower(Str::random(5)).'.'.$image->getClientOriginalExtension();\n $path_to = '/upload/images/'.getfolderName();\n $image->storeAs('public'.$path_to, $fileName);\n $data['img'] = 'storage'.$path_to.'/'.$fileName;\n }\n $icon->update($data);\n return redirect()->route('slider_icons.index')->with('success', 'Данные преимущества обнавлены');\n }",
"public function update() {\n\t $this->layout = false;\n\t \n\t //set default response\n\t $response = array('status'=>'failed', 'message'=>'HTTP method not allowed');\n\t \n\t //check if HTTP method is PUT\n\t if($this->request->is('put')){\n\t //get data from request object\n\t $data = $this->request->input('json_decode', true);\n\t if (empty($data)) {\n\t $data = $this->request->data;\n\t }\n\t \n\t //check if product ID was provided\n\t if (!empty($data['id'])) {\n\t \n\t //set the product ID to update\n\t $this->Player->id = $data['id'];\n\t if ($this->Player->save($data)) {\n\t $response = array('status'=>'success','message'=>'Product successfully updated');\n\t } else {\n\t $response['message'] = \"Failed to update product\";\n\t }\n\t } else {\n\t $response['message'] = 'Please provide product ID';\n\t }\n\t }\n\t \n\t $this->response->type('application/json');\n\t $this->response->body(json_encode($response));\n\n\t return $this->response->send();\n\t}",
"public function update(Request $request, $id)\n {\n //validate incoming request\n $request->validate([\n 'name' => 'string|max:100|nullable',\n 'picture' => 'max:2000|mimes:jpeg,jpg,png,svg|nullable', //max size 2mb,\n 'total' => 'integer|min:0|nullable', //value must be > 0\n 'selling_price' => 'numeric|min:0|nullable',\n 'cost_price' => 'numeric|min:0|nullable',\n 'category_id' => 'integer|nullable'\n ]);\n\n try {\n $product = Auth::user()->store->product()->findorFail($id);\n } catch (ModelNotFoundException $e) {\n return response()->json([\n \"message\" => \"Forbidden\"\n ], 403);\n }\n\n //if category id isnt null\n if ($category_id = $request->category_id) {\n if (!$this->isCategoryIdValid($category_id))\n return response()->json([\n \"message\" => \"Category Id is not valid\"\n ], 422);\n else\n $product->category_id = $request->category_id;\n }\n\n //if uploaded file exist\n if ($picture = $request->file(\"picture\")) {\n //if product already has logo\n if ($product->picture)\n Storage::delete(Product::$PICTURE_PATH . \"/\" . $product->picture);\n\n $picture_path = $picture->store(Product::$PICTURE_PATH);\n //remove folder name from path\n $product->picture = str_replace(Product::$PICTURE_PATH . \"/\", '', $picture_path);\n }\n\n $this->renewProduct($product, $request);\n $product->save();\n return response()->json(new ProductResource($product), 200);\n }",
"public function update(Request $request, $id)\n {\n $request->validate([\n 'name' => 'required | min:3 | string',\n 'type' => 'required',\n 'producer' => 'required',\n 'image' => 'image | mimes:png,jpg,jpeg',\n 'price_input' => 'required | numeric | min:0 | max:300000000',\n 'promotion_price' => 'required | numeric | max:300000000',\n 'description' => 'required | string',\n\n ]);\n $product = Product::withTrashed()->findOrfail($id);\n $product->name = $request->name;\n $product->id_type = $request->type;\n $product->id_producer = $request->producer;\n\n $product->amount = $request->amount;\n if (request('image')) {\n $product->image = base64_encode(file_get_contents($request->file('image')->getRealPath()));\n }\n\n $product->price_input = $request->price_input;\n\n if ( $request->promotion_price >= 0 && $request->promotion_price < $product->price_input) {\n $product->promotion_price = $request->promotion_price;\n }else{\n return back()->with('error', '\n Do not enter a negative number');\n }\n $product->new = $request->new;\n\n $product->description = $request->description;\n\n $product->save();\n $product->size()->sync(request('size'));\n\n return redirect()->route('product.index')->with('success', 'Product Updated successfully');\n }",
"public function update(Request $request, $id)\n {\n $product = Product::find($id);\n\n $product->name = $request->input('name');\n $product->description = $request->input('description');\n $product->lastPrice = $product->price !== $request->input('price') ? $product->price : NULL;\n $product->price = $request->input('price');\n\n if ($request->hasFile('image')) { \n $currentImg = $product->image;\n if ($currentImg) {\n Storage::delete('/public/' . $currentImg);\n }\n $image = $request->file('image'); \n $path = $image->store('images','public');\n $product->image = $path;\n };\n\n $product->save(); \n\n $product_promotions = $request->input('promotion');\n\n $product->promotions()->sync($product_promotions);\n\n return redirect()->route('admin.modify');\n }",
"public static function updateImage($fileName, $imageId, $storage)\n {\n //Get image name and storage location for image\n $image = Image::where('id', '=', $imageId)->first();\n\n //Delete old image\n ResourceHandler::delete($image->name, $image->storage);\n\n //Store the new image\n $image->name = $fileName;\n $image->storage = $storage;\n\n $image->save();\n }",
"public function update($request, $id)\n {\n $this->checkExits($id);\n $data = $request->except(['_method','_token','photo']);\n\n if($request->photo)\n {\n try {\n $this->UploadFile($request);\n } catch (\\Exception $e) {\n //if has exception , don't has action\n }\n if ($this->img !== '') {\n $data['img'] = $this->img;\n }\n }\n\n $this->object->update($data);\n\n }",
"public function updateProduct($request, $product)\n {\n $product->update($request->except(['_token', '_method', 'image']));\n if ($request->hasFile('image')) {\n $image = $request->file('image');\n $imageName = time() . '.' . $request->file('image')->extension();\n // $img = Image::make('public/foo.jpg');\n\n $image_resize = Image::make($image->getRealPath());\n $image_resize->resize(500, 500);\n $image_resize->save(public_path('images/') . $imageName, 100);\n $product->gallery = $imageName;\n $product->save();\n }\n $product->getTags()->sync($request->input('tags'));\n }"
] | [
"0.7425105",
"0.70612276",
"0.70558053",
"0.6896673",
"0.6582159",
"0.64491373",
"0.6346954",
"0.62114537",
"0.6145042",
"0.6119944",
"0.61128503",
"0.6099993",
"0.6087866",
"0.6052593",
"0.6018941",
"0.60060275",
"0.59715486",
"0.5946516",
"0.59400934",
"0.59377414",
"0.5890722",
"0.5860816",
"0.5855127",
"0.5855127",
"0.58513457",
"0.5815068",
"0.5806887",
"0.57525045",
"0.57525045",
"0.57337505",
"0.5723295",
"0.5714311",
"0.5694472",
"0.5691319",
"0.56879413",
"0.5669989",
"0.56565005",
"0.56505877",
"0.5646085",
"0.5636683",
"0.5633498",
"0.5633378",
"0.5632906",
"0.5628826",
"0.56196684",
"0.5609126",
"0.5601397",
"0.55944353",
"0.5582592",
"0.5581908",
"0.55813426",
"0.5575312",
"0.55717176",
"0.55661047",
"0.55624634",
"0.55614686",
"0.55608666",
"0.55599797",
"0.55599797",
"0.55599797",
"0.55599797",
"0.55599797",
"0.55573726",
"0.5556878",
"0.5554201",
"0.5553069",
"0.55530256",
"0.5543788",
"0.55435944",
"0.55412996",
"0.55393505",
"0.55368495",
"0.5535236",
"0.5534954",
"0.55237365",
"0.5520468",
"0.55163723",
"0.55125296",
"0.5511168",
"0.5508345",
"0.55072427",
"0.5502385",
"0.5502337",
"0.5501029",
"0.54995877",
"0.54979175",
"0.54949397",
"0.54949397",
"0.54946727",
"0.5494196",
"0.54941916",
"0.54925025",
"0.5491807",
"0.5483321",
"0.5479606",
"0.5479408",
"0.5478678",
"0.54667485",
"0.5463411",
"0.5460588",
"0.5458525"
] | 0.0 | -1 |
Remove the specified resource from storage. | public function destroy($id)
{
//
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function delete($resource){\n return $this->fetch($resource, self::DELETE);\n }",
"public function destroy(Resource $resource)\n {\n //\n }",
"public function removeResource($resourceID)\n\t\t{\n\t\t}",
"public function unpublishResource(PersistentResource $resource)\n {\n $client = $this->getClient($this->name, $this->options);\n try {\n $client->delete(Path::fromString($this->getRelativePublicationPathAndFilename($resource)));\n } catch (FileDoesNotExistsException $exception) {\n }\n }",
"public function deleteResource(&$resource) {\n\n if ($this->connector != null) {\n $this->logger->addDebug(\"Deleting Resource Node from Neo4J database\");\n $result = $this->connector->run(\"MATCH (a:Resource {id: {id}}) detach delete a;\",\n [\n 'id' => $resource->getID()\n ]\n );\n $this->logger->addDebug(\"Updated neo4j to remove resource\");\n }\n\n }",
"public function deleteResource()\n {\n $database = new Database();\n $id = $this->_params['id'];\n $database->deleteResource($id);\n $this->_f3->reroute('/Admin');\n }",
"public function deleteShopifyResource() {\n $this->getShopifyApi()->call([\n 'URL' => API::PREFIX . $this->getApiPathSingleResource(),\n 'METHOD' => 'DELETE',\n ]);\n }",
"protected function deleteResource($fileName, $storage)\n {\n if (Storage::disk($storage)->exists($fileName)) \n {\n return Storage::disk($storage)->delete($fileName);\n }\n }",
"public function delete()\n {\n persistableCollection::getInstance($this->resourceName)->deleteObject($this);\n }",
"public function remove()\n {\n $this->_getBackend()->remove($this->_id);\n }",
"public function remove()\n {\n if (! ftruncate($this->fileHandle, 0)) {\n throw new StorageException(\"Could not truncate $this->path\");\n }\n if (! unlink($this->path)) {\n throw new StorageException(\"Could not delete $this->path\");\n }\n }",
"public function delete()\n\t{\n\t\t$s3 = AWS::createClient('s3');\n $s3->deleteObject(\n array(\n 'Bucket' => $this->bucket,\n 'Key' => $this->location\n )\n );\n\t\tif($this->local_file && file_exists($this->local_file)) {\n\t\t\tunlink($this->local_file);\n\t\t}\n $this->local_file = null;\n\t}",
"public function delete()\n\t{\n\t\tsfCore::db->query(\"DELETE FROM `swoosh_file_storage` WHERE `id`='%i';\", $this->id);\n\t\t$this->fFile->delete();\n\t}",
"public function delete(): void\n {\n unlink($this->getPath());\n }",
"public function delete()\n {\n if($this->exists())\n unlink($this->getPath());\n }",
"public function remove($path);",
"function deleteFileFromStorage($path)\n{\n unlink(public_path($path));\n}",
"public function delete(): void\n {\n unlink($this->path);\n }",
"private function destroyResource(DrydockResource $resource) {\n $blueprint = $resource->getBlueprint();\n $blueprint->destroyResource($resource);\n\n $resource\n ->setStatus(DrydockResourceStatus::STATUS_DESTROYED)\n ->save();\n }",
"public static function delete($fileName, $storage)\n {\n if (Storage::disk($storage)->exists($fileName)) \n {\n return Storage::disk($storage)->delete($fileName);\n }\n }",
"public function remove() {}",
"public function remove() {}",
"public function remove();",
"public function remove();",
"public function remove();",
"public function remove();",
"function delete_resource($resource_id, $page)\n\t{\n\t\t//get resource data\n\t\t$table = \"resource\";\n\t\t$where = \"resource_id = \".$resource_id;\n\t\t\n\t\t$this->db->where($where);\n\t\t$resource_query = $this->db->get($table);\n\t\t$resource_row = $resource_query->row();\n\t\t$resource_path = $this->resource_path;\n\t\t\n\t\t$image_name = $resource_row->resource_image_name;\n\t\t\n\t\t//delete any other uploaded image\n\t\t$this->file_model->delete_file($resource_path.\"\\\\\".$image_name, $this->resource_path);\n\t\t\n\t\t//delete any other uploaded thumbnail\n\t\t$this->file_model->delete_file($resource_path.\"\\\\thumbnail_\".$image_name, $this->resource_path);\n\t\t\n\t\tif($this->resource_model->delete_resource($resource_id))\n\t\t{\n\t\t\t$this->session->set_userdata('success_message', 'resource has been deleted');\n\t\t}\n\t\t\n\t\telse\n\t\t{\n\t\t\t$this->session->set_userdata('error_message', 'resource could not be deleted');\n\t\t}\n\t\tredirect('resource/'.$page);\n\t}",
"public function deleteImage(){\n\n\n Storage::delete($this->image);\n }",
"public function del(string $resource): bool|string\n {\n $json = false;\n $fs = unserialize($_SESSION['rfe'][$this->getRoot()], ['allowed_classes' => false]);\n if (array_key_exists($resource, $fs)) {\n // if $item has children, delete all children too\n if (array_key_exists('dir', $fs[$resource])) {\n foreach ($fs as $key => $file) {\n if (isset($file['parId']) && $file['parId'] == $resource) {\n unset($fs[$key]);\n }\n }\n }\n unset($fs[$resource]);\n $_SESSION['rfe'][$this->getRoot()] = serialize($fs);\n $json = '[{\"msg\": \"item deleted\"}]';\n }\n return $json;\n }",
"public function destroy()\n\t{\n\t\treturn unlink(self::filepath($this->name));\n\t}",
"public function destroy($id) {\n $book = Book::find($id);\n // return unlink(storage_path(\"public/featured_images/\".$book->featured_image));\n Storage::delete(\"public/featured_images/\" . $book->featured_image);\n if ($book->delete()) {\n return $book;\n }\n\n }",
"public function destroy($id)\n {\n Storageplace::findOrFail($id)->delete();\n }",
"public function destroyResourceImage(): void\n\t{\n\t\tif (isset($this->image)) {\n\t\t\t@imagedestroy($this->image->getImageResource());\n\t\t}\n\t}",
"public function deleteResource(PersistentResource $resource)\n {\n $pathAndFilename = $this->getStoragePathAndFilenameByHash($resource->getSha1());\n if (!file_exists($pathAndFilename)) {\n return true;\n }\n if (unlink($pathAndFilename) === false) {\n return false;\n }\n Files::removeEmptyDirectoriesOnPath(dirname($pathAndFilename));\n return true;\n }",
"public function deleteImage(){\n \tStorage::delete($this->image);\n }",
"public function destroy()\n {\n $file=public_path(config('larapages.media.folder')).Input::all()['folder'].'/'.Input::all()['file'];\n if (!file_exists($file)) die('File not found '.$file);\n unlink($file);\n }",
"public function delete() \r\n {\r\n if($this->exists())\r\n {\r\n unlink($this->fullName());\r\n }\r\n }",
"public function destroy($id)\n {\n Myfile::find($id)->delete();\n }",
"public function destroy($delete = false)\n {\n if (null !== $this->resource) {\n $this->resource->clear();\n $this->resource->destroy();\n }\n\n $this->resource = null;\n clearstatcache();\n\n // If the $delete flag is passed, delete the image file.\n if (($delete) && file_exists($this->name)) {\n unlink($this->name);\n }\n }",
"public function destroy(Storage $storage)\n {\n return redirect()->route('storages.index');\n }",
"public static function delete($path){\r\n $currentDir = getcwd();\r\n $storageSubPath = \"/../../\".STORAGE_PATH;\r\n $file = $currentDir . $storageSubPath . '/' . $path;\r\n\r\n unlink($file);\r\n }",
"public function remove() {\n //Check if there are thumbs and delete files and db\n foreach ($this->thumbs()->get() as $thumb) {\n $thumb->remove();\n } \n //Delete the attachable itself only if is not default\n if (strpos($this->url, '/defaults/') === false) {\n Storage::disk('public')->delete($this->getPath());\n }\n parent::delete(); //Remove db record\n }",
"public function removeFile($uri){\n return Storage::disk('public')->delete($uri);\n }",
"public function destroy(Resource $resource)\n {\n if( $resource->delete() ){\n return Response(['status'=>'success','message'=>'Resource deleted']); \n } else {\n return Response(['status'=>'error', 'message'=>'Something went wrong']);\n }\n }",
"public function delete($path);",
"public function delete($path);",
"public function destroy($id)\n {\n $supplier = Supplier::find($id);\n $photo = $supplier->photo;\n if ($photo) {\n unlink($photo);\n }\n $supplier->delete();\n }",
"public function destroy($id)\n { \n File::find($id)->remove();\n \n return redirect()->route('files.index');\n }",
"public function destroy($id)\n {\n $student = Student::where('id', $id)->first();\n // $path = $student->image;\n unlink($student->image);\n Student::findOrFail($id)->delete();\n return response('Deleted!');\n }",
"public function destroy($id)\n {\n $icon = SliderIcon::find($id);\n if (Storage::disk('public')->exists(str_replace('storage', '', $icon->img))){\n Storage::disk('public')->delete(str_replace('storage', '', $icon->img));\n }\n $icon->delete();\n return redirect()->route('slider_icons.index')->with('success', 'Данные преимущества удалёны');\n }",
"public function destroy($id)\n {\n $items=Items::find($id);\n // delete old file\n if ($items->photo) {\n $str=$items->photo;\n $pos = strpos($str,'/',1);\n $str = substr($str, $pos);\n $oldFile = storage_path('app\\public').$str;\n File::Delete($oldFile); \n }\n $items->delete();\n return redirect()->route('items.index');\n }",
"public function delete($path, $data = null);",
"public function destroy($id)\n {\n $carousel = Carousel::find($id);\n $image = $carousel->image;\n\n $basename ='img/carousel/' . basename($image);\n //Delete the file from disk\n if(file_exists($basename)){\n unlink($basename);\n }\n //With softDeletes, this is the way to permanently delete a record\n $carousel->delete();\n Session::flash('success','Product deleted permanently');\n return redirect()->back();\n }",
"public function remove()\n {\n $fs = new Filesystem();\n $fs->remove($this->dir());\n }",
"public static function destroy(int $resource_id)\n {\n try {\n $image_data = ListingImage::where('id', $resource_id)->first();\n self::delete_image($image_data->name);\n $delete = ListingImage::where('id', $resource_id)->delete();\n\n // activity()\n // ->causedBy(Auth::user()->id)\n // ->performedOn($delete)\n // ->withProperties(['id' => $delete->id])\n // ->log('listing image deleted');\n return response()->json(['status'=> 'ok', 'msg'=> 'Data deleted successfully']);\n } catch (Exception $e) {\n $e->getMessage();\n }\n }",
"public function destroy(Storage $storage)\n {\n $this->storage->destroy($storage);\n\n return redirect()->route('admin.product.storage.index')\n ->withSuccess(trans('core::core.messages.resource deleted', ['name' => trans('product::storages.title.storages')]));\n }",
"public function del($path){\n\t\treturn $this->remove($path);\n\t}",
"public function destroy($id)\n {\n //\n $product = Product::findOrFail($id);\n $product->delete();\n if($product->img != 'product-default.png'){\n Storage::delete(\"public/uploads/\".$product->img);\n // return 'deleted';\n }\n return redirect()->route('product.index'); \n }",
"public function destroy($id)\n {\n $image = Images::withTrashed()->find($id);\n\n Storage::disk('uploads')->delete(\"social-media/$image->filename\");\n\n $image->tags()->detach();\n $image->detachMedia(config('constants.media_tags'));\n $image->forceDelete();\n\n return redirect()->back()->with('success', 'The image was successfully deleted');\n }",
"public function removeUpload()\n{\n if ($file = $this->getAbsolutePath()) {\n unlink($file); \n }\n}",
"public function destroyByResourceId($resource_id)\n {\n// $online_party = $this->onlinetrack->where('resource_id', $resource_id)->get()->first();\n// $online_party->status = \"offline\";\n// $online_party->save();\n// return $online_party;\n return $this->onlinetrack->where('resource_id', $resource_id)->delete();\n }",
"public function revoke($resource, $permission = null);",
"public function destroy($id)\n {\n $data=Image::find($id);\n $image = $data->img;\n\n\n $filepath= public_path('images/');\n $imagepath = $filepath.$image;\n\n //dd($old_image);\n if (file_exists($imagepath)) {\n @unlink($imagepath);\n }\n\n\n $data->delete();\n\n return redirect()->route('image.index');\n }",
"function delete($path);",
"public function destroy(File $file)\n {\n //\n $v = Storage::delete($file->path);\n \n }",
"public function removeItem(int $id)\n\t{\n\t\t$this->storage->remove($id);\n\t}",
"public function remove($filePath){\n return Storage::delete($filePath);\n }",
"public function destroyResource($resource)\n {\n if (!is_object($resource)) {\n return false;\n }\n\n $resource_type = get_class($resource);\n $resource_id = $resource->getKey();\n\n return Role::where('resource_type', $resource_type)\n ->where('resource_id', $resource_id)\n ->delete();\n }",
"public function destroy(Request $request, Storage $storage)\n {\n $storage->delete();\n $request->session()->flash('alert-success', 'Запись успешно удалена!');\n return redirect()->route('storage.index');\n }",
"public function remove(): void\n {\n $file = $this->getAbsolutePath();\n if (!is_file($file) || !file_exists($file)) {\n return;\n }\n\n unlink($file);\n }",
"public function remove(Storable $entity): Storable\n {\n $this->getRepository(get_class($entity))->remove($entity);\n $this->detach($entity);\n\n return $entity;\n }",
"public function processDeletedResource(EntityResource $resource)\n {\n /** @var AuthorizationRepository $repository */\n $repository = $this->entityManager->getRepository('Edweld\\AclBundle\\Entity\\Authorization');\n\n $repository->removeAuthorizationsForResource($resource);\n }",
"public function remove($id);",
"public function remove($id);",
"function _unlink($resource, $exp_time = null)\n {\n if(file_exists($resource)) {\n return parent::_unlink($resource, $exp_time);\n }\n\n // file wasn't found, so it must be gone.\n return true;\n }",
"public function deleted(Storage $storage)\n {\n //\n }",
"public function destroy($id)\n {\n $data = Product::findOrFail($id);\n\n if(file_exists('uploads/product/'.$data->image1)){\n unlink('uploads/product/'.$data->image1);\n }\n\n if(file_exists('uploads/product/'.$data->image2)){\n unlink('uploads/product/'.$data->image2);\n }\n\n if(file_exists('uploads/product/'.$data->image3)){\n unlink('uploads/product/'.$data->image3);\n }\n $data->delete();\n }",
"public function removeUpload()\n {\n $file = $this->getAbsolutePath();\n if ($file) {\n unlink($file);\n }\n }",
"public function resources_delete($resource_id, Request $request) {\n if ($resource_id) {\n $resp = Resources::where('id', '=', $resource_id)->delete();\n if($resp){\n $msg = 'Resource has been deleted successfully.';\n $request->session()->flash('message', $msg);\n }\n }\n //return redirect()->route('admin-factor-list');\n return redirect()->to($_SERVER['HTTP_REFERER']);\n }",
"function deleteResource($uuid){\n $data = callAPI(\"DELETE\",\"/urest/v1/resource/\".$uuid);\n return $data;\n}",
"public function delete();",
"public function delete();",
"public function delete();",
"public function delete();",
"public function delete();",
"public function delete();",
"public function delete();",
"public function delete();",
"public function delete();",
"public function delete();",
"public function delete();",
"public function delete();",
"public function delete();",
"public function delete();",
"public function delete();",
"public function destroy($id){\n $file_data = Slider::findOrFail($id);\n File::delete(public_path('../storage/app/public/sliders/'.$file_data->path));\n $slider = Slider::destroy($id);\n return response()->json(null, 204);\n }",
"public function delete()\n {\n try\n {\n $thumbnail = $this->getThumbnail();\n if($thumbnail)\n {\n $thumbnail->delete();\n }\n }\n catch(sfException $e){}\n \n // delete current file\n parent::delete();\n }",
"public function remove_resource($idproject){\n\t\t\n\t\t// Load model and try to get project data\n\t\t$this->load->model('Projects_model', 'projects');\n\t\t\n\t\t// Update\n\t\t$this->projects->save_project(array(\"ext\" => \"\", \"vzaar_idvideo\" => \"0\", \"vzaar_processed\" => \"0\"), $idproject);\n\t}",
"public function delete()\n\t{\n\t\t@unlink($this->get_filepath());\n\t\t@unlink($this->get_filepath(true));\n\t\tparent::delete();\n\t}",
"public function delete($resource_path, array $variables = array()) {\n return $this->call($resource_path, $variables, 'DELETE');\n }",
"public function destroy($id)\n {\n //Find Slider With Id\n $slider = Slider::findOrFail($id);\n // Check If The Image Exist\n if(file_exists('uploads/slider/'.$slider->image)){\n\n unlink( 'uploads/slider/'.$slider->image);\n }\n $slider->delete();\n return redirect()->back()->with('success','Slider Successfully Deleted');\n }"
] | [
"0.6671365",
"0.6660839",
"0.66361386",
"0.6632988",
"0.6624729",
"0.6542195",
"0.6541645",
"0.6466739",
"0.6288393",
"0.61767083",
"0.6129533",
"0.608954",
"0.6054169",
"0.60443425",
"0.60073143",
"0.59338665",
"0.59317696",
"0.592145",
"0.5920155",
"0.59065086",
"0.5897853",
"0.58968836",
"0.58958197",
"0.58958197",
"0.58958197",
"0.58958197",
"0.58800334",
"0.5869308",
"0.5861188",
"0.5811069",
"0.5774596",
"0.5763277",
"0.5755447",
"0.5747713",
"0.5742094",
"0.573578",
"0.5727048",
"0.57164854",
"0.5712422",
"0.57092893",
"0.57080173",
"0.5707143",
"0.5704078",
"0.5696418",
"0.5684556",
"0.5684556",
"0.56790006",
"0.5678463",
"0.5658492",
"0.564975",
"0.5648406",
"0.56480885",
"0.5641393",
"0.5638992",
"0.56302536",
"0.56228197",
"0.5616424",
"0.5607389",
"0.56033397",
"0.5602035",
"0.55991143",
"0.55988586",
"0.5590501",
"0.5581284",
"0.55681103",
"0.5566215",
"0.55644745",
"0.5563726",
"0.55593926",
"0.55583876",
"0.5548547",
"0.5542015",
"0.5541403",
"0.5541403",
"0.55397224",
"0.55390894",
"0.55376494",
"0.5531044",
"0.5529739",
"0.55279493",
"0.5527892",
"0.5527892",
"0.5527892",
"0.5527892",
"0.5527892",
"0.5527892",
"0.5527892",
"0.5527892",
"0.5527892",
"0.5527892",
"0.5527892",
"0.5527892",
"0.5527892",
"0.5527892",
"0.5527892",
"0.5527671",
"0.5527155",
"0.5526666",
"0.55245256",
"0.552101",
"0.55183184"
] | 0.0 | -1 |
Set the select request to get the list of Id to index | protected function selectIds($select)
{
$select->from(array('REF_METADATA'), array('METAID'))->order('METAID');
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getSelect();",
"public function getSelect();",
"public function setIndexList () {\n // $db_connect_manager -> getTestPool(\"testy_udt\");\n $pool = GeneratorTestsPool::generate(5, 1, 22);\n sort($pool);\n $select = \"SELECT q_podesty_ruchome_przejezdne.question, a_podesty_ruchome_przejezdne.answers, a_podesty_ruchome_przejezdne.`values` \n FROM q_podesty_ruchome_przejezdne INNER JOIN a_podesty_ruchome_przejezdne \n ON q_podesty_ruchome_przejezdne.id = a_podesty_ruchome_przejezdne.id_questions WHERE q_podesty_ruchome_przejezdne.id IN (\".implode(', ', $pool).\")\";\n echo $select;\n\n }",
"public function getForSelect()\n {\n return $this->all()->lists('full_name', 'id')->all();\n }",
"public function getListId();",
"static function selectList()\n {\n return Permintaan::join('users', 'users.id', '=', 'permintaans.user_id')\n ->join('units', 'units.id', '=', 'permintaans.unit_id')\n ->select([\n 'permintaans.id',\n 'users.nama as user_nama',\n 'units.nama as unit_nama',\n 'permintaans.nama_domain',\n 'permintaans.server',\n 'permintaans.kapasitas',\n 'permintaans.ip',\n 'permintaans.status',\n 'permintaans.keterangan',\n 'permintaans.created_at',\n ]);\n }",
"public function actionSelect(){\n $select = $this->select('Pilih donk akhh..', ['kopi'=>'kopi', 'susu'=>'susu']);\n echo \"Pilihan nya adalah : $select\";\n }",
"public function selectById($id);",
"public function selectById($id);",
"public function select(){\n $records =10;\n $data = $this->repository->getObjects($records);\n $user = $this->returnTr($data);\n $area = Area::all();\n $select = $this->returnOption($area,\"Chọn khu vực\" );\n return response()->json(['user'=>$user,'select'=>$select]); \n }",
"function afficherListeMultiple($tbObjets, $name, $size, $idSelect) {\n\t\tif (count($tbObjets) && (empty($idSelect))) { \n\t\t\t$idSelect = $tbObjets[0]->identifiant; \n\t\t\t// alors $idSelect est l'identifiant du premier objet du tableau \n\t\t}\n\t\techo '<select name=\"'.$name.'[]\" id=\"'.$name.'[]\" size='.$size.' multiple>';\n\n\t\tforeach ($tbObjets as $objet) { \n\t\t\t// l'élément en paramètre est présélectionné \n\t\t\tif ($objet->identifiant != $idSelect) { \n\t\t\t\t// si l'identifiant de l'objet n'est pas l'identifiant présélectionné \n\t\t\t\techo '<option value='.$objet->identifiant.'>'.$objet->libelle.'</option>';\n\t\t\t} \n\t\t\telse { \n\t\t\t\techo '<option selected value='.$idSelect.'>'.$objet->libelle.'</option>';\n\t\t\t}\n\t\t}\n\t\techo '</select>';\n\t\treturn ($idSelect); \n\t}",
"public function getSelectedList() {}",
"private function __select() {\n $from_str = $this->getFromStr();\n $field = $this->field_str;\n if (empty($field)) {\n $field = '*';\n }\n $sql = \"SELECT {$field} FROM {$from_str}\";\n if (!empty($this->join_str_list)) {\n $temp = implode(' ', $this->join_str_list);\n $sql .= \" {$temp}\";\n }\n if (!empty($this->where_str)) {\n $sql .= \" WHERE {$this->where_str}\";\n }\n if (!empty($this->group_str)) {\n $sql .= \" GROUP BY {$this->group_str}\";\n }\n if (!empty($this->order_str)) {\n $sql .= \" ORDER BY {$this->order_str}\";\n }\n if (!empty($this->limit_str)) {\n $sql .= \" LIMIT {$this->limit_str}\";\n }\n $list = $this->query($sql);\n return $list;\n }",
"function listadoSelect();",
"function select($id)\n\t{\n\treturn parent::select($id);\n\t}",
"function select($id)\n\t{\n\treturn parent::select($id);\n\t}",
"function output_query_in_select($index) {\n\techo '<select class=\"form-control\" name=\"'.$index.'\" id=\"'.$index.'\">';\n\t$pdo = CDatabase::connect();\n\t$sql = \"SELECT * from $index ORDER BY $index ASC\";\n\tforeach ($pdo->query($sql) as $row) {\n\t\techo '<option value=\"'.$row[$index].'\">'.$row[$index].'</option>';\n\t}\n\tCDatabase::disconnect();\n\techo '</select>';\n}",
"public function get_ids()\n {\n }",
"public function get_ids()\n {\n }",
"public function get_ids()\n {\n }",
"public function get_ids()\n {\n }",
"public function get_ids()\n {\n }",
"public function get_ids()\n {\n }",
"public function get_ids()\n {\n }",
"public function get_ids()\n {\n }",
"public function Do_select_Example1(){\n\n\t}",
"public function selectData(Request $request)\n {\n //dd($request->all());\n //$hideId=$request->input('hideId');\n\n $this->validate($request,[\n 'selectId'=>'required',\n ]);\n\n $total=DB::table('haisou')->count();\n\n $selectId=$request->selectId;\n\n $dataById=DB::table('haisou')->where('bango',$selectId)->get();\n \n // return $dataById[0]->bango;\n return view('haisou.editData',['dataById'=>$dataById,'total'=>$total]);\n }",
"public function index()\n {\n $select_req_ids = DB::select(\"SELECT DISTINCT req_id FROM maint_request_info\");\n\n return view('frontend.request.index')->with('select_req_ids',$select_req_ids);\n }",
"public function set_select_options_list($tid){\n $unit_id_select = array();\n\n $query = db_select('node', 'n');\n $query->join('field_data_field_unit_type_', 'f', 'n.nid = f.entity_id');\n $query->groupBy('f.entity_id');\n $query->fields('n', array('title', 'type', 'nid'));\n $query->fields('f', array('field_unit_type__tid'));\n $query->condition('f.field_unit_type__tid', $tid);\n $results = $query->execute();\n\n foreach ($results as $value) {\n $unit_id_select[$value->nid] = $value->title;\n }\n\n return $unit_id_select;\n }",
"public function getAllId(){\n $query = 'SELECT id '.\n 'WHERE current_date >= eff_begin AND current_date <= eff_end';\n return DB::select($query);\n }",
"public function options(Request $request)\n {\n $lists = \\App\\Models\\TrelloList::all()->toArray();\n $data=[];\n\n foreach ($lists as $list) {\n $data += [$list['name'] => $list['id']];\n }\n return $data;\n }",
"public function getSelectDataFields();",
"public function get_students_list_select(){\n\t\t$this->verify();\n\t\t$students=$this->admin_model->getStudentlistSELECT2($_GET['search']);\n\t\tforeach ($students as $key => $value) {\n\t\t\t$data[] = array('id' => $value['ADMISSION_NUMBER'], 'text' => $value['NAME']);\t\t\t \t\n \t\t}\n\t\techo json_encode($data);\n\t}",
"public function select(Request $request)\n {\n $response = $this->postService::select($request->id, $request->select);\n\n return json_encode($response);\n }",
"public function select();",
"public function select();",
"public function select();",
"public function executeSelect(sfWebRequest $request)\n {\n $this->hasPermissionsForSelect();\n \n $after = $request->getParameter('after');\n // Prevent possible header insertion tricks\n $after = preg_replace(\"/\\s+/\", \" \", $after);\n $multiple = !!$request->getParameter('multiple');\n if ($multiple)\n {\n $selection = preg_split(\"/\\s*,\\s*/\", $request->getParameter('aMediaIds'));\n } else\n {\n $selection = array($request->getParameter('aMediaId') + 0);\n }\n $options = array();\n $optional = array('type', 'aspect-width', 'aspect-height',\n 'minimum-width', 'minimum-height', 'width', 'height', 'label');\n foreach ($optional as $option)\n {\n if ($request->hasParameter($option))\n {\n $options[$option] = $request->getParameter($option);\n }\n }\n aMediaTools::setSelecting($after, $multiple, $selection, $options);\n\n return $this->redirect(\"aMedia/index\");\n }",
"public function getIds()\n {\n\n }",
"public function selectPurhaseAngularById(Request $request)\n {\n\n\n $unitId = $request->input('unit_id');\n \n if (!empty($unitId)) {\n $getPurchaseData = DB::select('SELECT * FROM item_type_master WHERE is_deleted_status = \"N\"');\n\n\n foreach ($getPurchaseData as $purhase) {\n $purchaseListHtml = '<option value=\"'.$purhase->id.'\"';\n \n if ($unitId == $purhase->id) { \n $purchaseListHtml .= ' selected=\"selected\"';\n }\n\n $purchaseListHtml .= '>'.$purhase->name.'</option>';\n\n \n echo $purchaseListHtml; \n } \n\n }\n\n }",
"public function select($id)\t{\n\t\t\t$this->data = (array) \n\t\t\t\tself::$db->queryFetch(\n\t\t\t\t\t\"SELECT * FROM `{$this->table}` WHERE `id`=:id\",\n\t\t\t\t\tarray(':id'=>$id)\n\t\t\t\t);\n\t\t}",
"public function model_id_list()\r\n {\r\n $this->set_error(\"MBE-\".$this->model_code.\"-MIL-1\", \r\n \"Internal error, please contact admin\", \r\n \"Missing model_id_list API for this model \".$this->model_name);\r\n $model_id_list = array();\r\n /*\r\n $model_id_list = array (\r\n array(\r\n \"table\" => \"dummy_table\", \r\n \"editable\" => false,\r\n \"id_column\" => \"dummy_id\",\r\n \"data_column\" => array(\r\n array(\"data\" => \"dummy_name\", \"column\" => \"dummy_column\"),\r\n ),\r\n ),\r\n );\r\n */\r\n return $model_id_list;\r\n }",
"public function listId() {\n\t\treturn $this->employee->get()->pluck('id')->all();\n\t}",
"protected function chooseIdentifierForSearch()\n\t{\n\t\tif( empty($this->myAccountID) )\n\t\t\treturn array( 'col' => 'auth_id', 'val' => $this->myAuthID ) ;\n\t\telse\n\t\t\treturn array( 'col' => 'account_id', 'val' => $this->myAccountID ) ;\n\t}",
"private function load_selected()\r\n {\r\n $this->arSelected[\"ctx\"] = $this->get_by_id($this->idSelected);\r\n if($this->arSelected[\"ctx\"])\r\n $this->arSelected[\"ctx\"] = $this->arSelected[\"ctx\"][array_keys($this->arSelected[\"ctx\"])[0]];\r\n\r\n $this->arSelected[\"noconfig\"] = $this->get_noconfig_by(\"id\",$this->idSelected);\r\n //pr($this->arSelected,\"arSelected\");\r\n }",
"public function selectItemUnitAngularById(Request $request)\n {\n \n\n //$unitId = $request->input('unit_id');\n \n // if (!empty($unitId)) {\n /* $getPurchaseData = DB::select('SELECT * FROM item_type_master WHERE is_deleted_status = \"N\"');\n\n\n foreach ($getPurchaseData as $purhase) {\n $purchaseListHtml = '<option value=\"'.$purhase->id.'\"';\n \n if ($unitId == $purhase->id) { \n $purchaseListHtml .= ' selected=\"selected\"';\n }\n\n $purchaseListHtml .= '>'.$purhase->name.'</option>';\n\n \n echo $purchaseListHtml; \n } */\n\n // }\n\n }",
"function SelectIdTypeTarget($Empty = 0){\n global $db;\n\n $sql = \"SELECT * FROM idtypes\";\n //Basic::EventLog(\"Projects->getProductsInProjects: \".$sql);\n $res =& $db->query($sql);\n $html = '<select id=\"idtypetarget\" name=\"idtypetarget\" disabled>\n <option value=\"0\">Select...</option>';\n if($res){\n while ($row=$res->fetchRow()) {\n $html .= '<option value=\"'.$row['idtype'].'\">'.$row['idtype'].'</option>';\n }\n }\n $html .= '</select>';\n //Basic::EventLog(\"Projects->printSelectIdType: \".$html);\n return $html;\n }",
"public function getEditorRequestWithId($id_request, $dbIndex) {\n $the_request = array();\n $con = $this->connect_to_db($dbIndex);\n $sql = \"SELECT display_name, ldapfilter, data_source, ldap_suffix FROM prepared_request WHERE id_request=$id_request\";\n if (!$req = mysqli_query($con, $sql)) {\n $this->log->LogError(\"ListTypes : Impossible d'effectuer la requete\\n\".$sql .mysqli_error());\n throw new ListTypesSQLException(\"can't make the request (table not found ?)\",2);\n exit(1);\n }\n if ($nb_req = mysqli_num_rows($req)) {\n $prepared_request = mysqli_fetch_assoc($req);\n $the_request['display_name']=$prepared_request['display_name'];\n $the_request['ldapfilter']=$prepared_request['ldapfilter'];\n $the_request['source']=$prepared_request['data_source'];\n $the_request['ldapsuffix']=$prepared_request['ldap_suffix'];\n $this->log->LogDebug(\"ListTypes : requete editeur avec id $id_request trouvee : \".implode(\"/\",$the_request));\n mysqli_free_result($req);\n }\n mysqli_close($con);\n return $the_request;\n }",
"protected function _getCurrentOptionIndices() {}",
"public function getSelectList() {\n\treturn $this->selectList;\n }",
"public function postListaSecciones(){\n\t\t$id=Input::get('id');\n\t\t$lista=DB::table('MODBID_INFORMACIONSECCION')\t\t\t\t\t\t\n\t\t\t\t\t\t->select(DB::RAW('id,id_info,titulo,texto'))\n\t\t\t\t\t\t->where('borrado','=',0)\n\t\t\t\t\t\t->where('id_info','=',$id)\n\t\t\t\t\t\t->orderby('fecha_noticia')\n\t\t\t\t\t\t->get();\n\t\treturn $lista;\n\t}",
"public function index(Request $request)\n {\n $product = Product::find($request->productId);\n $option = ProductOption::where('BaseNBR', $product->BaseNBR)\n ->where('OptPosition', $request->code)->first();\n //dd($option);\n //$products = Product::all();\n return $option->id;\n //return view('products.index')->withProducts($products);\n }",
"private function lists(){\n\t\t\t$constrain = '';\n\t\t\t$offset = $this->validateNumber(isset($_GET['offset'])?$_GET['offset']:NULL);\n\t\t\t$idRecepcion = $this->validateNumber(isset($_GET['id'])?$_GET['id']:NULL);\n\t\t\t$constrains = isset($_POST['constrains'])?$_POST['constrains']:'1 = 1';\n\t\t\t\n\t\t\tif($constrains === '1 = 1'){\n\t\t\t\t$constrain = $constrains;\n\t\t\t}else{\n\t\t\t\t$tam = count($constrains);\n\t\t\t\tforeach ($constrains as $campo => $valor) {\n\t\t\t\t\tif(--$tam){\n\t\t\t\t\t\tif(is_numeric($valor)){\n\t\t\t\t\t\t\t$constrain.=$campo.' = '.$valor.' AND ';\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t$constrain.=$campo.' LIKE \"%'.$valor.'%\" AND ';\n\t\t\t\t\t\t}\n\t\t\t\t\t}else{\n\t\t\t\t\t\tif(is_numeric($valor)){\n\t\t\t\t\t\t\t$constrain.=$campo.' = '.$valor;\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t$constrain.=$campo.' LIKE \"%'.$valor.'%\"';\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif($offset!==''){ \n\t\t\t\tif ($idRecepcion!=='') {\n\t\t\t\t\tif(($result = $this->model->listsDetails($idRecepcion))){\n\t\t\t\t\t\tif(is_numeric($result)){\n\t\t\t\t\t\t\tif ($this->api) {\n\t\t\t\t\t\t\t\techo $this->json_encode(array('error'=>VACIO,'data'=>NULL,'mensaje'=>'No se encontro Registro alguno'));\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t$template = $this->twig->loadTemplate('vacio.html');\n\t\t\t\t\t\t\t\techo $template->render(array('session'=>$this->session,'data'=>NULL));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tif($this->api){\n\t\t\t\t\t\t\t\techo $this->json_encode(array('error'=>OK,'data'=>$result,'mensaje'=>'Correcto'),JSON_UNESCAPED_UNICODE);\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t$this->session['action']='list';\n\t\t\t\t\t\t\t\t$template = $this->twig->loadTemplate('recepcionForm.html');\n\t\t\t\t\t\t\t\techo $template->render(array('session'=>$this->session,'data'=>$result));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else{\n\t\t\t\t\t\tif($this->api){\n\t\t\t\t\t\t\techo $this->json_encode(array('error'=>FORMATO_INCORRECTO,'data'=>NULL,'mensaje'=>'Formato Incorrecto'));\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t//CARGAR VISTA FORMATO INCORRECTO\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}else if(($result = $this->model->lists($offset,-1,$constrain))){\n\t\t\t\t\tif(is_numeric($result)){\n\t\t\t\t\t\tif ($this->api) {\n\t\t\t\t\t\t\techo $this->json_encode(array('error'=>VACIO,'data'=>NULL,'mensaje'=>'No se encontro Registro alguno'));\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t$template = $this->twig->loadTemplate('vacio.html'); echo $template->render(array('session'=>$this->session,'data'=>NULL));\n\t\t\t\t\t\t}\n\t\t\t\t\t}else{\n\t\t\t\t\t\tif($this->api){\n\t\t\t\t\t\t\techo $this->json_encode(array('error'=>OK,'data'=>$result,'mensaje'=>'Correcto'),JSON_UNESCAPED_UNICODE);\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t$template = $this->twig->loadTemplate('recepcionList.html');\n\t\t\t\t\t\t\techo $template->render(array('session'=>$this->session,'data'=>$result));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tif($this->api){\n\t\t\t\t\t\techo $this->json_encode(array('error'=>ERROR_DB,'data'=>NULL,'mensaje'=>'Error al Realizar la Consulta'));\n\t\t\t\t\t}else{\n\t\t\t\t\t\t//CARGAR VISTA ERROR DB\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tif($this->api){\n\t\t\t\t\techo $this->json_encode(array('error'=>FORMATO_INCORRECTO,'data'=>NULL,'mensaje'=>'Formato Incorrecto'));\n\t\t\t\t}else{\n\t\t\t\t\t//CARGAR VISTA FORMATO INCORRECTO\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"public function select()\n {\n\n }",
"public function getPositionForMultipleSelect($param) {\n $companyId = $this->requester->getCompanyId();\n $tenantId = $this->requester->getTenantId();\n return DB::table('positions')\n ->select(\n 'id',\n 'name',\n 'code'\n )\n ->where([\n ['company_id', $companyId],\n ['tenant_id', $tenantId]\n ])\n ->whereNotIn('code', $param)\n ->get();\n }",
"#[Route('/ajax/select/maquette', name: 'ajax_select_maquette')]\n public function select(MaquetteRepository $repository, Request $request, RouteRepository $routeRepository)\n {\n\n //Find all maquette\n $allMaquette = $repository->findAll();\n\n $checkHeader = null;\n\n\n foreach($allMaquette as $oneMaquette){\n if($oneMaquette->getId() == $request->get('id')){\n $oneMaquette->setSelecting(true);\n $checkHeader = $oneMaquette->getHeader();\n $checkNavbar = $oneMaquette->getNavbar();\n $routes = $routeRepository->findAll();\n $this->getDoctrine()->getManager()->flush();\n }\n else{\n $oneMaquette->setSelecting(false);\n $this->getDoctrine()->getManager()->flush();\n }\n }\n \n\n \n return $this->json([\n 'html' => $this->renderView('ajax/create-maquette.html.twig', ['maquettes' => $allMaquette,\n 'display' => 'block']),\n 'htmlView' => $this->renderView('component/header.html.twig', ['header' => $checkHeader]),\n 'htmlNavbar' => $this->renderView('component/navbar.html.twig', ['navbar' => $checkNavbar, 'routes' => $routes]),\n ]);\n\n }",
"public function Do_Allselect_Example1(){\n\n\t}",
"abstract public function prepareSelect();",
"public function index()\n {\n return Customer::get(['id'])->pluck('id');\n }",
"public function viewByBusinessIdForSelect($id = null) {\n\t\t$contacts = $this->Contact->findByBusinessId('list', $id);\n\t\t$this->set(compact('contacts'));\n\t}",
"protected function set_product_ids() {\n\n\t\t// get the products selected for the report\n\t\t$this->product_ids = isset( $_GET['product_ids'] ) ? array_filter( array_map( 'absint', (array) $_GET['product_ids'] ) ) : array();\n\t}",
"public function listId()\n {\n return $this->contractor->all()->pluck('id')->all();\n }",
"static public function selectId($id);",
"public function viewByContactIdForSelect($id = null) {\n\t\t$businesses = $this->Business->findByContactId('list', $id);\n\t\t$this->set(compact('businesses'));\n\t}",
"function detail_detail_jual_rawat_list(){\r\n\t\t$query = isset($_POST['query']) ? $_POST['query'] : \"\";\r\n\t\t$start = (integer) (isset($_POST['start']) ? $_POST['start'] : $_GET['start']);\r\n\t\t$end = (integer) (isset($_POST['limit']) ? $_POST['limit'] : $_GET['limit']);\r\n\t\t$master_id = (integer) (isset($_POST['master_id']) ? $_POST['master_id'] : $_GET['master_id']);\r\n\t\t$result=$this->m_master_jual_rawat->detail_detail_jual_rawat_list($master_id,$query,$start,$end);\r\n\t\techo $result;\r\n\t}",
"public function mostrarID(){\n $conexion = Conexion();\n $sql=\"SELECT * from tbl_categoria\"; \n foreach ($conexion->query($sql) as $row){\n echo \"<option value='{$row ['id_categoria']}'>{$row ['id_categoria']}</option>\";\n }\n }",
"public static function getGatewayListID(){\n $row = Gateway::where(array('Status'=>1))->lists('Title', 'GatewayID');\n if(!empty($row)){\n $row = array(\"\"=> \"Select a Gateway\")+$row;\n }\n return $row;\n }",
"public function select($datos_){\n $id=$datos_->getId();\n\n try {\n $sql= \"SELECT `id`, `nombre_proyecto`, `nombre_actividad`, `modalidad_participacion`, `responsable`, `fecha_realizacion`, `producto`, `semillero_id`\"\n .\"FROM `datos_`\"\n .\"WHERE `id`='$id'\";\n $data = $this->ejecutarConsulta($sql);\n for ($i=0; $i < count($data) ; $i++) {\n $datos_->setId($data[$i]['id']);\n $datos_->setNombre_proyecto($data[$i]['nombre_proyecto']);\n $datos_->setNombre_actividad($data[$i]['nombre_actividad']);\n $datos_->setModalidad_participacion($data[$i]['modalidad_participacion']);\n $datos_->setResponsable($data[$i]['responsable']);\n $datos_->setFecha_realizacion($data[$i]['fecha_realizacion']);\n $datos_->setProducto($data[$i]['producto']);\n $semillero = new Semillero();\n $semillero->setId($data[$i]['semillero_id']);\n $datos_->setSemillero_id($semillero);\n\n }\n return $datos_; } catch (SQLException $e) {\n throw new Exception('Primary key is null');\n return null;\n }\n }",
"public function getIds();",
"public function getIds();",
"public function optionList(){\n $this->layout = null;\n\n\t $this->set('chamados',\n $this->Chamado->find('list', array(\n 'fields' => array('Chamado.id', 'Chamado.numero'),\n 'conditions' => array('Chamado.servico_id' => $this->params['url']['servico']))));\n }",
"public function getExam(Request $request){\n $getexam = Exam::where(['standard_id' => $request->standard_id,'semester_id' => $request->semester_id,'subject_id' => $request->subject_id,'unit_id' => $request->unit_id])->get();\n\n $result=\"<option value=''>--Select Exam--</option>\";\n if(count($getexam) > 0)\n {\n foreach ($getexam as $exam) {\n\n if($request->has('exam_id')){\n if($request->exam_id == $exam->id){\n $result.=\"<option value='\".$exam->id.\"' selected>\".$exam->name.\"</option>\";\n }\n else{\n $result.=\"<option value='\".$exam->id.\"'>\".$exam->name.\"</option>\"; \n }\n }else{\n $result.=\"<option value='\".$exam->id.\"'>\".$exam->name.\"</option>\";\n }\n }\n }\n return response()->json(['html'=>$result]); \n }",
"public function get_select_for_index()\n\t{\n\t\treturn\t$this->get_column_key().','.\n\t\t\t$this->get_column_title().' AS title,'.\n\t\t\t$this->get_column_detail().','.\n\t\t\t$this->get_column_when();\n\t}",
"public function getIlcList(Request $request){\n\n $ilcList= \"<option>Select ILC</option>\";\n $ilcs= $this->ilcList($request->file_no, $request->supplier_no);\n foreach ($ilcs as $key => $value) {\n $ilcList.='<option value=\"'.$key.'\"> '. $value .' </option>';\n }\n return $ilcList;\n }",
"public function setSelect($select);",
"public function getAllIds();",
"protected function get_select_id_col_name() {\n return \"accession\";\n }",
"private function selectQuestions(){\n $this->selectLimit();\n $this->arrResultQuestions=parent::selectSomething('*', 'posts', '', '', '', null, null, null, null, 'lastanswer',\n 'desc', $this->questionsPerPage);\n }",
"public function getSelectAll(Request $request)\n {\n $save_from = $request->input('datatable');\n $filter_data = json_decode(session('filter'));\n $sort = session('sort');\n $search = session('search');\n $array_test = [];\n if ($save_from == 'lead') {\n $leadDetails1 = LeadDetails::where('active', 1)->where('leadTabStatus', (int) 1)\n ->whereNotNull('dispatchDetails.land_mark')->whereNotNull('dispatchDetails.documentDetails')->where('dispatchDetails.documentDetails.documentName', '!=', \"\")->whereNotNull('dispatchDetails.documentDetails.amount')->whereNotNull('dispatchDetails.documentDetails.documentDescription')->whereNotNull('dispatchDetails.documentDetails.documentType')\n ->whereNotNull('dispatchDetails.address')->whereNotNull('dispatchDetails.employee');\n if (session('role') == 'Admin') {\n $leadDetails1 = $leadDetails1->get();\n } else {\n $leadDetails1 = $leadDetails1->where('caseManager.id', new ObjectID(Auth::user()->_id))->get();\n }\n //\t\t\t$leadDetails1 = LeadDetails::where('active', 1)->where('leadTabStatus', (int)1)\n //\t\t\t\t->whereNotNull('dispatchDetails.land_mark')->whereNotNull('dispatchDetails.documentDetails')->whereNotNull('dispatchDetails.documentDetails.documentName')->whereNotNull('dispatchDetails.documentDetails.amount')->whereNotNull('dispatchDetails.documentDetails.documentDescription')->whereNotNull('dispatchDetails.documentDetails.documentType')\n //\t\t\t\t->whereNotNull('dispatchDetails.address')->whereNotNull('dispatchDetails.employee')->get();\n foreach ($leadDetails1 as $newlead) {\n $array = $newlead->deliveryMode['deliveryMode'];\n if ($array == \"Courier\") {\n $array1 = $newlead->deliveryMode['wayBill'];\n if ($array1 != \"--\") {\n $array_test[] = $newlead->_id;\n }\n }\n if ($array != \"Courier\") {\n $array_test[] = $newlead->_id;\n }\n }\n $leadDetails = LeadDetails::whereIn('_id', $array_test);\n } elseif ($save_from == 'employee') {\n $employee_id = new ObjectId(session('employee_id'));\n // $leadDetails = LeadDetails::where('active', 1)->where('transferTo.id',$employee_id)->whereNotNull('transferTo')->where('dispatchStatus','!=','Completed');\n $leadDetails = LeadDetails::where('active', 1)->where('employeeTabStatus', (int) 1)->whereNotNull('transferTo')->where(\n 'transferTo.id',\n $employee_id\n );\n } elseif ($save_from == 'schedule') {\n $leadDetails = LeadDetails::where('active', 1)->where('scheduledTabStatus', (int) 1);\n if (session('role') == 'Employee' || session('role') == 'Agent') {\n $leadDetails = $leadDetails->where('employee.id', new ObjectID(Auth::user()->_id));\n } elseif (session('role') == 'Coordinator') {\n $leadDetails = $leadDetails->where(function ($q) {\n $q->where('employee.id', new ObjectID(Auth::user()->_id))\n ->orwhere('employee.id', session('assigned_agent'));\n });\n // $leadDetails = $leadDetails->where('employee.id', session('assigned_agent'));\n } elseif (session('role') == 'Supervisor') {\n $leadDetails = $leadDetails->where(function ($q) {\n $q->where('employee.id', new ObjectID(Auth::user()->_id))\n ->orwhereIn('employee.id', session('employees'));\n });\n } elseif (session('role') != 'Admin' && session('role') != 'Receptionist') {\n $leadDetails = $leadDetails->where('employee.id', new ObjectID(Auth::user()->_id));\n }\n } elseif ($save_from == 'delivery' || session('role') == 'Agent') {\n $leadDetails = LeadDetails::where('active', 1)->where('deliveryTabStatus', (int) 1);\n if (session('role') == 'Employee') {\n $leadDetails = $leadDetails->where('employee.id', new ObjectID(Auth::user()->_id));\n } elseif (session('role') == 'Coordinator') {\n $leadDetails = $leadDetails->where(function ($q) {\n $q->where('employee.id', new ObjectID(Auth::user()->_id))\n ->orwhere('employee.id', session('assigned_agent'));\n });\n } elseif (session('role') == 'Supervisor') {\n $leadDetails = $leadDetails->where(function ($q) {\n $q->where('employee.id', new ObjectID(Auth::user()->_id))\n ->orwhereIn('employee.id', session('employees'));\n });\n } elseif (session('role') != 'Admin' && session('role') != 'Receptionist') {\n $leadDetails = $leadDetails->where('employee.id', new ObjectID(Auth::user()->_id));\n }\n } elseif ($save_from == 'receptionist') {\n $leadDetails = LeadDetails::where('active', 1)->where('receptionTabStatus', (int) 1);\n } elseif ($save_from == 'transferred') {\n $leadDetails = LeadDetails::where('active', 1)->where('employeeTabStatus', (int) 1);\n }\n\n if (!empty($filter_data)) {\n if (!empty($filter_data->agent)) {\n $count = 0;\n foreach ($filter_data->agent as $agent) {\n $objectArray[$count] = new ObjectId($agent);\n $count++;\n }\n $leadDetails = $leadDetails->whereIn('agent.id', $objectArray);\n }\n if (!empty($filter_data->case_manager)) {\n $count = 0;\n foreach ($filter_data->case_manager as $manager) {\n $objectArray[$count] = new ObjectId($manager);\n $count++;\n }\n $leadDetails = $leadDetails->whereIn('caseManager.id', $objectArray);\n }\n if (!empty($filter_data->customer)) {\n $count = 0;\n foreach ($filter_data->customer as $cust) {\n $objectArray[$count] = new ObjectId($cust);\n $count++;\n }\n $leadDetails = $leadDetails->whereIn('customer.id', $objectArray);\n }\n if (!empty($filter_data->delivery)) {\n $count = 0;\n foreach ($filter_data->delivery as $mode) {\n $objectArray[$count] = new ObjectId($mode);\n $count++;\n }\n $leadDetails = $leadDetails->whereIn('deliveryMode.id', $objectArray);\n }\n if (!empty($filter_data->dispatch)) {\n $count = 0;\n foreach ($filter_data->dispatch as $type) {\n $objectArray[$count] = new ObjectId($type);\n $count++;\n }\n $leadDetails = $leadDetails->whereIn('dispatchType.id', $objectArray);\n }\n if (!empty($filter_data->assigned)) {\n $count = 0;\n foreach ($filter_data->assigned as $type) {\n $objectArray[$count] = new ObjectId($type);\n $count++;\n }\n $leadDetails = $leadDetails->whereIn('employee.id', $objectArray);\n }\n if (!empty($filter_data->status)) {\n $count = 0;\n foreach ($filter_data->status as $stat) {\n $objectArray[$count] = $stat;\n $count++;\n }\n $leadDetails = $leadDetails->whereIn('dispatchStatus', $objectArray);\n }\n }\n\n if ($search) {\n $leadDetails = $leadDetails->where(function ($query) use ($search) {\n $query->Where('referenceNumber', 'like', '%' . $search . '%')\n ->orWhere('customer.name', 'like', '%' . $search . '%')\n ->orWhere('customer.recipientName', 'like', '%' . $search . '%')\n ->orWhere('customer.customerCode', 'like', '%' . $search . '%')\n ->orWhere('agent.name', 'like', '%' . $search . '%')\n ->orWhere('caseManager.name', 'like', '%' . $search . '%')\n ->orWhere('contactNumber', 'like', '%' . $search . '%')\n ->orWhere('contactEmail', 'like', '%' . $search . '%')\n ->orWhere('deliveryMode.deliveryMode', 'like', '%' . $search . '%')\n ->orWhere('dispatchType.dispatchType', 'like', '%' . $search . '%');\n });\n session()->put('search', $search);\n }\n $final_data = $leadDetails->pluck('_id')->toArray();\n return $final_data;\n }",
"function detail_ambil_paket_isi_perawatan_list(){\r\n\t\t$query = isset($_POST['query']) ? $_POST['query'] : \"\";\r\n\t\t$start = (integer) (isset($_POST['start']) ? $_POST['start'] : $_GET['start']);\r\n\t\t$end = (integer) (isset($_POST['limit']) ? $_POST['limit'] : $_GET['limit']);\r\n\t\t$master_id = (integer) (isset($_POST['master_id']) ? $_POST['master_id'] : $_GET['master_id']);\r\n\t\t$result=$this->m_master_ambil_paket->detail_ambil_paket_isi_perawatan_list($master_id,$query,$start,$end);\r\n\t\techo $result;\r\n\t}",
"public function amenityIds()\n {\n $this->attributes['amenityIds'] = $this->amenities->pluck('id');\n }",
"function selection() {\r\n return array('id' => $this->code,\r\n 'module' => $this->title);\r\n }",
"public function listId() {\n\t\treturn $this->academic_session->all()->pluck('id')->all();\n\t}",
"public function scopeFetchIds()\n {\n return $this->pluck(\"id\");\n }",
"private function lists(){\n\t\t\t$constrain = '';\n\t\t\t$offset = $this->validateNumber(isset($_GET['offset'])?$_GET['offset']:NULL);\n\t\t\t$idRemision = $this->validateNumber(isset($_GET['id'])?$_GET['id']:NULL);\n\t\t\t$constrains = isset($_POST['constrains'])?$_POST['constrains']:'1 = 1';\n\t\t\t\n\t\t\tif($constrains === '1 = 1'){\n\t\t\t\t$constrain = $constrains;\n\t\t\t}else{\n\t\t\t\t$tam = count($constrains);\n\t\t\t\tforeach ($constrains as $campo => $valor) {\n\t\t\t\t\tif(--$tam){\n\t\t\t\t\t\tif(is_numeric($valor)){\n\t\t\t\t\t\t\t$constrain.=$campo.' = '.$valor.' AND ';\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t$constrain.=$campo.' LIKE \"%'.$valor.'%\" AND ';\n\t\t\t\t\t\t}\n\t\t\t\t\t}else{\n\t\t\t\t\t\tif(is_numeric($valor)){\n\t\t\t\t\t\t\t$constrain.=$campo.' = '.$valor;\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t$constrain.=$campo.' LIKE \"%'.$valor.'%\"';\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif($offset!==''){ \n\t\t\t\tif ($idRemision!=='') {\n\t\t\t\t\tif(($result = $this->model->listsDetails($idRemision))){\n\t\t\t\t\t\tif(is_numeric($result)){\n\t\t\t\t\t\t\tif ($this->api) {\n\t\t\t\t\t\t\t\techo $this->json_encode(array('error'=>VACIO,'data'=>NULL,'mensaje'=>'No se encontro Registro alguno'));\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t$template = $this->twig->loadTemplate('vacio.html');\n\t\t\t\t\t\t\t\techo $template->render(array('session'=>$this->session,'data'=>NULL));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tif($this->api){\n\t\t\t\t\t\t\t\techo $this->json_encode(array('error'=>OK,'data'=>$result,'mensaje'=>'Correcto'),JSON_UNESCAPED_UNICODE);\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t$this->session['action']='list';\n\t\t\t\t\t\t\t\t$template = $this->twig->loadTemplate('remisionForm.html');\n\t\t\t\t\t\t\t\techo $template->render(array('session'=>$this->session,'data'=>$result));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else{\n\t\t\t\t\t\tif($this->api){\n\t\t\t\t\t\t\techo $this->json_encode(array('error'=>FORMATO_INCORRECTO,'data'=>NULL,'mensaje'=>'Formato Incorrecto'));\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t//CARGAR VISTA FORMATO INCORRECTO\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}else if(($result = $this->model->lists($offset,-1,$constrain))){\n\t\t\t\t\tif(is_numeric($result)){\n\t\t\t\t\t\tif ($this->api) {\n\t\t\t\t\t\t\techo $this->json_encode(array('error'=>VACIO,'data'=>NULL,'mensaje'=>'No se encontro Registro alguno'));\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t$template = $this->twig->loadTemplate('vacio.html'); echo $template->render(array('session'=>$this->session,'data'=>NULL));\n\t\t\t\t\t\t}\n\t\t\t\t\t}else{\n\t\t\t\t\t\tif($this->api){\n\t\t\t\t\t\t\techo $this->json_encode(array('error'=>OK,'data'=>$result,'mensaje'=>'Correcto'),JSON_UNESCAPED_UNICODE);\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t$template = $this->twig->loadTemplate('remisionList.html');\n\t\t\t\t\t\t\techo $template->render(array('session'=>$this->session,'data'=>$result));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tif($this->api){\n\t\t\t\t\t\techo $this->json_encode(array('error'=>ERROR_DB,'data'=>NULL,'mensaje'=>'Error al Realizar la Consulta'));\n\t\t\t\t\t}else{\n\t\t\t\t\t\t//CARGAR VISTA ERROR DB\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tif($this->api){\n\t\t\t\t\techo $this->json_encode(array('error'=>FORMATO_INCORRECTO,'data'=>NULL,'mensaje'=>'Formato Incorrecto'));\n\t\t\t\t}else{\n\t\t\t\t\t//CARGAR VISTA FORMATO INCORRECTO\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"public function index(){\n\n $zonas = $this->database->select('Zona',['id','zona']);\n\n for ($i=0; $i <count($zonas); $i++) {\n\n $zonas[$i]['id']=intval($zonas[$i]['id']);\n\n }\n\n return $zonas;\n\n }",
"function menu_list ()\n {\n $this->db->from($this->menu);\n $this->db->order_by('id');\n $result = $this->db->get();\n $return = array();\n if($result->num_rows() > 0){\n $return[''] = 'please select';\n foreach($result->result_array() as $row){\n $return[$row['id']] = $row['menu_id'];\n }\n }\n return $return;\n \n }",
"public function regionlist(){\n if($this->request->all()){\n $id = array_flatten($this->request->all());\n $sorted = $this->region->select('id','region')->whereIn('id',$id)->where('status',1)->get()->sortBy('region');\n }else{\n $sorted = $this->region->select('id','region')->where('status',1)->get()->sortBy('region');\n }\n return $sorted->values()->all();\n }",
"public function getContactListModalFilterSelectAll(Request $request, $id)\n {\n // Get \n $data = $this->Service->addContactsToGroupSelectAll($request, $id); \n $responseMsg = $this->Service->processControllerResponse($data[config('msg_label.MSG_RESULT')], $data[config('msg_label.MSG_MESSAGE')]);\n return response()->json($responseMsg); \n }",
"function select() {\r\n $ing_item = $this->ing_item;\r\n $ing_estado_ingreso = $this->ing_estado_ingreso;\r\n $ing_item = $this->ing_item;\r\n $prov_id = $this->prov_id;\r\n $ing_numerodoc = $this->ing_numerodoc;\r\n $ing_tipodoc = $this->ing_tipodoc;\r\n $bod_codigo = $this->bod_codigo;\r\n\r\n $sql = \"SELECT * FROM ing_ingreso_det h INNER JOIN ingreso_compra p ON p.ing_numerodoc = h.ing_numerodoc WHERE p.ing_estado_doc > '0' \";\r\n if ($ing_estado_ingreso != null) {\r\n $sql = $sql . \"AND h.ing_estado_ingreso = '\" . $ing_estado_ingreso . \"' \";\r\n } else {\r\n $sql = $sql . \"AND h.ing_estado_ingreso > '0' \";\r\n }\r\n if ($ing_item != null) {\r\n $sql = $sql . \"AND h.ing_item = '\" . $ing_item . \"' \";\r\n }\r\n if ($prov_id != null) {\r\n $sql = $sql . \"AND h.prov_id = '\" . $prov_id . \"' \";\r\n }\r\n if ($ing_numerodoc != null) {\r\n $sql = $sql . \"AND h.ing_numerodoc = '\" . $ing_numerodoc . \"' \";\r\n }\r\n if ($ing_tipodoc != null) {\r\n $sql = $sql . \"AND h.ing_tipodoc = '\" . $ing_tipodoc . \"' \";\r\n }\r\n if ($bod_codigo != null) {\r\n $sql = $sql . \"AND h.bod_codigo = '\" . $bod_codigo . \"' \";\r\n }\r\n\r\n\r\n $result = $this->database->query($sql);\r\n\r\n $i = 0;\r\n while ($datos = $this->database->fetch_array($result)) {\r\n $this->arringdet[$i]['ing_item'] = $datos['ing_item'];\r\n $this->arringdet[$i]['prov_id'] = $datos['prov_id'];\r\n $this->arringdet[$i]['ing_numerodoc'] = $datos['ing_numerodoc'];\r\n $this->arringdet[$i]['ing_tipodoc'] = $datos['ing_tipodoc'];\r\n $this->arringdet[$i]['prod_equiv_id'] = $datos['prod_equiv_id'];\r\n $this->arringdet[$i]['bod_codigo'] = $datos['bod_codigo'];\r\n $this->arringdet[$i]['prod_codigo'] = $datos['prod_codigo'];\r\n $this->arringdet[$i]['ing_bodega'] = $datos['ing_bodega'];\r\n $this->arringdet[$i]['ing_zeta'] = $datos['ing_zeta'];\r\n $this->arringdet[$i]['ing_cantidad1'] = $datos['ing_cantidad1'];\r\n $this->arringdet[$i]['ing_cantidad_bulto'] = $datos['ing_cantidad_bulto'];\r\n $this->arringdet[$i]['ing_unid_bulto'] = $datos['ing_unid_bulto'];\r\n $this->arringdet[$i]['ing_valor1'] = $datos['ing_valor1'];\r\n $this->arringdet[$i]['ing_valor2'] = $datos['ing_valor2'];\r\n $this->arringdet[$i]['ing_estado_ingreso'] = $datos['ing_estado_ingreso'];\r\n $this->arringdet[$i]['ing_peso'] = $datos['ing_peso'];\r\n $this->arringdet[$i]['ing_umed_peso'] = $datos['ing_umed_peso'];\r\n $this->arringdet[$i]['ing_valor_total'] = $datos['ing_valor_total'];\r\n\r\n $this->arringdet[$i]['ing_correlativo'] = $datos['ing_correlativo'];\r\n $this->arringdet[$i]['ing_fechadoc'] = $datos['ing_fechadoc'];\r\n $this->arringdet[$i]['ing_fechavisacion'] = $datos['ing_fechavisacion'];\r\n $this->arringdet[$i]['ing_numerovisacion'] = $datos['ing_numerovisacion'];\r\n $this->arringdet[$i]['ing_moneda'] = $datos['ing_moneda'];\r\n $this->arringdet[$i]['ing_tipodecambio'] = $datos['ing_tipodecambio'];\r\n $this->arringdet[$i]['ing_iva'] = $datos['ing_iva'];\r\n $this->arringdet[$i]['ing_ciftotal'] = $datos['ing_ciftotal'];\r\n $this->arringdet[$i]['ing_costototal'] = $datos['ing_costototal'];\r\n $this->arringdet[$i]['ing_viutotal'] = $datos['ing_viutotal'];\r\n $this->arringdet[$i]['ing_estado_pago'] = $datos['ing_estado_pago'];\r\n $this->arringdet[$i]['ing_estado_doc'] = $datos['ing_estado_doc'];\r\n $this->arringdet[$i]['ing_neto'] = $datos['ing_neto'];\r\n $this->arringdet[$i]['ing_total'] = $datos['ing_total'];\r\n $this->arringdet[$i]['ing_tipodocsve'] = $datos['ing_tipodocsve'];\r\n $this->arringdet[$i]['ing_bodega_rec'] = $datos['ing_bodega_rec'];\r\n }\r\n }",
"public function consultarTiposJSONSelectAction() {\n $select = \"<select>\";\n //$select = $select . \"<option value='' >Seleccione una Acción</option>\";\n $select = $select . \"<option value=\" . User::$VENDEDOR . \" >\" . User::$VENDEDOR_TEXT . \"</option>\";\n $select = $select . \"<option value=\" . User::$COMPRADOR . \" >\" . User::$COMPRADOR_TEXT . \"</option>\";\n $select = $select . \"<option value=\" . User::$APROBADOR . \" >\" . User::$APROBADOR_TEXT . \"</option>\";\n $select = $select . \"<option value=\" . User::$DIGITADOR . \" >\" . User::$DIGITADOR_TEXT . \"</option>\";\n $select = $select . \"</select>\";\n\n $response = new Response($select);\n return $response;\n }",
"public abstract function get_ids();",
"public function execute_and_get_ids()\n {\n }",
"public function getAllIds(): array;",
"public function selectItemNamedAngularById()\n {\n\n $itemTypeId = !empty($_GET['itemTypeId']) ? $_GET['itemTypeId'] : '';\n if (!empty($itemTypeId)) {\n $itemDatasUnitData = DB::select('SELECT * FROM item_master WHERE is_deleted_status = \"N\" AND item_type_id = '.$itemTypeId.'');\n if (!empty($itemDatasUnitData)) {\n $unitId = $itemDatasUnitData[0]->unit_id;\n } \n }\n\n $itemUnitData = DB::select('SELECT * FROM unit_master WHERE is_deleted_status = \"N\" AND id = '.$unitId.'');\n if (!empty($itemUnitData)) {\n echo $itemUnitData[0]->unit;\n }\n\n }",
"public function select() {\n return $this->getActionByName('Select');\n }",
"function showIds() {\n\n\tglobal $connection;\n\t$query = \" SELECT * FROM users \";\n\t$result = mysqli_query($connection, $query);\n\n\tif (!$result) {\n\t\t\tdie ('Connection FAILED . mysqli_error($connection)');\n\t\t}\n\n\twhile ($row = mysqli_fetch_assoc($result)) {\n\t\t\t\t\t\t\t\n\t\t$id = $row['id'];\n\n\t\techo \"<option value='$id'>$id</option>\";\n\t\t\t\t\t\t\n\t}\n\n}",
"public function select2(Request $request)\n {\n $params = $request->get('params');\n \n // Quantidade de registros por pagina\n $registros_por_pagina = 100;\n \n if(!empty($request->get('id'))) { \n // Monta Retorno\n $item = $this->repository->findOrFail($request->get('id'));\n return [\n 'id' => $item->codsubgrupoproduto,\n 'subgrupoproduto' => $item->subgrupoproduto,\n 'inativo' => $item->inativo,\n ];\n } else {\n\n // Numero da Pagina\n $params['page'] = $params['page']??1;\n \n // Monta Query\n $qry = $this->repository->model->where('codgrupoproduto', $request->codgrupoproduto);\n \n if(!empty($params['term'])) {\n foreach (explode(' ', $params['term']) as $palavra) {\n if (!empty($palavra)) {\n $qry->whereRaw(\"(tblsubgrupoproduto.subgrupoproduto ilike '%{$palavra}%')\");\n }\n }\n }\n\n if ($request->get('somenteAtivos') == 'true') {\n $qry->ativo();\n }\n \n // Total de registros\n $total = $qry->count();\n \n // Ordenacao e dados para retornar\n $qry->select('codsubgrupoproduto', 'subgrupoproduto', 'inativo');\n $qry->orderBy('subgrupoproduto', 'ASC');\n $qry->limit($registros_por_pagina);\n $qry->offSet($registros_por_pagina * ($params['page']-1));\n \n // Percorre registros\n $results = [];\n foreach ($qry->get() as $item) {\n $results[] = [\n 'id' => $item->codsubgrupoproduto,\n 'subgrupoproduto' => $item->subgrupoproduto,\n 'inativo' => $item->inativo,\n ];\n }\n \n // Monta Retorno\n return [\n 'results' => $results,\n 'params' => $params,\n 'pagination' => [\n 'more' => ($total > $params['page'] * $registros_por_pagina)?true:false,\n ]\n ];\n }\n }",
"public function setSelection() {\n\n if(is_numeric($this->selection_count) && $this->selection_count > 0)\n {\n\n $sp = \"api_Common_GetSelection\";\n $params = [\n \"UserID\" => $this->user->getId()\n ,\"PageID\" => $this->page_id\n ,\"SelectionID\" => $this->selection_id\n ];\n\n $this->selection = $this->mp->storedProcedure($sp, $params)->getTable(0);\n\n }\n\n return $this;\n }",
"public abstract static function getListID();"
] | [
"0.5956901",
"0.5956901",
"0.5931961",
"0.5731345",
"0.57144934",
"0.5538705",
"0.55126745",
"0.55100524",
"0.55100524",
"0.5491485",
"0.5483647",
"0.5473517",
"0.5469618",
"0.5468208",
"0.54324937",
"0.54324937",
"0.5421318",
"0.5399123",
"0.5399123",
"0.5399123",
"0.5399123",
"0.5399123",
"0.5399123",
"0.5399123",
"0.5399123",
"0.5395512",
"0.5387286",
"0.5374364",
"0.5337105",
"0.5313347",
"0.5289796",
"0.5275392",
"0.5270966",
"0.5265593",
"0.5261439",
"0.5261439",
"0.5261439",
"0.5253976",
"0.5250483",
"0.5247147",
"0.5242934",
"0.5239995",
"0.5235995",
"0.5222253",
"0.5220213",
"0.52145225",
"0.5210941",
"0.5209782",
"0.52079374",
"0.5206475",
"0.52004313",
"0.52003545",
"0.5198785",
"0.5186794",
"0.51788497",
"0.5175896",
"0.51648515",
"0.5159064",
"0.5147701",
"0.51378554",
"0.5128874",
"0.5121415",
"0.5112746",
"0.5112356",
"0.5106518",
"0.50991166",
"0.5090908",
"0.5088074",
"0.50715137",
"0.50715137",
"0.50712657",
"0.50703293",
"0.50694877",
"0.50568116",
"0.5050247",
"0.5047634",
"0.504702",
"0.5045261",
"0.5044662",
"0.504172",
"0.50353616",
"0.5035292",
"0.50352865",
"0.50334865",
"0.502937",
"0.5027139",
"0.50249773",
"0.50238055",
"0.5022306",
"0.50193286",
"0.50145864",
"0.5010852",
"0.50105727",
"0.50105566",
"0.50089633",
"0.5006445",
"0.49979413",
"0.49963665",
"0.4995383",
"0.49878797"
] | 0.59344035 | 2 |
Get raw data array. | public function getRawData(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getRawData() {}",
"public function getData()\n {\n return $this->raw;\n }",
"public function getData(): array;",
"public function getData(): array;",
"public function getData(): array;",
"public function getData(): array;",
"public static function getRawData()\n {\n return self::$rawData;\n }",
"public function toArray(): array\n {\n return $this->rawData;\n }",
"protected abstract function getData(): array;",
"public function get_raw_data() {\n\t\treturn $this->raw_data;\n\t}",
"public function getData() : array;",
"public function getData() : array;",
"public function getData () : array {\n\t\treturn $this->data;\n\t}",
"public function getRawData() {\n return $this->rawData;\n }",
"public function getData() : array\n {\n return $this->data;\n }",
"public function getData() : array\n {\n return $this->data;\n }",
"public function getData() : array\n {\n return $this->data;\n }",
"public function getRaw() : array\n {\n return $this->raw;\n }",
"public function getRawData()\n\t{\n\n\t\treturn @file_get_contents($this->tmpFileName);\n\n\t}",
"public function getData()\n {\n return array(\n\n );\n }",
"public static function get_raw_data()\n {\n }",
"public static function get_raw_data()\n {\n }",
"public function getRaw(): array\n {\n return $this->raw;\n }",
"private function getDataArray() {\n\t\treturn $this->dataArray;\n\t}",
"public function get_data(): array;",
"public function get_data(): array;",
"public function getArray() {\n\t\treturn $this->data; \n\t}",
"public function getArray() {\n\t\treturn $this->data; \n\t}",
"public function getData(): array\n {\n return $this->data;\n }",
"public function getData(): array\n {\n return $this->data;\n }",
"public function getData(): array\n {\n return $this->data;\n }",
"public function getData()\n\t{\n\t\treturn $this->arrData;\n\t}",
"public function getData()\n\t{\n\t\treturn $this->arrData;\n\t}",
"public function get_raw_data()\n {\n }",
"public function get_raw_data()\n {\n }",
"public function getData(): array\n\t{\n\t\treturn $this->data;\n\t}",
"public function getDataArr(){\n\t\treturn $this->data_arr;\n\t}",
"public function data() : array\n {\n return $this->data->toArray();\n }",
"public function getRawData()\n {\n return $this->getProperty('raw_data');\n }",
"public function _getData(): array\n {\n $result = [\n ];\n\n return parent::normalizeData($result);\n }",
"protected function getData(): array\n {\n if (!is_array($this->data)) {\n return [];\n }\n return $this->data;\n }",
"public function asArray()\r\n {\r\n return $this->data;\r\n }",
"protected abstract function getSourceDataAsArray(): ?array;",
"public function read(): array;",
"public function asArray()\n {\n return $this->data;\n }",
"protected function getData()\n {\n return [];\n }",
"public function getData()\n {\n return self::$_arData;\n }",
"public function toArray() // untested\n {\n return $this->data;\n }",
"public /*array*/ function toArray()\n\t{\n\t\treturn $this->_data;\n\t}",
"public function data(): array\n {\n return $this->data;\n }",
"public function getRawData($format = self::RawDataArray) {\n return $this->data;\n }",
"public function DataGenerateArray() {\n $data = $this->GenerateArray();\n return $data['data']; \n }",
"public function toArray() {\n\t\treturn $this->data;\n\t}",
"public function getData() {\n return $this->parse()['data'];\n }",
"function toArray(){\r\n\t\treturn $this->data;\r\n\t}",
"public function getData()\n {\n $this->initialize();\n\n return $this->data;\n }",
"public function getData() {\n if ($this->_multiple) {\n return $this->_data;\n }\n return isset($this->_data[0])? $this->_data[0] : [];\n }",
"public function asArray(){\n return $this->data;\n }",
"public function &getData() : array\n {\n return $this->data;\n }",
"public function toArray() : array\n {\n return $this->data;\n }",
"public function toArray()\n {\n return $this->_data;\n }",
"public function toArray()\n {\n return $this->_data;\n }",
"public function raw(): array\n\t{\n\t\treturn $this->configData;\n\t}",
"public static function data(): array\n {\n return self::$data;\n }",
"public static function data(): array\n {\n return self::$data;\n }",
"public function toArray()\r\n\t{\r\n\t\treturn $this->m_data;\r\n\t}",
"public function getData()\n {\n $rtn = $this->data['data'];\n\n return $rtn;\n }",
"public function toArray() {\n return $this->data;\n }",
"public function toArray() {\n return $this->data;\n }",
"public function getData() {\n\t\treturn $this->data;\n\t}",
"public function getData() {\n\t\treturn $this->data;\n\t}",
"public static function getRawData() {\n\t\tif (static::$rawData === null) {\n\t\t\tstatic::$rawData = file_get_contents('php://input');\n\t\t}\n\n\t\treturn static::$rawData;\n\t}",
"public function getData() : array{\n $this->collection->rewind();\n $data = [];\n while($this->collection->valid()){\n $data[] = $this->collection->current()->getData();\n $this->collection->next();\n }\n return $data;\n }",
"public function getArray() {\r\n \r\n $data = [\r\n \"id\" => $this->id,\r\n \"name\" => $this->name,\r\n \"description\" => $this->desc,\r\n \"url_file\" => $this->url_file,\r\n \"filename\" => $this->filename,\r\n \"filepath\" => $this->filepath,\r\n \"filesize\" => $this->filesize,\r\n \"mime\" => $this->mime,\r\n \"active\" => $this->active,\r\n \"approved\" => $this->approved,\r\n \"meta\" => $this->extra_data,\r\n \"date\" => $this->Date,\r\n \"author\" => $this->Author->getArray(),\r\n \"url\" => $this->url->getURLs(),\r\n \"thumbnail\" => $this->getThumbnail(),\r\n \"icon\" => $this->getIcon(),\r\n ];\r\n \r\n return $data;\r\n \r\n }",
"public function getData()\n\t{\n\t\treturn $this->data;\n\t}",
"public function getData()\n\t{\n\t\treturn $this->data;\n\t}",
"public function getData()\n\t{\n\t\treturn $this->data;\n\t}",
"public function getData()\n\t{\n\t\treturn $this->data;\n\t}",
"public function toArray()\r\n {\r\n return $this->data;\r\n }",
"protected function getDataArray(): array\n {\n return [];\n }",
"public function getData()\n {\n $row = $this->_row;\n $data = array(\n 'id' => intval($row['id']),\n 'mls_number' => $row['mls_number'],\n 'type' => $row['type'],\n 'price' => intval($row['price']),\n 'city' => $row['city'],\n 'subdivision' => $row['subdivision'],\n 'num_bedrooms' => ($row['bedrooms'] == 0 ? null : intval($row['bedrooms'])),\n 'num_bathrooms' => ($row['bathrooms'] == 0 ? null : floatval($row['bathrooms'])),\n 'num_sqft' => ($row['sqft'] == 0 ? null : intval($row['sqft'])),\n 'feed' => $row['idx'],\n 'source' => $row['table'],\n );\n return $data;\n }",
"public function toArray()\n {\n return $this->data;\n }",
"public function toArray()\n {\n return $this->data;\n }",
"public function toArray()\n {\n return $this->data;\n }",
"public function toArray()\n {\n return $this->data;\n }",
"public function toArray()\n {\n return $this->data;\n }",
"public function toArray()\n {\n return $this->data;\n }",
"abstract public function data2Array($data);",
"function getRawData()\n{\n global $dataFileName;\n if ( ! file_exists($dataFileName)) {\n return [];\n }\n $file = fopen($dataFileName, 'r');\n $data = [];\n while ($row = fgets($file)) {\n $data[] = $row;\n }\n\n return $data;\n}",
"public function getDataArray(){\n return array($this->item_id,$this->name,$this->count,$this->price);\n }",
"public function getData() {\n\t\treturn $this->_data;\n\t}",
"public function getData() {\n\t\treturn $this->_data;\n\t}",
"public function getData() {\n\t\treturn $this->_data;\n\t}",
"public function getData() {\n\t\treturn $this->_data;\n\t}",
"public function getData() {\n\t\treturn $this->_data;\n\t}",
"public function getData() {\n\t\treturn $this->Data;\n\t}",
"public function getData() {\r\n\t\treturn $this->_data;\r\n\t}",
"public function getData(){\n $data = json_encode($this->data);\n return $data;\n }",
"function getData() {\n\t\treturn $this->data;\n\t}"
] | [
"0.8163359",
"0.78400236",
"0.77813596",
"0.77813596",
"0.77813596",
"0.77813596",
"0.7756806",
"0.7741698",
"0.76840156",
"0.7661394",
"0.75895286",
"0.75895286",
"0.7582252",
"0.75677174",
"0.7556133",
"0.7556133",
"0.7556133",
"0.7546974",
"0.7544819",
"0.7520431",
"0.7506771",
"0.7506771",
"0.7495326",
"0.747023",
"0.7428329",
"0.7428329",
"0.74021566",
"0.74021566",
"0.7382738",
"0.7382738",
"0.7382738",
"0.7359389",
"0.7359389",
"0.73475087",
"0.73474824",
"0.7337742",
"0.7326309",
"0.73129773",
"0.72774017",
"0.72312325",
"0.72032094",
"0.7172085",
"0.71704614",
"0.7161181",
"0.7150901",
"0.71366197",
"0.7126023",
"0.71147144",
"0.71005577",
"0.7096183",
"0.7088782",
"0.70774955",
"0.70552576",
"0.7023141",
"0.7004964",
"0.6999387",
"0.69948953",
"0.6989999",
"0.698207",
"0.69733167",
"0.6972715",
"0.6972715",
"0.69612414",
"0.6954232",
"0.6954232",
"0.6946567",
"0.69383204",
"0.6930727",
"0.6930727",
"0.69294906",
"0.69294906",
"0.6923869",
"0.6921594",
"0.69184697",
"0.6916904",
"0.6916904",
"0.6916904",
"0.6916904",
"0.6911818",
"0.6906496",
"0.6891614",
"0.68836397",
"0.68836397",
"0.68836397",
"0.68836397",
"0.68836397",
"0.68836397",
"0.68823874",
"0.6877651",
"0.6870052",
"0.68694717",
"0.68694717",
"0.68694717",
"0.68694717",
"0.68694717",
"0.68690646",
"0.6853819",
"0.68523264",
"0.68441325"
] | 0.82051533 | 1 |
Get data array formatted per tracking method. | public function getFormattedData(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getLogData(): array {\n\t\t$data = [];\n\n\t\t$data['input_properties_count'] = $this->getInputPropertiesCount();\n\t\t$data['monitoring_point_id'] = $this->getMonitoringPointId();\n\t\t$data['user_id'] = $this->getUserId();\n\t\t$data['property_statistics'] = [];\n\n\t\tforeach ($this->getProperties() as $property) {\n\t\t\t$data['property_statistics'][] = [\n\t\t\t\t'symbol' => $property,\n\t\t\t\t'values_count' => $this->getPropertyValuesCount($property),\n\t\t\t\t'inserts' => $this->getPropertyInserts($property),\n\t\t\t\t'updates' => $this->getPropertyUpdates($property),\n\t\t\t\t'no_changes' => $this->getPropertyNoChanges($property),\n\t\t\t\t'min_time' => $this->getPropertyMinTimeFormatted($property),\n\t\t\t\t'max_time' => $this->getPropertyMaxTimeFormatted($property),\n\t\t\t];\n\t\t}\n\n\t\treturn $data;\n\t}",
"public function getDataArray() {\n $emailLogData = $this->db->fetchAll(\"SELECT * FROM email_log \" . $this->getCondition() . $this->getOrder() . $this->getOffsetLimit(), $this->model->getConditionVariables());\n return $emailLogData;\n }",
"public function getData()\n {\n return array(\n\n );\n }",
"public function getDataArray(){\n return array($this->item_id,$this->name,$this->count,$this->price);\n }",
"public function getData()\n {\n $this->validateData();\n $data = array(\n \"service\" => $this->getService(),\n \"partner\" => $this->getPartner(),\n \"_input_charset\" => $this->getInputCharset(),\n \"notify_url\" => $this->getNotifyUrl(),\n \"account_name\" => $this->getAccountName(),\n \"email\" => $this->getEmail(),\n \"detail_data\" => $this->getDetailData(),\n \"batch_no\" => $this->getBatchNo(),\n \"batch_num\" => $this->getBatchNum(),\n \"batch_fee\" => $this->getBatchFee(),\n \"pay_date\" => $this->getPayDate(),\n );\n $data = array_filter($data);\n $data['sign'] = $this->getParamsSignature($data);\n $data['sign_type'] = $this->getSignType();\n return $data;\n }",
"public function _getData(): array\n {\n $result = [\n 'traveler' => $this->getTraveler(),\n 'watcher' => $this->getWatcher(),\n 'distance' => $this->getDistance(),\n ];\n\n return parent::normalizeData($result);\n }",
"public function get_data(): array;",
"public function get_data(): array;",
"public function getData()\n {\n return [\n 'fetchBlock' => $this->fetchBlock,\n 'generateKey' => $this->generateKey,\n 'hits' => $this->hits,\n 'strategyClass' => $this->strategyClass,\n ];\n }",
"public function getData(): array;",
"public function getData(): array;",
"public function getData(): array;",
"public function getData(): array;",
"public function DataGenerateArray() {\n $data = $this->GenerateArray();\n return $data['data']; \n }",
"public function getData() : array;",
"public function getData() : array;",
"public function generateArray()\r\n\t{\t\r\n\t\t$data = array('logID'=>$this->logID,'text'=>$this->Text,'timestamp'=>$this->timestamp, 'textid'=>$this->textID);\r\n\t\tif($this->user!=null)\r\n\t\t\t$data['user'] = $this->user->generateArray();\r\n\t\tif($this->building!=null)\r\n\t\t\t$data['building'] = $this->building->generateArray('normal');\r\n\t\tif($this->card!=null)\r\n\t\t\t$data['card']=$this->card->generateArray();\r\n\t\tif($this->location!=null)\r\n\t\t\t$data['location']=$this->location->generateArray();\r\n\t\tif($this->icon!=null)\r\n\t\t\t$data['icon']=$this->icon;\r\n\t\tif($this->game!=null)\r\n\t\t\t$data['game']=$this->game;\r\n\t\treturn $data;\r\n\t\r\n\t}",
"public function toArray() {\n return [\n 'dataId' => $this->dataId,\n 'voucher' => $this->voucher,\n 'nextTime' => $this->nextTime,\n 'simNumber' => $this->simNumber\n ];\n }",
"public function toArray()\n {\n $result = array(\n Epicom_MHub_Helper_Data::API_SHIPMENT_EVENT_CREATED => Mage::helper ('mhub')->__('Created'),\n Epicom_MHub_Helper_Data::API_SHIPMENT_EVENT_NF => Mage::helper ('mhub')->__('NF'),\n Epicom_MHub_Helper_Data::API_SHIPMENT_EVENT_SENT => Mage::helper ('mhub')->__('Sent'),\n Epicom_MHub_Helper_Data::API_SHIPMENT_EVENT_DELIVERED => Mage::helper ('mhub')->__('Delivered'),\n Epicom_MHub_Helper_Data::API_SHIPMENT_EVENT_FAILED => Mage::helper ('mhub')->__('Failed'),\n Epicom_MHub_Helper_Data::API_SHIPMENT_EVENT_PARCIAL => Mage::helper ('mhub')->__('Parcial'),\n Epicom_MHub_Helper_Data::API_SHIPMENT_EVENT_CANCELED => Mage::helper ('mhub')->__('Canceled'),\n );\n\n return $result;\n }",
"public function getData(): array\n\t{\n\t\treturn [\n\t\t\t'status' => $this->status,\n\t\t\t'statusMessage' => $this->statusMessage,\n\t\t\t'formattedStatusMessage' => $this->getFormattedStatusMessage(),\n\t\t\t'step' => $this->step,\n\t\t];\n\t}",
"public function toData() {\n\t\treturn array($this->_alias => $this->toArray());\n\t}",
"public function toArray()\n {\n $data = array(\n 'id' => $this->getId(),\n 'status' => $this->getStatus(),\n 'title' => $this->field ? ($this->field->getAlertDescription() ? $this->field->getAlertDescription() : $this->field->getAlertTitle()) : '',\n 'alert_description' => $this->field ? ($this->field->getAlertDescription() ? $this->field->getAlertDescription() : $this->field->getAlertTitle()) : '',\n 'field' => $this->field ? $this->field->toArray() : null,\n 'vehicle' => $this->getVehicle()->toInfoArray(),\n 'user' => $this->check_list ? $this->check_list->getUser()->toInfoArray() : array(),\n 'description' => $this->getDescription(),\n 'images' => $this->getImages(),\n 'thumbnail' => $this->getThumbnail(),\n 'comments' => $this->getComments(),\n 'creation_date' => $this->getCreationDate()->getTimestamp(),\n 'update_date' => $this->getUpdateDate()->getTimestamp(),\n 'history' => $this->getHistory(),\n 'refreshed_times' => $this->getRefreshedTimes()\n );\n return $data;\n }",
"public function getData()\n {\n //let's assume that this array is from a database\n return array('persian', 'bob', 'tabby', 'stray');\n }",
"public function getLogObjectData() : array {\n return [\n 'objId' => $this->_id,\n 'objName' => $this->scope\n ];\n }",
"public function _getData(): array\n {\n $result = [\n ];\n\n return parent::normalizeData($result);\n }",
"public function formatData() {\n $raw_data = $this->getRawData();\n $formatted_data = array();\n // Format the data based on tracking method.\n switch ($this->getTrackingMethod()) {\n case 'rest':\n // Replace marketo_id with value of MARKETO_REST_LEAD_FIELD_REST_KEY.\n foreach ($raw_data as $id => $value) {\n // Get the row corresponding to the marketo id.\n $result = db_select(MARKETO_REST_SCHEMA_LEAD_FIELDS)\n ->fields(MARKETO_REST_SCHEMA_LEAD_FIELDS)\n ->condition(MARKETO_REST_LEAD_FIELD_ID, $id)\n ->execute()\n ->fetchAll();\n // Cycle through the result row(s) and set the new rest field key.\n foreach ($result as $field) {\n if (isset($field->{MARKETO_REST_LEAD_FIELD_REST_KEY})) {\n $formatted_data[$field->{MARKETO_REST_LEAD_FIELD_REST_KEY}] = $value;\n }\n }\n }\n break;\n case 'munchkin':\n default:\n // Replace marketo_id with value of MARKETO_REST_LEAD_FIELD_MUNCHKIN_KEY.\n foreach ($raw_data as $id => $value) {\n // Get the row corresponding to the marketo id.\n $result = db_select(MARKETO_REST_SCHEMA_LEAD_FIELDS)\n ->fields(MARKETO_REST_SCHEMA_LEAD_FIELDS)\n ->condition(MARKETO_REST_LEAD_FIELD_ID, $id)\n ->execute()\n ->fetchAll();\n // Cycle through the result row(s) and set the new munchkin field key.\n foreach ($result as $field) {\n if (isset($field->{MARKETO_REST_LEAD_FIELD_MUNCHKIN_KEY})) {\n $formatted_data[$field->{MARKETO_REST_LEAD_FIELD_MUNCHKIN_KEY}] = $value;\n }\n }\n }\n break;\n }\n return $formatted_data;\n }",
"public function data()\n {\n return [\n 'auto_df_switch' => '0',\n 'auto_df_stime' => '',\n 'auto_df_etime' => '',\n 'auto_df_maxmoney' => '0',\n 'auto_df_max_count' => '0',\n 'auto_df_max_sum' => '0',\n ];\n }",
"public function toArray() {\n\t\t$data\t= array(\n\t\t\t'hash'\t\t=> $this->getHash(),\n\t\t\t'dims'\t\t=> $this->dims,\n\t\t\t'measures'\t=> $this->measures\n\t\t);\n\n\t\tif (!is_null($this->time)){\n\t\t\t$data['time']\t= $this->time;\n\t\t}\n\n\t\treturn $data;\n\t}",
"protected function getDataTemplate()\n {\n $mainProduct = Mage::registry('current_product');\n if (!$mainProduct) {\n return array();\n }\n\n $idFieldName = Mage::helper('factfinder_tracking')->getIdFieldName();\n\n $dataTemplate = array(\n 'mainId' => $mainProduct->getData($idFieldName),\n 'event' => self::EVENT_NAME\n );\n\n return $dataTemplate;\n }",
"protected function getData(): array\n {\n $logRepository = GeneralUtility::makeInstance(LogRepository::class);\n return [\n 'amounts' => [\n $logRepository->getOverallUnsubscribes(),\n ($logRepository->getOverallOpenings() - $logRepository->getOverallUnsubscribes()),\n ],\n 'titles' => [\n $this->getWidgetLabel('unsubscriberate.label.0'),\n $this->getWidgetLabel('unsubscriberate.label.1'),\n ],\n ];\n }",
"function dump_data() {\n\t\treturn $this->to_array();\n\n\t}",
"public function getData()\n {\n return ['symbol' => $this->params['symbol']];\n }",
"public function getDataArr(){\n\t\treturn $this->data_arr;\n\t}",
"public function _getData(): array\n {\n $result = [\n 'name' => $this->getName(),\n ];\n\n return parent::normalizeData($result);\n }",
"protected function getDataArray() {\n trace('[METHOD] '.__METHOD__);\n\n\t\t$dataArray = array();\n\n\t\tforeach (get_class_vars( __CLASS__ ) as $propertyname => $pvalue) {\n\t\t\t$getter = 'get_'.$propertyname;\n\t\t\t$dataArray[$propertyname] = $this->$getter();\n\t\t}\n\n\t\treturn $dataArray;\n\t}",
"public function getInfoData() {\n return [\n 'name' => $this->name,\n 'brand' => $this->brand,\n 'price' => $this->price,\n 'shipping_price' => $this->shippingPrice,\n 'shipping_time' => $this->shippingTime\n ];\n }",
"protected function getData()\n {\n return [];\n }",
"public function getData() {\n\t\treturn array_merge(parent::getData(), array(\n\t\t\t'lastStation' => $this->lastStation,\n\t\t\t'schedule' => $this->schedule,\n\t\t));\n\t}",
"public function toArray()\n {\n $data = [];\n\n foreach ($this->fields as $fieldName) {\n if ($fieldName === 'shipmentLabels' && $this->shipmentLabels !== null) {\n foreach ($this->shipmentLabels as $shipmentLabel) {\n $data['shipmentLabels'][] = $shipmentLabel->toArray();\n }\n } elseif ($fieldName === 'lastStatusUpdateTime') {\n $data[$fieldName] = $this->lastStatusUpdateTime ? $this->lastStatusUpdateTime->getTimestamp() : null;\n } else {\n $data[$fieldName] = $this->$fieldName;\n }\n }\n\n return $data;\n }",
"public function getData()\n {\n return array(\n 'status' => self::statusOkay,\n 'resource' => $this->getResourceName(),\n 'description' => 'Server Load Average',\n 'data' => $this->getLoadData()\n );\n }",
"protected abstract function getData(): array;",
"public function formatToArray(){\n return [\n 'nombre' => $this->name,\n 'ciudad' => $this->cityId,\n 'email' => $this->email,\n 'telefono' => $this->tel,\n 'tipo_documento' => $this->typeDoc,\n 'documento' => $this->doc,\n 'direccion' => $this->addr,\n 'direccion_referencia' => $this->addRef,\n 'coordenadas' => $this->addrCoo,\n 'ruc' => $this->ruc,\n 'razon_social' => $this->socialReason,\n ];\n }",
"public function getData () : array {\n\t\treturn $this->data;\n\t}",
"protected function getData(){\n $result= array();\n $dSource = $this->getDataSource();\n if($dSource !== null){\n foreach($dSource->getFields() as $field){\n $result[$field->getName()] = $field->getValue();\n }\n }\n return($result);\n }",
"public function __toArray(): array\n {\n $this->validate();\n\n $data = [\n self::ORDER_NUMBER => $this->getOrderNumber(),\n self::REFERENCE_NUMBER => $this->getReferenceNumber(),\n self::LANGUAGE => $this->getLanguage(),\n self::CARRIER => $this->getCarrier(),\n self::SHIPPING_METHOD => $this->getShipmentMethod(),\n self::CURRENCY => $this->getCurrency(),\n self::TRANSPORT_REF => $this->getTransportRef(),\n self::TRANSPORT_NOTA_1 => $this->getTransportNota1(),\n self::TRANSPORT_NOTA_2 => $this->getTransportNota2(),\n self::DAY_OF_DELIVERY => $this->getDayOfDelivery(),\n self::DAYS_RETENTION => $this->getDaysOfRetention(),\n self::DAYS_CANCELLATION => $this->getDaysOfCancellation(),\n self::ORDER_ITEM_MODE => $this->getOrderItemMode(),\n self::NO_DELIVERY_DAY_MONDAY => $this->getNoDeliveryMonday(),\n self::NO_DELIVERY_DAY_TUESDAY => $this->getNoDeliveryTuesday(),\n self::NO_DELIVERY_DAY_WEDNESDAY => $this->getNoDeliveryWednesDay(),\n self::NO_DELIVERY_DAY_THURSDAY => $this->getNoDeliveryThursday(),\n self::NO_DELIVERY_DAY_FRIDAY => $this->getNoDeliveryFriday(),\n self::NO_DELIVERY_DAY_SATURDAY => $this->getNoDeliverySaturday(),\n self::NO_DELIVERY_DAY_SUNDAY => $this->getNoDeliverySunday(),\n self::GOODS_TOTAL_VALUE => $this->getGoodsTotalValue(),\n self::REPRESENTATIVE => $this->getRepresentative(),\n ];\n\n $data = array_filter($data);\n\n //we always send the site indication.\n $data[self::SITE_INDICATION] = $this->getSiteIndication();\n\n return $data;\n }",
"public function getData()\n {\n $this->validate('transactionReference', 'amount');\n\n return [\n 'amount' => [\n 'currency' => $this->currency,\n 'total' => $this->amount,\n ],\n 'is_final_capture' => true,\n ];\n }",
"public function toArray()\n {\n return $this->info;\n }",
"public final function getData()\n {\n return $this->googleVisualization->getDataTable()->toArray();\n }",
"public function getData()\n {\n return $this->getRefundId()\n ? []\n : [\n 'type' => 'PAYSAFECARD',\n 'capture' => $this->shouldCapture(),\n 'amount' => $this->getAmount(),\n 'currency' => $this->getCurrency(),\n 'customer' => $this->getCustomerDetails(),\n ];\n }",
"public function getData() : array\n {\n return $this->data;\n }",
"public function getData() : array\n {\n return $this->data;\n }",
"public function getData() : array\n {\n return $this->data;\n }",
"public function getDataToBeFormatted(){\n\t\t\treturn $this->setDataToBeFormatted();\n\t\t}",
"public function _getData(): array\n {\n $result = [\n 'url' => $this->getUrl(),\n ];\n\n return parent::normalizeData($result);\n }",
"function toArray(){\r\n\t\treturn $this->data;\r\n\t}",
"public function getData()\n\t{\n\t\t$data = array(\n\t\t\t'nt_id'\t\t\t\t=> $this->getId(),\n\t\t\t'usr_id'\t\t\t=> $this->getUserId(),\n\t\t\t'nt_title'\t\t\t=> $this->getTitle(),\n\t\t\t'nt_description'\t=> $this->getDescription(),\n//\t\t\t'nt_image'\t\t\t=> $this->getImage(),\n\t\t\t'nt_location_street'=> $this->getLocationStreet(),\n\t\t\t'nt_location_zip'\t=> $this->getLocationZip(),\n\t\t\t'nt_location_city'\t=> $this->getLocationCity(),\n\t\t\t'user_name'\t\t\t=> $this->getuserName(),\n\t\t\t'nt_user_phone'\t\t=> $this->getUserPhone(),\n\t\t\t'nt_user_email'\t\t=> $this->getUserEmail(),\n\t\t\t'nt_price'\t\t\t=> $this->getPrice(),\n\t\t\t'nt_price_type'\t\t=> $this->getPriceType(),\n\t\t\t'nt_create_date'\t=> $this->getCreateDate(),\n\t\t\t'nt_mod_date'\t\t=> $this->getModDate(),\n\t\t\t'nt_deleted'\t\t=> $this->getDeleted(),\n\t\t\t'nt_hidden'\t\t\t=> $this->getHidden(),\n\t\t\t'nt_category_id'\t=> $this->getCategoryId(),\n//\t\t\t'nt_validity'\t\t=> $this->getValidity(),\n\t\t\t'nt_until_date'\t\t=> $this->getUntilDate()\n\t\t\t\n\t\t);\n\t\t\n\t\treturn $data;\n\t}",
"public function getMultipleData()\n\t{\n\t\t$calculatedData = $this->getCalculatedData();\n\t\tif (!$calculatedData)\n\t\t{\n\t\t\treturn [];\n\t\t}\n\n\t\t$result = [];\n\t\tforeach ($calculatedData as $row)\n\t\t{\n\t\t\t$currentDate = $row['DATE'];\n\t\t\t$previousDate = $row['PREVIOUS_DATE'];\n\n\t\t\t$currentUrlParams = [];\n\t\t\t$previousUrlParams = [];\n\n\t\t\tif (!is_null($row['DATE']))\n\t\t\t{\n\t\t\t\t$currentDate = $this->getDateForUrl($currentDate);\n\t\t\t\t$currentUrlParams = $this->getUrlParams($currentDate['start'], $currentDate['finish']);\n\t\t\t}\n\n\t\t\tif (!is_null($row['PREVIOUS_DATE']))\n\t\t\t{\n\t\t\t\t$previousDate = $this->getDateForUrl($previousDate);\n\t\t\t\t$previousUrlParams = $this->getUrlParams($previousDate['start'], $previousDate['finish']);\n\t\t\t}\n\n\t\t\t$result[] = [\n\t\t\t\t'value' => [\n\t\t\t\t\t'CURRENT_DATE' => $currentDate['date'],\n\t\t\t\t\t'PREVIOUS_DATE' => $previousDate['date'],\n\t\t\t\t\t'CURRENT_DATE_FORMATTED' => $this->formatDateForGrid($currentDate['date']),\n\t\t\t\t\t'PREVIOUS_DATE_FORMATTED' => $this->formatDateForGrid($previousDate['date']),\n\t\t\t\t\t'CURRENT_VALUE' => $row['CALL_COUNT'],\n\t\t\t\t\t'PREVIOUS_VALUE' => $row['PREVIOUS_CALL_COUNT'],\n\t\t\t\t\t'DYNAMICS' => $this->formatPeriodCompare($row['CALL_COUNT_COMPARE']),\n\t\t\t\t],\n\t\t\t\t'url' => [\n\t\t\t\t\t'CURRENT_DATE' => $this->createUrl(self::TELEPHONY_DETAIL_URI, $currentUrlParams),\n\t\t\t\t\t'PREVIOUS_DATE' => $this->createUrl(self::TELEPHONY_DETAIL_URI, $previousUrlParams),\n\t\t\t\t\t'CURRENT_VALUE' => $this->createUrl(self::TELEPHONY_DETAIL_URI, $currentUrlParams),\n\t\t\t\t\t'PREVIOUS_VALUE' => $this->createUrl(self::TELEPHONY_DETAIL_URI, $previousUrlParams),\n\t\t\t\t]\n\t\t\t];\n\t\t}\n\n\t\treturn $result;\n\t}",
"final public function getData() {\n $result = [];\n foreach ($this->logs as $log) {\n $result[] = $this->getRow($log);\n }\n return $result;\n }",
"public function data() : array\n {\n return $this->data->toArray();\n }",
"private function getDataArray() {\n\t\treturn $this->dataArray;\n\t}",
"public function getData()\n {\n $this->validate('amount', 'customerId', 'numberLastFour', 'brand');\n\n return [\n 'amount' => $this->getAmount(),\n 'customer_id' => $this->getCustomerId(),\n 'transaction_type' => 'sale',\n 'card_last_four' => $this->getNumberLastFour(),\n 'card_brand' => $this->getBrand(),\n 'card_token' => $this->getToken()\n ];\n }",
"public function formatDataProvider(): array\n {\n return [\n [new PhoneNumber('8015551212'), '(%a) %e-%n', '', '(801) 555-1212'],\n [new PhoneNumber('8015551212 x55'), '(%a) %e-%n %x', 'ext. ', '(801) 555-1212 ext. 55'],\n [new PhoneNumber('8015551212'), '(%a) %e-%n %x', 'x', '(801) 555-1212'],\n ];\n }",
"public function getRawData() {}",
"public function getData()\n {\n $this->validate('app_id', 'mch_id', 'sub_mch_id', 'out_trade_no', 'cert_path', 'key_path');\n\n $data = array (\n 'appid' => $this->getAppId(),\n 'mch_id' => $this->getMchId(),\n 'sub_mch_id' => $this->getSubMchId(),\n 'device_info' => $this->getDeviceInfo(),//<>\n 'transaction_id' => $this->getTransactionId(),\n 'out_trade_no' => $this->getOutTradeNo(),\n 'out_refund_no' => $this->getOutRefundNo(),\n 'total_fee' => $this->getTotalFee(),\n 'refund_fee' => $this->getRefundFee(),\n 'refund_fee_type' => $this->getRefundFee(),//<>\n 'op_user_id' => $this->getOpUserId() ?: $this->getMchId(),\n 'nonce_str' => md5(uniqid()),\n );\n\n $data = array_filter($data);\n\n $data['sign'] = Helper::sign($data, $this->getApiKey());\n\n return $data;\n }",
"public function getRawData();",
"public function getRawData();",
"public function getInformation(): array;",
"private function dataBaseRepresentation() {\n\t\t$array['website'] = $this->website;\n\t\t$array['name'] = $this->name;\n\t\t$array['country'] = $this->country;\n\t\treturn $array;\n\t}",
"public function getDataForAndroid()\n {\n return array(\n 'id' => $this->data['id'],\n 'lat' => $this->data['lat'],\n 'lon' => $this->data['lon'],\n 't' => $this->data['t'],\n 'a' => $this->data['a'],\n 'm' => $this->data['m'],\n 'c' => time()\n );\n }",
"public function format(): array\n {\n if ($this->groupEvent) {\n // Events are grouped only in API version 2.\n $this->version = 2;\n }\n\n $result = [\n 'Url' => $this->url,\n 'EventType' => $this->type,\n 'IsBackup' => $this->isBackup,\n 'Status' => $this->status,\n 'Version' => $this->version,\n ];\n\n if ($this->apiKeyId) {\n $result['APIKeyID'] = $this->apiKeyId;\n }\n\n return $result;\n }",
"public function getInfo(): array;",
"public function trackingProvider()\n {\n return [[1.1], [1]];\n }",
"public function trackingProvider()\n {\n return [[1.1], [1]];\n }",
"protected function getDataArray(): array\n {\n return [];\n }",
"public function getData()\n {\n return array(\n 'time' => bcsub(self::getMicroTime() , $this->startTime, 4),\n 'memory' => round(memory_get_usage() / 1024 / 1024, 4),\n 'files' => count(get_included_files()),\n 'classes' => count(get_declared_classes())\n );\n }",
"public static function data(): array\n {\n return self::$data;\n }",
"public static function data(): array\n {\n return self::$data;\n }",
"public function getData()\n {\n $row = $this->_row;\n $data = array(\n 'id' => intval($row['id']),\n 'mls_number' => $row['mls_number'],\n 'type' => $row['type'],\n 'price' => intval($row['price']),\n 'city' => $row['city'],\n 'subdivision' => $row['subdivision'],\n 'num_bedrooms' => ($row['bedrooms'] == 0 ? null : intval($row['bedrooms'])),\n 'num_bathrooms' => ($row['bathrooms'] == 0 ? null : floatval($row['bathrooms'])),\n 'num_sqft' => ($row['sqft'] == 0 ? null : intval($row['sqft'])),\n 'feed' => $row['idx'],\n 'source' => $row['table'],\n );\n return $data;\n }",
"public function getData(): array\n {\n return $this->data;\n }",
"public function getData(): array\n {\n return $this->data;\n }",
"public function getData(): array\n {\n return $this->data;\n }",
"public function format(): array\n {\n return [\n 'name' => 'click',\n 'selector' => $this->selector,\n 'amount' => $this->amount,\n 'button' => $this->button,\n ];\n }",
"public function getInfo():array;",
"public function getAnalyticsData() {\n global $wp_version, $wpdb;\n\n $server_info = null;\n if ($wpdb->use_mysqli) {\n // phpcs:disable WordPress.DB.RestrictedFunctions.mysql_mysqli_get_server_info\n $server_info = mysqli_get_server_info($wpdb->dbh);\n } else {\n // phpcs:disable WordPress.DB.RestrictedFunctions.mysql_mysql_get_server_info\n // phpcs:disable PHPCompatibility.Extensions.RemovedExtensions.mysql_DeprecatedRemoved\n $server_info = mysql_get_server_info($wpdb->dbh);\n }\n // phpcs:enable\n\n return [\n 'domain' => $this->getHost(),\n 'productVersion' => $this->itemVersion,\n 'welcartVersion' => USCES_VERSION,\n 'wordpressVersion' => $wp_version,\n 'phpVersion' => phpversion(),\n 'webServer' => isset($_SERVER['SERVER_SOFTWARE']) ? $_SERVER['SERVER_SOFTWARE'] : '',\n 'databaseInfo' => $server_info,\n 'databaseVersion' => $wpdb->db_version(),\n ];\n }",
"public function getHistoryEventDescriptionData()\n {\n return array(\n 'trx_method' => static::t($this->getPaymentMethod()->getName()),\n 'trx_type' => static::t($this->getType()),\n 'trx_value' => $this->getOrder()->getCurrency()->roundValue($this->getValue()),\n 'trx_status' => static::t($this->getReadableStatus()),\n );\n }",
"public function toArray()\r\n {\r\n return $this->data;\r\n }",
"public function getArray() {\r\n \r\n $data = [\r\n \"id\" => $this->id,\r\n \"name\" => $this->name,\r\n \"description\" => $this->desc,\r\n \"url_file\" => $this->url_file,\r\n \"filename\" => $this->filename,\r\n \"filepath\" => $this->filepath,\r\n \"filesize\" => $this->filesize,\r\n \"mime\" => $this->mime,\r\n \"active\" => $this->active,\r\n \"approved\" => $this->approved,\r\n \"meta\" => $this->extra_data,\r\n \"date\" => $this->Date,\r\n \"author\" => $this->Author->getArray(),\r\n \"url\" => $this->url->getURLs(),\r\n \"thumbnail\" => $this->getThumbnail(),\r\n \"icon\" => $this->getIcon(),\r\n ];\r\n \r\n return $data;\r\n \r\n }",
"public function toArray() {\n return $this->data;\n }",
"public function toArray() {\n return $this->data;\n }",
"public function toArray()\n {\n\n\n return $this->data;\n }",
"public function toArray() {\n\t\treturn $this->data;\n\t}",
"public function toArray()\n {\n return [\n 'code' => $this->code,\n 'result' => $this->result ? 0 : -1,\n 'data' => $this->data,\n ];\n }",
"public function toArray()\n {\n $array = [];\n if (! empty($this->data)) {\n $array['data'] = $this->data->toIdentifier();\n }\n if (! empty($this->meta)) {\n $array['meta'] = $this->meta;\n }\n if (! empty($this->links)) {\n $array['links'] = $this->links;\n }\n\n return $array;\n }",
"function to_array() {\n\t\tif ($this->id_field) {\n\t\t\t$return = array_merge($this->data, array($this->id_field=>$this->id));\n\t\t} else {\n\t\t\t$return = $this->data;\n\t\t}\n\n\t\treturn $return;\n\t}",
"public function toArray()\n {\n return $this->data;\n }",
"public function toArray()\n {\n return $this->data;\n }",
"public function toArray()\n {\n return $this->data;\n }",
"public function toArray()\n {\n return $this->data;\n }",
"public function toArray()\n {\n return $this->data;\n }",
"public function toArray()\n {\n return $this->data;\n }"
] | [
"0.6772841",
"0.6513644",
"0.6462892",
"0.63489586",
"0.6344499",
"0.6303062",
"0.63018143",
"0.63018143",
"0.6290897",
"0.6285926",
"0.6285926",
"0.6285926",
"0.6285926",
"0.62203723",
"0.6211632",
"0.6211632",
"0.62109405",
"0.6210789",
"0.6206842",
"0.61751354",
"0.6172011",
"0.6157003",
"0.6135637",
"0.6119544",
"0.6114209",
"0.6104925",
"0.6047065",
"0.6047039",
"0.6041982",
"0.60397005",
"0.60395896",
"0.599331",
"0.5981696",
"0.5979837",
"0.5978166",
"0.59725904",
"0.5970116",
"0.595476",
"0.59418523",
"0.5925256",
"0.5916852",
"0.5914848",
"0.59048736",
"0.590388",
"0.5896489",
"0.589553",
"0.58842784",
"0.58836836",
"0.5882908",
"0.58737576",
"0.58737576",
"0.58737576",
"0.58714783",
"0.58691704",
"0.586736",
"0.58665687",
"0.5853916",
"0.5847349",
"0.584479",
"0.5837158",
"0.5832727",
"0.5826228",
"0.5816344",
"0.58080745",
"0.5808072",
"0.5808072",
"0.5807366",
"0.5798075",
"0.579297",
"0.57894516",
"0.57880884",
"0.57756186",
"0.57756186",
"0.5753449",
"0.5745736",
"0.57442933",
"0.57442933",
"0.5741073",
"0.57312286",
"0.57312286",
"0.57312286",
"0.57309794",
"0.5730754",
"0.5730089",
"0.5728296",
"0.57278806",
"0.57237005",
"0.5722641",
"0.5722641",
"0.57226264",
"0.57219714",
"0.5719995",
"0.5719391",
"0.5709555",
"0.5706706",
"0.5706706",
"0.5706706",
"0.5706706",
"0.5706706",
"0.5706706"
] | 0.63139546 | 5 |
Set formatted data array. | public function setFormattedData($formatted_data); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function formatData(array $data)\n {\n $this->data = json_encode($data);\n }",
"public function setFromArray(array &$_data);",
"public function setFromArray(array $data);",
"public function setData(Array $data);",
"public function setData(array $data);",
"public function setData(array $data);",
"public function setData(array $data);",
"public function setData(array $data) {\n\t\t$this->_data = $data;\n\t}",
"public function setData(array $data = []);",
"public function setData(Array $data)\n {\n $this->data_view = array_merge_recursive($this->data_view, $data);\n }",
"public function setData (array $data) : void {\n\t\t$this->data = $data;\n\t}",
"private function setFormatData(string $file) {\n\n $data = $this->setFormatContent($file);\n\n $this->headers = count($data) > 0 ? $data[0] : [];\n unset($data[0]);\n\n $this->data = array_values($data);\n unset($data);\n }",
"public function setData(array $data)\n {\n $this->data = $data;\n }",
"public function setData(array $data)\n {\n $this->data = $data;\n }",
"public function setData(array $data)\n {\n $this->data = $data;\n }",
"public function setData(array $data)\n {\n $this->data = $data;\n }",
"abstract protected function setFormat();",
"public function setArray($data)\n {\n return $this->importArray($data);\n }",
"public function setFromArray(array &$_data)\n {\n parent::setFromArray($_data);\n \n if (isset($_data['flatpath'])) {\n $this->_parsePath($_data['flatpath']);\n }\n }",
"protected function setData(array $data)\n\t{\n\t\t$this->json_data = $data;\n\t}",
"protected abstract function formatArrayValue(array $value);",
"function _set_from_array($data, $set_heading = TRUE)\n\t{\n\t\tif ( ! is_array($data) OR count($data) == 0)\n\t\t{\n\t\t\treturn FALSE;\n\t\t}\n\n\t\t$i = 0;\n\t\tforeach ($data as $row)\n\t\t{\n\t\t\t// If a heading hasn't already been set we'll use the first row of the array as the heading\n\t\t\tif ($i == 0 AND count($data) > 1 AND count($this->heading) == 0 AND $set_heading == TRUE)\n\t\t\t{\n\t\t\t\t$this->heading = $this->_prep_args($row);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$this->rows[] = $this->_prep_args($row);\n\t\t\t}\n\n\t\t\t$i++;\n\t\t}\n\t}",
"protected function setDataSetString() {\n\t\tif(!utility::isArrayEmpty($this->values)) {\n\t\t\t$this -> setProperty('chd', $this->getEncodingType().':'.$this->encodeData($this->values,',',$this->getEncodingType()));\n\t\t}\n\t}",
"public function setData($data = array())\n {\n $this->data = (string) $data;\n\n $this->update();\n }",
"public function setDataArray($dataArray = array()) {\n\t\t$this->dataArray = $dataArray;\n\t}",
"private function setData() {\n $this->Data = array_map('strip_tags', $this->Data);\n $this->Data = array_map('trim', $this->Data);\n }",
"public function setData (array $data) {\n return $this->setField('data', array_merge($this->data, $data));\n }",
"private function formatData() {\n\t\t// Initialise arr variable\n\t\t$str = array();\n\n\t\t// Step through the fields\n\t\tforeach($this->data as $key => $value){\n\t\t\t// Stick them together as key=value pairs (url encoded)\n\t\t\t$str[] = $key . '=' . urlencode($value);\n\t\t}\n\n\t\t// Implode the arry using & as the glue and store the data\n\t\t$this->curl_str = implode('&', $str);\n\t}",
"public function fromArray($data)\n {\n $this->data = $data;\n\n\n }",
"public function data(array $data)\n\t{\n\t\tself::$__data = array_merge(self::$__data, $data);\n\t}",
"public static function setData($data) {}",
"public function set()\n {\n $args = func_get_args();\n $num = func_num_args();\n if ($num == 2) {\n self::$data[$args[0]] = $args[1];\n } else {\n if (is_array($args[0])) {\n foreach ($args[0] as $k => $v) {\n self::$data[$k] = $v;\n }\n }\n }\n }",
"public function setData(array $data){\n $this->copyfrom($data, ['statusId', 'locked', 'rallyUpdated', 'position', 'description']);\n }",
"public function setData(array $data)\n\t{\n\t\t$this->date_data = $data;\n\t\treturn $this;\n\t}",
"function setArray($array) {\n\t\tif ($array['idSemesters'])\n\t\t\t$this->idSemesters = $array['idSemesters'];\n\t\tif ($array['date'])\n\t\t\t$this->date = $array['date'];\n\t\tif ($array['timeStart'])\n\t\t\t$this->timeStart = $array['timeStart'];\n\t\tif ($array['timeEnd'])\n\t\t\t$this->timeEnd = $array['timeEnd'];\n\n\t\t$this->_modified = true;\n\t}",
"public function setData(array $data)\n {\n if(key_exists('label', $data)) {\n $this->_rebuildSearchIndex = true;\n }\n if(key_exists('content', $data)) {\n $data['content'] = str_replace(\"\\r\\n\",\"\\n\", $data['content']);\n // normalize tabs\n $data['content'] = str_replace(\"\\t\",\" \", $data['content']);\n $data['content'] = str_replace(\" \",\"\\t\", $data['content']);\n }\n \n return parent::setData($data);\n }",
"public function setData($_data)\n {\n $this->_data = $_data;\n }",
"public function setData(array $data)\n\t{\n\t\t$this->data = $data;\n\n\t\t$this->elements->setData($data);\n\t}",
"public function setAll(array $data, $encoding = 'UTF-8') {}",
"public function set_raw_data($data)\n {\n }",
"public function format($data);",
"public function format($data);",
"private function setData() { \n $Avatar = $this->Data['avatar'];\n $Depoimento = $this->Data['depoimento'];\n unset($this->Data['avatar'], $this->Data['depoimento']);\n \n $this->Data = array_map('strip_tags', $this->Data);\n $this->Data = array_map('trim', $this->Data);\n \n $this->Data['data'] = Check::Data($this->Data['data']); \n $this->Data['avatar'] = $Avatar;\n $this->Data['depoimento'] = $Depoimento;\n }",
"public function set_data(array $data)\n\t{\n\t\t$this->data = $data;\n\t\treturn $this;\n\t}",
"public function __construct(array $formattedData)\n {\n $this->formattedData = $formattedData;\n }",
"public function setDataColorArray($dataColorArray = array()) {\n\t\t$this->dataColorArray = $dataColorArray;\n\t}",
"public function setDataFormat($var)\n {\n GPBUtil::checkString($var, True);\n $this->data_format = $var;\n\n return $this;\n }",
"public function setData($data)\r\n {\r\n }",
"public function setData($data) {\n $this->data = (string) $data;\n }",
"public function setData($data);",
"public function setData($data);",
"public function setData($data);",
"public function setData($data);",
"public function setData($data);",
"public function setArray(array $data) {\n\t\tforeach($data as $key => $value) $this->set($key, $value); \n\t\treturn $this; \n\t}",
"public function setData(array $data) {\n $this->_data = $data;\n\n return $this;\n }",
"public final function setData($data)\n {\n if( !is_array($data) )\n {\n throw new InvalidArgumentException(sprintf('Data format %s is not supported', gettype($data)));\n }\n\n // set the data as rows in the data table\n $this->googleVisualization->getDataTable()->setRows($data);\n }",
"public function setData(array $data)\n {\n $this->_data = $data;\n return $this;\n }",
"public function exchangeArray($data)\n\t{\n\t\t if (is_array($data))\n\t\t {\n\t\t $this->setOptions($data);\n\t\t }\n\t}",
"public function exchangeArray($data)\n\t{\n\t\t if (is_array($data))\n\t\t {\n\t\t $this->setOptions($data);\n\t\t }\n\t}",
"public function setData($data)\n {\n $this->data = $data;\n $this->normalizedData = $this->normalize($data);\n $this->transformedData = $this->transform($this->normalizedData);\n }",
"function setData($data, $format = DATE_FORMAT_ISO)\r\n {\r\n switch($format) {\r\n case DATE_FORMAT_ISO:\r\n if (preg_match(\"/^([0-9]{4})-([0-9]{2})-([0-9]{2})[ ]([0-9]{2}):([0-9]{2}):([0-9]{2})/i\",$data,$regs)) {\r\n $this->ano = $regs[1];\r\n $this->mes = $regs[2];\r\n $this->dia = $regs[3];\r\n $this->hora = $regs[4];\r\n $this->minuto = $regs[5];\r\n $this->segundo = $regs[6];\r\n } else {\r\n $this->ano = 0;\r\n $this->mes = 1;\r\n $this->dia = 1;\r\n $this->hora = 0;\r\n $this->minuto = 0;\r\n $this->segundo = 0;\r\n }\r\n break;\r\n case DATE_FORMAT_TIMESTAMP:\r\n if (preg_match(\"/^([0-9]{4})([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2})/i\",$data,$regs)) {\r\n $this->ano = $regs[1];\r\n $this->mes = $regs[2];\r\n $this->dia = $regs[3];\r\n $this->hora = $regs[4];\r\n $this->minuto = $regs[5];\r\n $this->segundo = $regs[6];\r\n } else {\r\n $this->ano = 0;\r\n $this->mes = 1;\r\n $this->dia = 1;\r\n $this->hora = 0;\r\n $this->minuto = 0;\r\n $this->segundo = 0;\r\n }\r\n break;\r\n case DATE_FORMAT_UNIXTIME:\r\n $this->setData(date(\"Y-m-d H:i:s\", intval($data)));\r\n break;\r\n }\r\n }",
"public function setFormat($format = null){\n\t\t$this->format = $this->columnLength = array();\n\n\t\tif(func_num_args() >= 1 && !is_array($a = func_get_arg(0)) && !($a instanceof \\Traversable))\n\t\t\t$format = func_get_args();\n\n\t\t// Set format\n\t\tif($format !== null){\n\t\t\t$format = $format instanceof \\Traversable ? iterator_to_array($format) : $format;\n\t\t\tif(!is_array($format))\n\t\t\t\tthrow new \\InvalidArgumentException('Format must be an array or a Traversable instance.');\n\t\t\t$this->format = array_map(function($v){return \"$v&N\";}, $format);\n\t\t}\n\n\t\treturn $this;\n\t}",
"public function setData(array $data)\n {\n $this->data = \\Zend\\Json\\Encoder::encode($data);\n return $this;\n }",
"public function set_data($data)\n {\n }",
"public function set_data($data)\n {\n }",
"public static function setData($data)\n {\n self::$rawData = $data;\n }",
"public function setData(array $data)\n {\n $this->config->setData($data);\n }",
"public function setData(array $data) {\n\t\t// Validate the data\n\t\t$this->validateData($data);\n\t\t\n\t\t// Store rows and columns number\n\t\t$this->_num_rows = count($data);\n\t\tforeach ($data as $row) {\n\t\t\t$this->_num_cols = count($row);\n\t\t\tbreak;\n\t\t}\n\n\t\t$this->_data = $data;\n\n\t\treturn $this;\n\t}",
"public function setValue($value){\n if(is_array($value)){\n $this->_data = $value;\n }else{\n throw new SmartestException(\"SmartestArray::setValue() expects an array; \".gettype($value).\" given.\");\n }\n }",
"public function setData(array $data)\n {\n $this->data = $data;\n return $this;\n }",
"public function set_all_data($data)\n\t{\n\t\t$this->_data = $data;\n\t}",
"public function setData() \n {\n // Empty, to be overridden \n }",
"public function setArray($array){\n $this->array=$array;\n }",
"public function setData($data) \n\t{\n $this->data = $data;\n }",
"public function setData( array $data )\n\t\t{\n\t\t\t$this->_data = $data;\n\n\t\t\treturn $this;\n\t\t}",
"public function setData($data)\n {\n $this->_data = $data;\n }",
"private function setData($data)\n {\n \t$this->data = $data;\n }",
"function setData($data)\n\t{\n\t\t$this->data = $data;\n\t}",
"function setData($data)\n\t{\n\t\t$this->data = $data;\n\t}",
"function setData($data)\n\t{\n\t\t$this->data = $data;\n\t}",
"public function getFormattedData();",
"private function convertData() {\n\t\tforeach ($this->Data as $i => $Data) {\n\t\t\t$Points = array();\n\t\t\tforeach ($Data['data'] as $x => $y) {\n\t\t\t\t$Points[] = array($x, $y);\n\t\t\t}\n\t\t\t$this->Data[$i]['data'] = $Points;\n\t\t}\n\n\t\tif (Configuration::ActivityView()->smoothCurves() && !isset($this->Options['series']['curvedLines']['apply']))\n\t\t\t$this->Options['series']['curvedLines']['apply'] = true;\n\n\t\tif (empty($this->Data) && strlen($this->ErrorString) == 0)\n\t\t\t$this->raiseError('Es sind keine Daten vorhanden.');\n\t}",
"public function setArray(array $array):void{\n\t\tforeach($array as $key=>$value)\n\t\t\t$this->values[$key] = str::_trim(cast::_string($value));\n\t}",
"public function exchangeArray($data)\n {\n $this->date = (isset($data['date'])) ? $data['date'] : null;\n }",
"public function setData($data)\r\n\t{\r\n\t\t$this->data = $data;\r\n\t}",
"public function setFormat($value) {}",
"function set(array $data) {\n\t\tforeach ($data as $key => $value) {\n\t\t\t$this->$key = $value;\n\t\t}\n\t}",
"public function setData(array $data)\n {\n $this->data = $data;\n\n return $this;\n }",
"public function setData( $data ) {\n\t\t$this->data = $data;\n\t\t$this->addField( new ACHRecordField([4,83], $data) );\n\t}",
"public function setData(array $data = array ())\r\n\t{\r\n\t\t$this->data = $data;\r\n\t\treturn $this;\r\n\t}",
"public function setData($data) { \n $this->data = $data; \n }",
"public function setData($data)\n\t{\n\t\t$this->data = $data;\n\t}",
"function setAllData(&$data) {\n\t\t$this->_data =& $data;\n\t}",
"public function fromArray(array $data)\n {\n foreach ($data as $key => $value) {\n $this->{'set'.ucfirst($key)}($value);\n }\n }",
"public function setDataArray($vals) {\n\t\tif (!is_array($vals) || sizeof($vals) != 1)\n\t\t\tthrow new exception(\"Illegal array set into data_address\");\n\t\t$as=explode('|',$vals[0]);\n\t\t$this->country=$as[0];\n\t\tif ($this->country == 'USA') {\n\t\t\tif (sizeof($as) != 6)\n\t\t\t\tthrow new exception(\"badly formatted us address: {$vals[0]}\");\n\t\t\tlist($this->country,$this->line1,$this->line2,$this->city,$this->state,$this->zip)=$as;\t\n\t\t} else {\n\t\t\tthrow new exception('international addresses not implemented yet');\n\t\t}\t\n\t}",
"public function setDataAsRef(array &$data)\n {\n $this->data = &$data;\n }",
"function setData($data)\n {\n $this->data = $data;\n }",
"final public function setData($data) {\n $this->data = $data;\n }",
"public function setData()\n {\n }"
] | [
"0.7183745",
"0.6917905",
"0.6846041",
"0.6757843",
"0.6600288",
"0.6600288",
"0.6600288",
"0.6375393",
"0.63494265",
"0.62377405",
"0.62374145",
"0.62307835",
"0.62186104",
"0.62186104",
"0.62186104",
"0.62186104",
"0.62103075",
"0.6199522",
"0.61931646",
"0.6192093",
"0.61286664",
"0.60756314",
"0.6057257",
"0.6029066",
"0.6025707",
"0.59822613",
"0.597451",
"0.5970981",
"0.59612536",
"0.5928787",
"0.5928487",
"0.59253377",
"0.59208995",
"0.59023273",
"0.5895787",
"0.58924323",
"0.5890159",
"0.58624524",
"0.5821953",
"0.5820783",
"0.58146507",
"0.58146507",
"0.5802013",
"0.579354",
"0.57927287",
"0.57499033",
"0.5747111",
"0.57369494",
"0.5732975",
"0.5723803",
"0.5723803",
"0.5723803",
"0.5723803",
"0.5723803",
"0.5723234",
"0.5718251",
"0.57160103",
"0.57134974",
"0.57060313",
"0.57060313",
"0.57030404",
"0.57028717",
"0.5690764",
"0.5687317",
"0.5678901",
"0.5677121",
"0.5664439",
"0.5663499",
"0.5662752",
"0.56495273",
"0.5646164",
"0.5632307",
"0.5631578",
"0.56314015",
"0.562964",
"0.5625046",
"0.5619894",
"0.56187475",
"0.56100035",
"0.56100035",
"0.56100035",
"0.56099707",
"0.559861",
"0.55896884",
"0.55857795",
"0.55844223",
"0.55783355",
"0.55760235",
"0.5566774",
"0.5566629",
"0.5560144",
"0.55527616",
"0.5551416",
"0.5549512",
"0.5547723",
"0.5544165",
"0.5543605",
"0.55347425",
"0.5528019",
"0.5520066"
] | 0.70812774 | 1 |
Get the email address. | public function getEmailAddress(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getEmailAddress()\n {\n return $this->_getVar('user_email');\n }",
"public function getEmail()\n {\n return $this->get(self::EMAIL);\n }",
"public function getEmail()\n {\n return $this->__get(\"email\");\n }",
"public function getEmail(): string\n\t{\n\t\treturn $this->email->getEmail();\n\t}",
"public function getEmailAddress(): ?string\n {\n return $this->{self::EMAIL_ADDRESS};\n }",
"public function get_email() {\r\n return $this->email;\r\n }",
"public function getEmailAddress() : string\n {\n return $this->emailAddress;\n }",
"public function getEmail() {\n return $this->getValue('email');\n }",
"public function getEmail() {\n return $this->get('email', 'user');\n }",
"public function email(): EmailAddress\n {\n return $this->email;\n }",
"public function getEmail()\n {\n return isset($this->user['email']) ? $this->user['email'] : $this->user['id'].'@mail.com';\n }",
"public function getEmail()\n {\n return $this->getParam(self::EMAIL);\n }",
"public function getEmailAddress()\n {\n return $this->emailAddress;\n }",
"public function getEmailAddress()\n {\n return $this->emailAddress;\n }",
"public function getEmail() {\n return($this->email);\n }",
"public function getEmail() : string\r\n\t{\r\n\t\treturn $this->email;\r\n\t}",
"public function getEmail() {\n\t\treturn($this->email);\n\t}",
"public function getEmail() : string {\n return $this->email;\n }",
"public function getEmail(): string\n {\n return $this->email;\n }",
"public function getEmail(): string\n {\n return $this->email;\n }",
"public function getEmail(): string\n {\n return $this->email;\n }",
"public function getEmail(): string\n {\n return $this->email;\n }",
"public function get_email()\n {\n return $this->_email;\n }",
"public function get_email()\n {\n return $this->_email;\n }",
"public function get_email()\n {\n return $this->_email;\n }",
"public function get_email() \n {\n return $this->email;\n }",
"function getEmail() {\n\t\treturn $this->getData('email');\n\t}",
"public static function getEmail()\n {\n return self::$email;\n }",
"public function getEmail()\n {\n return $this->get('Email');\n }",
"public function getEmail(): string {\n return $this->email;\n }",
"public function getEmail()\n {\n return $this->email;\n }",
"public function getEmail()\n {\n return $this->email;\n }",
"public function getEmail()\n {\n return $this->email;\n }",
"public function getEmail()\n {\n return $this->email;\n }",
"public function getEmail()\n {\n return $this->email;\n }",
"public function getEmail()\n {\n return $this->email;\n }",
"public function getEmail()\n {\n return $this->email;\n }",
"public function getEmail()\n {\n return $this->email;\n }",
"public function getEmail()\n {\n return $this->email;\n }",
"public function getEmail()\n {\n return $this->email;\n }",
"public function getEmail()\n {\n return $this->email;\n }",
"public function getEmail()\n {\n return $this->email;\n }",
"public function getEmail()\n {\n return $this->email;\n }",
"public function getEmail()\n {\n return $this->email;\n }",
"public function getEmail()\n {\n return $this->email;\n }",
"public function getEmail()\n {\n return $this->email;\n }",
"public function getEmail()\n {\n return $this->email;\n }",
"public function getEmail()\n {\n return $this->email;\n }",
"public function getEmail()\n {\n return $this->email;\n }",
"public function getEmail()\n {\n return $this->email;\n }",
"public function getEmail()\n {\n return $this->email;\n }",
"public function getEmail()\n {\n return $this->email;\n }",
"public function getEmail()\n {\n return $this->email;\n }",
"public function getEmail()\n {\n return $this->email;\n }",
"public function getEmail()\n {\n return $this->email;\n }",
"public function getEmail()\n {\n return $this->email;\n }",
"public function getEmail()\n {\n return $this->email;\n }",
"public function getEmail()\n {\n return $this->email;\n }",
"public function getEmail()\n {\n return $this->email;\n }",
"public function getEmail()\n {\n return $this->email;\n }",
"public function getEmail()\n {\n return $this->email;\n }",
"public function getEmail()\n {\n return $this->email;\n }",
"public function getEmail()\n {\n return $this->email;\n }",
"public function getEmail()\n {\n return $this->email;\n }",
"public function getEmail()\n {\n return $this->email;\n }",
"public function getEmail()\n {\n return $this->email;\n }",
"public function getEmail()\n {\n return $this->email;\n }",
"public function getEmail()\n {\n return $this->email;\n }",
"public function getEmail()\n {\n return $this->email;\n }",
"public function getEmail()\n {\n return $this->email;\n }",
"public function getEmail()\n {\n return $this->email;\n }",
"public function getEmail()\n {\n return $this->email;\n }",
"public function getEmail()\n {\n return $this->email;\n }",
"public function getEmail()\n {\n return $this->email;\n }",
"public function getEmail()\n {\n return $this->email;\n }",
"public function getEmail()\n {\n return $this->email;\n }",
"public function getEmail()\n {\n return $this->email;\n }",
"public function getEmail()\n {\n return $this->email;\n }",
"public function getEmail()\n {\n return $this->email;\n }",
"public function getEmail()\n {\n return $this->email;\n }",
"public function getEmail()\n {\n return $this->email;\n }",
"public function getEmail()\n {\n return $this->email;\n }",
"public function getEmail()\n {\n return $this->email;\n }",
"public function getEmail()\n {\n return $this->email;\n }",
"public function getEmail()\n {\n return $this->email;\n }",
"public function getEmail()\n {\n return $this->email;\n }",
"public function getEmail()\n {\n return $this->email;\n }",
"public function getEmail()\n {\n return $this->email;\n }",
"public function getEmail()\n {\n return $this->email;\n }",
"public function getEmail()\n {\n return $this->email;\n }",
"public function getEmail()\n {\n return $this->email;\n }",
"public function getEmail()\n {\n return $this->email;\n }",
"public function getEmail()\n {\n return $this->email;\n }",
"public function getEmail()\n {\n return $this->email;\n }",
"public function getEmail()\n {\n return $this->email;\n }",
"public function getEmail()\n {\n return $this->email;\n }",
"public function getEmail()\n {\n return $this->email;\n }",
"public function getEmail()\n {\n return $this->email;\n }",
"public function getEmail()\n {\n return $this->email;\n }",
"public function getEmail()\n {\n return $this->email;\n }",
"public function getEmail();"
] | [
"0.859146",
"0.8585525",
"0.8442153",
"0.8421067",
"0.8383952",
"0.83670104",
"0.8359129",
"0.83577424",
"0.833231",
"0.8328613",
"0.8296465",
"0.8285903",
"0.8284468",
"0.8284468",
"0.8282596",
"0.82645726",
"0.826186",
"0.82364804",
"0.8229147",
"0.8229147",
"0.8229147",
"0.8229147",
"0.8222153",
"0.8222153",
"0.8222153",
"0.8213228",
"0.81917304",
"0.8177707",
"0.8164404",
"0.8151717",
"0.8146652",
"0.8146652",
"0.8146652",
"0.8146652",
"0.8146652",
"0.8146652",
"0.8146652",
"0.8146652",
"0.8146652",
"0.8146652",
"0.8146652",
"0.8146652",
"0.8146652",
"0.8146652",
"0.8146652",
"0.8146652",
"0.8146652",
"0.8146652",
"0.8146652",
"0.8146652",
"0.8146652",
"0.8146652",
"0.8146652",
"0.8146652",
"0.8146652",
"0.8146652",
"0.8146652",
"0.8146652",
"0.8146652",
"0.8146652",
"0.8146652",
"0.8146652",
"0.8146652",
"0.8146652",
"0.8146652",
"0.8146652",
"0.8146652",
"0.8146652",
"0.8146652",
"0.8146652",
"0.8146652",
"0.8146652",
"0.8146652",
"0.8146652",
"0.8146652",
"0.8146652",
"0.8146652",
"0.8146652",
"0.8146652",
"0.8146652",
"0.8146652",
"0.8146652",
"0.8146652",
"0.8146652",
"0.8146652",
"0.8146652",
"0.8146652",
"0.8146652",
"0.8146652",
"0.8146652",
"0.8146652",
"0.8146652",
"0.8146652",
"0.8146652",
"0.8146652",
"0.8146652",
"0.8146652",
"0.8146652",
"0.8146652",
"0.8146652",
"0.81447387"
] | 0.0 | -1 |
Set the email address. | public function setEmailAddress($email); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function setEmail($value)\n {\n $this->_email = $value;\n }",
"public function setEmail($value) {\r\n $this->email = $value;\r\n }",
"public function setEmail($value) {\n\t\tif(!check($value)) throw new Exception(lang('error_9'));\n\t\tif(!Validator::AccountEmail($value)) throw new Exception(lang('error_9'));\n\t\t\n\t\t$this->_email = $value;\n\t}",
"private function setEmail()\n {\n\t if ( empty( $_POST['email'] ) ) {\n\t\t\t$this->data['error']['email'] = 'Please provide a valid email address.';\n $this->error = true;\n return;\n }\n \n $e = trim( $_POST['email'] );\n \n\t\tif ( ! filter_var( $e, FILTER_VALIDATE_EMAIL ) ) {\n\t\t\t$this->data['error']['email'] = 'Please provide a valid email address.';\n $this->error = true;\n return;\n\t\t}\n \n\t\t$this->data['email'] = $e;\n }",
"public function setEmail($value) {\n if(!strstr($value, \"@\")){\n throw new Exception(\"Errore in setEmail\");\n }\n // se esiste\n\n $this->email = $value;\n\n //$this->generateUserId();\n }",
"public function setEmailToAddress($value) { $this->_emailToAddress = $value; }",
"function setEmail( $email )\n {\n $this->setValueByFieldName( 'person_email', $email );\n return;\n }",
"public function setEmail(string $email): void\n {\n $this->_email = $email;\n }",
"public function setEmail(string $email){\n $this->email = $email;\n }",
"public function setEmail(string $email): void\n {\n $this->email = $email;\n }",
"function setEmail($newEmail){\n $this->email = $newEmail;\n }",
"protected function setEmail(string $email)\r\n\t{\r\n\t\t$this->email = $email;\r\n\t}",
"protected function setEmail(string $email) {\n $this->email = $email;\n }",
"public function setEmail($email){\n\t\t$this->email = $email;\n\t}",
"public function setEmail(string $email)\n {\n $this->email = $email;\n }",
"public function setEmail(string $email) {\n\n $this->email = $email;\n\n }",
"public function setEmail($email) {\n $this->set('email', $email, 'user');\n }",
"public function setEmail($email) {\n\t\t$this->_email = $email;\n\t}",
"public function setEmail(?string $value): void {\n $this->getBackingStore()->set('email', $value);\n }",
"public function setEmail($email){\n\t\t\t$this->email = $email;\n\t\t}",
"public function setEmail($email) {\n\t\t$this->email = $email;\n\t}",
"public function setEmail($email) {\n\t\t$this->email = $email;\n\t}",
"public function setEmail($email) {\n\t\t$this->email = $email;\n\t}",
"public function setEmail($email) {\n $this->email = $email;\n }",
"public function setEmail($email) {\n $this->email = $email;\n }",
"public function setEmail($email) {\n $this->email = $email;\n }",
"public function setEmail($email) {\n $this->user_email = $email;\n }",
"public function setEmail($email)\n {\n $this->email = $email;\n }",
"public function setEmail($email)\n {\n $this->email = $email;\n }",
"public function setEmail($email)\n {\n $this->email = $email;\n }",
"public function setEmail($email)\n {\n $this->email = $email;\n }",
"public function setEmail($email)\n {\n $this->email = $email;\n }",
"public function setEmail($email)\n {\n $this->email = $email;\n }",
"public function setEmail($email)\n {\n $this->email = $email;\n }",
"public static function setEmail($email)\n {\n self::$email = $email;\n }",
"public function setEmailAddress($value)\n {\n $valid = self::validateAddress($value);\n if (!$valid)\n throw new SystemException(SystemException::EX_INVALIDPARAMETER, 'value must be in a correct email address format');\n $this->emailAddress = $value;\n }",
"public function setEmail(String $email)\n {\n $this->email = $email;\n }",
"public function setEmail($email)\n\t{\n\t\t$this->email = $email;\n\t}",
"public function setEmail($email)\n\t{\n\t\t$this->email = $email;\n\t}",
"public function setEmail($email);",
"public function setEmail($email);",
"public function setEmail($email);",
"public function setEmail($value)\n {\n return $this->set('Email', $value);\n }",
"public function setEmail($value)\n {\n return $this->set('Email', $value);\n }",
"public function setEmail($value)\n {\n return $this->set('Email', $value);\n }",
"public function setEmailAddress($emailAddress)\n {\n $this->emailAddress = $emailAddress;\n }",
"public function setEmailFromAddress($value) { $this->_emailFromAddress = $value; }",
"public function setEmail($email) {\n $this->setUsername($email);\n $this->email = $email;\n }",
"public function setEmail($value)\n {\n \t$this->email = $value;\n \treturn $this;\n }",
"public function setEmail($strEmail) {\n\t\t$this->email = $strEmail;\n\t}",
"private function _setEmail($input) {\n\t\tif(!Validator::Email($input)) throw new Exception(lang('error_9'));\n\t\t$this->_identifier = $input;\n\t}",
"public function setEmail($value)\n {\n return $this->set(self::EMAIL, $value);\n }",
"public function set_email( $email ) {\n\t\treturn $this->set_field( 'EMAIL', $email );\n\t}",
"public function setEmail($email)\n {\n $this->email = $this->db->real_escape_string( $email);\n\n }",
"public function setUsernameToEmail()\n {\n $this->username = $this->email;\n $this->usernameCanonical = $this->emailCanonical;\n }",
"public function setEmail($email) {\n $this->getlead()->setEmail($email);\n }",
"function set_email($email) {\n if (is_string($email) == false)\n throw new Exception('type error!');\n\n $email = strtolower($email);\n $len = strlen($email);\n \n if ($len == 0)\n throw new Exception(\"email cannot be empty\");\n if (preg_match(\"/[^a-z_.0-9-@]+/\", $email))\n throw new Exception(\"email has some not allowed characters.\");\n if (!filter_var($email, FILTER_VALIDATE_EMAIL))\n throw new Exception(\"email is not valid\");\n if ($len > 30)\n throw new Exception(\"email cannot be more than 30 characters\");\n\n $this->email = $email;\n }",
"public function setEmail($newEmail){\n\t}",
"public function setEmail(?string $email): void;",
"public function setEmail(?string $email): void;",
"public function setEmail($anEmail) {\n\t\t$this->_email = $anEmail;\n\t}",
"function setEmail($email) {\n\t\treturn $this->setData('email', $email);\n\t}",
"public function set_sender(EmailAddress $address);",
"public function set_email($email) : void\n {\n try {\n $this->obj_contato_anunciante->set_email(Validador::Contato_Anunciante()::validar_email($email));\n } catch (Exception $e) {\n $this->erros[] = $e->getMessage();\n $this->campos['email'] = \"erro\";\n }\n }",
"public function setEmail($mail);",
"public function setEmailAttribute($value)\n {\n if (!empty($value)) {\n $this->attributes['email'] = $this->mayaEncrypt($value);\n }\n }",
"public function setADEmail($email)\n\t{\n\t\t$this->email = $email;\n\t}",
"public function setEmail(?CustomerTextFilter $email): void\n {\n $this->email = $email;\n }",
"public function set_email($email){\n if (\n !empty($email) &&\n \\Audit::instance()->email($email) == false\n ) {\n // no valid email address\n $this->throwValidationError('email');\n }\n return $email;\n }",
"public function setEmail($val)\n {\n $this->_propDict[\"email\"] = $val;\n return $this;\n }",
"public function setUserEmail($value)\n {\n return $this->set('UserEmail', $value);\n }",
"public function setUserEmail($value)\n {\n return $this->set('UserEmail', $value);\n }",
"public function setEmail($newEmail) {\n //first, trim the input of excess whitespace\n $newEmail = trim($newEmail);\n \n //second, sanitize the email of all invalid email characters\n $newEmail = filter_var($newEmail, FILTER_SANITIZE_EMAIL);\n \n //finally, bring the email out of quarantine\n $this->email = $newEmail;\n }",
"public function _setEmail($Email)\n {\n $this->Email = $Email;\n\n }",
"function setSenderEmail($email) {\n $parts = $this->_parseEmail($email);\n $this->from_user = $parts[0];\n $this->from_domain = $parts[1];\n }",
"public function setEmail($email)\n {\n if (!self::isValidEmail($email) || self::isEmailAlreadyInUse($email)) {\n throw new \\InvalidArgumentException();\n }\n $this->email = $email;\n }",
"public function set_email($_email)\n {\n $this->_email = $_email;\n\n return $this;\n }",
"public function set_email($_email)\n {\n $this->_email = $_email;\n\n return $this;\n }",
"public function set_email($_email)\n {\n $this->_email = $_email;\n\n return $this;\n }",
"public function setEmail($email)\n\t\t{\n\t\t$this->email = $email;\n\t\treturn true;\n\t\t}",
"public function setEmail(?string $email): self\n {\n $this->initialized['email'] = true;\n $this->email = $email;\n\n return $this;\n }",
"public function setUserEmail($user) {\n\t\t$this->userEmail = $user;\n\t}",
"function set_admin_email($email) {\n $this->admin_email = $email;\n }",
"public function setEmailAttribute(string $value): void\n {\n $this->attributes[self::EMAIL] = \\strtolower($value);\n }",
"public function setEmail($var)\n {\n GPBUtil::checkString($var, True);\n $this->email = $var;\n\n return $this;\n }",
"public function setEmail($var)\n {\n GPBUtil::checkString($var, True);\n $this->email = $var;\n\n return $this;\n }",
"public function setEmail($var)\n {\n GPBUtil::checkString($var, True);\n $this->email = $var;\n\n return $this;\n }",
"public function setEmail($var)\n {\n GPBUtil::checkString($var, True);\n $this->email = $var;\n\n return $this;\n }",
"public function setEmail($email) {\n if (!filter_var($email, FILTER_VALIDATE_EMAIL)) {\n return false;\n }\n $this->email = $email;\n return true;\n }",
"public function setEmail($Email)\n {\n $this->__set(\"email\", $Email);\n }",
"public function setEmail($email)\n {\n $this->setUsername($email);\n return parent::setEmail($email);\n }",
"public function setEmail($_email)\n {\n $this->_email = $_email;\n\n return $this;\n }",
"public function setEmail($email)\n {\n $this->session->set('email', $email);\n $this->session->set('crumb', md5($this->config->secrets->secret . time()));\n if($this->isOwner())\n $this->session->set('site', $_SERVER['HTTP_HOST']);\n }",
"public function setEmailAttribute($value)\n {\n $this->attributes['email'] = mb_strtolower($value);\n }",
"public function setEmailToName($value) { $this->_emailToName = $value; }",
"public function setEmail($v)\n\t{\n\t\tif ($v !== null) {\n\t\t\t$v = (string) $v;\n\t\t}\n\n\t\tif ($this->email !== $v) {\n\t\t\t$this->email = $v;\n\t\t\t$this->modifiedColumns[] = UserPeer::EMAIL;\n\t\t}\n\n\t\treturn $this;\n\t}",
"public function setEmail($v)\n\t{\n\t\tif ($v !== null) {\n\t\t\t$v = (string) $v;\n\t\t}\n\n\t\tif ($this->email !== $v) {\n\t\t\t$this->email = $v;\n\t\t\t$this->modifiedColumns[] = UserPeer::EMAIL;\n\t\t}\n\n\t\treturn $this;\n\t}",
"public function setEmail($email) {\n if (!$this->username) {\n $this->username = $email;\n }\n return parent::setEmail($email);\n }",
"public function setEmail(string $email): self\n {\n $this->options['email'] = $email;\n return $this;\n }",
"public function changeEmail($newValue){\n\n $this->email = $newValue;\n $this ->save();\n\n }"
] | [
"0.8334055",
"0.82897264",
"0.8216889",
"0.7923966",
"0.7919132",
"0.79033786",
"0.78711474",
"0.7813364",
"0.7776649",
"0.7767122",
"0.77347875",
"0.7733496",
"0.7729131",
"0.76958996",
"0.76930916",
"0.76831555",
"0.76815045",
"0.7681137",
"0.76574594",
"0.76480395",
"0.7612719",
"0.7612719",
"0.7612719",
"0.76090825",
"0.76090825",
"0.76090825",
"0.7607916",
"0.7602757",
"0.7602757",
"0.7602757",
"0.7602757",
"0.7602757",
"0.7602757",
"0.7602757",
"0.7598619",
"0.7574053",
"0.7564377",
"0.7555159",
"0.7555159",
"0.752686",
"0.752686",
"0.752686",
"0.74985206",
"0.74976945",
"0.74976945",
"0.74795926",
"0.7477511",
"0.747736",
"0.7450399",
"0.7426338",
"0.74156386",
"0.7397464",
"0.73898786",
"0.7386795",
"0.73843217",
"0.7381566",
"0.7372585",
"0.7309499",
"0.7305119",
"0.7305119",
"0.72954494",
"0.7293655",
"0.72826993",
"0.72664064",
"0.7261028",
"0.7255883",
"0.72553396",
"0.72551537",
"0.72528696",
"0.7224607",
"0.7201284",
"0.7201284",
"0.71720344",
"0.7159861",
"0.71551204",
"0.71187174",
"0.70847565",
"0.70847565",
"0.70847565",
"0.705254",
"0.70507306",
"0.70470077",
"0.7046492",
"0.70345587",
"0.7021582",
"0.7021582",
"0.7021582",
"0.7021582",
"0.7019366",
"0.70059097",
"0.69976866",
"0.6992",
"0.697812",
"0.6974718",
"0.6974198",
"0.6961879",
"0.6961879",
"0.6954299",
"0.69172186",
"0.69128007"
] | 0.804892 | 3 |
Get the email key. | public static function getEmailKey($tracking_method = null); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function getEmailKey() {\n\t\treturn $this->getData('emailKey');\n\t}",
"function getEmailId() {\n\t\treturn $this->getData('emailId');\n\t}",
"private function getKey() {\n\t\tif ( !$this->key )\n\t\t\t$this->key = \"mvn-maillists-\" . sanitize_key( $this->getName() );\n\n\t\treturn $this->key;\n\t}",
"public function get_key ()\n {\n $_key = $this->key;\n\n if ( ! empty( $_key ) && is_array( $_key ) )\n {\n $_key = join( ':', $_key );\n }\n\n return sanitise_key( $_key );\n }",
"public function getEmail()\n {\n if (array_key_exists(\"email\", $this->_propDict)) {\n return $this->_propDict[\"email\"];\n } else {\n return null;\n }\n }",
"public function getAuthKey()\n {\n return sha1($this->hash_password . $this->email . 'sfjds9IFJdke323');\n }",
"public function getKey(): string\n {\n return $this->key;\n }",
"public function getKey()\n {\n return $this->__get(\"key\");\n }",
"public function getKey()\n {\n return isset($this->key) ? $this->key : '';\n }",
"public function getKey()\n {\n return isset($this->key) ? $this->key : '';\n }",
"function get_key() {\n\t\t// get_cert() also fetches key\n\t\tif (!isset($_SESSION['user_key']))\n\t\t\t$this->get_cert();\n\t\treturn $_SESSION['user_key'];\n\t}",
"public function getAuthIdentifier() {\r\n return $this -> getKey();\r\n }",
"public function getKey()\n\t{\n\t\tif (defined('AKEEBA_SERVERKEY'))\n\t\t{\n\t\t\treturn base64_decode(AKEEBA_SERVERKEY);\n\t\t}\n\n\t\t$filename = dirname(__FILE__) . '/../' . $this->keyFilename;\n\n\t\tif (file_exists($filename))\n\t\t{\n\t\t\tinclude_once $filename;\n\t\t}\n\n\t\tif (defined('AKEEBA_SERVERKEY'))\n\t\t{\n\t\t\treturn base64_decode(AKEEBA_SERVERKEY);\n\t\t}\n\n\t\treturn '';\n\t}",
"public function getEmail()\n {\n return $this->get(self::EMAIL);\n }",
"public function getIdentity(): string\n {\n return $this->email;\n }",
"public function getKey()\n {\n return $this->get(self::KEY);\n }",
"public function getKey()\n {\n return $this->get(self::KEY);\n }",
"public function getKey(): string;",
"public function getKey(): string;",
"public function getAuthIdentifier() {\n\t\treturn $this -> getKey();\n\t}",
"public function GetKey() {\n\t\treturn $this->_key;\n\t}",
"public function getExtkey() {}",
"public function getKey() : string\n {\n return $this->key;\n }",
"public function getEmail()\n {\n return $this->getParam(self::EMAIL);\n }",
"private function getMaillistKey() {\n\t\tif ( !$this->maillistKey )\n\t\t\t$this->maillistKey = \"mvn-maillists-\" . sanitize_key( $this->getName() );\n\n\t\treturn $this->maillistKey;\n\t}",
"protected function _getKey() {\n\n $key = md5($this->_password, true);\n\n return $key;\n\n }",
"public function getPasswordResetKey()\n {\n return $this->definition->getPasswordResetKey($this);\n }",
"private static function Get_Memcache_Key($val) {\n\t\tswitch (TRUE) {\n\t\t\tcase ($val instanceof FApplication):\n\t\t\t\t$email = $val->get('email');\n\t\t\t\tbreak;\n\t\t\tcase (is_array($val)):\n\t\t\t\t$email = $val['email'];\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\t$email = $val;\n\t\t\t\tbreak;\n\t\t}\n\t\t\n\t\tif ($email) {\n\t\t\treturn strtolower(trim(self::$memcache_key_prefix . $email));\n\t\t} else {\n\t\t\treturn NULL;\n\t\t}\n\t}",
"public function getAuthKey()\n {}",
"public function findEmailByKey($key)\r\n {\r\n $column = 'email';\r\n\r\n return $this->db->select($column)\r\n ->from(self::getTableName())\r\n ->whereEquals('key', $key)\r\n ->query($column);\r\n }",
"public function getKey()\n {\n return $this->getInternalKey();\n }",
"public function getKeyString()\n {\n return $this->key_string;\n }",
"public function getAuthIdentifierName()\n\t{\n\t return $this->email;\n\t}",
"function GetKey() { return( $this->key ); }",
"public function getAuthIdentifier()\n {\n return $this->getKey();\n }",
"public function getAuthIdentifier()\n {\n return $this->getKey();\n }",
"public function getAuthIdentifier()\n {\n return $this->getKey();\n }",
"public function getAuthIdentifier()\n {\n return $this->getKey();\n }",
"public function getAuthIdentifier()\n {\n return $this->getKey();\n }",
"public function getAuthIdentifier()\n {\n return $this->getKey();\n }",
"public function getAuthIdentifier()\n {\n return $this->getKey();\n }",
"public function getAuthIdentifier()\n {\n return $this->getKey();\n }",
"public function getAuthIdentifier()\n {\n return $this->getKey();\n }",
"public function getAuthIdentifier()\n {\n return $this->getKey();\n }",
"public function getAuthIdentifier()\n {\n return $this->getKey();\n }",
"public function getAuthIdentifier()\n {\n return $this->getKey();\n }",
"public function getKey() {\n return $this->key;\n }",
"public function getKey()\n {\n return $this->key;\n }",
"public function getKey()\n {\n return $this->key;\n }",
"public function getKey()\n {\n return $this->key;\n }",
"public function getKey()\n {\n return $this->key;\n }",
"public function getKey()\n {\n return $this->key;\n }",
"public function getKey()\n {\n return $this->key;\n }",
"public function getKey()\n {\n return $this->key;\n }",
"public function getKey()\n {\n return $this->key;\n }",
"public function getKey()\n {\n return $this->key;\n }",
"public function getKey()\n {\n return $this->key;\n }",
"public function getKey()\n {\n return $this->key;\n }",
"public function getKey()\n {\n return $this->key;\n }",
"public function getKey()\n {\n return $this->key;\n }",
"public function getKey()\n {\n return $this->key;\n }",
"public function getKey()\n {\n return $this->key;\n }",
"public function getKey()\n {\n return $this->key;\n }",
"public function getKey()\n {\n return $this->key;\n }",
"public function getKey()\n {\n return $this->key;\n }",
"public function getKey()\n {\n return $this->key;\n }",
"public function getKey()\n {\n return $this->key;\n }",
"public function getKey()\n {\n return $this->key;\n }",
"public function getKey()\n {\n return $this->key;\n }",
"public function getKey()\n {\n return $this->key;\n }",
"public function getKey()\n {\n return $this->key;\n }",
"public function getKey()\n {\n return $this->key;\n }",
"public function getKey()\n {\n return $this->key;\n }",
"public function getKey()\n {\n return $this->key;\n }",
"public function getKey()\n {\n return $this->key;\n }",
"public function getKey()\n {\n return $this->key;\n }",
"public function getEmail()\n {\n return isset($this->user['email']) ? $this->user['email'] : $this->user['id'].'@mail.com';\n }",
"function getEntryKey() {\n\t\treturn $this->getData('entryKey');\n\t}",
"public function getAuthIdentifier() {\n return $this->getKey();\n }",
"public function getAuthIdentifier() {\n return $this->getKey();\n }",
"public function getEmail()\n {\n return $this->__get(\"email\");\n }",
"public static function getEmail()\n {\n return self::$email;\n }",
"public function getAccountKey()\n {\n return $this->accountKey;\n }",
"public function getApiKey(string $email):string\n {\n $user=User::with('company')\n ->where('email', $email)\n ->first();\n\n if (!$user) {\n throw new ModelNotFoundException();\n }\n return $user->company->api_key;\n }",
"public function getIdentifier()\n {\n return $this->user->email;\n }",
"public function getKey()\r\n {\r\n return $this->key;\r\n }",
"public function get_activation_key($email_or_username){\n\t\t$sql = \"select * from admin where email='$email_or_username' or username='$email_or_username'\";\n\t\tif ($this->num_rows($sql) == 0){\n\t\t\techo \"Username atau email yang anda masukan tidak terdaftar sebagai member di situs ini!.\";\n\t\t\texit();\n\t\t}\n\t\t$data = $this->fetch($sql);\n\t\t$id = $data['id'];\n\t\t$name = $data['name'];\n\t\t$email = $data['email'];\n\t\t$pswd = $data['pswd'];\n\t\t$image = $data['image'];\n\t\t$bio = $data['bio'];\n\t\t$link = $data['link'];\n\t\t$level = $data['level'];\n\t\t$today = date(\"Y-m-d\");\n\t\t$time = date(\"H:i:s\");\n\t\t$total_art = $this->num_rows(\"select id from article where user='$id'\");\n\t\t$total_page = $this->num_rows(\"select id from pages where user='$id'\");\n\t\t$total_files = $this->num_rows(\"select id from files where user='$id'\");\n\t\t$activation_key = md5($id.$name.$email.$pswd.$email.$image.$bio.$link.$level.$today.$total_art.$total_page.$total_files);\n\t\t$this->email=$email;\n\t\t$this->name=$name;\n\t\treturn $activation_key;\n\t}",
"public function getKey() {}",
"public function getKey() {}",
"public function getEmail()\n\t\t{\n\t\t\tglobal $email;\n\t\t\treturn $email;\n\t\t}",
"public function getAuthKey()\n {\n // TODO: Implement getAuthKey() method.\n return $this->auth_key;\n }",
"public function getEmail()\r\n\t{\r\n\t\treturn $this['email'];\r\n\t}",
"public function getAuthIdentifier() {\n return $this->getKey();\n }",
"public function getAuthIdentifier()\n {\n return $this->getKey();\n }",
"public function getUserIdentifier(): string\n {\n return (string) $this->email;\n }",
"public function getUserIdentifier(): string\n {\n return (string) $this->email;\n }",
"public function getUserIdentifier(): string\n {\n return (string) $this->email;\n }",
"public function getUserIdentifier(): string\n {\n return (string) $this->email;\n }",
"public function getUserIdentifier(): string\n {\n return (string) $this->email;\n }",
"public function getUserIdentifier(): string\n {\n return (string) $this->email;\n }"
] | [
"0.8846848",
"0.72901225",
"0.6949957",
"0.68924683",
"0.6844382",
"0.6832427",
"0.6803062",
"0.6773031",
"0.6751315",
"0.6751315",
"0.66886264",
"0.66882163",
"0.66881645",
"0.66864604",
"0.66756535",
"0.66611224",
"0.66611224",
"0.6658664",
"0.6658664",
"0.66254276",
"0.6620826",
"0.6620395",
"0.6619066",
"0.6610364",
"0.6605701",
"0.6595406",
"0.6582286",
"0.6569362",
"0.6566902",
"0.65665054",
"0.656387",
"0.6563261",
"0.6560718",
"0.654774",
"0.65302265",
"0.65302265",
"0.65302265",
"0.65302265",
"0.65302265",
"0.65302265",
"0.65302265",
"0.65302265",
"0.65302265",
"0.65302265",
"0.65302265",
"0.65302265",
"0.6518765",
"0.65122235",
"0.65122235",
"0.65122235",
"0.65122235",
"0.65122235",
"0.65122235",
"0.65122235",
"0.65122235",
"0.65122235",
"0.65122235",
"0.65122235",
"0.65122235",
"0.65122235",
"0.65122235",
"0.65122235",
"0.65122235",
"0.65122235",
"0.65122235",
"0.65122235",
"0.65122235",
"0.65122235",
"0.65122235",
"0.65122235",
"0.65122235",
"0.65122235",
"0.65122235",
"0.65122235",
"0.65122235",
"0.65122235",
"0.6505555",
"0.65010923",
"0.64972055",
"0.64972055",
"0.6494119",
"0.64903593",
"0.6488071",
"0.6484937",
"0.6480918",
"0.64802134",
"0.6477338",
"0.64771307",
"0.64771307",
"0.6475759",
"0.64722085",
"0.64588964",
"0.6456243",
"0.6446798",
"0.64450634",
"0.64450634",
"0.64450634",
"0.64450634",
"0.64450634",
"0.64450634"
] | 0.73549336 | 1 |
Format the data based on tracking method. | public function formatData() {
$raw_data = $this->getRawData();
$formatted_data = array();
// Format the data based on tracking method.
switch ($this->getTrackingMethod()) {
case 'rest':
// Replace marketo_id with value of MARKETO_REST_LEAD_FIELD_REST_KEY.
foreach ($raw_data as $id => $value) {
// Get the row corresponding to the marketo id.
$result = db_select(MARKETO_REST_SCHEMA_LEAD_FIELDS)
->fields(MARKETO_REST_SCHEMA_LEAD_FIELDS)
->condition(MARKETO_REST_LEAD_FIELD_ID, $id)
->execute()
->fetchAll();
// Cycle through the result row(s) and set the new rest field key.
foreach ($result as $field) {
if (isset($field->{MARKETO_REST_LEAD_FIELD_REST_KEY})) {
$formatted_data[$field->{MARKETO_REST_LEAD_FIELD_REST_KEY}] = $value;
}
}
}
break;
case 'munchkin':
default:
// Replace marketo_id with value of MARKETO_REST_LEAD_FIELD_MUNCHKIN_KEY.
foreach ($raw_data as $id => $value) {
// Get the row corresponding to the marketo id.
$result = db_select(MARKETO_REST_SCHEMA_LEAD_FIELDS)
->fields(MARKETO_REST_SCHEMA_LEAD_FIELDS)
->condition(MARKETO_REST_LEAD_FIELD_ID, $id)
->execute()
->fetchAll();
// Cycle through the result row(s) and set the new munchkin field key.
foreach ($result as $field) {
if (isset($field->{MARKETO_REST_LEAD_FIELD_MUNCHKIN_KEY})) {
$formatted_data[$field->{MARKETO_REST_LEAD_FIELD_MUNCHKIN_KEY}] = $value;
}
}
}
break;
}
return $formatted_data;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getFormattedData();",
"public function formatData(){\n $from = $this->dataObject->getFrom();\n\n // prepare array for counterxmlbuild with vendor informations\n $data = array(\n 'Report' => array (\n 0 => array(\n // Report attributes\n 'Created' => date('Y-m-d\\TH:i:s'),\n 'ID' => 'ID01', //TODO\n 'Version' => $this->dataObject->getVersion(),\n 'Name' => $this->dataObject->getReportName(),\n 'Title' => $this->dataObject->getReportTitle(),\n // Vendor node\n 'Vendor' => array(\n 'Name' => VENDOR_NAME,\n 'ID' => VENDOR_ID,\n 'Contact' => array(\n 0 => array(\n 'Contact' => VENDOR_CONTACT_NAME,\n 'E-mail' => VENDOR_CONTACT_MAIL\n ),\n ),\n 'WebSiteUrl' => VENDOR_WEBSITEURL,\n 'LogoUrl' => VENDOR_LOGOURL,\n ),\n ),\n ),\n );\n\n // prepare with customer informations\n $data['Report'][0]['Customer'][0] = $this->dataObject->getCustomerInfo();\n\n $j=0; // ReportItem\n $y=0; // ItemPerfomance\n $previousIdentifier = '';\n $count = 0;\n\n foreach ($this->dataObject->getData() as $row) {\n if (!($row['identifier'] == $previousIdentifier)) {\n // next Reportitem\n $j++;\n // reset ItemPerfomance\n $y=0;\n\n $data['Report'][0]['Customer'][0]['ReportItems'][$j]['ItemPlatform'] = 'TODO'; //TODO\n $data['Report'][0]['Customer'][0]['ReportItems'][$j]['ItemDataType'] = 'TODO'; //TODO\n $data['Report'][0]['Customer'][0]['ReportItems'][$j]['ItemName'] = $row['identifier'];\n }\n\n $data['Report'][0]['Customer'][0]['ReportItems'][$j]['ItemPerformance'][$y]['Period']['Begin'] = date('Y-m-d', strtotime($row['date']));\n $data['Report'][0]['Customer'][0]['ReportItems'][$j]['ItemPerformance'][$y]['Period']['End'] = date('Y-m-d', strtotime('last day of this month', strtotime($row['date'])));\n $data['Report'][0]['Customer'][0]['ReportItems'][$j]['ItemPerformance'][$y]['Category'] = 'TODO'; //TODO\n\n // check for different counts\n $x=0; // Instance\n\n // TODO: implement/translate format for different metric types\n $data['Report'][0]['Customer'][0]['ReportItems'][$j]['ItemPerformance'][$y]['Instance'][$x]['MetricType'] = 'ft_total';\n $data['Report'][0]['Customer'][0]['ReportItems'][$j]['ItemPerformance'][$y]['Instance'][$x]['Count'] = $row['counter'];\n\n $y++; //next ItemPerformance\n $previousIdentifier = $row['identifier'];\n $count++;\n }\n\n $counterxmlbuild = new CounterXMLBuilder();\n $counterxmlbuild->setIndentString(\"\\t\");\n $counterxmlbuild->start();\n $counterxmlbuild->add_reports($data);\n $counterxmlbuild->done();\n return $this->formattedData = $counterxmlbuild->outputMemory();\n }",
"public function format($data);",
"public function format($data);",
"public function format() { \n\n\t\t$this->f_start = inet_ntop($this->start); \n\t\t$this->f_end = inet_ntop($this->end); \n\n\t\t$this->f_user = $this->get_user_name(); \n\t\t$this->f_level = $this->get_level_name(); \n\t\t$this->f_type = $this->get_type_name(); \n\n\t}",
"private function formatData() {\n\t\t// Initialise arr variable\n\t\t$str = array();\n\n\t\t// Step through the fields\n\t\tforeach($this->data as $key => $value){\n\t\t\t// Stick them together as key=value pairs (url encoded)\n\t\t\t$str[] = $key . '=' . urlencode($value);\n\t\t}\n\n\t\t// Implode the arry using & as the glue and store the data\n\t\t$this->curl_str = implode('&', $str);\n\t}",
"public function format()\n\t{\n\t\t// Get the event data\n\t\t$channel_data = & Swiftriver_Event::$data;\n\t\t\n\t\tif (isset($channel_data['channel']) AND $channel_data['channel'] == 'twitter')\n\t\t{\n\t\t\t$parameters = $channel_data['parameters']['value'];\n\t\t\t\n\t\t\tif (isset($parameters['user']))\n\t\t\t{\n\t\t\t\t$channel_data['display_name'] .= 'From: '.$parameters['user'];\n\t\t\t}\n\t\t\tif (isset($parameters['keyword']))\n\t\t\t{\n\t\t\t\t$channel_data['display_name'] .= ' Keywords: '.$parameters['keyword'];\n\t\t\t}\n\t\t\tif (isset($parameters['location']))\n\t\t\t{\n\t\t\t\t$channel_data['display_name'] .= ' Location: '.$parameters['location'];\n\t\t\t}\n\t\t}\n\t}",
"public function getDataToBeFormatted(){\n\t\t\treturn $this->setDataToBeFormatted();\n\t\t}",
"public function organizeData()\n {\n $this->data = [\n ['name' => '商城名称', 'value' => \\Setting::get('shop.shop')['name']],\n ['name' => '粉丝昵称', 'value' => $this->member['nickname']],\n ['name' => '退款单号', 'value' => $this->refund->refund_sn],\n ['name' => '退款申请时间', 'value' => $this->refund->create_time->toDateTimeString()],\n ['name' => '退款方式', 'value' => $this->order->pay_type_name],\n ['name' => '退款金额', 'value' => $this->refund->price],\n ['name' => '退款原因', 'value' => $this->refund->reason],\n ];\n }",
"public function get_tracker_data() {\n\t\t$option_object = $this->get_analytics_options();\n\n\t\t// Look for a site level Google Analytics ID\n\t\t$google_analytics_id = get_option( 'wsuwp_ga_id', false );\n\n\t\t// Look for a site level Google Analytics ID\n\t\t$ga4_google_analytics_id = get_option( 'wsuwp_ga4_id', false );\n\n\t\t// If a site level ID does not exist, look for a network level Google Analytics ID\n\t\tif ( ! $google_analytics_id ) {\n\t\t\t$google_analytics_id = get_site_option( 'wsuwp_network_ga_id', false );\n\t\t}\n\n\t\t// Provide this via filter in your instance of WordPress. In the WSUWP Platform, this will\n\t\t// be part of a must-use plugin.\n\t\t$app_analytics_id = apply_filters( 'wsu_analytics_app_analytics_id', '' );\n\n\t\t$spine_color = '';\n\t\t$spine_grid = '';\n\t\t$wsuwp_network = '';\n\n\t\tif ( function_exists( 'spine_get_option' ) ) {\n\t\t\t$spine_color = esc_js( spine_get_option( 'spine_color' ) );\n\t\t\t$spine_grid = esc_js( spine_get_option( 'grid_style' ) );\n\t\t}\n\n\t\tif ( is_multisite() ) {\n\t\t\t$wsuwp_network = get_network()->domain;\n\t\t}\n\n\t\t// Do not track site analytics on admin or preview views.\n\t\tif ( is_admin() || is_preview() ) {\n\t\t\t$option_object['track_site'] = false;\n\t\t}\n\n\t\t// Escaping of tracker data for output as JSON is handled via wp_localize_script().\n\t\t$tracker_data = array(\n\t\t\t'defaults' => array(\n\t\t\t\t'cookieDomain' => $this->get_cookie_domain(),\n\t\t\t),\n\n\t\t\t'wsuglobal' => array(\n\t\t\t\t'ga_code' => 'true' === $option_object['track_global'] ? 'UA-55791317-1' : false, // Hard coded global analytics ID for WSU.\n\t\t\t\t'campus' => $option_object['campus'],\n\t\t\t\t'college' => $option_object['college'],\n\t\t\t\t'unit_type' => $option_object['unit_type'],\n\t\t\t\t// Fallback to the subunit if a unit is not selected.\n\t\t\t\t'unit' => 'none' === $option_object['unit'] && 'none' !== $option_object['subunit'] ? $option_object['subunit'] : $option_object['unit'],\n\t\t\t\t// If a subunit has been used as a fallback, output \"none\" as the subunit.\n\t\t\t\t'subunit' => 'none' !== $option_object['unit'] ? $option_object['subunit'] : 'none',\n\t\t\t\t'is_editor' => $this->is_editor() ? 'true' : 'false',\n\t\t\t\t'track_view' => is_admin() ? 'no' : 'yes',\n\t\t\t\t'events' => array(),\n\t\t\t),\n\n\t\t\t'app' => array(\n\t\t\t\t'ga_code' => 'true' === $option_object['track_app'] ? $this->sanitize_ga_id( $app_analytics_id ) : false,\n\t\t\t\t'page_view_type' => $this->get_page_view_type(),\n\t\t\t\t'authenticated_user' => $this->get_authenticated_user(),\n\t\t\t\t'user_id' => ( is_admin() ) ? get_current_user_id() : 0,\n\t\t\t\t'server_protocol' => $_SERVER['SERVER_PROTOCOL'],\n\t\t\t\t'wsuwp_network' => $wsuwp_network,\n\t\t\t\t'spine_grid' => $spine_grid,\n\t\t\t\t'spine_color' => $spine_color,\n\t\t\t\t'events' => array(),\n\t\t\t),\n\n\t\t\t'site' => array(\n\t\t\t\t'ga_code' => 'true' === $option_object['track_site'] ? $google_analytics_id : false,\n\t\t\t\t'ga4_code' => $ga4_google_analytics_id,\n\t\t\t\t'track_view' => is_admin() ? 'no' : 'yes',\n\t\t\t\t'events' => array(),\n\t\t\t),\n\t\t);\n\n\t\treturn $tracker_data;\n\t}",
"public function formatData()\n\t{\n\t\tif(request()->get('by') != 'zone') {\n\t\t\t$this['values'] = explode(',', strtoupper($this['values']));\n\t\t}\n\n\t\t$this['end_date'] = Carbon::createFromFormat('Y-m-d H:i', $this['end_date'], 'Europe/Madrid');\n\n\t\t$this['start_date'] = $this['end_date']->copy()->subHours(\n\t\t\tconfig('filter.for')[$this['for']]['hours']\n\t\t);\n\n\t\treturn $this;\n\t}",
"public function trackingProvider()\n {\n return [[1.1], [1]];\n }",
"public function trackingProvider()\n {\n return [[1.1], [1]];\n }",
"public function ReportesData(){\n\t\t$this->status=\"1\";\n\t\t$this->created_at = \"NOW()\";\n\t}",
"public function tracking_field() {\n\t\techo cyprus_get_settings( 'mts_analytics_code' );\n\t}",
"public function getStatusData()\r\n\t{\r\n\t\t$data = array(\r\n\t\t\t'source' => array(\r\n\t\t\t\t'a' => array(\r\n\t\t\t\t\t'selected' => false,\r\n\t\t\t\t\t'preferred' => false,\r\n\t\t\t\t\t'voltage' => false,\r\n\t\t\t\t\t'frequency' => false,\r\n\t\t\t\t\t'status' => false,\r\n\t\t\t\t),\r\n\t\t\t\t'b' => array(\r\n\t\t\t\t\t'selected' => false,\r\n\t\t\t\t\t'preferred' => false,\r\n\t\t\t\t\t'voltage' => false,\r\n\t\t\t\t\t'frequency' => false,\r\n\t\t\t\t\t'status' => false,\r\n\t\t\t\t),\r\n\t\t\t),\r\n\t\t\t'phaseSynchronization' => false,\r\n\t\t\t'totalLoad' => false,\r\n\t\t\t'totalPower' => false,\r\n\t\t\t'peakLoad' => false,\r\n\t\t\t'energy' => false,\r\n\t\t\t'powerSupplyStatus' => false,\r\n\t\t\t'communicationStatus' => false,\r\n\t\t);\r\n\r\n\t\t$this->hr->get('/status_update.html');\r\n\r\n\t\tif ($this->hr->result) {\r\n\t\t\t// selected source\r\n\t\t\tif (preg_match('/selected source<\\/span>\\s*<span class=\"txt\">source\\s+([a-z])/i', $this->hr->result, $matches)) {\r\n\t\t\t\t$source = strtolower($matches[1]);\r\n\t\t\t\t$data['source'][$source]['selected'] = true;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// preferred source\r\n\t\t\tif (preg_match('/preferred source<\\/span>\\s*<span class=\"txt\">source\\s+([a-z])/i', $this->hr->result, $matches)) {\r\n\t\t\t\t$source = strtolower($matches[1]);\r\n\t\t\t\t$data['source'][$source]['preferred'] = true;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// source voltage\r\n\t\t\tif (preg_match('/source voltage \\(a\\/b\\)<\\/span>\\s*<span class=\"txt\">([0-9\\.]+)\\s*\\/?\\s*([0-9\\.]*)/i', $this->hr->result, $matches)) {\r\n\t\t\t\t$data['source']['a']['voltage'] = $matches[1];\r\n\t\t\t\t$data['source']['b']['voltage'] = $matches[2];\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// frequency\r\n\t\t\tif (preg_match('/source frequency \\(a\\/b\\)<\\/span>\\s*<span class=\"txt\">([0-9\\.]+)\\s*\\/?\\s*([0-9\\.]*)/i', $this->hr->result, $matches)) {\r\n\t\t\t\t$data['source']['a']['frequency'] = $matches[1];\r\n\t\t\t\t$data['source']['b']['frequency'] = $matches[2];\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// status\r\n\t\t\tif (preg_match('/source status \\(a\\/b\\)<\\/span>\\s*<span class=\"txt\">([a-z]+)\\s*\\/?\\s*([a-z]*)/i', $this->hr->result, $matches)) {\r\n\t\t\t\t$data['source']['a']['status'] = ($matches[1] == 'OK') ? true : false;\r\n\t\t\t\t$data['source']['b']['status'] = ($matches[2] == 'OK') ? true : false;\r\n\t\t\t}\r\n\r\n\t\t\t// phase sync\r\n\t\t\tif (preg_match('/phase synchronization<\\/span>\\s*<span class=\"txt\">([a-z]+)/i', $this->hr->result, $matches)) {\r\n\t\t\t\t$data['phaseSynchronization'] = ($matches[1] == 'No') ? false : true;\r\n\t\t\t}\r\n\r\n\t\t\t// total load\r\n\t\t\tif (preg_match('/total\\s+load<\\/span>\\s*<span class=\"txt\">([0-9\\.]+)/i', $this->hr->result, $matches)) {\r\n\t\t\t\t$data['totalLoad'] = floatval($matches[1]);\r\n\t\t\t}\r\n\r\n\t\t\t// total power\r\n\t\t\tif (preg_match('/total\\s+power<\\/span>\\s*<span class=\"txt\">([0-9\\.]+)/i', $this->hr->result, $matches)) {\r\n\t\t\t\t$data['totalPower'] = floatval($matches[1]);\r\n\t\t\t}\r\n\r\n\t\t\t// peak load\r\n\t\t\tif (preg_match('/peak\\s+load<\\/span>\\s*<span class=\"l2b txt\">([0-9\\.]+)/i', $this->hr->result, $matches)) {\r\n\t\t\t\t$data['peakLoad'] = floatval($matches[1]);\r\n\t\t\t}\r\n\r\n\t\t\t// energy\r\n\t\t\tif (preg_match('/energy<\\/span>\\s*<span class=\"l2b txt\">([0-9\\.]+)/i', $this->hr->result, $matches)) {\r\n\t\t\t\t$data['energy'] = floatval($matches[1]);\r\n\t\t\t}\r\n\r\n\t\t\t// PS status\r\n\t\t\tif (preg_match('/power supply status<\\/span>\\s*<span class=\"txt\">([a-z]+)/i', $this->hr->result, $matches)) {\r\n\t\t\t\t$data['powerSupplyStatus'] = ($matches[1] == 'OK') ? true : false;\r\n\t\t\t}\r\n\r\n\t\t\t// comm status\r\n\t\t\tif (preg_match('/communication status<\\/span>\\s*<span class=\"txt\">([a-z]+)/i', $this->hr->result, $matches)) {\r\n\t\t\t\t$data['communicationStatus'] = ($matches[1] == 'OK') ? true : false;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn $data;\r\n\t}",
"protected function _formatData($data) {\n $data['Headers'] = Hash::combine($data, 'Headers.{n}.Name', 'Headers.{n}.Value');\n return $data;\n }",
"public function logData() {\n\t\t/* Implement in subclasses */\n\t}",
"public function getStandardJsonFormat(){\n return VoucherValidationLogTransformer::transform($this->prepareVoucherValidationLogGreedyData());\n }",
"public static function format($info_array, $data_type)\n {\n }",
"abstract function format();",
"public function format(): array\n {\n if ($this->groupEvent) {\n // Events are grouped only in API version 2.\n $this->version = 2;\n }\n\n $result = [\n 'Url' => $this->url,\n 'EventType' => $this->type,\n 'IsBackup' => $this->isBackup,\n 'Status' => $this->status,\n 'Version' => $this->version,\n ];\n\n if ($this->apiKeyId) {\n $result['APIKeyID'] = $this->apiKeyId;\n }\n\n return $result;\n }",
"public function organizeData()\n {\n $this->data = [\n \"thing2\" => ['value'=>'申请通过'],\n \"date1\" => ['value'=>date(\"Y-m-d H:i:s\",time())],\n ];\n }",
"public function get_formatted_tracking_item( $order_id, $tracking_item ) {\n\t\t$formatted = array();\n\n\t\tif ( version_compare( WC_VERSION, '3.0', '<' ) ) {\n\t\t\t$postcode = get_post_meta( $order_id, '_shipping_postcode', true );\n\t\t} else {\n\t\t\t$order = new WC_Order( $order_id );\n\t\t\t$postcode = $order->get_shipping_postcode();\n\t\t}\n\n\t\t$formatted['formatted_tracking_provider'] = '';\n\t\t$formatted['formatted_tracking_link'] = '';\n\n\t\tif ( empty( $postcode ) ) {\n\t\t\t$postcode = get_post_meta( $order_id, '_shipping_postcode', true );\n\t\t}\n\n\t\t$formatted['formatted_tracking_provider'] = '';\n\t\t$formatted['formatted_tracking_link'] = '';\n\n\t\tif ( $tracking_item['custom_tracking_provider'] ) {\n\t\t\t$formatted['formatted_tracking_provider'] = $tracking_item['custom_tracking_provider'];\n\t\t\t$formatted['formatted_tracking_link'] = $tracking_item['custom_tracking_link'];\n\t\t} else {\n\n\t\t\t$link_format = '';\n\n\t\t\tforeach ( $this->get_providers() as $providers ) {\n\t\t\t\tforeach ( $providers as $provider => $format ) {\n\t\t\t\t\tif ( sanitize_title( $provider ) === $tracking_item['tracking_provider'] ) {\n\t\t\t\t\t\t$link_format = $format;\n\t\t\t\t\t\t$formatted['formatted_tracking_provider'] = $provider;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif ( $link_format ) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ( $link_format ) {\n\t\t\t\t$formatted['formatted_tracking_link'] = sprintf( $link_format, $tracking_item['tracking_number'], urlencode( $postcode ) );\n\t\t\t}\n\t\t}\n\n\t\treturn $formatted;\n\t}",
"public function getRawStats()\n\t{\n\t\t$this->team = factory(Team::class)->create();\n\t\t$this->event = factory(Event::class)->create(['owner_id' => $this->team->id]);\n\t\tfactory(TeamMember::class, 2)->create(['team_id' => $this->team->id, 'user_id' => 0]);\n\n\t\t$this->data = [\n\t\t\t'event'\t=> $this->event,\n\t\t\t'meta'\t=> ['test' => 123],\n\t\t\t'stats'\t=> [\n\t\t\t\t['id' => 0, 'member_id' => 1, 'gs' => true, 'pts' => 12, 'ast' => 6, 'reb' => 8],\n\t\t\t\t['id' => 0, 'member_id' => 2, 'gs' => false, 'pts' => 42, 'ast' => 2, 'reb' => 3],\n\t\t\t],\n\t\t];\n\t}",
"public function format() {\r\n\t\t$this->resource->format();\r\n\t}",
"public function format(array $record);",
"public function format_for_header()\n {\n }",
"public function formatDataProvider(): array\n {\n return [\n [new PhoneNumber('8015551212'), '(%a) %e-%n', '', '(801) 555-1212'],\n [new PhoneNumber('8015551212 x55'), '(%a) %e-%n %x', 'ext. ', '(801) 555-1212 ext. 55'],\n [new PhoneNumber('8015551212'), '(%a) %e-%n %x', 'x', '(801) 555-1212'],\n ];\n }",
"public function dataProviderFormat()\n {\n return [\n [RefData::EBSR_STATUS_PROCESSING, 'orange', 'processing'],\n [RefData::EBSR_STATUS_VALIDATING, 'orange', 'processing'],\n [RefData::EBSR_STATUS_SUBMITTED, 'orange', 'processing'],\n [RefData::EBSR_STATUS_PROCESSED, 'green', 'successful'],\n [RefData::EBSR_STATUS_FAILED, 'red', 'failed'],\n ];\n }",
"public function get_raw_data()\n {\n }",
"public function get_raw_data()\n {\n }",
"public function tracking()\n {\n if (Request::has('h')) {\n $track = Tracking::getByHash(Request::input('h'));\n if ($track->isActive()) {\n $data = [\n 'tracking_id' => $track->tracking_id,\n 'data' => json_encode(Request::except('h'))\n ];\n Tracking::log($data);\n }\n }\n\n // if we have a mail_id, we update the mail status and the date where it is opened\n if (Request::has(Tracking::MAIL_ID)) {\n if (Mail::exists(uuid('bytes', Request::input(Tracking::MAIL_ID)))) {\n $mail = Mail::getById(uuid('bytes', Request::input(Tracking::MAIL_ID)));\n\n if ($mail->mail_status_id != Mail::STATUS_OPENED) {\n $mail->mail_status_id = Mail::STATUS_OPENED;\n $mail->opened_at = Carbon::now();\n $mail->save();\n }\n }\n }\n\n header('Content-type:image/jpg');\n header(\"Pragma: no-cache\");\n header(\"Cache-Control: must-revalidate, post-check=0, pre-check=0, public\");\n header(\"Expires: 0\");\n exit;\n }",
"public function getMetricDataFormat() {}",
"public function getLogData(): array {\n\t\t$data = [];\n\n\t\t$data['input_properties_count'] = $this->getInputPropertiesCount();\n\t\t$data['monitoring_point_id'] = $this->getMonitoringPointId();\n\t\t$data['user_id'] = $this->getUserId();\n\t\t$data['property_statistics'] = [];\n\n\t\tforeach ($this->getProperties() as $property) {\n\t\t\t$data['property_statistics'][] = [\n\t\t\t\t'symbol' => $property,\n\t\t\t\t'values_count' => $this->getPropertyValuesCount($property),\n\t\t\t\t'inserts' => $this->getPropertyInserts($property),\n\t\t\t\t'updates' => $this->getPropertyUpdates($property),\n\t\t\t\t'no_changes' => $this->getPropertyNoChanges($property),\n\t\t\t\t'min_time' => $this->getPropertyMinTimeFormatted($property),\n\t\t\t\t'max_time' => $this->getPropertyMaxTimeFormatted($property),\n\t\t\t];\n\t\t}\n\n\t\treturn $data;\n\t}",
"function format($data, $metadata) {\n if (is_array($data)) {\n return drush_format($data, $metadata, 'csv');\n }\n return (string)$data;\n }",
"protected function _prepareLogData($data) {\n\n\t\tforeach ($data as $key => $value) {\n\t\t\tif ($value instanceof Closure) {\n\t\t\t\t$closure = new \\ReflectionFunction($value);\n\t\t\t\t$data[$key] = $closure->getFileName();\n\t\t\t\t$data['start_line'] = $closure->getStartLine();\n\t\t\t\t$data['end_line'] = $closure->getEndLine();\n\t\t\t} else if (is_object($value)) {\n\t\t\t\t$object = new \\ReflectionClass($value);\n\t\t\t\t$data[$key] = $object->getFileName();\n\t\t\t\t$data['start_line'] = $object->getStartLine();\n\t\t\t\t$data['end_line'] = $object->getEndLine();\n\t\t\t} else if (!is_string($value)) {\n\t\t\t\tunset($data[$key]);\n\t\t\t}\n\n\t\t}\n\n\t\treturn json_encode($data);\n\t}",
"function trackingno($carrier, $trno, $shipmentMethod){\n\t$carrier1=$carrier;\t\n\t$carrier=strtolower($carrier);\n\t\n\t//$trno=strtolower($trno);\n\t$shipmentMethod1=$shipmentMethod; \n\t$shipmentMethod=strtolower($shipmentMethod);\n\t\n\t$carrierdata=\" (Not Specified)\";\n\t$carrierRG=\"Not Specified\";\n\t\n\t\tif($carrier !=\"\" ){$carrierdata=\" (\".$carrier1.\")\";}\n\tif($carrier=='ups (usa)' || $carrier=='ups' || $carrier=='ups (us)'){\n\t\t\n\t\t$clink=\"http://wwwapps.ups.com/etracking/tracking.cgi?AcceptUPSLicenseAgreement=yes&TypeOfInquiryNumber=T&InquiryNumber1=\";\n\t\t}\n\t\telseif($carrier==\"\" && substr($shipmentMethod, 0, 3) === 'ups'){\n\t\t\t$clink=\"http://wwwapps.ups.com/etracking/tracking.cgi?AcceptUPSLicenseAgreement=yes&TypeOfInquiryNumber=T&InquiryNumber1=\";\n\t\t\t$carrierdata =\" (\".$shipmentMethod1.\")\";\n\t\t}\n\t\telseif($carrier=='fedex (usa)' || $carrier=='fedex' || $carrier=='fedex (us)'){$clink=\"https://www.fedex.com/apps/fedextrack/?action=track&cntry_code=us_english&tracknumbers=\";\n\t\t}\n\t\telseif($carrier=='' && substr($shipmentMethod, 0, 3) =='fedex'){$clink=\"https://www.fedex.com/apps/fedextrack/?action=track&cntry_code=us_english&tracknumbers=\";\n\t\t$carrierdata =\" (\".$shipmentMethod1.\")\";\n\t\t}\n\t\telseif($carrier=='us postal service'){\n\t\t\t$clink=\"https://tools.usps.com/go/TrackConfirmAction?qtc_tLabels1=\";\n\t\t}\n\t\t\n\t\telseif($carrier=='miscellaneous' || $carrier=='miscellaneous (us)'){$clink=\"\";}\n\t\telse{$clink=\"\";}\n\t\t\n\t\tif($clink == \"\"){\n\t\t\tif($carrier1!=\"\"){$carrierRG=$carrier1;}\n\t\t\tif (preg_match(\"/\\b(1Z ?[0-9A-Z]{3} ?[0-9A-Z]{3} ?[0-9A-Z]{2} ?[0-9A-Z]{4} ?[0-9A-Z]{3} ?[0-9A-Z]|[\\dT]\\d\\d\\d ?\\d\\d\\d\\d ?\\d\\d\\d)\\b/\", $trno)) {\n\t\t\t\t$clink=\"http://wwwapps.ups.com/etracking/tracking.cgi?AcceptUPSLicenseAgreement=yes&TypeOfInquiryNumber=T&InquiryNumber1=\";\n\t\t\t\t$carrierdata =\" (\".$carrierRG.\")\";\n\t\t\t}\n\t\t\t\n\t\t\telseif (preg_match(\"/(\\b96\\d{20}\\b)|(\\b\\d{15}\\b)|(\\b\\d{12}\\b)/\", $trno)) {\n\t\t\t\t$clink=\"https://www.fedex.com/apps/fedextrack/?action=track&cntry_code=us_english&tracknumbers=\";\n\t\t\t\t$carrierdata =\" (\".$carrierRG.\")\";\n\t\t\t}\n\t\t\telseif (preg_match(\"/\\b((98\\d\\d\\d\\d\\d?\\d\\d\\d\\d|98\\d\\d) ?\\d\\d\\d\\d ?\\d\\d\\d\\d( ?\\d\\d\\d)?)\\b/\", $trno)) {\n\t\t\t\t$clink=\"https://www.fedex.com/apps/fedextrack/?action=track&cntry_code=us_english&tracknumbers=\";\n\t\t\t\t$carrierdata =\" (\".$carrierRG.\")\";\n\t\t\t}\n\t\t\telseif (preg_match(\"/^[0-9]{15}$/\", $trno)) {\n\t\t\t\t$clink=\"https://www.fedex.com/apps/fedextrack/?action=track&cntry_code=us_english&tracknumbers=\";\n\t\t\t\t$carrierdata =\" (\".$carrierRG.\")\";\n\t\t\t}\n\t\t}\n\t\t\n\t\tif($clink != \"\"){\n\t\t\t$trdata=\"<a href='\".$clink.\"\".$trno.\"' target='_blank'>\".$trno.\"</a>\".$carrierdata.\", \";\n\t\t}\n\t\telse{\n\t\t\t$trdata=$trno.\"\".$carrierdata.\", \";\n\t\t\t}\n\t\tif($trno==\"\"){$trdata=\"\";}\n\t\treturn $trdata;\n\t}",
"public function getTrackingAttribute()\n {\n return data_get($this, 'trackingNumber.tracking_number');\n }",
"function _format_get($data)\n \t{\n\t \t$data = parent::_format_get($data);\n \t\n\t\t$data['CMS_BucketsLabels'] = (! empty($data['CMS_BucketsLabels'])) ? json_decode($data['CMS_BucketsLabels'], TRUE) : array();\n\t\t$data['CMS_BucketsLookUps'] = (! empty($data['CMS_BucketsLookUps'])) ? json_decode($data['CMS_BucketsLookUps'], TRUE) : array();\n\t\t$data['CMS_BucketsFields'] = (! empty($data['CMS_BucketsFields'])) ? json_decode($data['CMS_BucketsFields'], TRUE) : array();\n\t\t$data['CMS_BucketsDisplay'] = (! empty($data['CMS_BucketsDisplay'])) ? json_decode($data['CMS_BucketsDisplay'], TRUE) : array();\n\t\t$data['CMS_BucketsListview'] = (! empty($data['CMS_BucketsListview'])) ? json_decode($data['CMS_BucketsListview'], TRUE) : array();\n \t\treturn $data;\n \t}",
"private function reformatData(): void\n {\n if($this->cover === \"null\") {\n $this->merge([ \"cover\"=> null ]);\n }\n }",
"public function jsonSerialize() {\n\t\t$fields = get_object_vars($this);\n\n\t\t$fields[\"reportId\"] = $this->reportId;\n\t\t$fields[\"reportCategoryId\"] = $this->reportCategoryId;\n\t\t$fields[\"reportIpAddress\"] = inet_ntop($this->reportIpAddress);\n\n\t\t// format the date so that the front end can consume it\n\t\t$fields[\"reportDateTime\"] = round(floatval($this->reportDateTime->format(\"U.u\")) * 1000);\n\t\treturn ($fields);\n\t}",
"protected function _getOrdersTrackingCode()\n {\n if (!Mage::helper('webgriffe_servergoogleanalytics')->isEnabled()) {\n return parent::_getOrdersTrackingCode();\n }\n\n return '';\n }",
"public function format() : void\n {\n $locations = $this->resolveLocations();\n \n foreach($locations as $location)\n {\n $location->format();\n \n $this->log = array_merge($this->log, $location->getLog());\n }\n }",
"public function formatRecord(Record $record) {\n\t\t$record = $this->normalizeValues($record);\n\n\t\t$output = [];\n\t\t\n\t\t$extra = $this->arr($record->extra);\n\t\tif($extra->keyExists('line') && $extra->keyExists('file')){\n\t\t\t$output['line'] = $extra['line'];\n\t\t\t$output['file'] = $extra['file'];\n\t\t\t$extra->removeKey('line')->removeKey('file');\n\t\t}\n\n\t\tif($extra->keyExists('memory_usage')){\n\t\t\t$output['memory'] = $extra['memory_usage'];\n\t\t\t$extra->removeKey('memory_usage');\n\t\t}\n\n\t\t$record->extra = $extra->val();\n\n\t\t// Handle main record values\n\t\tforeach ($record as $var => $val) {\n\t\t\tif($this->isDateTimeObject($val)) {\n\t\t\t\t$val = $val->format($this->dateFormat);\n\t\t\t}\n\t\t\tif($this->isObject($val)) {\n\t\t\t\t$val = (array)$val;\n\t\t\t} elseif($this->isArray($val)) {\n\t\t\t\t$val = json_encode($val);\n\t\t\t}\n\n\t\t\t$output[$var] = $val;\n\t\t}\n\n\t\treturn $output;\n\t}",
"protected function preprocessData() {}",
"private function convertData() {\n\t\tforeach ($this->Data as $i => $Data) {\n\t\t\t$Points = array();\n\t\t\tforeach ($Data['data'] as $x => $y) {\n\t\t\t\t$Points[] = array($x, $y);\n\t\t\t}\n\t\t\t$this->Data[$i]['data'] = $Points;\n\t\t}\n\n\t\tif (Configuration::ActivityView()->smoothCurves() && !isset($this->Options['series']['curvedLines']['apply']))\n\t\t\t$this->Options['series']['curvedLines']['apply'] = true;\n\n\t\tif (empty($this->Data) && strlen($this->ErrorString) == 0)\n\t\t\t$this->raiseError('Es sind keine Daten vorhanden.');\n\t}",
"public function getInfoData() {\n return [\n 'name' => $this->name,\n 'brand' => $this->brand,\n 'price' => $this->price,\n 'shipping_price' => $this->shippingPrice,\n 'shipping_time' => $this->shippingTime\n ];\n }",
"public function order_tracking_numbers()\n\t{\n\t\t$order_id = ee()->TMPL->fetch_param('order_id');\n\n\t\t$query = ee()->db\n\t\t\t->where('order_id', $order_id)\n\t\t\t->where('order_status_name', 'Shipped')\n\t\t\t->get('store_order_history');\n\n\t\t$variables = array();\n\n\t\tforeach($query->result() as $row)\n\t\t{\n\t\t\t\n\t\t\t$exploded = explode('|', $row->order_status_message);\n\n\t\t\tif(count($exploded) == 2)\n\t\t\t{\n\t\t\t\t$variables[] = array(\n \t\t'tracking_url' => $this->get_tracking_url($exploded[0], $exploded[1]),\n \t\t'tracking_number' => $exploded[1]\n \t\n \t\t);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$variables[] = array(\n \t\t'tracking_url' => '',\n \t\t'tracking_number' => $row->order_status_message\n \t\n \t\t);\n\t\t\t}\t\n\t\t\t\n\t\t}\t\n\n \treturn ee()->TMPL->parse_variables(ee()->TMPL->tagdata, $variables);\t\n\n\t}",
"public function formatForApi()\n {\n return $this->formatTimeAsArray($this->value, $this->nanoSeconds());\n }",
"public function formatToArray(){\n return [\n 'nombre' => $this->name,\n 'ciudad' => $this->cityId,\n 'email' => $this->email,\n 'telefono' => $this->tel,\n 'tipo_documento' => $this->typeDoc,\n 'documento' => $this->doc,\n 'direccion' => $this->addr,\n 'direccion_referencia' => $this->addRef,\n 'coordenadas' => $this->addrCoo,\n 'ruc' => $this->ruc,\n 'razon_social' => $this->socialReason,\n ];\n }",
"public function dianPingDataCleaner($rawDataArray)\n {\n $cleanDataArray = [];\n foreach ($rawDataArray as $rawData)\n {\n //create array that will hold the individual data\n //need to devise correct array for the data to live in\n\n $rawData['comment'] = trim($rawData[$i]);\n $rawData['authorId'] => substr($rawData['author_id'][$i], 8);\n\n //fixing dianPing's broken dates\n $dateConvert = $rawData['date'][$i];\n if(strlen($dateConvert) == 32){\n $shortDate = utf8_decode(substr($dateConvert, 0, 8));\n $trimDate = trim($shortDate);\n if(strpos($trimDate, '?') == true){\n $shorterDate = substr($trimDate, 0, 5);\n $cleanDataArray[$date] => trim('2016-'.$shorterDate);\n }else{\n $cleanDataArray[$date] => '20'.$trimDate;\n }\n }elseif(strlen($dateConvert) == 5){\n $cleanDataArray[$date] => trim('2016-'.$dateConvert);\n }else{\n $cleanDataArray[$date] => trim('20'.$dateConvert);\n }\n\n //getting the number value of the User's rating\n if(substr($criticValue['original_grade'][$i], -2) == 'er'){\n $criticValue[$original_grade] = '0';\n }else{\n $criticValue[$original_grade] = substr($criticValue['original_grade'][$i], -2);\n }\n if($criticValue[$original_grade] == '50' || $criticValue[$original_grade] == '40'){\n $cleanDataArray[$liked] => true;\n }else {\n $cleanDataArray[$liked] => false;\n }\n $cleanDataArray[$venue] => substr($fields['venue'][0], 6);\n\n $cleanDataArray[$source_id] => 'DianPing'; //since this data can only be used on dian ping hardcoding it\n $cleanDataArray[$language] => 'ZH'; //find solution to detect language by text\n\n }\n }",
"public static function optin_track_usage() {\n\n\t\t/** update week day for tracking */\n\t\t$track_week_day = date( 'w' );\n\t\tupdate_option( 'xl_track_day', $track_week_day, false );\n\n\t\t$data = self::collect_data();\n\n\t\t//posting data to api\n\t\tXL_API::post_tracking_data( $data );\n\t}",
"public function getFormat() {}",
"public function getFormat() {}",
"public function getFormat() {}",
"public function toRuleEngineData($format = 'none') {\n $data = parent::toRuleEngineData();\n\n $data['currentPeriod'] = $this->currentPeriod->toRuleEngineData();\n $data['previousPeriod'] = $this->previousPeriod->toRuleEngineData();\n\n $data['products'] = array();\n foreach ($this->products as $idx=>$product) {\n $data['products'][] = $product->toRuleEngineData();\n }\n\n if (strcasecmp($format, 'json') === 0) {\n return json_encode($data);\n } else {\n return $data;\n }\n }",
"public function get_tracking_code(): string {\n global $OUTPUT, $USER;\n\n $settings = $this->record->get_property('settings');\n\n $template = new \\stdClass();\n $template->siteid = $settings['siteid'];\n $template->siteurl = $settings['siteurl'];\n $custompiwikjs = (isset($settings['piwikjsurl']) && !empty($settings['piwikjsurl']));\n $template->piwikjsurl = $custompiwikjs ? $settings['piwikjsurl'] : $settings['siteurl'];\n $template->imagetrack = $settings['imagetrack'];\n\n $template->userid = false;\n\n if (!empty($settings['userid']) && !empty($settings['usefield']) && !empty($USER->{$settings['usefield']})) {\n $template->userid = $USER->{$settings['usefield']};\n }\n\n $template->doctitle = \"\";\n\n if (!empty($this->record->get_property('cleanurl'))) {\n $template->doctitle = \"_paq.push(['setDocumentTitle', '\" . $this->trackurl() . \"']);\\n\";\n }\n\n return $OUTPUT->render_from_template('watool_matomo/tracking_code', $template);\n }",
"public function getDataFormat()\n {\n return $this->data_format;\n }",
"public function getDataFormat()\n {\n return $this->data_format;\n }",
"public function getShipmentData($order)\n {\n $shipmentTracking = [];\n $tracks = $order->getTracksCollection();\n if ($tracks) {\n foreach ($tracks as $track) {\n $trackingLink = $track->getTracingLink();\n $tracking_number = $track->getTrackNumber();\n $shippingLabelPdf = $track->getShippingLabelPdf();\n $carrierTitle = $track->getDescription() ?: __(\"Custom\");\n $shipmentTracking[] = [\n \"title\" => (string)$carrierTitle,\n \"code\" => (string)$this->carrier_code,\n \"tracing_link\" => (string)$trackingLink,\n \"tracking_number\" => (string)$tracking_number,\n \"shipping_label_pdf\" => (string)$shippingLabelPdf,\n ];\n }\n }\n return $shipmentTracking;\n }",
"private static function format_data($eventdata, $eventfullpath) {\n // Get general event information.\n $eventdata[$eventfullpath] = $eventfullpath::get_static_info();\n // Create a link for further event detail.\n $url = new \\moodle_url('eventdetail.php', array('eventname' => $eventfullpath));\n $link = \\html_writer::link($url, $eventfullpath::get_name_with_info());\n $eventdata[$eventfullpath]['fulleventname'] = \\html_writer::span($link);\n $eventdata[$eventfullpath]['fulleventname'] .= \\html_writer::empty_tag('br');\n $eventdata[$eventfullpath]['fulleventname'] .= \\html_writer::span($eventdata[$eventfullpath]['eventname'],\n 'report-eventlist-name');\n\n $eventdata[$eventfullpath]['crud'] = self::get_crud_string($eventdata[$eventfullpath]['crud']);\n $eventdata[$eventfullpath]['edulevel'] = self::get_edulevel_string($eventdata[$eventfullpath]['edulevel']);\n $eventdata[$eventfullpath]['legacyevent'] = $eventfullpath::get_legacy_eventname();\n\n // Mess around getting since information.\n $ref = new \\ReflectionClass($eventdata[$eventfullpath]['eventname']);\n $eventdocbloc = $ref->getDocComment();\n $sincepattern = \"/since\\s*Moodle\\s([0-9]+.[0-9]+)/i\";\n preg_match($sincepattern, $eventdocbloc, $result);\n if (isset($result[1])) {\n $eventdata[$eventfullpath]['since'] = $result[1];\n } else {\n $eventdata[$eventfullpath]['since'] = null;\n }\n\n // Human readable plugin information to go with the component.\n $pluginstring = explode('\\\\', $eventfullpath);\n if ($pluginstring[1] !== 'core') {\n $component = $eventdata[$eventfullpath]['component'];\n $manager = get_string_manager();\n if ($manager->string_exists('pluginname', $pluginstring[1])) {\n $eventdata[$eventfullpath]['component'] = \\html_writer::span(get_string('pluginname', $pluginstring[1]));\n }\n }\n\n // Raw event data to be used to sort the \"Event name\" column.\n $eventdata[$eventfullpath]['raweventname'] = $eventfullpath::get_name_with_info() . ' ' . $eventdata[$eventfullpath]['eventname'];\n\n // Unset information that is not currently required.\n unset($eventdata[$eventfullpath]['action']);\n unset($eventdata[$eventfullpath]['target']);\n return $eventdata;\n }",
"public static function get_raw_data()\n {\n }",
"public static function get_raw_data()\n {\n }",
"public function formatReportData( $report_data )\n\t{\n\t\treturn array(\n\t\t\t\t\t'REDIRECT_URL'\t=> $report_data['url'],\n\t\t\t\t\t'REPORT_INDEX'\t=> $report_data['id'],\n\t\t\t\t\t'SAVED_URL'\t\t=> str_replace( '&', '&', $report_data['url'] ),\n\t\t\t\t\t'REPORT'\t\t=> '',\n\t\t\t\t\t'SEOTITLE'\t\t=> $report_data['seoname'],\n\t\t\t\t\t'TEMPLATE'\t\t=> $report_data['viewimage'],\n\t\t\t\t\t);\n\t}",
"protected function formatResult()\n\t{\n\t\t$this->arResult['CLIENT_INFO'] = $this->clientInfo;\n\t\t$this->arResult['ERRORS'] = $this->errors;\n\n\t\t$this->arResult['AP_MANAGE_URL'] = static::PATH_AP_MANAGE;\n\n\t\t$this->arResult['CLIENT_ACCESS'] = $this->clientAccess;\n\t}",
"function tsuiseki_tracking_buffer_data() {\n $dirty = FALSE;\n $c_network = '';\n $c_partner = '';\n $c_query = '';\n\n if (isset($_SESSION[TSUISEKI_TRACKER_COOKIE_NAME])) {\n $cookie_data = $_SESSION[TSUISEKI_TRACKER_COOKIE_NAME];\n if (_tsuiseki_tracking_validate_cookie_value($cookie_data)) {\n $parts = _tsuiseki_tracking_extract_cookie_data($cookie_data);\n $data = (string)trim($parts['data']);\n $c_opts = _tsuiseki_tracking_extract_data_from_url($data);\n // Get the values from the cookie.\n $c_network = _tsuiseki_tracking_get_network($c_opts);\n $c_partner = _tsuiseki_tracking_get_partner_id($c_opts);\n $c_query = _tsuiseki_tracking_get_query($c_opts);\n }\n else {\n $dirty = TRUE;\n if (isset($_SESSION[TSUISEKI_TRACKER_COOKIE_VIEW_COUNTER_NAME])) {\n unset($_SESSION[TSUISEKI_TRACKER_COOKIE_VIEW_COUNTER_NAME]);\n }\n }\n }\n // Get the values from the url.\n $network = _tsuiseki_tracking_get_network();\n $partner = _tsuiseki_tracking_get_partner_id();\n $query = _tsuiseki_tracking_get_query();\n // Now we validate the data and decide if we update the cookie values.\n if (empty($c_network) || (!empty($network) && ($network != 'free') && ($network != $c_network))) {\n $c_network = $network;\n $dirty = TRUE;\n }\n if (empty($c_partner) || (!empty($partner) && ($partner != $c_partner))) {\n $c_partner = $partner;\n $dirty = TRUE;\n }\n else {\n // If we have seen this guy more than once we append an '/i=1' to the\n // partner field to mark it as an internal view.\n if (isset($_SESSION[TSUISEKI_TRACKER_COOKIE_VIEW_COUNTER_NAME]) && (int)$_SESSION[TSUISEKI_TRACKER_COOKIE_VIEW_COUNTER_NAME] > 1) {\n // As the partner field was very likely deleted from the url if the\n // visitor moved around the website we prefer the value from the cookie.\n if (!empty($c_partner)) {\n $partner = $c_partner;\n }\n else {\n $partner = '';\n }\n if (!preg_match('/.*\\/i=1$/', $partner)) {\n $c_partner = $partner .'/i=1';\n $dirty = TRUE;\n }\n }\n }\n if (empty($query) || (!empty($query) && ($query != $c_query))) {\n $c_query = $query;\n $dirty = TRUE;\n }\n // Now we store the data in the session if it was modified.\n if ($dirty) {\n $name = ip2long($_SERVER['REMOTE_ADDR']);\n $time = _tsuiseki_tracking_get_expiration_time();\n $data = _tsuiseki_tracking_create_cookie_data($c_network, $c_partner, $c_query);\n $cookie_data = _tsuiseki_tracking_calculate_cookie_value($name, $time, $data);\n $_SESSION[TSUISEKI_TRACKER_COOKIE_NAME] = $cookie_data;\n }\n // At last we count the times this function is fired.\n if (isset($_SESSION[TSUISEKI_TRACKER_COOKIE_VIEW_COUNTER_NAME])) {\n $_SESSION[TSUISEKI_TRACKER_COOKIE_VIEW_COUNTER_NAME] =\n (int)$_SESSION[TSUISEKI_TRACKER_COOKIE_VIEW_COUNTER_NAME] + 1;\n }\n else {\n $_SESSION[TSUISEKI_TRACKER_COOKIE_VIEW_COUNTER_NAME] = 1;\n }\n $_SESSION['TSUISEKI_TRACKER_KEY'] = (string)trim(tsuiseki_tracking_get_key());\n\n return $dirty;\n}",
"public function getHistoryEventDescriptionData()\n {\n return array(\n 'trx_method' => static::t($this->getPaymentMethod()->getName()),\n 'trx_type' => static::t($this->getType()),\n 'trx_value' => $this->getOrder()->getCurrency()->roundValue($this->getValue()),\n 'trx_status' => static::t($this->getReadableStatus()),\n );\n }",
"protected function populateDatastreamInfo() {\n $this->datastreamHistory = $this->getDatastreamHistory();\n $this->datastreamInfo = $this->datastreamHistory[0];\n }",
"protected function process_fields($table, $data, $format)\n {\n }",
"function handle_telemetry_endpoint( WP_REST_Request $request ) {\n\t$current_user = wp_get_current_user();\n\t$did_opt_in = $request['opt_in'];\n\topt_in( $did_opt_in );\n\n\t$data = [\n\t\t'id' => $current_user->ID,\n\t\t'tracking' => [\n\t\t\t'opt_in' => $did_opt_in,\n\t\t],\n\t];\n\n\tif ( $did_opt_in ) {\n\t\t$data['tracking_data'] = get_segmentio_user_details();\n\t}\n\n\treturn $data;\n}",
"function _formatData($column, $value, &$R){\n global $conf;\n $vals = explode(\"\\n\",$value);\n $outs = array();\n foreach($vals as $val){\n $val = trim($val);\n if($val=='') continue;\n $type = $column['type'];\n if (is_array($type)) $type = $type['type'];\n switch($type){\n case 'page':\n $val = $this->_addPrePostFixes($column['type'], $val, ':');\n $outs[] = $R->internallink($val,null,null,true);\n break;\n case 'title':\n case 'pageid':\n list($id,$title) = explode('|',$val,2);\n $id = $this->_addPrePostFixes($column['type'], $id, ':');\n $outs[] = $R->internallink($id,$title,null,true);\n break;\n case 'nspage':\n // no prefix/postfix here\n $val = ':'.$column['key'].\":$val\";\n\n $outs[] = $R->internallink($val,null,null,true);\n break;\n case 'mail':\n list($id,$title) = explode(' ',$val,2);\n $id = $this->_addPrePostFixes($column['type'], $id);\n $id = obfuscate(hsc($id));\n if(!$title){\n $title = $id;\n }else{\n $title = hsc($title);\n }\n if($conf['mailguard'] == 'visible') $id = rawurlencode($id);\n $outs[] = '<a href=\"mailto:'.$id.'\" class=\"mail\" title=\"'.$id.'\">'.$title.'</a>';\n break;\n case 'url':\n $val = $this->_addPrePostFixes($column['type'], $val);\n $outs[] = '<a href=\"'.hsc($val).'\" class=\"urlextern\" title=\"'.hsc($val).'\">'.hsc($val).'</a>';\n break;\n case 'tag':\n // per default use keyname as target page, but prefix on aliases\n if(!is_array($column['type'])){\n $target = $column['key'].':';\n }else{\n $target = $this->_addPrePostFixes($column['type'],'');\n }\n\n $outs[] = '<a href=\"'.wl(str_replace('/',':',cleanID($target)),array('dataflt'=>$column['key'].'='.$val )).\n '\" title=\"'.sprintf($this->getLang('tagfilter'),hsc($val)).\n '\" class=\"wikilink1\">'.hsc($val).'</a>';\n break;\n case 'timestamp':\n $outs[] = dformat($val);\n break;\n case 'wiki':\n global $ID;\n $oldid = $ID;\n list($ID,$data) = explode('|',$val,2);\n $data = $this->_addPrePostFixes($column['type'], $data);\n // Trim document_{start,end}, p_{open,close}\n $ins = array_slice(p_get_instructions($data), 2, -2);\n $outs[] = p_render('xhtml', $ins, $byref_ignore);\n $ID = $oldid;\n break;\n default:\n $val = $this->_addPrePostFixes($column['type'], $val);\n if(substr($type,0,3) == 'img'){\n $sz = (int) substr($type,3);\n if(!$sz) $sz = 40;\n $title = $column['key'].': '.basename(str_replace(':','/',$val));\n $outs[] = '<a href=\"'.ml($val).'\" class=\"media\" rel=\"lightbox\"><img src=\"'.ml($val,\"w=$sz\").'\" alt=\"'.hsc($title).'\" title=\"'.hsc($title).'\" width=\"'.$sz.'\" /></a>';\n }else{\n $outs[] = hsc($val);\n }\n }\n }\n return join(', ',$outs);\n }",
"private function getHistory()\n {\n $history = [];\n\n foreach ($this->getResponse()->data as $k => $v) {\n $history[$k]['tanggal'] = Utils::setDate($v->Tanggal);\n\n switch ($v->StatusInternal) {\n case 'Baru':\n $history[$k]['posisi'] = preg_replace('/Diterima di Sales Counter (.*)/', '$1', $v->TrackStatusNama);\n break;\n\n case 'Manifest Pickup':\n $posisi = preg_replace('/Di pickup oleh petugas (.*)/', '$1', $v->TrackStatusNama);\n $history[$k]['posisi'] = $posisi;\n $this->kotaPengirim = strtoupper($posisi);\n break;\n\n case 'Serah Terima Pickup':\n $history[$k]['posisi'] = preg_replace('/Diterima di fasilitas (.*)/', '$1', $v->TrackStatusNama);\n break;\n\n case 'Moda Angkutan':\n $history[$k]['posisi'] = preg_replace('/Pengiriman dari (.*) ke (.*)/', '$1', $v->TrackStatusNama);\n break;\n\n case 'Serah Terima Surat Muatan':\n $history[$k]['posisi'] = preg_replace('/Diterima di fasilitas (.*)/', '$1', $v->TrackStatusNama);\n break;\n\n case 'Serah Terima Manifest':\n $history[$k]['posisi'] = preg_replace('/Diterima di fasilitas (.*)/', '$1', $v->TrackStatusNama);\n break;\n\n case 'Surat Jalan Kurir':\n $history[$k]['posisi'] = preg_replace('/Proses pengantaran oleh kurir (.*), (.*)/', '$1', $v->TrackStatusNama);\n break;\n\n case 'Terkirim/Diterima':\n $history[$k]['posisi'] = 'Diterima';\n $this->tanggalTerima = $v->Tanggal;\n $this->namaPenerima = preg_replace('/Diterima oleh (.*)\\((.*)/', '$1', $v->TrackStatusNama);\n break;\n\n default:\n $history[$k]['posisi'] = null;\n break;\n }\n\n $history[$k]['message'] = $v->TrackStatusNama;\n }\n\n return $history;\n }",
"protected function process_field_formats($data, $format)\n {\n }",
"protected function processOutput(\\Gems_Tracker_Token $token)\n {\n $this->log(\"Setting track fields\");\n\n $fields = $this->getTrackFieldValues($token->getRespondentTrack());\n // \\MUtil_Echo::track($fields);\n\n $this->addCheckedArray($fields);\n }",
"public function __toString()\n\t{\n\t\n\t\t$return = \"===============================================\\n\";\n\t\t$return .= \" {$this->getGamer()->getGamertag()} Consistency Report\\n\";\n\t\t$return .= \"===============================================\\n\";\n\t\t$return .= \"\tGameCount:\t\t{$this->getGamerVsGame()->getGameCount()}\\n\";\n\t\t$return .= \"\tStored Score:\t\t{$this->getGamerVsGame()->getGamerScore()}G\\n\";\n\t\t$return .= \"\tGame Sum:\t\t{$this->getGamerVsGame()->getGamesSum()}G\\n\";\n\t\t$return .= \"\tAchievement Sum:\t{$this->getGamerVsGame()->getAchievementSum()}G\\n\";\n\t\t$return .= \"-----------------------------------------------\\n\";\n\t\t\n\t\t//diff calculations\n\t\t$gameInconsistency = $this->getGamerVsGame()->getGamerScore() - $this->getGamerVsGame()->getGamesSum();\n\t\t$achievementInconsistency = $this->getGamerVsGame()->getGamerScore() - $this->getGamerVsGame()->getAchievementSum();\n\t\t\n\t\t$return .= \"\tGame Inconsistency:\t\t{$gameInconsistency}G\\n\";\n\t\t$return .= \"\tAchievement Inconsistency:\t{$achievementInconsistency}G\\n\";\n\t\t$return .= \"===============================================\\n\";\n\t\t\n\t\tforeach($this->getGameVsAchievement() as $game){\n\t\t\t$return .= \"===============================================\\n\";\n\t\t\t$return .= \" {$this->getGamer()->getGamertag()} Game Report - {$game->getName()}\\n\";\n\t\t\t$return .= \"===============================================\\n\";\n\t\t\t$return .= \"\tAchievement Count:\t{$game->getAchievementCount()}\\n\";\n\t\t\t$return .= \"\tAchievement Stored:\t{$game->getGameAchievement()}\\n\";\n\t\t\t$return .= \"\tStored Score:\t\t{$game->getGameScore()}G\\n\";\n\t\t\t$return .= \"\tAchievement Sum:\t{$game->getAchievementSum()}G\\n\";\n\t\t\t$return .= \"-----------------------------------------------\\n\";\n\t\t\t\n\t\t\t//diff calculations\n\t\t\t$countInconsistency = $game->getGameAchievement() - $game->getAchievementCount();\n\t\t\t$scoreInconsistency = $game->getGameScore() - $game->getAchievementSum();\n\t\t\t\n\t\t\tif($countInconsistency != 0 || $scoreInconsistency != 0){\n\t\t\t\t$this->_addAlert($game);\n\t\t\t}\n\t\t\t\n\t\t\t$return .= \"\tCount Inconsistency:\t{$countInconsistency}\\n\";\n\t\t\t$return .= \"\tScore Inconsistency:\t{$scoreInconsistency}G\\n\";\n\t\t}\n\t\t$return .= \"===============================================\\n\";\n\t\t\n\t\treturn $this->_formatAlert($return);\n\t}",
"function processPerfData($perfData) {\n $string = '';\n if (!is_array($perfData)) {\n $perfData['perf'] = array($perfData);\n }\n foreach ($perfData as $label => $value) {\n $string .= ' ' . $label . '=' . str_replace(' ', '', $value);\n }\n return trim($string);\n}",
"private function showAllReportData($reportType){\n\n \t$sensorData = array();\n \t$reportList = array();\n \t$data = json_encode(0);\n \t$provinces = DB::table('tbl_provinces')->get();\n \t$landslides = DB::table('tbl_landslide')->get();\n \t$floods = DB::table('tbl_flood')->get();\n \t$roadNetworks = DB::table('tbl_roadnetworks')->get();\n\n \tswitch ($reportType) {\n\n \t\tcase '2':\n \t\t\t\n \t\t\tforeach ($landslides as $landslide) {\n\n \t\t\t\t$tempStr = strip_tags($landslide->description);\n\t\t\t\t\t$tempProvince = \"\";\n\n\t\t\t\t\tforeach ($provinces as $province) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tif ($landslide->province_id == $province->id){\n\n\t\t\t\t\t\t\t$tempProvince = $province->name;\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n \t\t\t\t$reportList[] = array(\"date_time\" => $landslide->date,\n \t\t\t\t\t\t\t\t\t \"province\" => $tempProvince,\n \t\t\t\t\t\t\t\t\t \"location\" => $landslide->location,\n \t\t\t\t\t\t\t\t\t \"description\" => $tempStr);\n\n\t\t\t\t}\n\n \t\t\tbreak;\n\n \t\tcase '3':\n \t\t\t\n \t\t\tforeach ($floods as $flood) {\n\n \t\t\t\t$tempStr = strip_tags($flood->description);\n \t\t\t\t$tempProvince = \"\";\n\n\t\t\t\t\tforeach ($provinces as $province) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tif ($flood->province_id == $province->id){\n\n\t\t\t\t\t\t\t$tempProvince = $province->name;\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n\t\t\t\n\t\t\t\t\t$reportList[] = array(\"date_time\" => $flood->date,\n\t\t\t\t\t\t\t\t\t\t \"province\" => $tempProvince,\n \t\t\t\t\t\t\t\t\t \"location\" => $flood->location,\n \t\t\t\t\t\t\t\t\t \"description\" => $tempStr);\n\t\t\t\n\t\t\t\t}\n\n \t\t\tbreak;\n\n \t\tcase '4':\n \t\t\t\n \t\t\tforeach ($roadNetworks as $roadNetwork) {\n\n \t\t\t\t$tempStr = strip_tags($roadNetwork->description);\n\n\t\t\t\t\t$reportList[] = array(\"date_time\" => $roadNetwork->date,\n \t\t\t\t\t\t\t\t\t \"location\" => $roadNetwork->location,\n \t\t\t\t\t\t\t\t\t \"status\" => $roadNetwork->status,\n \t\t\t\t\t\t\t\t\t \"description\" => $tempStr);\n\t\t\t\n\t\t\t\t}\n\n \t\t\tbreak;\n \t\t\n \t}\n \t\n \t$data = json_encode($reportList);\n\t\treturn $data;\n\n }",
"public function analyticreport() {\n\n global $base_url;\n $results = \\Drupal::database()->select('short_links', 's')\n ->fields('s', ['id', 'long_url', 'identifier', 'short_url'])\n ->orderBy('s.id', 'DESC')\n ->execute();\n $header = [\n t('Sr.no'), t('Web URL'), t('Identifier'), t('Short URL'), t('Show Details'),\n ];\n $rows = [];\n $sr_no = 0;\n foreach ($results as $result) {\n $sr_no += 1;\n $id = $result->id;\n $long_url = $result->long_url;\n $identifier = $result->identifier;\n $short_url = $result->short_url;\n $rows[] = [\n $sr_no,\n $long_url,\n $identifier,\n $short_url,\n [\n 'data' => new FormattableMarkup('<a href=\":link\">@name</a>', [':link' => $base_url . '/show-detail/' . $identifier, '@name' => 'Details']),\n ],\n ];\n }\n return [\n '#theme' => 'table',\n '#header' => $header,\n '#rows' => $rows,\n ];\n }",
"public function format($data, $column = [])\n {\n if (!empty($data['venue'])) {\n // name and address\n return $data['venue']['name'] . ' - ' . $this->addressFormatter->format($data['venue']['address'], ['addressFields' => 'FULL']);\n } elseif (!empty($data['venueOther'])) {\n // other venue\n return $data['venueOther'];\n }\n\n return '';\n }",
"public function __toString()\n {\n return 'data:' . htmlspecialchars($this->type) .\n ($this->base64\n ? ';base64,' . base64_encode($this->data)\n : ',' . rawurlencode($this->data));\n }",
"protected function getShipmentValues($shipmentTracking,$order) \n {\n\t\t$shipmentData = $order->getShipmentsCollection()->getData();\n\t return array(\n\t\t\t// $shipmentData[0]['increment_id'],\n\t\t\t// date('M d,Y', strtotime($shipmentTracking->getCreatedAt())),\n\t\t\t $shipmentTracking->getTitle(),\n\t\t\t \n );\n }",
"public function jsonSerialize() {\n\t\t$fields = get_object_vars($this);\n\t\t//format the data so that the front end can consume it\n\t\t$fields[\"voteDateTime\"] = round(floatval($this->voteDateTime->format(\"U.u\")) * 1000);\n\t\treturn ($fields);\n\t}",
"public static function getInfo()\n {\n return [\n 'name' => __('carrier_sdek'),\n 'tracking_url' => 'https://new.cdek.ru/tracking?order_id=%s',\n ];\n }",
"public function populateReport(){\n\t\t$companyID = $this->input->post('companyID');\n\t\t$courseID = $this->input->post('courseID');\n\t\t$daterange = $this->input->post('dateRange');\n\t\t\n\t\t$ranges = explode(\" - \", $daterange);\n\t\t#formatting the date ranges\n\t\t$from = date(\"Y-m-d H:i:s\",strtotime($ranges[0]));\n\t\t$to = date(\"Y-m-d H:i:s\",strtotime($ranges[1]));\n\t\t\n $report = $this->report->get_report($companyID, $courseID, $from, $to);\n $data = array();\n foreach ($report as $report_row) {\n $row = array();\n $row[] = '<td class=\"min-width nowrap\"></td>';\n $row[] = $report_row->name;\n $row[] = $report_row->mobile;\n $row[] = $report_row->email;\n $row[] = $report_row->questionSet;\n $row[] = $report_row->totalQuestions;\n $row[] = $report_row->duration;\n $row[] = $report_row->passingMarks;\n $row[] = $report_row->maxScore;\n $row[] = $report_row->timeTaken;\n $row[] = $report_row->result;\n $row[] = date(\"M d Y h:i A\",strtotime($report_row->timeStamp));\n array_push($data, $row);\n }\n \n $output = array(\n\t\t\t\"draw\" => $_POST['draw'],\n\t\t\t\"recordsTotal\" => $this->report->count_all(),\n\t\t\t\"recordsFiltered\" => $this->report->count_filtered(),\n\t\t\t\"data\" => $data,\n\t\t);\n echo json_encode($output);\n }",
"function tracking_serialize($input)\n{\n\t$out = '';\n\tforeach ($input as $key => $value)\n\t{\n\t\tif (is_array($value))\n\t\t{\n\t\t\t$out .= $key . ':(' . tracking_serialize($value) . ');';\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$out .= $key . ':' . $value . ';';\n\t\t}\n\t}\n\treturn $out;\n}",
"public function json()\n {\n $this->fetchFields();\n Log::json($this);\n }",
"public function getDataWithTypeDebugData() {}",
"function jsonSerialize()\n {\n\n $this->points = array_reverse($this->points);\n\n for ($i=0; $i< count($this->points); $i++) {\n foreach ($this->points[$i] as $key => $value) {\n if ($key == \"LOCATION_ID\")\n continue;\n\n if ($key == 'time')\n $this->points[$i][$key] = strtotime($this->points[$i][$key]) * 1000;\n else\n $this->points[$i][$key] = round($this->points[$i][$key], 2);\n }\n }\n return $this->points;\n/*\n\n $lines = [];\n foreach ($this->points as $point) {\n $i = 0;\n foreach ($point as $key => $value) {\n if ($key == \"LOCATION_ID\")\n continue;\n\n if (!isset($lines[$i])) {\n $lines[$i] = [];\n }\n\n if ($key == 'time')\n $lines[$i][] = strtotime($point['time']) * 1000;\n else\n $lines[$i][] = round($point[$key], 2);\n\n $i++;\n }\n }\n return $lines;*/\n }",
"protected function processPreSaveData(&$record,$apiMethod)\n {\n \n }",
"public function format(): array\n {\n return [\n 'name' => 'click',\n 'selector' => $this->selector,\n 'amount' => $this->amount,\n 'button' => $this->button,\n ];\n }",
"public function getFormatted(): string\n {\n $pieces = array();\n $city = $this->getCity();\n $region = $this->getRegion();\n $country = $this->getCountry();\n $countryCode = $this->getCountryCode();\n $countryCode = strtoupper($countryCode);\n if ($countryCode === 'CA' || $countryCode === 'US') {\n if ($city !== false && $city !== '') {\n array_push($pieces, $city);\n if ($region !== false && $region !== '') {\n array_push($pieces, $region);\n return implode(', ', $pieces);\n }\n if ($country !== false && $country !== '') {\n array_push($pieces, $country);\n return implode(', ', $pieces);\n }\n array_push($pieces, $countryCode);\n return implode(', ', $pieces);\n }\n if ($region !== false && $region !== '') {\n array_push($pieces, $region);\n if ($country !== false && $country !== '') {\n array_push($pieces, $country);\n return implode(', ', $pieces);\n }\n array_push($pieces, $countryCode);\n return implode(', ', $pieces);\n }\n if ($country !== false && $country !== '') {\n return $country;\n }\n return $countryCode;\n }\n if ($city !== false && $city !== '') {\n array_push($pieces, $city);\n if ($country !== false && $country !== '') {\n array_push($pieces, $country);\n return implode(', ', $pieces);\n }\n if ($countryCode !== false && $countryCode !== '') {\n array_push($pieces, $countryCode);\n return implode(', ', $pieces);\n }\n return $city;\n }\n if ($country !== false && $country !== '') {\n return $country;\n }\n return '';\n }",
"public function formatData(array $data)\n {\n $this->data = json_encode($data);\n }",
"public function getInfo(){\n $info = $this->getData();\n $price = $this->getData('price');\n $info['formatted_price'] = $this->priceHelper->currency($price, true, false);\n $info['website'] = $this->websiteHelper->getWebsites();\n $info['customergroup'] = $this->customerGroupHelper->getCustomerGroups();\n\n return $info;\n }",
"function format($type, $row) {\n\n $row->RemittanceSequence = $this->transaction->RemittanceSequence;\n $row->CustomerOrgNumber = $this->transaction->CustomerOrgNumber;\n $row->NumTransactions = $this->transaction->NumTransactions;\n $row->TotalAmount = $this->transaction->TotalAmount;\n $row->Database = $this->transaction->Database;\n $row->Date = $this->transaction->Date;\n $row->VersionSoftware = $this->transaction->VersionSoftware;\n\n $this->transaction->RemittanceDaySequence++; #Starts at zero each day\n $this->transaction->NumRecords++; #Starts at zero each file\n \n $row->RemittanceDaySequence = $this->transaction->RemittanceDaySequence;\n $row->NumRecords = $this->transaction->NumRecords;\n\n #$html = \"$type\";\n foreach($this->formatH[$type] as $field => $column) {\n if($field != 'name') {\n #print_r($row);\n #print \"$field - field: \" . $column['field'] . \"<br>\\n\";\n\n $value = '';\n if(isset($column['field']) && $row->{$column['field']}) {\n $value = $row->{$column['field']};\n\n } elseif(isset($column['value']) && strlen($column['value'])) {\n $value = $column['value'];\n\n } else {\n $value = ' ';\n }\n $length = $column['stop'] - $column['start'] + 1;\n if($column['type'] == 'int' || $column['type'] == 'amount') {\n $pad = '0';\n $align = STR_PAD_LEFT;\n } elseif($column['type'] == 'text' || $column['type'] == 'date' || $column['type'] == 'bankaccount' || $column['type'] == 'monthdate') {\n $pad = ' ';\n $align = STR_PAD_RIGHT;\n } else {\n $pad = '*'; #Not defined \n $align = STR_PAD_LEFT;\n }\n $value = $this->{$column['type']}($value);\n $value = substr($value, 0, $length); #husk klippe de totale datene til max lenge\n \n $html .= str_pad($value, $length, $pad, $align);\n #print \"field: $field: length: $length, value: <b>\" . str_pad($value, $length, $pad, $align) . \"</b>, pad: $pad, field: \" . $column['field'] . \", type: \" . $column['type'] . \"<br>\\n\";\n\n }\n }\n $html .= \"\\n\";\n return $html;\n }",
"public function add_fields_to_xml_export_order_format( $format, $order ) {\n\n\t\t$tracking_items = $GLOBALS['WC_La_Poste_Tracking']->actions->get_tracking_items( $order->id, true );\n\t\t$format['LaPosteTracking'] = array();\n\n\t\t// bail if we have no tracking items\n\t\tif ( 0 === count( $tracking_items ) ) {\n\t\t\treturn $format;\n\t\t}\n\n\t\tforeach ( $tracking_items as $key => $values ) {\n\n\t\t\t// format timestamps for humans\n\t\t\t$values['date_shipped'] = date( 'Y-m-d', $values['date_shipped'] );\n\n\t\t\t// add the values for each tracking item into a <Package> tag\n\t\t\t$format['LaPosteTracking']['Package'][] = $values;\n\t\t}\n\n\t\treturn $format;\n\t}",
"function report()\n {\n if ($this->acl->otentikasi2($this->title) == TRUE){\n $cur = $this->input->post('ccurrency');\n $start = $this->input->post('start');\n $end = $this->input->post('end');\n\n $data['currency'] = $cur;\n $data['start'] = tglin($start);\n $data['end'] = tglin($end);\n $data['rundate'] = tglin(date('Y-m-d'));\n $data['log'] = $this->decodedd->log;\n\n // Property Details\n $data['company'] = $this->properti['name'];\n\n $result = null;\n foreach ($this->model->report($cur,$start,$end)->result() as $res) {\n $result[] = array (\"id\"=>$res->id, \"no\"=>$res->no, \"notes\"=>$res->notes, \"dates\"=>tglin($res->dates), \n \"currency\"=>$res->currency, \"from\"=>$this->get_acc($res->from), \"to\"=>$this->get_acc($res->to), \n \"posted\"=>$res->approved, \"amount\"=>$res->amount);\n }\n $data['result'] = $result; $this->output = $data;\n }else { $this->reject_token(); }\n $this->response('content');\n }",
"function getMetaData()\n {\n $meta = parent::getMetaData();\n\n $meta[\"sum_bankcodes\"] = floatval($this->sum_bankcodes);\n $meta[\"sum_accounts\"] = floatval($this->sum_accounts);\n\n return $meta;\n }",
"private function setToData()\n {\n if($this->getTos()){\n $toArray = [];\n foreach($this->getTos() as $to){\n $toArray[] = $this->setEmailNameString($to['email'], $to['name']);\n } \n\n return implode(',', $toArray); \n }\n \n return '';\n }",
"protected function get_report_data() {\n\n\t\tif ( ! empty( $this->report_data ) ) {\n\t\t\treturn $this->report_data;\n\t\t}\n\n\t\t$this->report_data = new stdClass();\n\n\t\t// sales\n\t\t$this->report_data->sales = $this->get_order_report_data( array(\n\t\t\t'data' => array(\n\t\t\t\t'_line_total' => array(\n\t\t\t\t\t'type' => 'order_item_meta',\n\t\t\t\t\t'order_item_type' => 'line_item',\n\t\t\t\t\t'function' => 'SUM',\n\t\t\t\t\t'name' => 'order_item_amount',\n\t\t\t\t),\n\t\t\t\t'post_date' => array(\n\t\t\t\t\t'type' => 'post_data',\n\t\t\t\t\t'function' => '',\n\t\t\t\t\t'name' => 'post_date',\n\t\t\t\t),\n\t\t\t\t'_product_id' => array(\n\t\t\t\t\t'type' => 'order_item_meta',\n\t\t\t\t\t'order_item_type' => 'line_item',\n\t\t\t\t\t'function' => '',\n\t\t\t\t\t'name' => 'product_id',\n\t\t\t\t)\n\t\t\t),\n\t\t\t'where_meta' => array(\n\t\t\t\t'relation' => 'OR',\n\t\t\t\tarray(\n\t\t\t\t\t'type' => 'order_item_meta',\n\t\t\t\t\t'meta_key' => array( '_product_id', '_variation_id' ),\n\t\t\t\t\t'meta_value' => $this->product_ids,\n\t\t\t\t\t'operator' => 'IN',\n\t\t\t\t),\n\t\t\t),\n\t\t\t'group_by' => 'product_id, ' . $this->group_by_query,\n\t\t\t'order_by' => 'post_date ASC',\n\t\t\t'query_type' => 'get_results',\n\t\t\t'filter_range' => true,\n\t\t) );\n\n\t\t$this->report_data->total_sales = $this->format_decimal( array_sum( wp_list_pluck( $this->report_data->sales, 'order_item_amount' ) ) );\n\n\t\t// COGS\n\t\t$this->report_data->cogs = $this->get_order_report_data( array(\n\t\t\t'data' => array(\n\t\t\t\t'_wc_cog_item_total_cost' => array(\n\t\t\t\t\t'type' => 'order_item_meta',\n\t\t\t\t\t'order_item_type' => 'line_item',\n\t\t\t\t\t'function' => 'SUM',\n\t\t\t\t\t'name' => 'order_item_total_cost',\n\t\t\t\t),\n\t\t\t\t'post_date' => array(\n\t\t\t\t\t'type' => 'post_data',\n\t\t\t\t\t'function' => '',\n\t\t\t\t\t'name' => 'post_date',\n\t\t\t\t),\n\t\t\t\t'_product_id' => array(\n\t\t\t\t\t'type' => 'order_item_meta',\n\t\t\t\t\t'order_item_type' => 'line_item',\n\t\t\t\t\t'function' => '',\n\t\t\t\t\t'name' => 'product_id',\n\t\t\t\t),\n\t\t\t),\n\t\t\t'where_meta' => array(\n\t\t\t\t'relation' => 'OR',\n\t\t\t\tarray(\n\t\t\t\t\t\t'type' => 'order_item_meta',\n\t\t\t\t\t\t'meta_key' => array( '_product_id', '_variation_id' ),\n\t\t\t\t\t\t'meta_value' => $this->product_ids,\n\t\t\t\t\t\t'operator' => 'IN',\n\t\t\t\t),\n\t\t\t),\n\t\t\t'group_by' => 'product_id, ' . $this->group_by_query,\n\t\t\t'order_by' => 'post_date ASC',\n\t\t\t'query_type' => 'get_results',\n\t\t\t'filter_range' => true,\n\t\t) );\n\n\t\t$this->report_data->total_cogs = $this->format_decimal( array_sum( wp_list_pluck( $this->report_data->cogs, 'order_item_total_cost' ) ) );\n\n\t\t// profit\n\t\t$this->report_data->profits = $this->get_order_report_data( array(\n\t\t\t'data' => array(\n\t\t\t\t'_line_total' => array(\n\t\t\t\t\t'type' => 'order_item_meta',\n\t\t\t\t\t'order_item_type' => 'line_item',\n\t\t\t\t\t'function' => 'SUM',\n\t\t\t\t\t'name' => 'order_item_amount',\n\t\t\t\t),\n\t\t\t\t'_wc_cog_item_total_cost' => array(\n\t\t\t\t\t'type' => 'order_item_meta',\n\t\t\t\t\t'order_item_type' => 'line_item',\n\t\t\t\t\t'function' => 'SUM( order_item_meta__line_total.meta_value ) - SUM',\n\t\t\t\t\t'name' => 'order_item_profit',\n\t\t\t\t\t'join_type' => 'LEFT', // so refunds are included, which prior to 2.0.0 had no cost meta set\n\t\t\t\t),\n\t\t\t\t'post_date' => array(\n\t\t\t\t\t'type' => 'post_data',\n\t\t\t\t\t'function' => '',\n\t\t\t\t\t'name' => 'post_date',\n\t\t\t\t),\n\t\t\t\t'_product_id' => array(\n\t\t\t\t\t'type' => 'order_item_meta',\n\t\t\t\t\t'order_item_type' => 'line_item',\n\t\t\t\t\t'function' => '',\n\t\t\t\t\t'name' => 'product_id',\n\t\t\t\t),\n\t\t\t),\n\t\t\t'where_meta' => array(\n\t\t\t\t'relation' => 'OR',\n\t\t\t\tarray(\n\t\t\t\t\t'type' => 'order_item_meta',\n\t\t\t\t\t'meta_key' => array( '_product_id', '_variation_id' ),\n\t\t\t\t\t'meta_value' => $this->product_ids,\n\t\t\t\t\t'operator' => 'IN',\n\t\t\t\t),\n\t\t\t),\n\t\t\t'group_by' => 'product_id, ' . $this->group_by_query,\n\t\t\t'order_by' => 'post_date ASC',\n\t\t\t'query_type' => 'get_results',\n\t\t\t'filter_range' => true,\n\t\t) );\n\n\t\t$this->report_data->total_profit = $this->format_decimal( array_sum( wp_list_pluck( $this->report_data->profits, 'order_item_profit' ) ) );\n\n\t\t// item counts\n\t\t$this->report_data->item_counts = $this->get_order_report_data( array(\n\t\t\t'data' => array(\n\t\t\t\t'_qty' => array(\n\t\t\t\t\t'type' => 'order_item_meta',\n\t\t\t\t\t'order_item_type' => 'line_item',\n\t\t\t\t\t'function' => 'SUM',\n\t\t\t\t\t'name' => 'order_item_count',\n\t\t\t\t),\n\t\t\t\t'post_date' => array(\n\t\t\t\t\t'type' => 'post_data',\n\t\t\t\t\t'function' => '',\n\t\t\t\t\t'name' => 'post_date',\n\t\t\t\t),\n\t\t\t\t'_product_id' => array(\n\t\t\t\t\t'type' => 'order_item_meta',\n\t\t\t\t\t'order_item_type' => 'line_item',\n\t\t\t\t\t'function' => '',\n\t\t\t\t\t'name' => 'product_id',\n\t\t\t\t),\n\t\t\t),\n\t\t\t'where_meta' => array(\n\t\t\t\t'relation' => 'OR',\n\t\t\t\tarray(\n\t\t\t\t\t\t'type' => 'order_item_meta',\n\t\t\t\t\t\t'meta_key' => array( '_product_id', '_variation_id' ),\n\t\t\t\t\t\t'meta_value' => $this->product_ids,\n\t\t\t\t\t\t'operator' => 'IN',\n\t\t\t\t),\n\t\t\t),\n\t\t\t'group_by' => 'product_id,' . $this->group_by_query,\n\t\t\t'order_by' => 'post_date ASC',\n\t\t\t'query_type' => 'get_results',\n\t\t\t'order_types' => wc_get_order_types( 'order-count' ),\n\t\t\t'filter_range' => true,\n\t\t) );\n\n\t\t$this->report_data->total_items = absint( array_sum( wp_list_pluck( $this->report_data->item_counts, 'order_item_count' ) ) );\n\n\n\t\t/**\n\t\t * Profit by Product Report Data Filter.\n\t\t *\n\t\t * Allow actors to filter the data returned for the profit by product\n\t\t * report.\n\t\t *\n\t\t * @since 2.0.0\n\t\t * @param array $report_data\n\t\t * @param array $product_ids product IDs being reported on\n\t\t * @param \\WC_COG_Admin_Report_Profit_by_Product $this instance\n\t\t */\n\t\treturn apply_filters( 'wc_cost_of_goods_profit_by_product_report_data', $this->report_data, $this->product_ids, $this );\n\t}"
] | [
"0.62123954",
"0.60214823",
"0.5959424",
"0.5959424",
"0.57091194",
"0.5628866",
"0.55798537",
"0.555564",
"0.5537534",
"0.5520703",
"0.5515618",
"0.54503894",
"0.54503894",
"0.54205036",
"0.5397852",
"0.533216",
"0.53151554",
"0.52789956",
"0.5245866",
"0.5159401",
"0.5155281",
"0.514588",
"0.51294774",
"0.5128517",
"0.5124215",
"0.5106005",
"0.50867236",
"0.5084231",
"0.5084112",
"0.50360006",
"0.50170636",
"0.50170475",
"0.49972314",
"0.49907508",
"0.49844113",
"0.49566102",
"0.49498862",
"0.4944895",
"0.49413335",
"0.49307632",
"0.4919342",
"0.49128917",
"0.49102938",
"0.4906651",
"0.49017122",
"0.4901174",
"0.4891527",
"0.48875454",
"0.48793876",
"0.4870544",
"0.4867651",
"0.48640212",
"0.4862587",
"0.48498583",
"0.48498583",
"0.48498583",
"0.4849275",
"0.4834396",
"0.48279536",
"0.48279536",
"0.4817157",
"0.4807256",
"0.4805504",
"0.4805504",
"0.48049268",
"0.47949225",
"0.4792138",
"0.47906265",
"0.47880414",
"0.47846428",
"0.47826698",
"0.4770981",
"0.4770324",
"0.47658682",
"0.47654697",
"0.47636703",
"0.4763487",
"0.4757568",
"0.4752772",
"0.47456452",
"0.47445777",
"0.47419044",
"0.4737313",
"0.47361824",
"0.47346982",
"0.47341695",
"0.47336107",
"0.47310752",
"0.47290435",
"0.47272253",
"0.47161853",
"0.47150704",
"0.4712695",
"0.4712245",
"0.47111014",
"0.47108275",
"0.47104955",
"0.4702487",
"0.46882594",
"0.46868426"
] | 0.7600277 | 0 |
Get the [op_prime_id] column value. | public function getOpPrimeId()
{
return $this->op_prime_id;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getOpPrimeNumero()\n {\n\n return $this->op_prime_numero;\n }",
"public function getPrimaryKey()\n {\n return $this->getOpPrimeId();\n }",
"public function getOperationPrimeCurrencyId()\n {\n\n return $this->operation_prime_currency_id;\n }",
"public function getOpId()\n {\n\n return $this->op_id;\n }",
"public function getOpPrimeLibelle()\n {\n\n return $this->op_prime_libelle;\n }",
"public function getId()\n\t{\n\t\t$column = self::COL_ID;\n\t\t$v = $this->$column;\n\n\t\tif( $v !== null){\n\t\t\t$v = (int)$v;\n\t\t}\n\n\t\treturn $v;\n\t}",
"public function getId()\n\t{\n\t\t$column = self::COL_ID;\n\t\t$v = $this->$column;\n\n\t\tif( $v !== null){\n\t\t\t$v = (int)$v;\n\t\t}\n\n\t\treturn $v;\n\t}",
"public function setOpPrimeId($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_numeric($v)) {\n $v = (int) $v;\n }\n }\n if ($this->op_prime_id !== $v) {\n $this->op_prime_id = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OP_PRIME_ID;\n }\n\n\n return $this;\n }",
"public function getPkValue(){\n $pk = static::getPk();\n return (int) $this->$pk;\n }",
"public function let_id_pg(){\n\t\t\treturn (int)$this->ipg_id;\n\t\t}",
"public function getOperationPrimeRRewardExpeditionModeId()\n {\n\n return $this->operation_prime_r_reward_expedition_mode_id;\n }",
"public function getId() : int\n {\n return $this->getValue('nb_icontact_prospect_id');\n }",
"public function getPrimaryKey()\n {\n return $this->getProdId();\n }",
"public function getOperationId()\n {\n return $this->operation_id;\n }",
"public function getId() {\r\n\t\t\treturn $this->columns[ $this->index ];\r\n\t\t}",
"public function get_id()\n {\n $pkey = static::tinydb_get_table_info()->primary_key;\n if (is_array($pkey)) {\n $val = array();\n foreach ($pkey as $field) {\n $val[$field] = \\TinyDb\\Internal\\SqlDataAdapters::decode(static::tinydb_get_table_info()->field_info($field)->type,\n $this->tinydb_rowdata[$field]);\n }\n } else {\n $val = \\TinyDb\\Internal\\SqlDataAdapters::decode(static::tinydb_get_table_info()->field_info($pkey)->type,\n $this->tinydb_rowdata[$pkey]);\n }\n\n\n return $val;\n }",
"public function getPrimaryKey()\n\t{\n\t\treturn $this->getCoNumInventario();\n\t}",
"public function getID() {\n return array_key_exists($this->_key_field, $this->_data) ? $this->_data[$this->_key_field] : null;\n }",
"public function getModuloId() {\n return $this->modulo_id;\n }",
"public function getPId();",
"public function getPcIdPl() {\n\t\tif ((bool) $this->_result) {\n\t\t\tif (array_key_exists(1, $this->_result)) return (int) $this->_result[1];\n\t\t\telse parent::throwGetColException('Not set ProjectsListingsModel::getPcIdPl', __LINE__, __FILE__);\n\t\t}\n\t\telse return parent::throwNoResException('No result From ProjectsListingsModel::getPcIdPl', __LINE__, __FILE__);\n\t}",
"public function getColumnId(): string\n {\n return $this->getColumn('id', 'id');\n }",
"public function getOID()\n {\n return $this->oID;\n }",
"protected function getCurrentId()\n {\n return (array_key_exists($this->idfieldName(), $this->data)) ? $this->data[$this->idfieldName()] : NULL;\n }",
"public function setOpId($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_numeric($v)) {\n $v = (int) $v;\n }\n }\n if ($this->op_id !== $v) {\n $this->op_id = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OP_ID;\n }\n\n if ($this->aOperations !== null && $this->aOperations->getOpId() !== $v) {\n $this->aOperations = null;\n }\n\n\n return $this;\n }",
"public function getPrimaryKey()\n {\n $cols = $this->info('cols');\n return $cols[0];\n }",
"public function id()\n {\n return $this->read($this->metadata['pk']->name);\n }",
"public function getIdentityField()\n {\n return $this->gateway->getPrimaryCol();\n }",
"public function obtenerIDPrimerPagoElectronico(){\n $criteria = new CDbCriteria;\n $criteria->condition = 'id_pedido = '.$this->id_pedido;\n $registrosCarro = PagosElectronicos::model()->findAll($criteria);\n\n if (sizeof($registrosCarro) > 0)\n return $registrosCarro[0]->id;\n return 0;\n }",
"protected function _getId()\r\n\t{\r\n\t\t$select\t\t= $this->_db->select()->from('Cron_Jobs', array('id'))->where('name = ?', $this->_name);\r\n\t\tlist($id)\t= $this->_db->fetchCol($select);\r\n\t\t\r\n\t\treturn $id;\r\n\t}",
"public function getPrimaryKey()\n\t{\n\t\treturn $this->getCoParticipante();\n\t}",
"public function getIdentifierPt() {\n\t\tif ((bool) $this->_result) {\n\t\t\tif (array_key_exists(2, $this->_result)) return (string) $this->_result[2];\n\t\t\telse parent::throwGetColException('Not set PollTemplatesModel::getIdentifierPt', __LINE__, __FILE__);\n\t\t}\n\t\telse return parent::throwNoResException('No result From PollTemplatesModel::getIdentifierPt', __LINE__, __FILE__);\n\t}",
"public function getMaxID(){\n\t\t try{\n\t\t\t$conn = DBConnection::GetConnection();\t\n\t\t\t$queryForGetMaxId=\"SELECT MAX(product_id) AS max_value FROM product\";\n\t\t\t$max_result=$conn->prepare($queryForGetMaxId);\n\t\t\t$max_result->execute();\n\t\t\t$maxId = $max_result->fetch(PDO::FETCH_ASSOC); \n\t\t\t$pId=$maxId['max_value']; \n\t\t\t$incrementPid=$pId+1;\n\t\t\treturn $incrementPid;\n\t\t}catch(PDOException $e){\n\t\t\techo 'Fail to connect';\n\t\t\techo $e->getMessage();\n\t\t}\t\n }",
"public function getPrimaryKey()\n {\n return $this->getPothnbr();\n }",
"public function getPrimaryKey() {\n return $this->_data->getDeepValue('indexes/primary/columns/0', null);\n }",
"public function getValueId()\n {\n return $this->valueId;\n }",
"public function getIdColumn()\n {\n return $this->idColumn;\n }",
"public function id()\n {\n return $this->identity['jobId'];\n }",
"public function GetID_PRIJAVA()\n\t\t{\n\t\t\treturn $this->ID_PRIJAVA;\n\t\t}",
"public function getPrimaryKey() {\n\t\tif ((bool) $this->_result) {\n\t\t\tif (isset($this->_result[0])) return (int) $this->_result[0];\n\t\t\telse parent::throwGetColException('ProjectsListingsModel::getPrimaryKey', __LINE__, __FILE__);\n\t\t}\n\t\telse return parent::throwNoResException('ProjectsListingsModel::getPrimaryKey', __LINE__, __FILE__);\n\t}",
"protected function get__id()\n\t{\n\t\t$idColumn = static::$databaseColumnId;\n\t\treturn $this->$idColumn;\n\t}",
"public function getCompanyId()\n\t{\n\t\t$column = self::COL_COMPANY_ID;\n\t\t$v = $this->$column;\n\n\t\tif( $v !== null){\n\t\t\t$v = (int)$v;\n\t\t}\n\n\t\treturn $v;\n\t}",
"function getProposalId(){\n\t\t$articleDao = DAORegistry::getDAO('ArticleDAO');\n\t\t$article =& $articleDao->getArticle($this->getArticleId());\n\t\treturn $article->getLocalizedProposalId();\n\t}",
"public function getPrimaryKey() {\n\t\tif ((bool) $this->_result) {\n\t\t\tif (isset($this->_result[0])) return (int) $this->_result[0];\n\t\t\telse parent::throwGetColException('DiscussCategoriesModel::getPrimaryKey', __LINE__, __FILE__);\n\t\t}\n\t\telse return parent::throwNoResException('DiscussCategoriesModel::getPrimaryKey', __LINE__, __FILE__);\n\t}",
"public function getIdPt() {\n\t\tif ((bool) $this->_result) {\n\t\t\tif (array_key_exists(0, $this->_result)) return (string) $this->_result[0];\n\t\t\telse parent::throwGetColException('Not set PollTemplatesModel::getIdPt', __LINE__, __FILE__);\n\t\t}\n\t\telse return parent::throwNoResException('No result From PollTemplatesModel::getIdPt', __LINE__, __FILE__);\n\t}",
"public function get_column_id()\n\t{\n\t\treturn $this->table.'.id';\n\t}",
"public function idPenjualan()\n {\n $get_id = $this->penjualan->get_idmax();\n\n return $get_id; //TRX00001\n }",
"public function getTablePrimaryKey()\n {\n return 'p.id';\n }",
"public function getPrimaryKey() {\n\t\tif ((bool) $this->_result) {\n\t\t\tif (isset($this->_result[0])) return (int) $this->_result[0];\n\t\t\telse parent::throwGetColException('PollTemplatesModel::getPrimaryKey', __LINE__, __FILE__);\n\t\t}\n\t\telse return parent::throwNoResException('PollTemplatesModel::getPrimaryKey', __LINE__, __FILE__);\n\t}",
"public function getIdNum()\n {\n return $this->idNum;\n }",
"function getId() {\n\t\treturn $this->getData('sectionDecisionId');\r\n\t}",
"public function id()\n\t{\n\t\treturn $this->get($this->meta()->primary_key);\n\t}",
"private function obtenerNuevoID()\n\t{\n\t\t$query = $this->db->select('MAX(CPRODUCTOFS) as id')\n\t\t\t->from('MPRODUCTOCLIENTE')\n\t\t\t->get();\n\t\tif (!$query) {\n\t\t\tthrow new Exception('Error al encontrar el Código de producto');\n\t\t}\n\t\treturn intval($query->row()->id) + 1;\n\t}",
"public function poslednjiId() {\n $this->db->select('max(jelo.IdJelo) as poslednjiId');\n $this->db->from('jelo');\n\n return $this->db->get()->row();\n }",
"public function getIdProduto()\n\t\t{\n\t\t\treturn $this -> idproduto;\n\t\t}",
"private function getProductIdentifierField()\n {\n if (!$this->productEntityIdentifierField) {\n $this->productEntityIdentifierField = $this->getMetadataPool()\n ->getMetadata(\\Magento\\Catalog\\Api\\Data\\ProductInterface::class)\n ->getIdentifierField();\n }\n return $this->productEntityIdentifierField;\n }",
"public function PK() {\n $returnvalue = '';\n $returnvalue .= $this->getDeterminationID();\n return $returnvalue;\n }",
"public function getId()\n {\n return $this->product->{$this->params['productFieldId']};\n }",
"public function getPrimaryKey()\n {\n return $this->getIDCommande();\n }",
"function get_primary_key_column()\n {\n return $this->object->_primary_key_column;\n }",
"public function getIdPromocion()\n {\n return $this->id_promocion;\n }",
"public function getId()\n {\n return $this->product->{$this->params['productFieldId']};\n }",
"public function get_primary_column()\n {\n }",
"public function getProductId()\n {\n $value = $this->get(self::product_id);\n return $value === null ? (integer)$value : $value;\n }",
"public function getPk()\n {\n return $this->_pk;\n }",
"public function getProdPriceId()\n {\n return $this->prod_price_id;\n }",
"function getPrimKey($fk1, $fk2, $pkCol, $fk1Col, $fk2Col, $table)\n\t{\n\t\t//intialize variable\n\t\t$pkId\t= 0;\n\t\t\n\t\t//statement\n\t\t$sql\t= \"SELECT \".$pkCol.\" FROM \".$table. \n\t\t\t\t \" WHERE \".$fk1Col.\"='\".$fk1.\"' \n\t\t\t\t AND \".$fk2Col.\"='\".$fk2.\"'\";\n\t\t\n\t\t$query\t= mysql_query($sql);\n\t\t\n\t\t\n\t\tif(mysql_num_rows($query) > 0)\n\t\t{\t\n\t\t\twhile($result = mysql_fetch_object($query))\n\t\t\t{\n\t\t\t\t$pkId\t= $result->$pkCol;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//return\n\t\treturn $pkId;\n\t\t\n\t}",
"public function getProgramID () {\n\t$preValue = $this->preGetValue(\"programID\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->getClass()->getFieldDefinition(\"programID\")->preGetData($this);\n\treturn $data;\n}",
"public function getId() {\n\t\treturn $this->assignment->getId();\n\t}",
"function get_primary_key_column()\n {\n return $this->_primary_key_column;\n }",
"private function getPrimaryKey()\n {\n $result = database()->fetchResult('SHOW KEYS FROM ' . $this->table . ' WHERE Key_name = \"PRIMARY\"');\n\n return ($result['Column_name'] ?? null);\n }",
"public function getStatusId()\n {\n return $this->getValue('nb_icontact_prospect_status_id');\n }",
"public function getPK() {\n\t\treturn isset($this->data[$this->caret]['curr'][$this->pk]) ? $this->data[$this->caret]['curr'][$this->pk] : false;\n\t}",
"function get_id() {\n return $this->get_mapped_property('id');\n }",
"public function getPrimaryKey()\n {\n return $this->getFeatureCvtermId();\n }",
"function getId_Producto(){\r\n\t\treturn $this->nId_Producto;\r\n\t}",
"function IdEvaluacion()\n {\n \t$evaluacion = Evaluacion::select('id')->where('activo',1)->first();\n return $evaluacion->id;\n }",
"public function get_id() {\r\n\t\treturn ($this->id);\r\n\t}",
"public function get_id() {\r\n\t\treturn ($this->id);\r\n\t}",
"public function getPrimaryKey() {\n\t\tif ((bool) $this->_result) {\n\t\t\tif (isset($this->_result[0])) return (int) $this->_result[0];\n\t\t\telse parent::throwGetColException('CampaignDefinitionsModel::getPrimaryKey', __LINE__, __FILE__);\n\t\t}\n\t\telse return parent::throwNoResException('CampaignDefinitionsModel::getPrimaryKey', __LINE__, __FILE__);\n\t}",
"function getId()\n\t{\n\t\t$id=(int)$_GET['prodid'];\n\t\tif(is_int($id))\n\t\t{\n\t\t\treturn $id;\n\t\t}\n\t}",
"public function getIdPl() {\n\t\tif ((bool) $this->_result) {\n\t\t\tif (array_key_exists(0, $this->_result)) return (int) $this->_result[0];\n\t\t\telse parent::throwGetColException('Not set ProjectsListingsModel::getIdPl', __LINE__, __FILE__);\n\t\t}\n\t\telse return parent::throwNoResException('No result From ProjectsListingsModel::getIdPl', __LINE__, __FILE__);\n\t}",
"function get_id() {\n\t\treturn $this->get_data( 'id' );\n\t}",
"function getid_exp()\n { return $this->id_exp;}",
"public function get_primary_row(){\r\n $result = $this->db->query(\"SHOW KEYS FROM \". $this->db->formatTableName($this->table). \"\r\n WHERE Key_name = %s\"\r\n , \"PRIMARY\");\r\n $pk = \"\";\r\n foreach ($result as $res){\r\n $pk = $res[\"Column_name\"];\r\n }\r\n return $pk;\r\n }",
"protected function _getPrimaryId()\n {\n return $this->_getParam($this->_getPrimaryIdKey());\n }",
"public function getProduitid()\n {\n return $this->produitid;\n }",
"function getIdEquipe() {\r\n return $this->IdEquipe;\r\n }",
"public function getIncrementId(){\n return $this->_getData(self::INCREMENT_ID);\n }",
"function get_pri_par_id($alt_id){\n\t\t$this->db->where('parentAlt_uacc_id',$alt_id);\n\t\t$this->db->select('parentPrimary_uacc_id');\n\t\t$qres=$this->db->get(TWELL_FAM_PROF_TBL);\n\t\tif ($qres->num_rows()==1) {\n\t\t\t$row=$qres->row();\n\t\t\t//$this->firephp->log(\"Pri id= \".$row->parentPrimary_uacc_id);\n\t\t\treturn ($row->parentPrimary_uacc_id);\n\t\t}else{\n\t\t\t$this->firephp->log(\"Could not retrieve pri_parent user id\");\n\t\t\treturn 0;\n\t\t}\n\t}",
"public function getOid()\n {\n return $this->oid;\n }",
"public function GetId()\n\t{\n\t\t$datas = $this->db->query('select DISTINCT id_komponenbiaya from masterkomponenbiaya order by id_komponenbiaya asc');\n\t\treturn $datas;\n\t}",
"public function getId() {\n\t\treturn $this->i_id;\n\t}",
"public function getId()\n {\n // TODO: Implement getId() method.\n return $this->nip;\n }",
"public function getPrimaryKeyColumn() : string\n {\n return $this->primaryKey;\n }",
"public function key() {\n\t\t$this->checkResultSet();\n\n\t\tif (! is_null($this->keyColumn)) {\n\t\t\t$row = $this->fetchRowAssoc($this->index, true);\n\t\t\treturn $row[$this->keyColumn];\n\t\t}\n\n\t\treturn $this->index;\n\t}",
"public function sel_next_prog_id()\n\t{\n\t\t$prog_id = null;\n\t\ttry{\n\t\t\t$t_prog = new Model_T_Prog($this->db, $this->client_id);\n\t\t\t$prog_id = $t_prog->sel_next_id();\n\t\t} catch(Exception $e){\n\t\t\tKohana::$log->add(Log::ERROR, Kohana_Exception::text($e))->write();\n\t\t\t$prog_id = null;\n\t\t}\n\t\treturn $prog_id;\n\t}",
"public function getCmdId()\n {\n return $this->get(self::CMD_ID);\n }",
"public function generate_archieve_comparison_id() {\n $result = $this->db2->query(\"SELECT archieve_id FROM `comparison_summary_history_all` ORDER BY archieve_id DESC LIMIT 0,1\");\n if ($result->num_rows() > 0) {\n $data = $result->row();\n $archieve_id = $data->archieve_id;\n//generate user_id\n $archieve_id = str_pad( ++$archieve_id, 5, '0', STR_PAD_LEFT);\n return $archieve_id;\n } else {\n $archieve_id = 'archieve_1001';\n return $archieve_id;\n }\n }",
"public function getPrimaryKeyField()\n\t{\n\t\treturn $this->primaryKey;\n\t}"
] | [
"0.72192276",
"0.69231695",
"0.6648075",
"0.6617529",
"0.62691385",
"0.5923606",
"0.5923606",
"0.5825936",
"0.5816718",
"0.5714843",
"0.57011503",
"0.5628362",
"0.5580933",
"0.55354625",
"0.5518492",
"0.55079764",
"0.54923713",
"0.5469512",
"0.54591674",
"0.54401",
"0.54069936",
"0.5394941",
"0.5371505",
"0.5365645",
"0.536431",
"0.5363704",
"0.5340984",
"0.5326854",
"0.531649",
"0.53157884",
"0.5303481",
"0.52994484",
"0.52975",
"0.5297447",
"0.5293674",
"0.5286122",
"0.5282709",
"0.5276859",
"0.52661586",
"0.5256797",
"0.52544624",
"0.52438396",
"0.52296984",
"0.5228938",
"0.5214217",
"0.52048695",
"0.5197586",
"0.51893556",
"0.5183557",
"0.5181004",
"0.51768094",
"0.51578814",
"0.5157865",
"0.51575327",
"0.5157324",
"0.5156751",
"0.51455337",
"0.51440877",
"0.5127031",
"0.5126937",
"0.51268095",
"0.5113026",
"0.51112413",
"0.5110831",
"0.51051337",
"0.5104246",
"0.51031977",
"0.5102523",
"0.5100446",
"0.5099169",
"0.5098587",
"0.50979495",
"0.5094745",
"0.50860924",
"0.50763327",
"0.5071447",
"0.50646424",
"0.5063201",
"0.5063201",
"0.5060268",
"0.5056789",
"0.50533944",
"0.5050586",
"0.5043906",
"0.50428706",
"0.50393355",
"0.5034106",
"0.5030498",
"0.5025813",
"0.50257033",
"0.5023843",
"0.50219876",
"0.5018977",
"0.5016627",
"0.50146824",
"0.50132406",
"0.5011214",
"0.5007765",
"0.5006353",
"0.5001607"
] | 0.82185084 | 0 |
Get the [op_id] column value. | public function getOpId()
{
return $this->op_id;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getOperationId()\n {\n return $this->operation_id;\n }",
"public function getId()\n\t{\n\t\t$column = self::COL_ID;\n\t\t$v = $this->$column;\n\n\t\tif( $v !== null){\n\t\t\t$v = (int)$v;\n\t\t}\n\n\t\treturn $v;\n\t}",
"public function getId()\n\t{\n\t\t$column = self::COL_ID;\n\t\t$v = $this->$column;\n\n\t\tif( $v !== null){\n\t\t\t$v = (int)$v;\n\t\t}\n\n\t\treturn $v;\n\t}",
"public function getId() {\r\n\t\t\treturn $this->columns[ $this->index ];\r\n\t\t}",
"public function getColumnId(): string\n {\n return $this->getColumn('id', 'id');\n }",
"public function getOperationId(): ?string;",
"public function getOpPrimeId()\n {\n\n return $this->op_prime_id;\n }",
"public function getID() {\n return array_key_exists($this->_key_field, $this->_data) ? $this->_data[$this->_key_field] : null;\n }",
"public function getOID()\n {\n return $this->oID;\n }",
"public function getOp()\n {\n return $this->Op;\n }",
"public function getOp()\n {\n return $this->Op;\n }",
"public function getId()\n {\n return $this->getData(self::INSTRUCTION_ID);\n }",
"public function getCmdId()\n {\n return $this->get(self::CMD_ID);\n }",
"public function id()\n {\n return $this->read($this->metadata['pk']->name);\n }",
"public function getIdColumn()\n {\n return $this->idColumn;\n }",
"function get_id() {\n\t\treturn $this->get_data( 'id' );\n\t}",
"public function getId()\n {\n $rtn = $this->data['id'];\n\n return $rtn;\n }",
"public function getPrimaryKey()\n {\n return $this->getOpPrimeId();\n }",
"public function getId() : string\n {\n $rtn = $this->data['id'];\n\n return $rtn;\n }",
"function get_id() {\n return $this->get_mapped_property('id');\n }",
"public function getId()\n {\n $value = $this->get(self::ID);\n return $value === null ? (string)$value : $value;\n }",
"protected function getCurrentId()\n {\n return (array_key_exists($this->idfieldName(), $this->data)) ? $this->data[$this->idfieldName()] : NULL;\n }",
"public function getIdentityField()\n {\n return $this->gateway->getPrimaryCol();\n }",
"function getId() {\n\t\treturn $this->getData('id');\n\t}",
"function getId() {\n\t\treturn $this->getData('id');\n\t}",
"public function getId()\n {\n return $this->getValue('id');\n }",
"public function id()\n\t{\n\t\treturn $this->get($this->meta()->primary_key);\n\t}",
"public function get_column_id()\n\t{\n\t\treturn $this->table.'.id';\n\t}",
"public function getValueId()\n {\n return $this->valueId;\n }",
"public function getID() {\r\n\r\n\t\tself::errorReset();\r\n\t\t$this->reload();\r\n\t\treturn $this->orderId;\r\n\t}",
"protected function GetId() {\n\n $Id= $this->GetOption('Id');\n if (!$Id) {\n $Id= $this->GetName(); // let id be same as name\n $Id= str_replace(array('[',']'),'_', $Id); // id cannot contain '[' and ']'\n $Id= trim($Id, '_'); // id cannot start with '_'\n }\n return $Id;\n }",
"public function get_id() {\r\n\t\treturn ($this->id);\r\n\t}",
"public function get_id() {\r\n\t\treturn ($this->id);\r\n\t}",
"protected function OrderID() {\n\treturn $this->Value('ID_Order');\n }",
"public function getId() {\r\n\t\treturn $this->data['id'];\r\n\t}",
"function getID() {\n\t\treturn $this->data_array['id'];\n\t}",
"public function get_id()\n {\n $pkey = static::tinydb_get_table_info()->primary_key;\n if (is_array($pkey)) {\n $val = array();\n foreach ($pkey as $field) {\n $val[$field] = \\TinyDb\\Internal\\SqlDataAdapters::decode(static::tinydb_get_table_info()->field_info($field)->type,\n $this->tinydb_rowdata[$field]);\n }\n } else {\n $val = \\TinyDb\\Internal\\SqlDataAdapters::decode(static::tinydb_get_table_info()->field_info($pkey)->type,\n $this->tinydb_rowdata[$pkey]);\n }\n\n\n return $val;\n }",
"public function getId() {\n\t\treturn $this -> data['id'];\n\t}",
"public function get_order_id() {\n $order_id = $this->order_id;\n return !!$order_id ? $order_id : 0;\n }",
"protected function _getId()\r\n\t{\r\n\t\t$select\t\t= $this->_db->select()->from('Cron_Jobs', array('id'))->where('name = ?', $this->_name);\r\n\t\tlist($id)\t= $this->_db->fetchCol($select);\r\n\t\t\r\n\t\treturn $id;\r\n\t}",
"public function getId() {\n\t\treturn $this->i_id;\n\t}",
"public function getId()\n {\n return $this->source['order_item_id'];\n }",
"public function getId()\n {\n return $this->product->{$this->params['productFieldId']};\n }",
"public function getId() {\n return isset($this->query['id']) ? $this->query['id'] : null;\n }",
"public function getId()\n {\n return $this->product->{$this->params['productFieldId']};\n }",
"public function getId() : int\n {\n return $this->getValue('nb_icontact_prospect_id');\n }",
"public function getId()\n {\n return isset($this->id) ? $this->id : '';\n }",
"public function getId()\n {\n return isset($this->id) ? $this->id : '';\n }",
"public function getInvocationId()\n {\n $dsServiceNode = $this->ldap->getNode($this->getRootDse()->getDsServiceName());\n $invocationId = bin2hex($dsServiceNode->getAttribute('invocationId', 0));\n\n return $invocationId;\n }",
"public function getId()\n {\n $value = $this->get(self::ID);\n return $value === null ? (integer)$value : $value;\n }",
"public function getId()\n {\n $value = $this->get(self::ID);\n return $value === null ? (integer)$value : $value;\n }",
"protected function GetOrderID() {\n\treturn $this->Value('ID_Order');\n }",
"protected static function id(): mixed\n\t{\n\t\treturn self::$query->id;\n\t}",
"protected static function id(): mixed\n\t{\n\t\treturn self::$query->id;\n\t}",
"public function getOrderIncrementId(){\n return $this->_getData(self::ORDER_INCREMENT_ID);\n }",
"public function identifier()\n {\n return $this->id;\n }",
"public function getOid()\n {\n return $this->oid;\n }",
"public function getId()\n {\n return $this->elasticaResult->getId();\n }",
"function getEventID() \n {\n return $this->getValueByFieldName('event_id');\n }",
"public function access($op, $id = NULL) {\n return entity_access($op, $this->entityType, isset($id) ? $this->wrapper($id)->value() : NULL);\n }",
"public function getid()\n\t{\n\t\treturn $this->Id;\n\t}",
"function getID() \n {\n return $this->getValueByFieldName( 'statevar_id' );\n }",
"public function getOrderid() {\n\t\treturn $this->orderid;\n\t}",
"public function getId()\n {\n return $this->{self::getPrimaryKey()};\n }",
"public function getId()\n {\n return isset($this->attrs['id']) ? $this->attrs['id'] : 0;\n }",
"public function GetId()\n {\n return $this->GetAttribute(self::ATTR_ID);\n }",
"public function getid()\n {\n return $this->Id;\n }",
"protected function get__id()\n\t{\n\t\t$idColumn = static::$databaseColumnId;\n\t\treturn $this->$idColumn;\n\t}",
"public function id() : ?string\n {\n return (isset($this->data['id'])) ? $this->data['id'] : null;\n }",
"public function getPrimaryKey()\n {\n $cols = $this->info('cols');\n return $cols[0];\n }",
"public function getid() {\n\t\treturn $this->id;\n\t}",
"public function getIdField()\n {\n return $this->idField;\n }",
"public function getId()\n {\n return $this->__get(\"id\");\n }",
"public function getId()\n {\n return $this->__get(\"id\");\n }",
"public function getId()\n {\n return $this->__get(\"id\");\n }",
"public function get_id () {\r\n\t\treturn $this->id;\r\n\t}",
"public function getId() {\n\t\treturn $this->getData(static::$_primaryKey);\n\t}",
"public function id()\n {\n return $this->identity['modelId'];\n }",
"public function getId()\n\t{\n\t\treturn (int)$this->id;\n\t}",
"public function getId()\n\t{\n\t\treturn (int)$this->id;\n\t}",
"function getId() {\n\t\treturn $this->getData('sectionDecisionId');\r\n\t}",
"function get_id()\n {\n return $this->get_default_property(self :: PROPERTY_ID);\n }",
"function obo_id(){\n\t\t$obo_id = str_replace(' ','', strtoupper(trim($this->col_data)));\n\t\t#fall through if blank\n\t\tif($obo_id != ''){\n\t\t\t# fall through to check if it looks right already\n\t\t\tif(!preg_match('/^'.$this->ontologyName.':\\d+$/',$obo_id)){\n\t\t\t\t$new_obo_id = self::correct_obo_id($obo_id, $this->ontologyName);\n\t\t\t\tif ($new_obo_id != $obo_id){\n\t\t\t\t\t$obo_id = $new_obo_id;\n\t\t\t\t\t$this->error =\n\t\t\t\t\t\t\"<div style='color:green'>Guessing that when you wrote $this->col_data you meant...</div>\";\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(trim($obo_id) != '' && $this->term->name == ''){\n\t\t\t\t$obo_id = $this->col_data;\n\t\t\t\t$this->error =\n\t\t\t\t\t\"<div style='color:red'>$this->col_data doesn't look like a $this->ontologyName id</div>\";\n\t\t\t}\n\t\t}\n\t\treturn TableEditView::form_field($this->col_index, $obo_id, 40,'text');\n\t\t\n\t}",
"public function getPkValue(){\n $pk = static::getPk();\n return (int) $this->$pk;\n }",
"public function getId()\n {\n return $this->getData(self::ID);\n }",
"function get_id()\r\n {\r\n return $this->get_default_property(self :: PROPERTY_ID);\r\n }",
"public function getOpenLibraryId()\n\t\t{\n\t\t\tif(is_null($this->data))\n\t\t\t\treturn null;\n\t\t\t\n\t\t\treturn $this->data['id'];\n\t\t}",
"public function getIDField(): string {\n\t\treturn $this->idField;\n\t}",
"public function getIdNum()\n {\n return $this->idNum;\n }",
"public function getId()\n {\n return isset($this->id) ? $this->id : 0;\n }",
"public function getId()\n {\n return isset($this->id) ? $this->id : 0;\n }",
"public function getId()\n {\n return isset($this->id) ? $this->id : 0;\n }",
"public function getid()\n {\n return $this->id;\n }",
"public function getid()\n {\n return $this->id;\n }",
"public function getIdAttribute()\n {\n return $this->attributes[$this->getKeyName()];\n }",
"public function get_id() {\n\t\treturn $this->id;\n\t}",
"public function get_id() {\n\t\treturn $this->id;\n\t}",
"public function get_id() {\n\t\treturn $this->id;\n\t}",
"public function get_id() {\n\t\treturn $this->id;\n\t}",
"public function getId()\n {\n return $this->getAttribute('id');\n }"
] | [
"0.6854243",
"0.64414126",
"0.64414126",
"0.63226193",
"0.62305635",
"0.60161823",
"0.5986363",
"0.59794766",
"0.597422",
"0.59416896",
"0.59416896",
"0.59350705",
"0.5930112",
"0.5891276",
"0.5881656",
"0.58718306",
"0.58709615",
"0.58382976",
"0.58303183",
"0.58217275",
"0.5810168",
"0.5802652",
"0.5791738",
"0.57773507",
"0.57773507",
"0.5764119",
"0.5756042",
"0.5739959",
"0.5729678",
"0.5726569",
"0.57213014",
"0.57118875",
"0.57118875",
"0.5696704",
"0.5691234",
"0.5691031",
"0.56830573",
"0.5674925",
"0.56730866",
"0.567033",
"0.5657751",
"0.5656119",
"0.56556445",
"0.5654463",
"0.5647738",
"0.5638883",
"0.56378865",
"0.56378865",
"0.5637262",
"0.56267506",
"0.56267506",
"0.5626258",
"0.5625281",
"0.5625281",
"0.5621152",
"0.5615834",
"0.561504",
"0.560357",
"0.56034017",
"0.56012994",
"0.5601013",
"0.5595255",
"0.558537",
"0.5581617",
"0.557862",
"0.5572071",
"0.5570046",
"0.5564403",
"0.55623066",
"0.5559385",
"0.5556805",
"0.55564666",
"0.55404246",
"0.55404246",
"0.55404246",
"0.55271626",
"0.5526185",
"0.55227464",
"0.5522143",
"0.5522143",
"0.55179095",
"0.5517386",
"0.5515285",
"0.5513825",
"0.5513354",
"0.5505551",
"0.55048615",
"0.54923177",
"0.54911023",
"0.5490427",
"0.5490427",
"0.5490427",
"0.548264",
"0.548264",
"0.54724175",
"0.5469704",
"0.5469704",
"0.5469704",
"0.5469704",
"0.54690677"
] | 0.80394846 | 0 |
Get the [op_prime_libelle] column value. | public function getOpPrimeLibelle()
{
return $this->op_prime_libelle;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getLibelle()\n {\n return $this->libelle;\n }",
"public function getLibelle()\n {\n return $this->libelle;\n }",
"public function getLibelle()\n {\n return $this->libelle;\n }",
"public function getOpPrimeNumero()\n {\n\n return $this->op_prime_numero;\n }",
"public function getLibelleEcr() {\n return $this->libelleEcr;\n }",
"function getLibelOperation($type_op) { //Renvoie le libellé dun operation\n\tglobal $dbHandler,$global_id_agence;\n\t$db = $dbHandler->openConnection();\n\t\n\t$sql=\"SELECT traduction from ad_cpt_ope a, ad_traductions b where a.libel_ope = b.id_str and categorie_ope in (2,3) and type_operation = $type_op ;\";\n\t\n\t$result = $db->query($sql);\n\tif (DB :: isError($result)) {\n\t\t$dbHandler->closeConnection(false);\n\t\tsignalErreur(__FILE__, __LINE__, __FUNCTION__, $result->getMessage());\n\t}\n\t$dbHandler->closeConnection(true);\n\t$retour = $result->fetchrow();\n\treturn $retour[0];\n}",
"public function setOpPrimeLibelle($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->op_prime_libelle !== $v) {\n $this->op_prime_libelle = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OP_PRIME_LIBELLE;\n }\n\n\n return $this;\n }",
"public function getOpPrimeId()\n {\n\n return $this->op_prime_id;\n }",
"public function getCodeLibelle(): ?string {\n return $this->codeLibelle;\n }",
"public function getLibelleSeance(): ?string {\n return $this->libelleSeance;\n }",
"public function getLibelle();",
"public function getOPFind($co_pcp_apontamento){\r\n\t\t$query = \"SELECT CONCAT(ORDEM_PRODUCAO.CO_NUM,ORDEM_PRODUCAO.CO_ITEM,ORDEM_PRODUCAO.CO_SEQUENCIA) NU_OP \r\n\t\t\t\t\tFROM TB_PCP_APONTAMENTO APONTAMENTO \r\n\t\t\t\t\tINNER JOIN TB_PCP_OP ORDEM_PRODUCAO \r\n\t\t\t\t\t\tON APONTAMENTO.CO_PCP_OP = ORDEM_PRODUCAO.CO_PCP_OP WHERE CO_PCP_APONTAMENTO = \".$co_pcp_apontamento;\r\n\t\t$result = mysql_query($query, $this->conexaoERP);\r\n\t\t$row = mysql_fetch_array($result);\r\n\t\treturn $row;\r\n\t\t\r\n\t}",
"public function getComunaOrigen()\n {\n return $this->comunaOrigen;\n }",
"function getLibelOperationTransaction($type_op) { //Renvoie le libellé dun operation\n global $dbHandler,$global_id_agence;\n $db = $dbHandler->openConnection();\n\n $sql=\"SELECT traduction from ad_cpt_ope a, ad_traductions b where a.libel_ope = b.id_str and type_operation = $type_op ;\";\n\n $result = $db->query($sql);\n if (DB :: isError($result)) {\n $dbHandler->closeConnection(false);\n signalErreur(__FILE__, __LINE__, __FUNCTION__, $result->getMessage());\n }\n $dbHandler->closeConnection(true);\n $retour = $result->fetchrow();\n return $retour[0];\n}",
"function getLibellEcriture($id_libel_ecriture) { //Renvoie le libellé dun ecriture/op divers\n\tglobal $dbHandler,$global_id_agence;\n\t$db = $dbHandler->openConnection();\n\n\t$sql=\"SELECT traduction from ad_traductions where id_str = $id_libel_ecriture ;\";\n\t\n\t$result = $db->query($sql);\n\tif (DB :: isError($result)) {\n\t\t$dbHandler->closeConnection(false);\n\t\tsignalErreur(__FILE__, __LINE__, __FUNCTION__, $result->getMessage());\n\t}\n\t$dbHandler->closeConnection(true);\n\t$retour = $result->fetchrow();\n\treturn $retour[0];\n}",
"public function getLibelleMotCle()\n {\n return $this->libelleMotCle;\n }",
"public function getOperationPrimeCurrencyId()\n {\n\n return $this->operation_prime_currency_id;\n }",
"protected function getCodeModeDePaiement()\r\n {\r\n $table = $this->getDbManager()->get('Sbm\\Db\\System\\Libelles');\r\n return $table->getCode('ModeDePaiement', 'CB');\r\n }",
"public function getProduct_code () {\n\t$preValue = $this->preGetValue(\"product_code\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->product_code;\n\treturn $data;\n}",
"function getCarteOperation()\n {\n $query_rq_service = \"SELECT numero_carte FROM carte_parametrable WHERE idcarte=2\";\n $service = $this->getConnexion()->prepare($query_rq_service);\n $service->execute();\n $row_rq_service= $service->fetchObject();\n return $row_rq_service->numero_carte;\n }",
"public function getLibelleMatiere()\n {\n return $this->libelleMatiere;\n }",
"function OBTENER_FORMULA($_ARGS) {\r\n\t$sql = \"SELECT Formula FROM pr_concepto WHERE CodConcepto = '\".$_ARGS['CONCEPTO'].\"'\";\r\n\t$query = mysql_query($sql) or die ($sql.mysql_error());\r\n\tif (mysql_num_rows($query) != 0) {\r\n\t\t$field = mysql_fetch_array($query);\r\n\t\treturn $field['Formula'];\r\n\t} else return \"\";\r\n}",
"public function getIdOrdenCompra() {\n return $this->id_orden_compra;\n }",
"public function getDocumentProductCod()\n {\n return (string) $this->document_product_cod;\n }",
"public function getCodeStatutPro() {\n return $this->codeStatutPro;\n }",
"public function getValorParcela()\n {\n return $this->valorParcela;\n }",
"function get_nbre_conso(){\n\t\tglobal $bd;\n\t\t$req = $bd->query(\"SELECT SUM(nbre) as nbre FROM consommateur WHERE etat = 'present' \");\n\t\t$data = $req->fetch();\n\t\treturn $data['nbre'];\n\t}",
"public function get_Code_produit()\n\t\t{\n\t\t\treturn $this->Code_produit;\n\t\t}",
"public function getCodeProduit() {\n return $this->codeProduit;\n }",
"public function getCodProducto()\n {\n return $this->codProducto;\n }",
"public function getCodeEmploi() {\n return $this->codeEmploi;\n }",
"public function getSectoreconomicocodigo()\n\t{\n\t\treturn $this->sectoreconomicocodigo;\n\t}",
"static public function ctrCalcularFolioImportacion(){\r\n\t\t$tabla = \"banco6278\";\r\n\r\n\t\t$respuesta = ModeloBanco6278Diario::mdlCalcularFolioImportacion($tabla);\r\n\r\n\t\treturn $respuesta;\r\n\t}",
"public function getOracle()\n {\n return $this->readOneof(104);\n }",
"public function getIntituleCompte() {\n return $this->intituleCompte;\n }",
"public function getPorcImpuesto()\r\n {\r\n return strval($this->porc_impuesto);\r\n }",
"public function get_cellOperator(): string\n {\n return $this->_oper;\n }",
"public function get_cellOperator(): string\n {\n return $this->_oper;\n }",
"static public function ctrCalcularFolioImportacion(){\r\n\t\t\r\n\t\t$tabla = \"banco1219\";\r\n\r\n\t\t$respuesta = ModeloBanco1219Diario::mdlCalcularFolioImportacion($tabla);\r\n\r\n\t\treturn $respuesta;\r\n\t}",
"public function CodigoProduccion()\r\n\r\n {\r\n $objetoBD = new Conexion();\r\n $objetoBD->conectar();\r\n $mysqli=$objetoBD->cadenaConexion();\r\n\r\n $consulta=\"SELECT max(prod_id) as maximo FROM produccion \";\r\n $resultado=$mysqli->query($consulta);\r\n\r\n $maximo=\"\";\r\n while($fila=mysqli_fetch_object($resultado)){\r\n\r\n $maximo=$fila->maximo;\r\n\r\n\r\n }\r\n return $maximo+1;\r\n\r\n }",
"public function getOperationPrimeProductPricePourcentage()\n {\n\n return $this->operation_prime_product_price_pourcentage;\n }",
"static public function ctrCalcularFolioImportacion(){\r\n\t\t\r\n\t\t$tabla = \"banco0840\";\r\n\r\n\t\t$respuesta = ModeloBanco0840Diario::mdlCalcularFolioImportacion($tabla);\r\n\r\n\t\treturn $respuesta;\r\n\t}",
"public function getCodeOfficielCommuneLieuTrav() {\n return $this->codeOfficielCommuneLieuTrav;\n }",
"function recupere_libelle_chambre_libelle($code){\n\treturn ResultatRequette(\"select LIBELLE_TYPE_CHAMBRE as info from type_chambre where CODE_TYPE_CHAMBRE='$code'\");\n }",
"public function getPrecioCompra()\n\t{\n\t\treturn $this->precio_compra;\n\t}",
"public function getLivreStat() {\n $requete = 'SELECT SUM(commande_ligne.qtx) AS nbLivre FROM commande\n JOIN commande_ligne ON commande_ligne.id_commande = commande.id_commande\n JOIN media_livre ON media_livre.id_media = commande_ligne.id_media\n WHERE year(CURRENT_DATE) = year(commande.date_commande)\n AND month(CURRENT_DATE - INTERVAL 1 MONTH) = month(commande.date_commande)';\n $pdoStat = PdoMedProjet::$conn->prepare($requete);\n $pdoStat->execute();\n return $pdoStat->fetch();\n }",
"function estUnLibelleTypeChambre ($connexion, $mode, $id, $libelle) {\r\n\r\n $libelle = str_replace (\"'\", \"''\", $libelle);\r\n\r\n if ($mode == 'C') {\r\n\r\n $req = \"SELECT COUNT(*) FROM TypeChambre WHERE libelle=:lib\";\r\n $stmt = $connexion -> prepare ($req);\r\n $stmt -> bindParam (':lib', $libelle);\r\n\r\n } else {\r\n\r\n $req = \"SELECT COUNT(*) FROM TypeChambre WHERE libelle=:lib and id <> :id\";\r\n $stmt = $connexion -> prepare ($req);\r\n $stmt -> bindParam (':lib', $libelle);\r\n $stmt -> bindParam (':id', $id);\r\n\r\n }\r\n\r\n $stmt -> execute ();\r\n return $stmt -> fetchColumn ();\r\n\r\n }",
"public function getProd_niche () {\n\t$preValue = $this->preGetValue(\"prod_niche\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->getClass()->getFieldDefinition(\"prod_niche\")->preGetData($this);\n\treturn $data;\n}",
"function getCarteCommisssion()\n {\n $query_rq_service = \"SELECT numero_carte FROM carte_parametrable WHERE idcarte=1\";\n $service = $this->getConnexion()->prepare($query_rq_service);\n $service->execute();\n $row_rq_service= $service->fetchObject();\n return $row_rq_service->numero_carte;\n }",
"public function getParcela()\n {\n return $this->parcela;\n }",
"public function getCodProy() {\n return $this->codProy;\n }",
"static public function ctrCalcularComprobacionImportacion(){\r\n\t\t$tabla = \"banco6278\";\r\n\r\n\t\t$respuesta = ModeloBanco6278Diario::mdlCalcularComprobacionImportacion($tabla);\r\n\r\n\t\treturn $respuesta;\r\n\t}",
"public function getCLINICA()\r\n {\r\n return $this->CLINICA;\r\n }",
"public function getNiche_code () {\n\t$preValue = $this->preGetValue(\"niche_code\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->niche_code;\n\treturn $data;\n}",
"function get_commission($conn,$p_id)\n {\n $sql=\"select price,branch_commision,com_type from products where id=$p_id\";\n $res=$conn->query($sql);\n $row = $res->fetch_assoc();\n if($row['com_type']=='Percentage')\n {\n $commision=$row['price']*$row['branch_commision']/100;\n }\n else\n {\n $commision=$row['branch_commision'];\n }\n return $commision;\n }",
"public function getDocumentProductCfop()\n {\n return (string) $this->document_product_cfop;\n }",
"public function getInputMethod()\n {\n global $db, $langs;\n\n if ($this->methode_commande_id > 0)\n {\n $sql = \"SELECT rowid, code, libelle as label\";\n $sql.= \" FROM \".MAIN_DB_PREFIX.'c_input_method';\n $sql.= \" WHERE active=1 AND rowid = \".$db->escape($this->methode_commande_id);\n\n $resql = $db->query($sql);\n if ($resql)\n {\n if ($db->num_rows($query))\n {\n $obj = $db->fetch_object($query);\n\n $string = $langs->trans($obj->code);\n if ($string == $obj->code)\n {\n $string = $obj->label != '-' ? $obj->label : '';\n }\n return $string;\n }\n }\n else dol_print_error($db);\n }\n\n return '';\n }",
"static public function ctrCalcularFolio(){\r\n\r\n\t\t$tabla = \"banco1219\";\r\n\r\n\t\t$respuesta = ModeloBanco1219Diario::mdlCalcularFolio($tabla);\r\n\r\n\t\treturn $respuesta;\r\n\t}",
"static public function ctrCalcularFolio(){\r\n\t\t$tabla = \"banco6278\";\r\n\r\n\t\t$respuesta = ModeloBanco6278Diario::mdlCalcularFolio($tabla);\r\n\r\n\t\treturn $respuesta;\r\n\t}",
"static public function ctrCalcularComprobacionImportacion(){\r\n\t\t$tabla = \"banco0840\";\r\n\r\n\t\t$respuesta = ModeloBanco0840Diario::mdlCalcularComprobacionImportacion($tabla);\r\n\r\n\t\treturn $respuesta;\r\n\t}",
"public function getCodProy() {\n return $this->codProy;\n }",
"public static function statStatutEtProjet()\n {\n try {\n $sql = 'SELECT P.statut as prim, count(P.codeProjet) as quantity\n FROM Projet P\n GROUP BY P.statut,statut;';\n $rep = Model::$pdo->prepare($sql);\n $rep->execute();\n $retourne = $rep->fetchAll(PDO::FETCH_ASSOC);\n return $retourne;\n } catch (Exception $e) {\n return false;\n }\n }",
"public function getOpenLibraryID(){\n\t\tReturn $this->ol[\"ISBN:\".$this->isbn][\"identifiers\"][\"openlibrary\"][0];\n\t}",
"static public function ctrCalcularFolio(){\r\n\r\n\t\t$tabla = \"banco0840\";\r\n\r\n\t\t$respuesta = ModeloBanco0840Diario::mdlCalcularFolio($tabla);\r\n\r\n\t\treturn $respuesta;\r\n\t}",
"static public function ctrCalcularComprobacionImportacion(){\r\n\t\t$tabla = \"banco1219\";\r\n\r\n\t\t$respuesta = ModeloBanco1219Diario::mdlCalcularComprobacionImportacion($tabla);\r\n\r\n\t\treturn $respuesta;\r\n\t}",
"public function getDocumentProductIpiCst()\n {\n return (string) $this->document_product_ipi_cst;\n }",
"public function getCodigoProducto()\n {\n return $this->codigoProducto;\n }",
"public function getLibelleMenu(): ?string {\n return $this->libelleMenu;\n }",
"public function getOperationPrimeMaximumAmount()\n {\n\n return $this->operation_prime_maximum_amount;\n }",
"public function getStatutJuridique()\n { \n return StatutJuridique::getLibFromId($this->statutJuridique);\n }",
"public function getValorLancar(){\n return $this->nValorLancar;\n }",
"static public function ctrCalcularImporteParciales(){\r\n\t\t$tabla = \"banco6278\";\r\n\r\n\t\t$respuesta = ModeloBanco6278Diario::mdlCalcularImporteParciales($tabla);\r\n\r\n\t\treturn $respuesta;\r\n\t}",
"public function getPaiementEnEuro() {\n return $this->paiementEnEuro;\n }",
"public function getBookValue($eqIOID)\n {\n $dep = $this->getEquipDepreciationData($eqIOID);\n $last = array();\n \n if(count((array)$dep))\n {\n $last = end($dep);\n }\n return count($last)?$last['Book']:0;\n }",
"public function getNumcompte()\n {\n return $this->numcompte;\n }",
"public function getNumcompte()\n {\n return $this->numcompte;\n }",
"public function getValeur()\n {\n return $this->valeur;\n }",
"static public function ctrCalcularImporteParciales(){\r\n\t\t$tabla = \"banco1219\";\r\n\r\n\t\t$respuesta = ModeloBanco1219Diario::mdlCalcularImporteParciales($tabla);\r\n\r\n\t\treturn $respuesta;\r\n\t}",
"public function ultimoProduto()\n {\n //$conexao = $c->conexao();\n\n $query = \"SELECT max(id)id FROM tbproduto c;\";\n $query = $this->conexao->query($query);\n $row = $query->fetch_assoc();\n\n return $row;\n }",
"public function selectCompCv() {\n if( ( $statement = $this->pdo->query( 'SELECT * FROM `cv`\n inner join partie on part_id = cv_partie \n WHERE `part_libelle`=\"competence\" ') )!==false ) {\n if( ( $datas = $statement->fetchAll( \\PDO::FETCH_ASSOC ) )!==false ) {\n $statement->closeCursor();\n return $datas;\n }\n }\n return false;\n }",
"public function GetEnumValue(){\n\t\treturn db_enum_value($this->tables[0], $this->fields[0]);\n\t}",
"public function getEditCellValue($row);",
"function getNota_num()\n {\n if (!isset($this->inota_num) && !$this->bLoaded) {\n $this->DBCarregar();\n }\n return $this->inota_num;\n }",
"function getNota_num()\n {\n if (!isset($this->inota_num) && !$this->bLoaded) {\n $this->DBCarregar();\n }\n return $this->inota_num;\n }",
"static public function ctrCalcularImporteParciales(){\r\n\t\t$tabla = \"banco0840\";\r\n\r\n\t\t$respuesta = ModeloBanco0840Diario::mdlCalcularImporteParciales($tabla);\r\n\r\n\t\treturn $respuesta;\r\n\t}",
"protected function getCodeCaisse()\r\n {\r\n $table = $this->getDbManager()->get('Sbm\\Db\\System\\Libelles');\r\n return $table->getCode('Caisse', 'DFT');\r\n }",
"public function getVarComentario()\n {\n return $this->varComentario;\n }",
"public function getValorAnulado() {\n return $this->nValorAnulado;\n }",
"public function getNIVELSOCIOECONOMICO()\r\n {\r\n return $this->NIVEL_SOCIOECONOMICO;\r\n }",
"function getCPeriodeGajiTHR($conn) {\n $sql = \"select periodegaji, namaperiode from \" . static::table('ga_periodegaji') . \" where refperiodegaji is not null order by tglakhirhit desc\";\n\n return Query::arrQuery($conn, $sql);\n }",
"public function getCodeCollaborateurClot() {\n return $this->codeCollaborateurClot;\n }",
"public function getCodeStatutCategRetraite() {\n return $this->codeStatutCategRetraite;\n }",
"public function getCdProduto()\n {\n return $this->Cd_produto;\n }",
"function getSoporte() {\r\n return $this->soporte;\r\n }",
"public function erSynligOppmotetid()\n {\n return $this->synlig_oppmotetid;\n }",
"function getPG()\n {\n $query = $this->db->query('SELECT `poin_gejala` FROM `tmp_hasil`\n `tb_gejala` as where `kd_gejala` = `kd_gejala`.`poin_gejala`= `0` ');\n return $query->result();\n }",
"public function getCellValue($row);",
"public function getModelo()\n\t{\n\t\treturn $this->modelo;\n\t}",
"function dame_codigo($codigo) {\n $query = $this->db->query(\"select nExpedienteCodigo from tb_sistram_expediente where nExpedienteId= $codigo\");\n if ($query->num_rows() > 0) {\n $row = $query->row();\n $tipo = $row->nExpedienteCodigo;\n return $tipo;\n }\n }",
"static public function ctrCalcularImporte(){\r\n\t\t$tabla = \"banco1219\";\r\n\r\n\t\t$respuesta = ModeloBanco1219Diario::mdlCalcularImporte($tabla);\r\n\r\n\t\treturn $respuesta;\r\n\t}"
] | [
"0.64187676",
"0.64187676",
"0.64187676",
"0.6328785",
"0.6213114",
"0.62074524",
"0.5890744",
"0.57305837",
"0.5648851",
"0.54826444",
"0.54175",
"0.5410004",
"0.5381991",
"0.5363936",
"0.5327431",
"0.53254193",
"0.53252274",
"0.5240946",
"0.5192604",
"0.51889575",
"0.5182472",
"0.51462805",
"0.51121944",
"0.5087643",
"0.50789577",
"0.505431",
"0.50425",
"0.50368196",
"0.50203",
"0.49871752",
"0.49816677",
"0.4945508",
"0.49441296",
"0.49419758",
"0.49401447",
"0.4939003",
"0.49300873",
"0.49300873",
"0.49243122",
"0.4917835",
"0.4905965",
"0.49056956",
"0.48799986",
"0.4857911",
"0.48500672",
"0.48385566",
"0.48366025",
"0.48361275",
"0.48282877",
"0.4819906",
"0.48084664",
"0.48074242",
"0.4804801",
"0.47991627",
"0.4784515",
"0.478174",
"0.47812384",
"0.47724044",
"0.47608256",
"0.47513977",
"0.4748771",
"0.47408968",
"0.47389865",
"0.4737485",
"0.47232857",
"0.4723281",
"0.47229922",
"0.47194412",
"0.47178128",
"0.4712511",
"0.4708289",
"0.47062847",
"0.4701239",
"0.4697204",
"0.4691753",
"0.4691753",
"0.46823883",
"0.4680135",
"0.46768552",
"0.46696076",
"0.46670243",
"0.46637553",
"0.46593288",
"0.46593288",
"0.464943",
"0.46452942",
"0.46452424",
"0.46429446",
"0.46395567",
"0.46393672",
"0.4633355",
"0.46233085",
"0.46105933",
"0.46037203",
"0.46036103",
"0.4602802",
"0.46013063",
"0.46001348",
"0.4596543",
"0.4596413"
] | 0.7962335 | 0 |
Get the [op_prime_numero] column value. | public function getOpPrimeNumero()
{
return $this->op_prime_numero;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getOpPrimeId()\n {\n\n return $this->op_prime_id;\n }",
"public function getOpPrimeLibelle()\n {\n\n return $this->op_prime_libelle;\n }",
"public function getNumeroProcesso() {\n return $this->iNumeroProcesso;\n }",
"public function getNumero() {\n return $this->numero;\n }",
"function getNumero() {\n return $this->numero;\n }",
"public function getNUMEROINT()\r\n {\r\n return $this->NUMERO_INT;\r\n }",
"public function getNumero()\n {\n return $this->numero;\n }",
"public function getNUMERO_INT()\r\n {\r\n return $this->NUMERO_INT;\r\n }",
"function getCarteOperation()\n {\n $query_rq_service = \"SELECT numero_carte FROM carte_parametrable WHERE idcarte=2\";\n $service = $this->getConnexion()->prepare($query_rq_service);\n $service->execute();\n $row_rq_service= $service->fetchObject();\n return $row_rq_service->numero_carte;\n }",
"public function getOperationPrimeCurrencyId()\n {\n\n return $this->operation_prime_currency_id;\n }",
"function getNota_num()\n {\n if (!isset($this->inota_num) && !$this->bLoaded) {\n $this->DBCarregar();\n }\n return $this->inota_num;\n }",
"function getNota_num()\n {\n if (!isset($this->inota_num) && !$this->bLoaded) {\n $this->DBCarregar();\n }\n return $this->inota_num;\n }",
"public function setOpPrimeNumero($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_numeric($v)) {\n $v = (int) $v;\n }\n }\n if ($this->op_prime_numero !== $v) {\n $this->op_prime_numero = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OP_PRIME_NUMERO;\n }\n\n\n return $this;\n }",
"function numero()\r\n {\r\n \r\n $numrec = $this->db->query(\"SELECT * FROM parametros\")->result_array();\r\n return $numrec;\r\n }",
"public function getNumero() {\n return $this->sNumero;\n }",
"function get_nbre_conso(){\n\t\tglobal $bd;\n\t\t$req = $bd->query(\"SELECT SUM(nbre) as nbre FROM consommateur WHERE etat = 'present' \");\n\t\t$data = $req->fetch();\n\t\treturn $data['nbre'];\n\t}",
"function getCarteCommisssion()\n {\n $query_rq_service = \"SELECT numero_carte FROM carte_parametrable WHERE idcarte=1\";\n $service = $this->getConnexion()->prepare($query_rq_service);\n $service->execute();\n $row_rq_service= $service->fetchObject();\n return $row_rq_service->numero_carte;\n }",
"public function getNumerocarte()\n {\n return $this->numerocarte;\n }",
"public function getNumero_cb()\n {\n return $this->numero_cb;\n }",
"public function getNombPropietario(){\n $app = App::getSingleton();\n $conn = $app->conexionBd();\n $IDpropietario = self::getPropietario();\n $query = sprintf(\"SELECT nombre FROM usuarios WHERE id = %s\",$conn->real_escape_string($IDpropietario));\n $consulta = $conn->query($query);\n if($consulta->num_rows > 0){\n $fila = $consulta->fetch_assoc();\n $nombPropietario = $fila['nombre'];\n }else{\n $nombPropietario = \"Anonimo\";\n }\n return $nombPropietario;\n }",
"public function getOperationPrimeMaximumAmount()\n {\n\n return $this->operation_prime_maximum_amount;\n }",
"public function CodigoProduccion()\r\n\r\n {\r\n $objetoBD = new Conexion();\r\n $objetoBD->conectar();\r\n $mysqli=$objetoBD->cadenaConexion();\r\n\r\n $consulta=\"SELECT max(prod_id) as maximo FROM produccion \";\r\n $resultado=$mysqli->query($consulta);\r\n\r\n $maximo=\"\";\r\n while($fila=mysqli_fetch_object($resultado)){\r\n\r\n $maximo=$fila->maximo;\r\n\r\n\r\n }\r\n return $maximo+1;\r\n\r\n }",
"public function getNumeroCivico() {\n return $this->numeroCivico;\n }",
"public function getNossoNumero();",
"public static function totinprimopiano(){\r\n $query = \"SELECT count(idev) FROM primopiano\";\r\n\t\t$result = self::$conn->query($query);\r\n $id =array();\r\n if($result){\r\n $row = $result->fetch_array(MYSQLI_NUM);\r\n return (int)$row[0];\r\n }\r\n return 0;\r\n }",
"public function getNumeroLabel() {\n return $this->numeroLabel;\n }",
"public static function Numero_Orden()\n {\n // Consulta de la meta\n $consulta = \"SELECT num_orden FROM ordenes ORDER BY id_orden DESC LIMIT 1\";\n\n try {\n // Preparar sentencia\n $comando = Database::getInstance()->getDb()->prepare($consulta);\n // Ejecutar sentencia preparada\n $comando->execute(); \n // Capturar primera fila del resultado\n $row = $comando->fetch(PDO::FETCH_ASSOC);\n return $row; \n\n } catch (PDOException $e) {\n // Aquí puedes clasificar el error dependiendo de la excepción\n // para presentarlo en la respuesta Json\n return -1;\n }\n }",
"public function obtenerIDPrimerPagoElectronico(){\n $criteria = new CDbCriteria;\n $criteria->condition = 'id_pedido = '.$this->id_pedido;\n $registrosCarro = PagosElectronicos::model()->findAll($criteria);\n\n if (sizeof($registrosCarro) > 0)\n return $registrosCarro[0]->id;\n return 0;\n }",
"public function getValorParcela()\n {\n return $this->valorParcela;\n }",
"public function getNum()\n {\n return $this->get(self::_NUM);\n }",
"public function CodigoPedido()\r\n\r\n {\r\n $objetoBD = new Conexion();\r\n $objetoBD->conectar();\r\n $mysqli=$objetoBD->cadenaConexion();\r\n\r\n $consulta=\"SELECT max(ped_id) as maximo FROM pedidos \";\r\n $resultado=$mysqli->query($consulta);\r\n\r\n $maximo=\"\";\r\n while($fila=mysqli_fetch_object($resultado)){\r\n\r\n $maximo=$fila->maximo;\r\n\r\n\r\n }\r\n return $maximo+1;\r\n\r\n }",
"public function getNiche_code () {\n\t$preValue = $this->preGetValue(\"niche_code\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->niche_code;\n\treturn $data;\n}",
"public function getProductNum()\n {\n $value = $this->get(self::product_num);\n return $value === null ? (integer)$value : $value;\n }",
"public function getProd_niche () {\n\t$preValue = $this->preGetValue(\"prod_niche\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->getClass()->getFieldDefinition(\"prod_niche\")->preGetData($this);\n\treturn $data;\n}",
"public function getNumcompte()\n {\n return $this->numcompte;\n }",
"public function getNumcompte()\n {\n return $this->numcompte;\n }",
"public function getOperationPrimeFixedAmount()\n {\n\n return $this->operation_prime_fixed_amount;\n }",
"public function getPorcImpuesto()\r\n {\r\n return strval($this->porc_impuesto);\r\n }",
"public function getCodProducto()\n {\n return $this->codProducto;\n }",
"public function getNbrOperations(): ?string {\n return $this->nbrOperations;\n }",
"public function getNumber_process()\n {\n return $this->fv_number_process;\n }",
"public function ultimoNumeroFactura(){\n $pdo = Database::connect();\n $sql = \"select max(idfactura) numero from facturas\";\n $consulta = $pdo->prepare($sql);\n $consulta->execute();\n //obtenemos el registro especifico:\n $res=$consulta->fetch(PDO::FETCH_ASSOC);\n $numero=$res['numero'];\n Database::disconnect();\n //retornamos el numero encontrado:\n if(!isset($numero))\n return 0;\n return $numero;\n }",
"public function get_cellOperator(): string\n {\n return $this->_oper;\n }",
"public function get_cellOperator(): string\n {\n return $this->_oper;\n }",
"public function ultimoProduto()\n {\n //$conexao = $c->conexao();\n\n $query = \"SELECT max(id)id FROM tbproduto c;\";\n $query = $this->conexao->query($query);\n $row = $query->fetch_assoc();\n\n return $row;\n }",
"public function getNumero();",
"public function getNumero();",
"public function getCoNumInventario()\n\t{\n\t\treturn $this->co_num_inventario;\n\t}",
"public function ultimoPedido(){\n //$conexao = $c->conexao();\n\n $query = \"SELECT max(idpedido)idpedido FROM tbpedidos c;\";\n $query = $this->conexao->query($query);\n $row = $query->fetch_assoc();\n\n return $row;\n\n }",
"public function getNum()\n {\n return $this->num;\n }",
"public function getNum()\n {\n return $this->num;\n }",
"public function getCodigoProducto()\n {\n return $this->codigoProducto;\n }",
"public function getCodeEmploi() {\n return $this->codeEmploi;\n }",
"function getNum()\n {\n return $this->num;\n }",
"function dame_codigo($codigo) {\n $query = $this->db->query(\"select nExpedienteCodigo from tb_sistram_expediente where nExpedienteId= $codigo\");\n if ($query->num_rows() > 0) {\n $row = $query->row();\n $tipo = $row->nExpedienteCodigo;\n return $tipo;\n }\n }",
"public function invoiceNumberGet(){\n\t\t$query = $this->db->get(__TBL_INVOICE_NUMBER);\n\t\tif(sizeof($query->row())>0) {\n\t\t\treturn (int)$query->row()->number;\n\t\t} else return false;\n\t}",
"public function getComunaOrigen()\n {\n return $this->comunaOrigen;\n }",
"public function get_New_CM_NO(){\n\n\t\t$this->db->select_max('CM_NO');\n\t\t$query = $this->db->get('COMPLAINT_MST'); \n\n\t\t$row = $query->row();\n\n\t\tif (isset($row))\n\t\t return $row->CM_NO + 1;\n\t}",
"public function getEmpleado_idemp(){\n return $this->empleado_idemp;\n }",
"public function getOpId()\n {\n\n return $this->op_id;\n }",
"function get_order_number() {\r\n $conn = $this->db->conn_id;\r\n $stmt = oci_parse($conn, \"BEGIN :v_Return := PRODUCT_ACTIONS.NEXT_ORDER_NUMBER(); END;\");\r\n oci_bind_by_name($stmt, ':v_Return', $result, SQLT_STR);\r\n\r\n if (!oci_execute($stmt)) {\r\n return oci_error($stmt);\r\n }\r\n return $result;\r\n }",
"public function getOperatorNumber(): int\n {\n if ($this->operatorMetadata === null)\n throw new \\Exception(\"No Metadata available for this Operator\");\n return $this->operatorMetadata->operatorNumber;\n }",
"public function getcodigo()\r\n {\r\n return $this->codigo;\r\n }",
"public function getcodigo()\r\n {\r\n return $this->codigo;\r\n }",
"public function getPothinvcnbr()\n {\n return $this->pothinvcnbr;\n }",
"public function getNIVELSOCIOECONOMICO()\r\n {\r\n return $this->NIVEL_SOCIOECONOMICO;\r\n }",
"public function getOPFind($co_pcp_apontamento){\r\n\t\t$query = \"SELECT CONCAT(ORDEM_PRODUCAO.CO_NUM,ORDEM_PRODUCAO.CO_ITEM,ORDEM_PRODUCAO.CO_SEQUENCIA) NU_OP \r\n\t\t\t\t\tFROM TB_PCP_APONTAMENTO APONTAMENTO \r\n\t\t\t\t\tINNER JOIN TB_PCP_OP ORDEM_PRODUCAO \r\n\t\t\t\t\t\tON APONTAMENTO.CO_PCP_OP = ORDEM_PRODUCAO.CO_PCP_OP WHERE CO_PCP_APONTAMENTO = \".$co_pcp_apontamento;\r\n\t\t$result = mysql_query($query, $this->conexaoERP);\r\n\t\t$row = mysql_fetch_array($result);\r\n\t\treturn $row;\r\n\t\t\r\n\t}",
"public function num() {\n return $this->num;\n }",
"public function getValorAnulado() {\n return $this->nValorAnulado;\n }",
"public function getCodigoProcessoCompras() {\n return $this->iCodigoProcessoCompras;\n }",
"public function getPothnbr()\n {\n return $this->pothnbr;\n }",
"public function nombreCampo($numcampo) {\n\t\t$meta = $this->query->getColumnMeta($numcampo);\n\t\t$resultado = false;\n\t\tif ($meta !==false){\n\t\t\t$resultado = $meta['name'];\n\t\t}\n\t\treturn $resultado;\n\t}",
"public function getProduct_code () {\n\t$preValue = $this->preGetValue(\"product_code\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->product_code;\n\treturn $data;\n}",
"public function getPrimaryKey()\n {\n return $this->getOpPrimeId();\n }",
"public function getNumber()\n {\n return $this->getData(self::NUMBER);\n }",
"function getId_nom()\n {\n if (!isset($this->iid_nom) && !$this->bLoaded) {\n $this->DBCarregar();\n }\n return $this->iid_nom;\n }",
"function getId_nom()\n {\n if (!isset($this->iid_nom) && !$this->bLoaded) {\n $this->DBCarregar();\n }\n return $this->iid_nom;\n }",
"public function getDocumentProductCod()\n {\n return (string) $this->document_product_cod;\n }",
"public function getCodigoViaje(){\n\t\t$codigo = 'VPI';\n\t\t$codigo .= '-'.str_pad($this->nroViaje['valor'], 4, '0', STR_PAD_LEFT);\n\t\treturn $codigo;\n\t}",
"public function getModuloId() {\n return $this->modulo_id;\n }",
"function Obtener_Nombre_ComprobanteVenta($prm){\n $Obj=new mysqlhelper;\n $result= $Obj->consulta(\"SELECT Concat(co.sgo_vch_serie,'-',co.sgo_vch_numero) as sgo_vch_nrofacturaventa FROM tbl_sgo_comprobanteventa co WHERE co.sgo_int_comprobanteventa=\" . $prm);\n while ($row = mysqli_fetch_array($result))\n {\n return $row[\"sgo_vch_nrofacturaventa\"];\n }\n return \"\";\n }",
"public function setOpPrimeId($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_numeric($v)) {\n $v = (int) $v;\n }\n }\n if ($this->op_prime_id !== $v) {\n $this->op_prime_id = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OP_PRIME_ID;\n }\n\n\n return $this;\n }",
"public function getNumeroPj(): ?int {\n return $this->numeroPj;\n }",
"public function selecMaximoNumero2($empresa_id, $tipo_documento_id, $serie){\n $sql = \"SELECT MAX(CAST(numero AS UNSIGNED)) numero FROM comprobantes WHERE 1 = 1 AND empresa_id = $empresa_id AND tipo_documento_id = $tipo_documento_id AND serie = '\".$serie.\"'\";\n $query = $this->db->query($sql);\n $rowNumero = $query->row_array();\n\n if($rowNumero['numero'] == null){\n //BUSQUEDA DE NUMERO 12-01-2021\n $rsNumero = $this->db->from('ser_nums')\n ->where('empresa_id',$empresa_id)\n ->where('tipo_documento_id',$tipo_documento_id)\n ->where('serie',$serie)\n ->where('estado',ST_ACTIVO)\n ->get()\n ->row();\n $rowNumero['numero'] = ($rsNumero->numero == null) ? 1 : $rsNumero->numero;\n }else{\n $rowNumero['numero']++;\n }\n\n return $rowNumero;\n }",
"public function getPkValue(){\n $pk = static::getPk();\n return (int) $this->$pk;\n }",
"public function getNit_empresa(){\n return $this->nit_empresa;\n }",
"public function getPBNO($dept){\t\n\n\t\t$response=$this->db->query(\"SELECT max(to_number(substr(FMD_PB_NO, instr(FMD_PB_NO,'-')+1))) PBNO \n\t\t\t\t\tFROM FILE_MV_DTL\n\t\t\t\t\tWHERE FMD_SENDER_DEPT = '$dept'\n\t\t\t\t\t\")->row(); \n\n if (isset($response))\n\t\treturn $response->PBNO; \n\t}",
"public function getOperatorValue();",
"public function getCodProy() {\n return $this->codProy;\n }",
"public function getIndicePeriode(): ?int {\n return $this->indicePeriode;\n }",
"protected static function num_code(): mixed\n\t{\n\t\treturn self::$query->num_code;\n\t}",
"function valorCampo($nombreCampo){\n\t if($this->val!=\"\")\n\t\tforeach($this->val as $indice => $valor){\n\t\t\tif($nombreCampo==$indice){\n\t\t\t\treturn $valor;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t}",
"public function getCodEmpresa()\n {\n return $this->codEmpresa;\n }",
"public function getCodEmpresa()\n {\n return $this->codEmpresa;\n }",
"public function getModulo()\n {\n $sql = \"select * from tb_modulo\";\n $stmt = self::prepare($sql);\n if ($stmt->execute()) {\n return $stmt->fetchAll();\n }\n }",
"public function getOperatorValue()\n {\n return $this->comparator->getCurrentOperator()->getValue();\n }",
"public function getNprcifecha()\n {\n return $this->nprcifecha;\n }",
"public function getErrNo() {\n return $this->get(self::ERR_NO);\n }",
"public function getNroExp() {\n return $this->nroExp;\n }",
"function getDatosNota_num()\n {\n $nom_tabla = $this->getNomTabla();\n $oDatosCampo = new core\\DatosCampo(array('nom_tabla' => $nom_tabla, 'nom_camp' => 'nota_num'));\n $oDatosCampo->setEtiqueta(_(\"nota num\"));\n return $oDatosCampo;\n }"
] | [
"0.69652295",
"0.6779649",
"0.6195364",
"0.61157924",
"0.6081711",
"0.6076515",
"0.60570854",
"0.5930269",
"0.592364",
"0.58985156",
"0.585972",
"0.585972",
"0.58493847",
"0.5824136",
"0.5770044",
"0.56389725",
"0.56212413",
"0.5605843",
"0.558562",
"0.55486846",
"0.54947644",
"0.54945374",
"0.54942924",
"0.5481317",
"0.54718506",
"0.54699904",
"0.5463798",
"0.5459899",
"0.5446513",
"0.54132426",
"0.5385107",
"0.5381673",
"0.53679127",
"0.5362189",
"0.5360166",
"0.5360166",
"0.5351679",
"0.53261656",
"0.5324191",
"0.5305799",
"0.5305099",
"0.5299334",
"0.5262092",
"0.5262092",
"0.5250344",
"0.5250231",
"0.5250231",
"0.5247355",
"0.52314436",
"0.5226476",
"0.5226476",
"0.5205233",
"0.52044463",
"0.5187363",
"0.5176957",
"0.51667285",
"0.5165571",
"0.51639205",
"0.5162564",
"0.5155872",
"0.5153054",
"0.5149286",
"0.5147041",
"0.5147041",
"0.5136242",
"0.51352787",
"0.5125974",
"0.51229966",
"0.511519",
"0.5107117",
"0.5097674",
"0.5086933",
"0.50812316",
"0.50636077",
"0.5051723",
"0.5049578",
"0.5049578",
"0.5037776",
"0.5037555",
"0.5036237",
"0.50343096",
"0.5030465",
"0.50033796",
"0.50005203",
"0.4996011",
"0.4989675",
"0.49875918",
"0.49861395",
"0.49794117",
"0.4971926",
"0.49710205",
"0.49709368",
"0.49689692",
"0.49689692",
"0.49683294",
"0.49641964",
"0.49625692",
"0.4959793",
"0.49528146",
"0.4951986"
] | 0.8128191 | 0 |
Get the [gdl_art_id] column value. | public function getGdlArtId()
{
return $this->gdl_art_id;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getIdArt()\n {\n return $this->idArt;\n }",
"public function getidArt()\n\t {\n\t return $this->idArt;\n\t }",
"public function getidArt()\n\t {\n\t return $this->idArt;\n\t }",
"public function getidArt()\n\t {\n\t return $this->idArt;\n\t }",
"public function setGdlArtId($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_numeric($v)) {\n $v = (int) $v;\n }\n }\n if ($this->gdl_art_id !== $v) {\n $this->gdl_art_id = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::GDL_ART_ID;\n }\n\n\n return $this;\n }",
"public function getID() {\n return array_key_exists($this->_key_field, $this->_data) ? $this->_data[$this->_key_field] : null;\n }",
"public function get_id()\n {\n $pkey = static::tinydb_get_table_info()->primary_key;\n if (is_array($pkey)) {\n $val = array();\n foreach ($pkey as $field) {\n $val[$field] = \\TinyDb\\Internal\\SqlDataAdapters::decode(static::tinydb_get_table_info()->field_info($field)->type,\n $this->tinydb_rowdata[$field]);\n }\n } else {\n $val = \\TinyDb\\Internal\\SqlDataAdapters::decode(static::tinydb_get_table_info()->field_info($pkey)->type,\n $this->tinydb_rowdata[$pkey]);\n }\n\n\n return $val;\n }",
"function getID() {\n\t\treturn $this->data_array['artifact_id'];\n\t}",
"public function getRowId()\n\t{\n\t\treturn 'entity_id';\n\t}",
"protected function get__id()\n\t{\n\t\t$idColumn = static::$databaseColumnId;\n\t\treturn $this->$idColumn;\n\t}",
"public function getId() {\r\n\t\t\treturn $this->columns[ $this->index ];\r\n\t\t}",
"public function getId()\n\t{\n\t\t$column = self::COL_ID;\n\t\t$v = $this->$column;\n\n\t\tif( $v !== null){\n\t\t\t$v = (int)$v;\n\t\t}\n\n\t\treturn $v;\n\t}",
"public function getId()\n\t{\n\t\t$column = self::COL_ID;\n\t\t$v = $this->$column;\n\n\t\tif( $v !== null){\n\t\t\t$v = (int)$v;\n\t\t}\n\n\t\treturn $v;\n\t}",
"public function id()\n {\n return $this->read($this->metadata['pk']->name);\n }",
"public function getId() : string\n {\n $rtn = $this->data['id'];\n\n return $rtn;\n }",
"private function getProductIdentifierField()\n {\n if (!$this->productEntityIdentifierField) {\n $this->productEntityIdentifierField = $this->getMetadataPool()\n ->getMetadata(\\Magento\\Catalog\\Api\\Data\\ProductInterface::class)\n ->getIdentifierField();\n }\n return $this->productEntityIdentifierField;\n }",
"public function getId()\n {\n return $this->product->{$this->params['productFieldId']};\n }",
"public function getID()\n {\n return $this->formattedData['id'];\n }",
"public function getId()\n {\n // TODO: Implement getId() method.\n return $this->ad_id;\n }",
"function get_id() {\n\t\treturn $this->get_data( 'id' );\n\t}",
"function get_id() {\n return $this->get_mapped_property('id');\n }",
"public function getId()\n {\n $rtn = $this->data['id'];\n\n return $rtn;\n }",
"public function getId(): int\n {\n $idSplit = explode('.', $this->data['externalidField']);\n return $idSplit[1] ?? $this->data['externalidField'];\n }",
"function getID() {\n\t\treturn $this->data_array['id'];\n\t}",
"public function getId()\n {\n return $this->product->{$this->params['productFieldId']};\n }",
"public function id()\n\t{\n\t\treturn $this->get($this->meta()->primary_key);\n\t}",
"public function getIDField(): string {\n\t\treturn $this->idField;\n\t}",
"public function getId()\n {\n return $this->elasticaResult->getId();\n }",
"public function grn_id(){\n return parent::get_fk_object(\"grn_id\");\n }",
"public function idPenjualan()\n {\n $get_id = $this->penjualan->get_idmax();\n\n return $get_id; //TRX00001\n }",
"public function getID()\n {\n return $this->iD;\n }",
"public function getID()\n {\n return $this->iD;\n }",
"public function getID()\n {\n return $this->iD;\n }",
"public function getID()\n {\n return $this->iD;\n }",
"public function getID()\n {\n return $this->iD;\n }",
"public function getID()\n {\n return $this->iD;\n }",
"public function getID()\n {\n return $this->iD;\n }",
"public function getID()\n {\n return $this->iD;\n }",
"public function getID()\n {\n return $this->iD;\n }",
"public function getID()\n {\n return $this->iD;\n }",
"public function getId() : int\n {\n return $this->getValue('nb_icontact_prospect_id');\n }",
"public function getArticleId(): Uuid {\n\t\treturn ($this->articleId);\n\t}",
"public function getIdColumn()\n {\n return $this->idColumn;\n }",
"function getStringID() {\n\t\treturn '[#'.$this->data_array['artifact_id'].']';\n\t}",
"function getID() \n {\n return $this->getValueByFieldName( 'statevar_id' );\n }",
"public function GetId()\n {\n return $this->GetAttribute(self::ATTR_ID);\n }",
"public function cartId() {\n\t\treturn $this->field('Cart.id', $this->cartConditions());\n\t}",
"public function getId() : NatureId\n\t{\n\t\treturn $this->id;\n\t}",
"public function getId() {\n return $this->datosprop->getId_prop_carac();\n }",
"public function getId()\n {\n return isset($this->attrs['id']) ? $this->attrs['id'] : 0;\n }",
"function article_id() {\n return Registry::prop('article', 'id');\n}",
"public function getId() {\n // Fail due to double delete\n assert(!$this->hasBeenDeleted);\n \n // Fail due to unset 'id' field\n assert(isset($this->parentDbFieldTable[self::ID_KEY]));\n \n return $this->parentDbFieldTable[self::ID_KEY]->getValue();\n }",
"public function get_field_id() {\n\t\treturn $this->get_field_attr( 'id' );\n\t}",
"private function getEntityId()\n\t{\n\t\t$id = $this->GetDocumentId();\n\t\t$pairs = explode('_', $id[2]);\n\n\t\treturn count($pairs) > 1 ? $pairs[1] : $pairs[0];\n\t}",
"function getDataRowId()\r\n\t{\r\n\t\treturn 'prefix_'.'id';\r\n\t}",
"public function getId()\n {\n $value = $this->get(self::ID);\n return $value === null ? (string)$value : $value;\n }",
"public function getId() {\n\t\treturn $this->getData(static::$_primaryKey);\n\t}",
"public function PK() {\n $returnvalue = '';\n $returnvalue .= $this->getDNASequencingRunID();\n return $returnvalue;\n }",
"public function getIdAttribute()\n {\n return $this->attributes[$this->getKeyName()];\n }",
"public function PK() {\n $returnvalue = '';\n $returnvalue .= $this->getDeterminationID();\n return $returnvalue;\n }",
"public function getEntityId(){\n return $this->_getData(self::ENTITY_ID);\n }",
"function getId() {\n\t\treturn $this->getData('id');\n\t}",
"function getId() {\n\t\treturn $this->getData('id');\n\t}",
"public function getColumnId(): string\n {\n return $this->getColumn('id', 'id');\n }",
"public function getArticleId()\n {\n return $this->article_id;\n }",
"private function selectID()\n {\n $result = $this->sdb->query('select nextval(\\'id_seq\\') as id',array());\n $row = $this->sdb->fetchrow($result);\n return $row['id'];\n }",
"public function getId()\n {\n return $this->getValue('id');\n }",
"public function getQuotationId(){\r\n\t\t\t$no_of_quotations = Quotations::getRowCount();\r\n\r\n\t\t\t//Increment no. of quotations by 1\r\n\t\t\t$quotation_serial = $no_of_quotations[0][\"count\"] + 1;\r\n\r\n\t\t\t//Pad quotation no with two leading zeros\r\n\t\t\t$serial = sprintf('%02s', $quotation_serial);\r\n\r\n\t\t\t//Generate quotation number\r\n\t\t\t$quotation_no = 'Q-'.date('y-m').\"-\".$serial;\r\n\r\n\t\t\treturn $quotation_no;\r\n\t\t}",
"public function getId()\n {\n return $this->getAdapter()->getId();\n }",
"public function getArticle_idarticle()\r\n {\r\n return $this->article_idarticle;\r\n }",
"public function getResourceArtId()\n\t{\n\t\treturn 3;\n\t}",
"public function get_id() {\r\n\t\treturn ($this->id);\r\n\t}",
"public function get_id() {\r\n\t\treturn ($this->id);\r\n\t}",
"function formulaires_editer_encart_identifier_dist($id_encart='new', $retour='', $lier_trad=0, $config_fonc='', $row=array(), $hidden=''){\n\treturn serialize(array(intval($id_encart)));\n}",
"function get_id()\n {\n return $this->get_default_property(self :: PROPERTY_ID);\n }",
"public function getArticleId() {\n return (int)$this->article_id;\n }",
"public function getId()\n {\n return $this->getEntityValue('id', '');\n }",
"public function getQuoteId();",
"public function id() : ?string\n {\n return (isset($this->data['id'])) ? $this->data['id'] : null;\n }",
"public function getId()\n {\n return $this->source['order_item_id'];\n }",
"protected function getCurrentId()\n {\n return (array_key_exists($this->idfieldName(), $this->data)) ? $this->data[$this->idfieldName()] : NULL;\n }",
"public function getIdField()\n {\n return $this->idField;\n }",
"public function getId()\n {\n return $this->getData(self::ID);\n }",
"function getArticleId() {\r\n\t\tif (Config::getVar('debug', 'deprecation_warnings')) trigger_error('Deprecated function.');\r\n\t\treturn $this->getSubmissionId();\r\n\t}",
"public function id() {\n return $this->entity->id();\n }",
"public function getStorageId(): string\n {\n return sprintf('$%s', $this->getData());\n }",
"public function getId()\n {\n return isset($this->id) ? $this->id : '';\n }",
"public function getId()\n {\n return isset($this->id) ? $this->id : '';\n }",
"function getDataRowId()\n {\n return $this->idPrepend . $this->current_row_hash['id'];\n }",
"public function getId()\n {\n return $this->getAttribute('id');\n }",
"public function getRecordId()\n {\n return isset($this->fields['id']) ?\n $this->fields['id'] : '';\n }",
"function get_id()\r\n {\r\n return $this->get_default_property(self :: PROPERTY_ID);\r\n }",
"public function getId()\n {\n return $this->get(self::_ID);\n }",
"public function getId()\n {\n return $this->get(self::_ID);\n }",
"public function getId()\n {\n return $this->get(self::_ID);\n }",
"public function getId()\n {\n return $this->get(self::_ID);\n }",
"public static function getActualId()\n {\n if (self::$context->getName() == 'citation'\n && self::getCitationItem()!== false) {\n return self::getCitationItem()->get('id');\n }\n\n return self::getData()->getVariable('id');\n }",
"public function getId()\n {\n return $this->get(self::_ID);\n }",
"public function getId()\n {\n return $this->get(self::_ID);\n }",
"public function getId()\n {\n return $this->get(self::_ID);\n }"
] | [
"0.65305364",
"0.642353",
"0.642353",
"0.642353",
"0.621799",
"0.6118175",
"0.61141753",
"0.6101657",
"0.6011724",
"0.5935601",
"0.5928047",
"0.5911564",
"0.5911564",
"0.5823948",
"0.58236337",
"0.5812425",
"0.5804981",
"0.580294",
"0.57908815",
"0.57905495",
"0.57878834",
"0.5781539",
"0.5772197",
"0.57431436",
"0.57422376",
"0.5701066",
"0.5698901",
"0.56959766",
"0.5695572",
"0.56860644",
"0.566697",
"0.566697",
"0.566697",
"0.566697",
"0.566697",
"0.566697",
"0.566697",
"0.566697",
"0.566697",
"0.566697",
"0.56474304",
"0.56406784",
"0.5627156",
"0.5617097",
"0.56169385",
"0.5610732",
"0.5596565",
"0.55824137",
"0.5561036",
"0.55572814",
"0.5554326",
"0.5554122",
"0.5548161",
"0.55335516",
"0.5528962",
"0.5526535",
"0.55249816",
"0.55249256",
"0.55216813",
"0.5516506",
"0.5515761",
"0.5514386",
"0.5514386",
"0.5512733",
"0.5511828",
"0.5508197",
"0.55073506",
"0.5507348",
"0.55056757",
"0.5500097",
"0.5499257",
"0.549239",
"0.549239",
"0.549011",
"0.54832953",
"0.54829514",
"0.54811424",
"0.548092",
"0.54793423",
"0.5476044",
"0.5474647",
"0.54663676",
"0.5464312",
"0.54548967",
"0.5449516",
"0.544806",
"0.54450965",
"0.54450965",
"0.5444361",
"0.5439385",
"0.5432692",
"0.54318285",
"0.5427265",
"0.5427265",
"0.5427265",
"0.5427265",
"0.54270196",
"0.5426951",
"0.5426951",
"0.5426951"
] | 0.78920126 | 0 |
Get the [operation_prime_currency_id] column value. | public function getOperationPrimeCurrencyId()
{
return $this->operation_prime_currency_id;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getOpPrimeId()\n {\n\n return $this->op_prime_id;\n }",
"public function getId() {\r\n\t\treturn($this->_currency_id);\r\n\t}",
"public function getCurrencyId()\n {\n return $this->currency_id;\n }",
"public function setOperationPrimeCurrencyId($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_numeric($v)) {\n $v = (int) $v;\n }\n }\n if ($this->operation_prime_currency_id !== $v) {\n $this->operation_prime_currency_id = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OPERATION_PRIME_CURRENCY_ID;\n }\n\n if ($this->aRCurrencies !== null && $this->aRCurrencies->getRCurrencyId() !== $v) {\n $this->aRCurrencies = null;\n }\n\n\n return $this;\n }",
"public function getOpPrimeNumero()\n {\n\n return $this->op_prime_numero;\n }",
"public function getCurrencyID()\n {\n return $this->currencyID;\n }",
"public function getPrimaryKey()\n {\n return $this->getOpPrimeId();\n }",
"public function getCoinId()\n {\n $this->checkIfKeyExistsAndIsInteger('coin_id');\n\n return $this->data['coin_id'];\n }",
"public function getOperationId()\n {\n return $this->operation_id;\n }",
"public function getCompanyId()\n\t{\n\t\t$column = self::COL_COMPANY_ID;\n\t\t$v = $this->$column;\n\n\t\tif( $v !== null){\n\t\t\t$v = (int)$v;\n\t\t}\n\n\t\treturn $v;\n\t}",
"public function getOpPrimeLibelle()\n {\n\n return $this->op_prime_libelle;\n }",
"public function getCurrencyCode()\n {\n return $this->_fields['CurrencyCode']['FieldValue'];\n }",
"public function currencyCode()\n {\n return $this->_storeManager->getStore()->getCurrentCurrency()->getCurrencyCode();\n }",
"public function getCurrencyCode() \n {\n return $this->_fields['CurrencyCode']['FieldValue'];\n }",
"public function getId()\n\t{\n\t\t$column = self::COL_ID;\n\t\t$v = $this->$column;\n\n\t\tif( $v !== null){\n\t\t\t$v = (int)$v;\n\t\t}\n\n\t\treturn $v;\n\t}",
"public function getId()\n\t{\n\t\t$column = self::COL_ID;\n\t\t$v = $this->$column;\n\n\t\tif( $v !== null){\n\t\t\t$v = (int)$v;\n\t\t}\n\n\t\treturn $v;\n\t}",
"public function getCurrencyCode()\n {\n return isset($this->currency_code) ? $this->currency_code : '';\n }",
"public function getComId() {\n return $this->comId;\n }",
"public function getCurrentCurrencyCode() {\r\n\t\treturn $this->_storeManager->getStore()->getCurrentCurrencyCode();\r\n\t}",
"public function getCommodityCode()\n {\n return $this->commodityCode;\n }",
"function getIdEquipe() {\r\n return $this->IdEquipe;\r\n }",
"public function getCurrencyCode(){\n if(!$this->currencyCode){\n return $this->currencyCode = Shop_CurrencySettings::get()->code;\n }\n return $this->currencyCode;\n }",
"private function obtenerNuevoID()\n\t{\n\t\t$query = $this->db->select('MAX(CPRODUCTOFS) as id')\n\t\t\t->from('MPRODUCTOCLIENTE')\n\t\t\t->get();\n\t\tif (!$query) {\n\t\t\tthrow new Exception('Error al encontrar el Código de producto');\n\t\t}\n\t\treturn intval($query->row()->id) + 1;\n\t}",
"public function getIdCompra()\r\n {\r\n return $this->idCompra;\r\n }",
"public function getOperationPrimeFixedAmount()\n {\n\n return $this->operation_prime_fixed_amount;\n }",
"public function getProdPriceId()\n {\n return $this->prod_price_id;\n }",
"public function getOperationPrimeRRewardExpeditionModeId()\n {\n\n return $this->operation_prime_r_reward_expedition_mode_id;\n }",
"public function getPrimaryKey()\n\t{\n\t\treturn $this->getCoNumInventario();\n\t}",
"function getCarteOperation()\n {\n $query_rq_service = \"SELECT numero_carte FROM carte_parametrable WHERE idcarte=2\";\n $service = $this->getConnexion()->prepare($query_rq_service);\n $service->execute();\n $row_rq_service= $service->fetchObject();\n return $row_rq_service->numero_carte;\n }",
"public function getCurrencyCode()\n {\n return $this->currencyCode;\n }",
"public function getCurrencyCode()\n {\n return $this->currencyCode;\n }",
"public function getCurrencyCode()\n {\n return $this->currencyCode;\n }",
"public function getCurrencyCode()\n {\n return $this->currencyCode;\n }",
"public function getCurrencyCode()\n {\n return $this->currencyCode;\n }",
"function currencyCode( $collection = false )\n {\n if ( is_string( $collection ) and $collection != '' )\n {\n $currencyCode = $collection;\n }\n else\n {\n if ( ( $collection instanceof eZProductCollection ) === false )\n {\n $collection = eZProductCollection::fetch( $this->attribute( 'productcollection_id' ) );\n }\n $currencyCode = $collection->attribute( 'currency_code' );\n }\n\n // Backwards compability for orders done with the price datatype.\n if ( $currencyCode == '' )\n {\n $currencyCode = eZOrder::fetchLocaleCurrencyCode();\n }\n return $currencyCode;\n }",
"public function getId()\n {\n return $this->c_id;\n }",
"public function getOperationPrimeMaximumAmount()\n {\n\n return $this->operation_prime_maximum_amount;\n }",
"public function getCurrentCurrencyCode()\n {\n if ($this->currentCurrencyCode === null) {\n $this->currentCurrencyCode = strtoupper(\n $this->getStore()->getCurrentCurrencyCode()\n );\n }\n\n return $this->currentCurrencyCode;\n }",
"public function getOpId()\n {\n\n return $this->op_id;\n }",
"public function getCurrencyCode()\n {\n return $this->_currencyCode;\n }",
"public function getCommerceId() : int\n {\n return $this->getValue('nb_commerce_id');\n }",
"public function getCurrencyAttribute()\n\t{\n\t\t\n\t\treturn self::getCurrencies()[$this->currency_id] ?? \"-\";\n\t\t\n\t}",
"public function getPkValue(){\n $pk = static::getPk();\n return (int) $this->$pk;\n }",
"public function getCurrencyISOCode()\n {\n $numberFormatter = new \\NumberFormatter($this->_currentLocale, \\NumberFormatter::CURRENCY);\n return $numberFormatter->getSymbol(\\NumberFormatter::INTL_CURRENCY_SYMBOL);\n }",
"public function getContractID() {\r\n\t\treturn $this->contract_id;\r\n\t}",
"public function getID_C()\n {\n return $this->ID_C;\n }",
"public function getPrimaryKey() {\n\t\tif ((bool) $this->_result) {\n\t\t\tif (isset($this->_result[0])) return (int) $this->_result[0];\n\t\t\telse parent::throwGetColException('DiscussCategoriesModel::getPrimaryKey', __LINE__, __FILE__);\n\t\t}\n\t\telse return parent::throwNoResException('DiscussCategoriesModel::getPrimaryKey', __LINE__, __FILE__);\n\t}",
"public function getCoNumInventario()\n\t{\n\t\treturn $this->co_num_inventario;\n\t}",
"public function getCircleId()\n {\n return $this->circle_id;\n }",
"public function get_id()\n {\n $pkey = static::tinydb_get_table_info()->primary_key;\n if (is_array($pkey)) {\n $val = array();\n foreach ($pkey as $field) {\n $val[$field] = \\TinyDb\\Internal\\SqlDataAdapters::decode(static::tinydb_get_table_info()->field_info($field)->type,\n $this->tinydb_rowdata[$field]);\n }\n } else {\n $val = \\TinyDb\\Internal\\SqlDataAdapters::decode(static::tinydb_get_table_info()->field_info($pkey)->type,\n $this->tinydb_rowdata[$pkey]);\n }\n\n\n return $val;\n }",
"public function getInvoiceCurrencyCode()\n {\n return $this->invoiceCurrencyCode;\n }",
"public function getCurrentCurrencySymbol() {\n $currencyCurrencyCode = $this->objectManager->get ( '\\Magento\\Framework\\Pricing\\PriceCurrencyInterface' );\n\n return $currencyCurrencyCode->getCurrency ()->getCurrencySymbol ();\n }",
"public function getId() : int\n {\n return $this->getValue('nb_icontact_prospect_id');\n }",
"public function getIdOrdenCompra() {\n return $this->id_orden_compra;\n }",
"public function getOrderCurrencyCode();",
"function getCarteCommisssion()\n {\n $query_rq_service = \"SELECT numero_carte FROM carte_parametrable WHERE idcarte=1\";\n $service = $this->getConnexion()->prepare($query_rq_service);\n $service->execute();\n $row_rq_service= $service->fetchObject();\n return $row_rq_service->numero_carte;\n }",
"public function getCindex()\n {\n $value = $this->get(self::CINDEX);\n return $value === null ? (integer)$value : $value;\n }",
"public function getDocumentProductIpiCst()\n {\n return (string) $this->document_product_ipi_cst;\n }",
"protected function getCurrency()\n {\n return $this->checkoutSession->getLastRealOrder()->getOrderCurrencyCode();\n }",
"public function getIdentityField()\n {\n return $this->gateway->getPrimaryCol();\n }",
"private function getProductIdentifierField()\n {\n if (!$this->productEntityIdentifierField) {\n $this->productEntityIdentifierField = $this->getMetadataPool()\n ->getMetadata(\\Magento\\Catalog\\Api\\Data\\ProductInterface::class)\n ->getIdentifierField();\n }\n return $this->productEntityIdentifierField;\n }",
"public function getOperationId(): ?string;",
"public function getPcIdPl() {\n\t\tif ((bool) $this->_result) {\n\t\t\tif (array_key_exists(1, $this->_result)) return (int) $this->_result[1];\n\t\t\telse parent::throwGetColException('Not set ProjectsListingsModel::getPcIdPl', __LINE__, __FILE__);\n\t\t}\n\t\telse return parent::throwNoResException('No result From ProjectsListingsModel::getPcIdPl', __LINE__, __FILE__);\n\t}",
"protected function _getCurrencyCode($row)\n {\n $websiteId = $row->getData('website_id');\n $orphanCurrency = $row->getData('base_currency_code');\n if ($orphanCurrency !== null) {\n return $orphanCurrency;\n }\n if (!isset($this->_websiteBaseCurrencyCodes[$websiteId])) {\n $this->_websiteBaseCurrencyCodes[$websiteId] = $this->_storeManager->getWebsite(\n $websiteId\n )->getBaseCurrencyCode();\n }\n return $this->_websiteBaseCurrencyCodes[$websiteId];\n }",
"public function getIdEmpleado($cedulaEmpl = '') {\n $this->consulta = \"SELECT idEmpleado \n FROM empleado \n WHERE cedula = '$cedulaEmpl'\";\n if ($this->consultarBD() > 0) {\n return $this->registros[0]['idEmpleado'];\n } else {\n return -1;\n }\n }",
"public function get_New_CAD_NO(){\n\n\t\t$this->db->select_max('MJ_CAD_ID');\n\t\t$query = $this->db->get('MJ_COMPLAINT_ASSIGN_DTL'); \n\t\t$row = $query->row();\n\n\t\tif (isset($row))\n\t\t return $row->MJ_CAD_ID + 1;\n\t}",
"public function getId() {\r\n\t\t\treturn $this->columns[ $this->index ];\r\n\t\t}",
"private function get_currency_code() : string {\n\t\tpreg_match( '/runParams\\.baseCurrencyCode=\"(.*?)\";/s', $this->request, $matches );\n\t\tif ( empty( $matches[1] ) ) {\n\t\t\treturn 'USD';\n\t\t}\n\t\treturn sanitize_text_field( $matches[1] );\n\t}",
"public function getChargeId()\n {\n return $this->get(self::_CHARGE_ID);\n }",
"public function getMarketId()\n {\n return $this->market_id;\n }",
"public function getCurrencyCode();",
"public function getCurrencyCode();",
"public function getCurrencyCode();",
"private function getBaseCurrencyCode()\n {\n return $this->scopeConfig->getValue($this->xmlPathBaseCurrency, $this->defaultCurrencyCodeValue);\n }",
"public function getOrderCurrencyCode()\n {\n return $this->orderCurrencyCode;\n }",
"public function getOperationPrimeProductPricePourcentage()\n {\n\n return $this->operation_prime_product_price_pourcentage;\n }",
"public function getCurrencyIdByCode($code) {\n $this->sError = FALSE;\n\n if ($this->_currencyCode2Id === FALSE) {\n $this->_loadCurrencyCodes();\n }\n\n if (!isset($this->_currencyCode2Id[$code])) {\n $this->sError = 'Incorect currency code: ' . $code;\n return FALSE;\n }\n\n return $this->_currencyCode2Id[$code];\n }",
"public function get_primary_column()\n {\n }",
"public function getIdComentario()\n {\n return $this->id_comentario;\n }",
"protected function getCurrentId()\n {\n return (array_key_exists($this->idfieldName(), $this->data)) ? $this->data[$this->idfieldName()] : NULL;\n }",
"public function getValueId()\n {\n return $this->valueId;\n }",
"protected function get_currency() {\n\t\treturn $this->currency;\n\t}",
"private function getPriceAttributeId()\n {\n if (!$this->priceAttributeId) {\n $this->priceAttributeId = $this->attributeRepository->get('special_price')->getAttributeId();\n }\n\n return $this->priceAttributeId;\n }",
"public function getId_produit()\n {\n return $this->id_produit;\n }",
"public function getStoreCurrencyCode();",
"public function get_currency()\n {\n $cart = $this->getService()->getSessionCart();\n\n $currencyService = $this->di['mod_service']('currency');\n $currency = $this->di['db']->load('Currency', $cart->currency_id);\n if (!$currency instanceof \\Model_Currency) {\n $currency = $currencyService->getDefault();\n }\n\n return $currencyService->toApiArray($currency);\n }",
"public function obtenerIDPrimerPagoElectronico(){\n $criteria = new CDbCriteria;\n $criteria->condition = 'id_pedido = '.$this->id_pedido;\n $registrosCarro = PagosElectronicos::model()->findAll($criteria);\n\n if (sizeof($registrosCarro) > 0)\n return $registrosCarro[0]->id;\n return 0;\n }",
"public function getIdConnex()\n {\n return $this->idConnex;\n }",
"public function getChargeIdAttribute()\n {\n return $this->laboratory->id;\n }",
"protected function resolveModelId()\n {\n if (!$this->owner->hasAttribute($this->idAttribute)) {\n throw new CException(sprintf('Owner does not have a \"%s\" column.', $this->idAttribute));\n }\n return $this->owner->{$this->idAttribute};\n }",
"public function getCodigoComentario()\n {\n return $this->codigoComentario;\n }",
"public function getColumnId(): string\n {\n return $this->getColumn('id', 'id');\n }",
"public function getCodeCollaborateurClot() {\n return $this->codeCollaborateurClot;\n }",
"public function getConnectionId()\n\t{\n\t\tif ( $this->pdo === null ) {\n\t\t\treturn null;\n\t\t}\n\n\t\ttry {\n\t\t\treturn $this->pdo->query('SELECT CONNECTION_ID()')->fetch(PDO::FETCH_COLUMN);\n\t\t} catch ( \\PDOException $e ) {\n\t\t\treturn null;\n\t\t}\n\t}",
"public function getPrimaryKey() {\n\t\tif ((bool) $this->_result) {\n\t\t\tif (isset($this->_result[0])) return (int) $this->_result[0];\n\t\t\telse parent::throwGetColException('ProjectsListingsModel::getPrimaryKey', __LINE__, __FILE__);\n\t\t}\n\t\telse return parent::throwNoResException('ProjectsListingsModel::getPrimaryKey', __LINE__, __FILE__);\n\t}",
"static function fetchLocaleCurrencyCode()\n {\n $locale = eZLocale::instance();\n $currencyCode = $locale->currencyShortName();\n return $currencyCode;\n }",
"private function getUserCompanyId(){\n $id = NULL;\n\n if(isset($this->user_id) && !empty($this->user_id)){\n $query = $this->companies->get_company_id($this->user_id);\n if(!is_null($query)){\n $id = $query->id;\n }\n }\n return $id;\n }",
"public function getConversionId(): int\n {\n return $this->id;\n }",
"public function getPrimaryKey() {\n\t\tif ((bool) $this->_result) {\n\t\t\tif (isset($this->_result[0])) return (int) $this->_result[0];\n\t\t\telse parent::throwGetColException('PollTemplatesModel::getPrimaryKey', __LINE__, __FILE__);\n\t\t}\n\t\telse return parent::throwNoResException('PollTemplatesModel::getPrimaryKey', __LINE__, __FILE__);\n\t}",
"public function getExcavateId()\n {\n return $this->get(self::_EXCAVATE_ID);\n }"
] | [
"0.67050874",
"0.65308934",
"0.6258168",
"0.6064645",
"0.6054431",
"0.5844944",
"0.5679418",
"0.5539268",
"0.5504156",
"0.5503011",
"0.5502969",
"0.54434776",
"0.54260874",
"0.53574157",
"0.5279207",
"0.5279207",
"0.52437246",
"0.5204225",
"0.5194511",
"0.5179614",
"0.5169454",
"0.5162627",
"0.5161225",
"0.5157038",
"0.5153575",
"0.51485455",
"0.5143956",
"0.5130059",
"0.5119001",
"0.5113814",
"0.5113814",
"0.5113814",
"0.5113814",
"0.5113814",
"0.51110566",
"0.51088387",
"0.51040167",
"0.5101193",
"0.5091796",
"0.507525",
"0.50170815",
"0.49916875",
"0.49859086",
"0.49837497",
"0.49749672",
"0.49732888",
"0.4972733",
"0.49723274",
"0.49676353",
"0.49644157",
"0.49444953",
"0.49191046",
"0.4918295",
"0.49141526",
"0.48994246",
"0.488921",
"0.48879096",
"0.48807967",
"0.48803148",
"0.48768008",
"0.48765764",
"0.48739147",
"0.48723254",
"0.48680356",
"0.48656395",
"0.48595995",
"0.48594856",
"0.48576948",
"0.48549065",
"0.48549035",
"0.4853045",
"0.4853045",
"0.4853045",
"0.48386768",
"0.4837829",
"0.48355624",
"0.48270914",
"0.48266613",
"0.48243728",
"0.4819847",
"0.48196498",
"0.4812162",
"0.4809896",
"0.48092836",
"0.4808327",
"0.48076335",
"0.4795943",
"0.4795045",
"0.4794949",
"0.47944623",
"0.47874126",
"0.47845766",
"0.4775888",
"0.47732",
"0.47689486",
"0.47401437",
"0.47391477",
"0.47379243",
"0.47371724",
"0.4727318"
] | 0.8447531 | 0 |
Get the [operation_prime_r_reward_type_id] column value. | public function getOperationPrimeRRewardTypeId()
{
return $this->operation_prime_r_reward_type_id;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getType_id()\n {\n return $this->type_id;\n }",
"public function getOperationPrimeRRewardExpeditionModeId()\n {\n\n return $this->operation_prime_r_reward_expedition_mode_id;\n }",
"public function getIdType() {\n\t\treturn $this->id_type;\n\t}",
"public function get_type()\n {\n return self::$_id;\n }",
"public function getOperationPrimeRRewardTransporterId()\n {\n\n return $this->operation_prime_r_reward_transporter_id;\n }",
"public function setOperationPrimeRRewardTypeId($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_numeric($v)) {\n $v = (int) $v;\n }\n }\n if ($this->operation_prime_r_reward_type_id !== $v) {\n $this->operation_prime_r_reward_type_id = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OPERATION_PRIME_R_REWARD_TYPE_ID;\n }\n\n if ($this->aRRewardTypes !== null && $this->aRRewardTypes->getRRewardTypeId() !== $v) {\n $this->aRRewardTypes = null;\n }\n\n\n return $this;\n }",
"public function getRelationTypeId()\n {\n return $this->relation_type_id;\n }",
"public function getTypeID() {\n\t\treturn $this->_type_id;\n\t}",
"public function getIdType()\n {\n return $this->idType;\n }",
"public function getType()\n {\n $value = $this->get(self::TYPE);\n return $value === null ? (integer)$value : $value;\n }",
"public function getTypeId()\n {\n return $this->type_id;\n }",
"public function getTypeId()\n {\n return $this->type_id;\n }",
"public function getTypeId()\n {\n return $this->type_id;\n }",
"public function getTypeId()\n {\n return $this->_getData('type_id');\n }",
"public function getType()\n {\n return $this->type()->getID();\n }",
"public function getTypeCode () {\n if (2 == $this->status) {\n return \"meanless\";\n }\n\n return $this->objtype;\n }",
"public function getRewardId()\n {\n return $this->reward_id;\n }",
"public function getTypeId()\n {\n return $this->get(self::_TYPE_ID);\n }",
"public function getTypeCode(): int\n {\n return $this->typeCode;\n }",
"public function type(): int\n {\n return $this->type;\n }",
"public function getTypeId()\n\t{\n\t\tif( isset( $this->values[$this->prefix . 'typeid'] ) ) {\n\t\t\treturn (string) $this->values[$this->prefix . 'typeid'];\n\t\t}\n\t}",
"Public function get_ididtypeexp()\n\t\t{\n\t\t\tReturn $this ->idtypeexp;\n\t\t}",
"public function type(): int\n {\n return (int) $this->type;\n }",
"public function getTypeFacture_id()\n {\n return $this->typeFacture_id;\n }",
"function getType(){\r\n\t\tif($this->inDB==false||$this->type==null){\r\n\t\t\t$temp=$this->dbq->getAnswerType($this->answer_id);\r\n\t\t\t$this->type = $temp;\r\n\t\t}\r\n\t\treturn $this->type;\r\n\t}",
"public function getRealestateType()\n {\n return $this->hasOne(RealEstateType::className(), ['id' => 'realestate_type_id']);\n }",
"public function getItineraryTypeId()\n {\n return $this->itinerary_type_id;\n }",
"public function getType(): int\n {\n return $this->type;\n }",
"public function getType()\n {\n return isset($this->type) ? $this->type : 0;\n }",
"public function getTypeForID() {\n\t\treturn self::C_DATATYPE_INTEGER;\n\t}",
"public function getRelaterId()\n {\n $value = $this->get(self::RELATER_ID);\n return $value === null ? (integer)$value : $value;\n }",
"public final function getTypeCode(): int\n {\n return self::TYPE_CODE;\n }",
"public function getLoanTypeId()\n\t\t{\n\t\t\treturn $this->getModel()->loan_type_id;\n\t\t}",
"final public function getType(): int {}",
"public function getType()\n {\n $rtn = $this->data['type'];\n\n return $rtn;\n }",
"public function getTypeId()\n {\n return $this->typeId;\n }",
"public function typeId()\n {\n return config('entities.ids.' . $this->type);\n }",
"public function getRoleType() {\r\n\t return $this->roleType;\r\n\t}",
"public function getRefundLedgerId($key, $type) {\r\n\t\tif ($type == 'single') {\r\n\t\t\treturn $this->refundLedgerId;\r\n\t\t} else if ($type == 'array') {\r\n\t\t\treturn $this->refundLedgerId [$key];\r\n\t\t} else {\r\n\t\t\techo json_encode(array(\"success\" => false, \"message\" => \"Cannot Identifiy Type String Or Array:getRefundLedgerId ?\"));\r\n\t\t\texit();\r\n\t\t}\r\n\t}",
"public function type() : int;",
"public function getTypeId()\n {\n return $this->readOneof(1);\n }",
"public function getPremiumType(): int\n {\n return $this->premium_type;\n }",
"public function getType()\n {\n if (is_null($this->type)) {\n /** @psalm-var stdClass|array<string, mixed>|null $data */\n $data = $this->raw(self::FIELD_TYPE);\n if (is_null($data)) {\n return null;\n }\n\n $this->type = TypeResourceIdentifierModel::of($data);\n }\n\n return $this->type;\n }",
"public function getLoanType()\n\t\t{\n\t\t\t$loan_type_id = $this->getLoanTypeId();\n\t\t\t$ref_list = ECash::getFactory()->getReferenceList('LoanType');\n\t\t\treturn $ref_list[$loan_type_id];\n\t\t}",
"function get_request_type($id_request_type){\n $this->db->where('id', $id_request_type);\n $query = $this->db->get('type_request');\n return($query->result());\n }",
"public function getRemediationType()\n {\n return $this->remediation_type;\n }",
"public function getRelationType()\n {\n return $this->relation_type;\n }",
"public function getQuestionnaireTypeId()\n {\n return $this->questionnaire_type_id;\n }",
"public function recurrenceTypeId(): RecurrenceTypeId;",
"function get_type() {\n\t\treturn $this->get_data( 'type' );\n\t}",
"public function getObjectIdentifier()\n {\n return $this->type;\n }",
"public function get_id() {\n return str_replace('forumngtype_', '', get_class($this));\n }",
"public function getId_recette()\n {\n return $this->_id_recette;\n }",
"public function getType()\r\n {\r\n return $this->m_type;\r\n }",
"public function get_scoring_type()\n {\n return $this->scoring_type;\n }",
"public function get_type(): string;",
"public function getType($type): ?int\n {\n $lt = null;\n switch ($type) {\n case 'bo5':\n $lt = Match::TYPE_BO5;\n break;\n case 'bo3':\n $lt = Match::TYPE_BO3;\n break;\n case 'bo2':\n $lt = Match::TYPE_BO2;\n break;\n case 'bo1':\n case 'mrg':\n case 'trn':\n case 'nuke':\n case 'd2':\n case 'inf':\n case 'vtg':\n case 'ovp':\n $lt = Match::TYPE_BO1;\n break;\n default:\n $lt = Match::TYPE_UNDEFINED;\n break;\n }\n\n return $lt;\n }",
"public function getIdentifierType()\n {\n return $this->identifierType;\n }",
"public function getTokenType(): ?int\n {\n return $this->tokenType;\n }",
"public function get_type() {\n\t\treturn $this->type;\n\t}",
"function getType()\n\t{\n\t\treturn $this->il_type;\n\t}",
"public function retrouve_Type($type) {\n\t\t$this->onDebug ( __METHOD__, 1 );\n\t\tif (is_numeric ( $type )) {\n\t\t\treturn $type;\n\t\t}\n\t\tswitch (strtolower ( $type )) {\n\t\t\tcase \"zabbix admin\" :\n\t\t\t\treturn 2;\n\t\t\t\tbreak;\n\t\t\tcase \"zabbix super admin\" :\n\t\t\t\treturn 3;\n\t\t\t\tbreak;\n\t\t\tcase \"zabbix user\" :\n\t\t\tdefault :\n\t\t}\n\t\t\n\t\treturn 1;\n\t}",
"public function type() : int\n {\n return $this->estimator->type();\n }",
"public static function getUserTypeIDValue($userType)\n {\n $conn = new MySqlConnect();\n $id;\n\n $userType = $conn -> sqlCleanup($userType);\n // query the db for the value comparison\n\n $result = $conn -> executeQueryResult(\"SELECT userTypeID FROM userTypes WHERE userTypeName = '{$userType}'\");\n // use mysql_fetch_array($result, MYSQL_ASSOC) to access the result object\n while ($row = mysql_fetch_array($result, MYSQL_ASSOC))\n {\n // access the password value in the db\n $id = $row['userTypeID'];\n }\n $conn -> freeConnection();\n return $id;\n }",
"function _get_type() {\n\t\treturn $this->type();\n\n\t}",
"public function getType()\n {\n return self::TYPE;\n }",
"public function getRelationType()\n {\n return $this->relationType;\n }",
"public function getRelationType()\n {\n return $this->relationType;\n }",
"public function get_type() {\n return $this->type;\n }",
"public function getType()\n {\n return $this->isActive() ? TransactionModifierTypes::CHARGEABLE : TransactionModifierTypes::NEUTRAL;\n }",
"public function getTypeCode(): ?string\n {\n return $this->typeCode;\n }",
"public function getTypeCode(): ?string\n {\n return $this->typeCode;\n }",
"protected function getTypeAttribute()\n {\n return $this->is_organizational ? $this->organization_goal->type : $this->custom_type;\n }",
"public function getNextId($type)\n {\n $type = ucwords($type);\n $key = \"last{$type}Id\";\n $user = $this->getUserRecord();\n if($user === false)\n return false;\n\n if(!isset($user[$key]))\n $user[$key] = '';\n $nextIntId = base_convert($user[$key], 31, 10) + 1;\n $nextId = base_convert($nextIntId, 10, 31);\n\n /*$nextId = $this->getAttribute($type);\n if($nextId === false)\n $nextId = '';\n $nextIntId = base_convert($nextId, 31, 10) + 1;\n $nextId = base_convert($nextIntId, 10, 31);*/\n $this->update(array($key => $nextId));\n return $nextId;\n }",
"public function getTypeIdentifier();",
"public function getRequestorId(): ?string {\n $val = $this->getBackingStore()->get('requestorId');\n if (is_null($val) || is_string($val)) {\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'requestorId'\");\n }",
"public function get_type(){\n\t\treturn $this->_type;\n\t}",
"public function getType()\n\t{\n\t\tif( isset( $this->values[$this->prefix . 'type'] ) ) {\n\t\t\treturn (string) $this->values[$this->prefix . 'type'];\n\t\t}\n\t}",
"abstract public function getType(): int;",
"public function type()\n {\n return $this->_type;\n }",
"public function get_type();",
"public function get_reg_id($character, $id_type) {\n\n $fields = array(\"*\");\n $whereArr = array(\"id_type\" => $id_type);\n $id_number = $this->db_model->getData($fields, 'id_numbers_m_tbl', $whereArr);\n\n $int = intval(preg_replace('/[^0-9]+/', '', $id_number[0]->id_number), 10);\n $id = \"$character\" . ($int + 1);\n return $id;\n\n}",
"public function type() {\n\t\t\treturn $this->_type;\n\t\t}",
"public function getType()\n {\n return $this->get(self::_TYPE);\n }",
"public function getType()\n {\n return $this->get(self::_TYPE);\n }",
"public function getType()\n {\n return $this->get(self::_TYPE);\n }",
"public function getType()\n {\n return $this->get(self::_TYPE);\n }",
"public function getType()\n {\n return $this->get(self::_TYPE);\n }",
"public function getType()\n {\n return $this->get(self::_TYPE);\n }",
"public function getType()\n {\n return $this->get(self::_TYPE);\n }",
"public function getType()\n {\n return $this->get(self::_TYPE);\n }",
"public function getType()\n {\n return $this->get(self::_TYPE);\n }",
"public function getType()\n {\n return $this->get(self::_TYPE);\n }",
"public function getType()\n {\n return $this->get(self::_TYPE);\n }",
"public function getType()\n {\n return $this->get(self::_TYPE);\n }",
"public function getType()\n {\n return $this->get(self::_TYPE);\n }",
"public function getAutoIncrement()\n\t\t{\n\t\t\treturn 'cfe_action_type_id';\n\t\t}",
"final protected function get_type() {\n return $this->type;\n }",
"public function getType() : string\n {\n $rtn = $this->data['type'];\n\n return $rtn;\n }",
"function getType() {\n\t\treturn $this->_type;\n\t}"
] | [
"0.6128773",
"0.5971852",
"0.5958365",
"0.5925417",
"0.5923487",
"0.5910461",
"0.5900198",
"0.58992726",
"0.57221735",
"0.57031703",
"0.56892955",
"0.56892955",
"0.56892955",
"0.5680827",
"0.5666618",
"0.56575644",
"0.56103384",
"0.56047326",
"0.56027794",
"0.56008273",
"0.5596561",
"0.5586816",
"0.557922",
"0.5545386",
"0.5522816",
"0.5513707",
"0.5491557",
"0.549104",
"0.5487833",
"0.54741824",
"0.5464168",
"0.5445204",
"0.5429004",
"0.5407694",
"0.5378906",
"0.5377269",
"0.5356144",
"0.5355702",
"0.53386134",
"0.52915215",
"0.5271395",
"0.526674",
"0.5243976",
"0.52374846",
"0.5235643",
"0.52300656",
"0.52289826",
"0.5227393",
"0.5227372",
"0.52267325",
"0.52181464",
"0.5207451",
"0.5174916",
"0.51578957",
"0.51130044",
"0.51056993",
"0.51050836",
"0.51039726",
"0.50942934",
"0.5089702",
"0.5075314",
"0.5073163",
"0.50603217",
"0.50593466",
"0.505098",
"0.5049878",
"0.50482893",
"0.50482893",
"0.504807",
"0.50456184",
"0.5045086",
"0.5045086",
"0.504488",
"0.5044064",
"0.504324",
"0.5041443",
"0.5033325",
"0.50333077",
"0.503002",
"0.5025784",
"0.50212926",
"0.5002902",
"0.49956435",
"0.49909732",
"0.49909732",
"0.49909732",
"0.49909732",
"0.49909732",
"0.49909732",
"0.49909732",
"0.49909732",
"0.49909732",
"0.49909732",
"0.49906993",
"0.49906993",
"0.49906993",
"0.49900374",
"0.4988128",
"0.498549",
"0.4984655"
] | 0.8441382 | 0 |
Get the [operation_prime_r_reward_expedition_mode_id] column value. | public function getOperationPrimeRRewardExpeditionModeId()
{
return $this->operation_prime_r_reward_expedition_mode_id;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function setOperationPrimeRRewardExpeditionModeId($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_numeric($v)) {\n $v = (int) $v;\n }\n }\n if ($this->operation_prime_r_reward_expedition_mode_id !== $v) {\n $this->operation_prime_r_reward_expedition_mode_id = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OPERATION_PRIME_R_REWARD_EXPEDITION_MODE_ID;\n }\n\n if ($this->aRRewardExpeditionModes !== null && $this->aRRewardExpeditionModes->getRRewardExpeditionModeId() !== $v) {\n $this->aRRewardExpeditionModes = null;\n }\n\n\n return $this;\n }",
"function getModeID($mode)\n\t{\n\t\t$returnValue\t\t= -1;\n\t\t\n\t\tif (strcasecmp($mode, \"development\") == 0)\n\t\t{\n\t\t\t$returnValue\t= 1;\t\t\n\t\t}\n\t\telse if (strcasecmp($mode, \"production\") == 0)\n\t\t{\n\t\t\t$returnValue\t= 2;\t\t\n\t\t}\n\t\t\n\t\treturn $returnValue;\n\t}",
"public function getOperationPrimeRRewardTypeId()\n {\n\n return $this->operation_prime_r_reward_type_id;\n }",
"public function getEditionId()\n {\n return $this->edition_id;\n }",
"public function getModeReglement() {\n return $this->modeReglement;\n }",
"public function getEdition(): int\n {\n /** @var WebApplication|ConsoleApplication $this */\n $handle = $this->getProjectConfig()->get('system.edition') ?? 'solo';\n return App::editionIdByHandle($handle);\n }",
"protected function getCodeModeDePaiement()\r\n {\r\n $table = $this->getDbManager()->get('Sbm\\Db\\System\\Libelles');\r\n return $table->getCode('ModeDePaiement', 'CB');\r\n }",
"public function getMode()\n {\n return $this->hasOne(MsMode::className(), ['id' => 'mode_id']);\n }",
"public function getOperationPrimeRRewardTransporterId()\n {\n\n return $this->operation_prime_r_reward_transporter_id;\n }",
"public function getOpPrimeId()\n {\n\n return $this->op_prime_id;\n }",
"public function getMode(): string\n {\n return $this->mode;\n }",
"function _exp_mode($mode=NULL){\n $mode = 'exp_' . nz($mode,$this->exp_mode_default);\n return method_exists($this,$mode)?$mode:FALSE;\n }",
"protected function getMode() {\n\t\treturn $this->mode;\n\t}",
"final public function mode():string\n {\n return $this->mode;\n }",
"public function getEdition()\n {\n $edition = self::COMMUNITY_EDITION;\n\n if (method_exists('Mage', 'getEdition')) {\n $edition = Mage::getEdition();\n } else {\n $dir = Mage::getBaseDir('code') . DS . 'core' . DS . self::ENTERPRISE_EDITION;\n if (file_exists($dir)) {\n $edition = self::ENTERPRISE_EDITION;\n }\n }\n\n return $edition;\n }",
"public function mode()\n\t{\n\t\treturn $this->CLI->stringQuery($this->SqueezePlyrID.\" mode ?\");\n\t}",
"function getid_exp()\n { return $this->id_exp;}",
"final public function getMode(): int {}",
"public function GetMode()\n\t{\n\t\treturn $this->mode;\n\t}",
"public function getMode() {\n return $this->mode;\n }",
"public function getMode() {\n return $this->mode;\n }",
"public function getOpId()\n {\n\n return $this->op_id;\n }",
"public function getMode()\n {\n return $this->_mode;\n }",
"public function getMode()\n {\n return $this->mode;\n }",
"public function getMode()\n {\n return $this->mode;\n }",
"public function getMode()\n {\n return $this->mode;\n }",
"public function getMode()\n {\n return $this->mode;\n }",
"public function getMode()\n {\n return $this->mode;\n }",
"public function getMode()\n {\n return $this->mode;\n }",
"public function getMode()\n {\n return $this->mode;\n }",
"public function getCurrentMode()\n\t{\n\t\tif ($this->getHidepriceModel()->getId()) {\n\t\t\treturn $this->getHidepriceModel()->getMode();\n\t\t}\n\n\t\treturn 0;\n\t}",
"public function getMode() {\n return $this->mode;\n }",
"public function mode()\n\t{\n\t\treturn $this->mode;\n\t}",
"public function getMode()\n {\n return $this->base.($this->plus ? '+' : '').$this->flag;\n }",
"public function getMode(): ?int\n {\n return $this->mode;\n }",
"function getMode() {\n\t\treturn $this->get('mode');\n\t}",
"function getMode() {\n\t\treturn $this->mode;\n\t}",
"function getid_exp()\n { return $this->id_exp;}",
"function getid_exp()\n { return $this->id_exp;}",
"public function getMode()\n\t{\n\t\treturn $this->mode;\n\t}",
"public function getMode()\n\t{\n\t\treturn $this->mode;\n\t}",
"function getMode() {\n\t\treturn $this->_mode;\n\t}",
"function getMode() {\n\t\treturn $this->_mode;\n\t}",
"public function getEdition() {\n\t\tif ($this->_edition === null) {\n\t\t\t$this->analyzeURL();\n\t\t}\n\t\treturn $this->_edition;\n\t}",
"public function modeName()\n\t{\n\t\treturn $this->mode->name();\n\t}",
"function getMode()\n {\n return $this->mode;\n }",
"private function getMode()\n {\n $mode = $this->mode;\n $conf_view = $this->conf_view;\n\n\n $sumOfModes = count( $conf_view );\n\n // RETURN false : there isn't any single view\n if ( $sumOfModes < 1 )\n {\n // RETURN : no DRS prompt needed\n if ( !$this->pObj->b_drs_error )\n {\n return false;\n }\n\n // RETURN : DRS prompt\n $this->getModeDRSnoView();\n return false;\n }\n\n // mode isn't proper. Move it to 1.\n if ( $mode > $sumOfModes )\n {\n $mode = 1;\n }\n\n return $mode;\n }",
"public function getExpedienteId() {\n return $this->expedienteId;\n }",
"function getMode()\n {\n return $this->mode;\n }",
"protected function _getEdition()\n {\n $edition = self::TYPE_COMMUNITY;\n\n if (method_exists('Mage', 'getEdition')) {\n $edition = Mage::getEdition();\n } else {\n $dir = Mage::getBaseDir('code') . DS . 'core' . DS . self::TYPE_ENTERPRISE;\n if (file_exists($dir)) {\n $edition = self::TYPE_ENTERPRISE;\n }\n }\n\n return $edition;\n }",
"public static function getForbiddenID($mode)\n {\n if (is_null(self::$_aForbiddenID)) {\n require_once CLASS_DIR . 'class.db_utilisateur.php';\n $aPage = array();\n if (Utilisateur::isConnected()) {\n $aPage += Utilisateur::getConnected()->getPages();\n }\n if ($mode == 'ON_') {\n $tab = self::getSecuredID($mode);\n } else {\n $tab = array();\n }\n $tab = array_diff($tab, $aPage);\n self::$_aForbiddenID = $tab;\n }\n\n return self::$_aForbiddenID;\n }",
"public static function getMode()\n {\n return self::$_mode;\n }",
"public function getCodeModele() {\n return $this->codeModele;\n }",
"public function getEdition()\n {\n return $this->edition;\n }",
"public function getMode()\n {\n if (array_key_exists(\"mode\", $this->_propDict)) {\n if (is_a($this->_propDict[\"mode\"], \"\\Beta\\Microsoft\\Graph\\Model\\SimulationMode\") || is_null($this->_propDict[\"mode\"])) {\n return $this->_propDict[\"mode\"];\n } else {\n $this->_propDict[\"mode\"] = new SimulationMode($this->_propDict[\"mode\"]);\n return $this->_propDict[\"mode\"];\n }\n }\n return null;\n }",
"public function getEdition() {\n return $this->edition;\n }",
"Public function get_ididtypeexp()\n\t\t{\n\t\t\tReturn $this ->idtypeexp;\n\t\t}",
"public static function getEditToken()\n {\n $r = self::$db->fetchColumn(\n 'INSERT INTO bapsplanner.client_ids (show_season_timeslot_id, session_id)\n VALUES ($1, $2) RETURNING client_id',\n [$_SESSION['timeslotid'], session_id()]\n );\n\n if (empty($r)) {\n throw new MyRadioException('Failed to generate Show Planner edit token.', 500);\n }\n\n return (int) $r[0];\n }",
"public function getLicensedEdition()\n {\n /** @var WebApplication|ConsoleApplication $this */\n $licensedEdition = $this->getCache()->get('licensedEdition');\n\n if ($licensedEdition !== false) {\n return (int)$licensedEdition;\n }\n\n return null;\n }",
"public function getEncuestaRecepcionid()\r\n {\r\n return $this->encuesta_recepcionId;\r\n }",
"protected function getModerationStateId() {\n $entity = $this->getEntity();\n\n /** @var \\Drupal\\content_moderation\\ModerationInformationInterface $moderation_info */\n $moderation_info = \\Drupal::service('content_moderation.moderation_information');\n if (!$moderation_info->shouldModerateEntitiesOfBundle($entity->getEntityType(), $entity->bundle())) {\n return NULL;\n }\n\n // Existing entities will have a corresponding content_moderation_state\n // entity associated with them.\n if (!$entity->isNew() && $content_moderation_state = $this->loadContentModerationStateRevision($entity)) {\n return $content_moderation_state->moderation_state->value;\n }\n\n // It is possible that the bundle does not exist at this point. For example,\n // the node type form creates a fake Node entity to get default values.\n // @see \\Drupal\\node\\NodeTypeForm::form()\n $workflow = $moderation_info->getWorkFlowForEntity($entity);\n return $workflow ? $workflow->getTypePlugin()->getInitialState($workflow, $entity)->id() : NULL;\n }",
"public function getAssociateMode()\n {\n if (is_null($this->associateMode)) {\n /** @psalm-var ?string $data */\n $data = $this->raw(self::FIELD_ASSOCIATE_MODE);\n if (is_null($data)) {\n return null;\n }\n $this->associateMode = (string) $data;\n }\n\n return $this->associateMode;\n }",
"public function getMode()\n {\n $value = $this->_config->get('dataprocessing/general/mode');\n\n if ($value === null) {\n $value = 'products';\n }\n\n return $value;\n }",
"public function getMode() : string\n {\n return $this->getRequest()->getParam($this->getBlockViewModeParameter(), \"grid\");\n }",
"public function getInventoryMode()\n {\n if (is_null($this->inventoryMode)) {\n /** @psalm-var ?string $data */\n $data = $this->raw(self::FIELD_INVENTORY_MODE);\n if (is_null($data)) {\n return null;\n }\n $this->inventoryMode = (string) $data;\n }\n\n return $this->inventoryMode;\n }",
"public function get_controlled_mode($company_id){\n\t\tif($company_id == null){\n\t\t\treturn false;\n\t\t}\n\t\t$sql = \"SELECT CAST(controlled_mode AS unsigned) controlled_mode from company_info WHERE id = $company_id\";\n\t\t$query = $this->db->query($sql);\n\t\t$row = $query->row_array();\n\t\terror_log(\"Found controlled mode: \" . $row[\"controlled_mode\"]);\n\t\treturn $row[\"controlled_mode\"];\n\t}",
"public function getOperationPrimeCurrencyId()\n {\n\n return $this->operation_prime_currency_id;\n }",
"public function get_mode() {\n global $SESSION;\n if (isset($SESSION->homeworkblockmode)) {\n return $SESSION->homeworkblockmode;\n }\n\n $possiblemodes = $this->get_possible_modes();\n $SESSION->homeworkblockmode = $possiblemodes[0];\n return $possiblemodes[0];\n }",
"public function getExcavateId()\n {\n return $this->get(self::_EXCAVATE_ID);\n }",
"public function getOpPrimeNumero()\n {\n\n return $this->op_prime_numero;\n }",
"public function getCodeEtablissement(): ?int {\n return $this->codeEtablissement;\n }",
"public function getCodeEtablissement(): ?int {\n return $this->codeEtablissement;\n }",
"public function getIdEspece()\n {\n return $this->idEspece;\n }",
"public function getIdEspece()\n {\n return $this->idEspece;\n }",
"public function getMode()\n {\n $env = $this->reader->load(ConfigFilePool::APP_ENV);\n return isset($env[State::PARAM_MODE]) ? $env[State::PARAM_MODE] : null;\n }",
"public function recupereMaxId()\n {\n return $this->getGreaterId('membre_jury');\n }",
"private function getMode($code){\n\t\t\treturn $this->query_modes[$code];\n\t\t}",
"private function getMode($code){\n\t\t\treturn $this->query_modes[$code];\n\t\t}",
"protected function evalManageMode()\n {\n if ($mode = post(self::PARAM_MODE)) {\n return $mode;\n }\n\n if ($this->forceManageMode) {\n return $this->forceManageMode;\n }\n\n switch ($this->eventTarget) {\n case 'button-create':\n case 'button-update':\n return 'form';\n\n case 'button-link':\n return 'list';\n }\n\n switch ($this->relationType) {\n case 'belongsTo':\n return 'list';\n\n case 'morphToMany':\n case 'morphedByMany':\n case 'belongsToMany':\n if (isset($this->config->pivot)) {\n return 'pivot';\n }\n elseif ($this->eventTarget == 'list') {\n return 'form';\n }\n else {\n return 'list';\n }\n\n case 'hasOne':\n case 'morphOne':\n case 'hasMany':\n case 'morphMany':\n if ($this->eventTarget == 'button-add') {\n return 'list';\n }\n\n return 'form';\n }\n }",
"public function getIdEdificio()\n {\n return $this->c_id_edificio;\n }",
"public function getEditord()\n {\n return $this->editord;\n }",
"public static function getMode();",
"public function getMode(): string;",
"final public function getModeString(): string {}",
"public function mode(): string\n {\n return $this->getAttribute('mode') ?: MenuPresenceMode::MODIFY;\n }",
"public function getRecommenderId()\n {\n return $this->recommender_id;\n }",
"public function getNextNumMvt($mode = '')\n\t{\n\t\tglobal $conf;\n\n\t\t$sql = \"SELECT MAX(piece_num)+1 as max FROM \" . MAIN_DB_PREFIX . $this->table_element.$mode;\n\t\t$sql .= \" WHERE entity IN (\" . getEntity('accountancy') . \")\";\n\n\t\tdol_syslog(get_class($this) . \"getNextNumMvt sql=\" . $sql, LOG_DEBUG);\n\t\t$result = $this->db->query($sql);\n\n\t\tif ($result) {\n\t\t\t$obj = $this->db->fetch_object($result);\n\t\t\tif ($obj) $result = $obj->max;\n\t\t\tif (empty($result)) $result = 1;\n\t\t\treturn $result;\n\t\t} else {\n\t\t\t$this->error = \"Error \" . $this->db->lasterror();\n\t\t\tdol_syslog(get_class($this) . \"::getNextNumMvt \" . $this->error, LOG_ERR);\n\t\t\treturn - 1;\n\t\t}\n\t}",
"public function getId() : int\n {\n return $this->getValue('nb_icontact_prospect_id');\n }",
"public function get_mode() {\n return edd_get_option( 'edd_commissions_payout_schedule_mode', '' );\n }",
"public function getEditMode()\n {\n return $this->_editMode;\n }",
"public function getModuloId() {\n return $this->modulo_id;\n }",
"public function getMode();",
"public function getMode();",
"public function getMode();",
"public function getMode();",
"function getERCId() {\n\t\treturn $this->getData('ercId');\n\t}",
"public function getEstab_id()\n {\n return $this->estab_id;\n }",
"public function getMode()\n {\n return;\n }",
"public function getShopFullEdition()\n {\n $sEdition = $this->getShopEdition();\n $sFullEdition = \"Community Edition\";\n if ($sEdition == \"PE\") {\n $sFullEdition = \"Professional Edition\";\n }\n\n if ($sEdition == \"EE\") {\n $sFullEdition = \"Enterprise Edition\";\n }\n\n return $sFullEdition;\n }",
"public function getRewardId()\n {\n return $this->reward_id;\n }"
] | [
"0.642256",
"0.626327",
"0.6258651",
"0.6167572",
"0.5966962",
"0.58576626",
"0.56559217",
"0.5654066",
"0.56506354",
"0.5639693",
"0.5526582",
"0.5503014",
"0.5487547",
"0.5472692",
"0.5467565",
"0.5455491",
"0.54516625",
"0.54383254",
"0.5418965",
"0.5400028",
"0.5400028",
"0.53992337",
"0.5396964",
"0.5395899",
"0.5395899",
"0.5395899",
"0.5395899",
"0.5395899",
"0.5395899",
"0.5395899",
"0.538999",
"0.5362495",
"0.53565705",
"0.5352094",
"0.5350251",
"0.53476137",
"0.5342618",
"0.53420836",
"0.53420836",
"0.5338211",
"0.5338211",
"0.5326318",
"0.5326318",
"0.53250414",
"0.53243035",
"0.52983683",
"0.5277144",
"0.52526885",
"0.52502537",
"0.5238618",
"0.5228559",
"0.5226982",
"0.5226714",
"0.52218163",
"0.5209286",
"0.5207195",
"0.51844496",
"0.51686096",
"0.51511043",
"0.5149222",
"0.5105411",
"0.5091975",
"0.50880027",
"0.5076743",
"0.5073073",
"0.50707626",
"0.50693256",
"0.5064598",
"0.5063767",
"0.505893",
"0.5028201",
"0.5028201",
"0.5022575",
"0.5022575",
"0.5020646",
"0.5020564",
"0.50183904",
"0.50183904",
"0.50035805",
"0.4997126",
"0.49712145",
"0.4967803",
"0.49637607",
"0.49594083",
"0.49502242",
"0.49496585",
"0.49483755",
"0.49439904",
"0.49366766",
"0.4930454",
"0.4918205",
"0.4917696",
"0.4917696",
"0.4917696",
"0.4917696",
"0.49145138",
"0.49049804",
"0.4887221",
"0.48795116",
"0.48766348"
] | 0.8657667 | 0 |
Get the [operation_prime_r_reward_transporter_id] column value. | public function getOperationPrimeRRewardTransporterId()
{
return $this->operation_prime_r_reward_transporter_id;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getRelaterId()\n {\n $value = $this->get(self::RELATER_ID);\n return $value === null ? (integer)$value : $value;\n }",
"private function getRetailerId()\n {\n $retailerId = null;\n if ($this->currentStore->getRetailer() && $this->currentStore->getRetailer()->getId()) {\n $retailerId = (int) $this->currentStore->getRetailer()->getId();\n }\n\n return $retailerId;\n }",
"public function setOperationPrimeRRewardTransporterId($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_numeric($v)) {\n $v = (int) $v;\n }\n }\n if ($this->operation_prime_r_reward_transporter_id !== $v) {\n $this->operation_prime_r_reward_transporter_id = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OPERATION_PRIME_R_REWARD_TRANSPORTER_ID;\n }\n\n if ($this->aRRewardTransporters !== null && $this->aRRewardTransporters->getRRewardTransporterId() !== $v) {\n $this->aRRewardTransporters = null;\n }\n\n\n return $this;\n }",
"public function getPayerId() {\n\t\treturn $this->_getField(self::$PAYER_ID);\n\t}",
"public function getOperationPrimeRRewardTypeId()\n {\n\n return $this->operation_prime_r_reward_type_id;\n }",
"public function getRequestorID()\n {\n return $this->requestorID;\n }",
"public function getAgentId() {\n if (isset($this->rJoinAgent) && count($this->rJoinAgent) > 0) {\n if (isset($this->rJoinAgent[0]->rAgent)) {\n return $this->rJoinAgent[0]->rAgent->id;\n }\n }\n return '';\n }",
"public function getRecommenderId()\n {\n return $this->recommender_id;\n }",
"function getReviewerId() {\n\t\treturn $this->getData('reviewerId');\n\t}",
"public function getOperationPrimeRRewardExpeditionModeId()\n {\n\n return $this->operation_prime_r_reward_expedition_mode_id;\n }",
"public function getPayerId(): ?string\n {\n return $this->{self::PAYER_ID};\n }",
"public function getDonorId() {\n\t\treturn $this->donor_id;\n\t}",
"public function getReceiverId();",
"public function getBidderTeamId()\n {\n if ($this->isTransferListed() && $this->getHighestBid() > 0) {\n $xpath = new \\DOMXPath($this->getXml());\n return $xpath->query('//BidderTeam/TeamID')->item(0)->nodeValue;\n }\n return null;\n }",
"function getERCId() {\n\t\treturn $this->getData('ercId');\n\t}",
"function get_recipient_id() {\n\t\treturn $this->get_data( 'recipient' );\n\t}",
"public function getWholesalerId()\n {\n $value = $this->get(self::wholesaler_id);\n return $value === null ? (integer)$value : $value;\n }",
"public function getId_recette()\n {\n return $this->_id_recette;\n }",
"public function getUpdaterId()\n {\n return $this->updater_id;\n }",
"public function getUpdaterId()\n {\n return $this->updater_id;\n }",
"public function getUpdaterId()\n {\n return $this->updater_id;\n }",
"public function getUpdaterId()\n {\n return $this->updater_id;\n }",
"public function getIdFormerApprover()\n {\n return $this->idFormerApprover;\n }",
"public function getIdFornecedor() {\n return $this->IdFornecedor;\n }",
"public function getRewardId()\n {\n return $this->reward_id;\n }",
"public function getReverseEngineeringDecryptorID()\n {\n return $this->reverseEngineeringDecryptorID;\n }",
"public function getRepairId()\n {\n return $this->repair_id;\n }",
"public function getTravelerProfileId()\n\t{\n\t\treturn $this->travelerProfileId;\n\t}",
"public function getRpacketTId()\n {\n return $this->rpacket_t_id;\n }",
"public function getGamerId()\n {\n $value = $this->get(self::GAMER_ID);\n return $value === null ? (integer)$value : $value;\n }",
"public function getCorrelationId() {\n return $this->correlation_id;\n }",
"public function getIdentifier()\n {\n $sellerId = ($this->getSeller()) ? $this->getSeller()->getId() : '';\n\n return $sellerId.$this->getAmount().$this->getCurrency();\n }",
"public function transporter() {\n if(is_null($this->transporter)){\n $this->transporter = Transporter::getByIdentifier($this->transporter_id);\n }\n return $this->transporter;\n }",
"public function getSpoolerId()\n {\n return $this->spoolerId;\n }",
"public function get_peducator_id() {\n\t\treturn $this->peducator_id;\n\t}",
"function getReviewRoundId() {\n\t\treturn $this->getData('reviewRoundId');\n\t}",
"public function getReviewTutorProfileId() : int {\n\t\treturn ($this->reviewTutorProfileId);\n\t}",
"public function correlationId(): string;",
"public function correlationId(): string;",
"public function getReviewId() {\n\t\t\t\treturn ($this->reviewId);\n\t\t\t}",
"public function getRpacketId()\n {\n return $this->rpacket_id;\n }",
"public function getRecipientId() {\n return $this->recipientId;\n }",
"public function getRpacketOwnerId()\n {\n return $this->rpacket_owner_id;\n }",
"public function getSummonerId($summonerName){\n\t\treturn $this->getSummonerByName($summonerName)->summonerId;\n\t}",
"public function getId_fornecedor()\n {\n return $this->id_fornecedor;\n }",
"public function getSellerOrderId()\n {\n return $this->_fields['SellerOrderId']['FieldValue'];\n }",
"public function getSellerId()\n {\n return $this->_fields['SellerId']['FieldValue'];\n }",
"public function getId()\n {\n // TODO: Implement getId() method.\n return $this->tch_id;\n }",
"public function getTournamentId()\n\t{\t\treturn $this->tournamentId;\n\t}",
"public function getPersonId()\n {\n return $this->personId;\n }",
"public function getCorrelationID()\n {\n return $this->correlationID;\n }",
"public function getScriptTransportId()\n {\n return $this->scriptTransportId;\n }",
"public function getResolverId()\n {\n return $this->resolver_id;\n }",
"public function getERSPUserID()\n {\n return $this->eRSPUserID;\n }",
"public function getIdModerator()\n {\n return $this->idModerator;\n }",
"public function getReviewId() : ?int {\n\t\treturn ($this->reviewId);\n\t}",
"public function getStickerId()\r\n {\r\n $message = $this->getMessage();\r\n return $message['stickerId'];\r\n }",
"public function get_transaction_id() {\n\n\t\treturn $this->is_credit_card_response() && isset( $this->response->paymentMethod, $this->response->paymentMethod->verification ) ? $this->response->paymentMethod->verification->id : null;\n\t}",
"public function getRpacketOrderId()\n {\n return $this->rpacket_order_id;\n }",
"public function getLooserId()\n\t{\n\t\treturn $this->looserId;\n\t}",
"public function getRideId()\r\n {\r\n return $this->getPassengerId();\r\n }",
"public function getPriorAgentId() {\n return $this->priorAgentId;\n }",
"public function getIdRoster() {\n return intval($this->idRoster);\n }",
"public function getRequesterVpoUserId()\n\t{\n\t\treturn $this->requester_vpo_user_id;\n\t}",
"public function getOfferSellerId()\n {\n return $this->offer_seller_id;\n }",
"public function getSupplierId()\n {\n return isset($this->feedbackFields['supplier_id']) ? $this->feedbackFields['supplier_id'] : null;\n }",
"public function getTransportationCode()\n {\n return $this->transportationCode;\n }",
"public function getSellerId()\n {\n return $this->driver->seller_id;\n }",
"public function getrep_id()\r\n {\r\n return $this->rep_id;\r\n }",
"public function getCorrelationId();",
"public function getCorrelationId();",
"public function rpIdHash(): string\n {\n return $this->rpIdHash;\n }",
"function getPersonID()\n {\n return $this->getValueByFieldName('person_id');\n }",
"public function getProductSeller()\n {\n $product = $this->coreRegistry->registry('product');\n $productId = $product->getId();\n $sellerId = $this->helper->getSellerIdByProductId($productId);\n return $sellerId;\n }",
"public function getSerialId()\n {\n return $this->get(self::_SERIAL_ID);\n }",
"public function getId()\n {\n return $this->transaction->getTransactionResponse()->getTransId();\n }",
"public function getIdCreatorTicket()\n {\n return $this->idCreatorTicket;\n }",
"public function getTargetId() : int\n {\n return $this->targetId;\n }",
"public function getPlayerTeamId() {\n\t\treturn ($this->playerTeamId);\n\t}",
"public function getRestoreId() {\n\n return $this->restore_id;\n\n }",
"public function recupereMaxId()\n {\n return $this->getGreaterId('membre_jury');\n }",
"public function getResourceAgentId()\n\t{\n\t\treturn 4;\n\t}",
"function tripId()\n\t{\n\t\treturn $this->_tour_voucher_contents['trip_id'];\n\t}",
"public function getReseller(): string {\n return $this->context->reseller;\n }",
"public function getRelationId()\n {\n return $this->relation_id;\n }",
"public function getEncuestaRecepcionid()\r\n {\r\n return $this->encuesta_recepcionId;\r\n }",
"public function get_teachers_role_id()\n\t{\n\t\t$this->db->select('roles_id');\n\t\t$this->db->from('cms_roles');\n\t\t$this->db->where('roles_name','Teachers');\n\t\t$query = $this->db->get();\n\t\treturn $query->row();\n\t}",
"public function getPartnerHotelId()\n {\n return $this->partner_hotel_id;\n }",
"public static function getEditToken()\n {\n $r = self::$db->fetchColumn(\n 'INSERT INTO bapsplanner.client_ids (show_season_timeslot_id, session_id)\n VALUES ($1, $2) RETURNING client_id',\n [$_SESSION['timeslotid'], session_id()]\n );\n\n if (empty($r)) {\n throw new MyRadioException('Failed to generate Show Planner edit token.', 500);\n }\n\n return (int) $r[0];\n }",
"public function getTicketId() {\n\t\treturn($this->ticketId);\n\t}",
"public function getIteneraryID()\n {\n return $this->IteneraryID;\n }",
"public function getSellerId()\n {\n return $this->seller_id;\n }",
"public function getSellerOrderId()\n {\n if (isset($this->data['SellerOrderId'])) {\n return $this->data['SellerOrderId'];\n } else {\n return false;\n }\n }",
"public function getPlayerId() {\n\t\treturn ($this->playerId);\n\t}",
"public function getIdre()\n {\n return $this->idre;\n }",
"public function getTeamId()\n {\n $xpath = new \\DOMXPath($this->getXml());\n return $xpath->query('//OwningTeam/TeamID')->item(0)->nodeValue;\n }",
"public function getCareerId()\n {\n return $this->careerId;\n }",
"public function getCareerId()\n {\n return $this->careerId;\n }",
"public function getPartnerId()\n {\n return $this->partner_id;\n }",
"public function getPartnerId()\n {\n return $this->partner_id;\n }"
] | [
"0.6779566",
"0.67292094",
"0.6601552",
"0.6599131",
"0.6279402",
"0.6278373",
"0.60891867",
"0.60190415",
"0.5993007",
"0.5989244",
"0.5960304",
"0.5921398",
"0.5859235",
"0.5796274",
"0.57935035",
"0.5786525",
"0.5776628",
"0.5774534",
"0.57615083",
"0.57615083",
"0.57615083",
"0.57615083",
"0.5743266",
"0.5727528",
"0.5687168",
"0.5682529",
"0.5620254",
"0.5618162",
"0.5592199",
"0.5562367",
"0.5533575",
"0.5505222",
"0.55035496",
"0.5495812",
"0.54857314",
"0.5485019",
"0.5468273",
"0.54641503",
"0.54641503",
"0.5462146",
"0.5459675",
"0.5455651",
"0.545305",
"0.54525673",
"0.54467213",
"0.54272264",
"0.54258317",
"0.54234475",
"0.5418859",
"0.5402708",
"0.53965956",
"0.5392693",
"0.53835887",
"0.53821355",
"0.53733623",
"0.53655636",
"0.53643215",
"0.53455645",
"0.534445",
"0.53361684",
"0.5333776",
"0.5312719",
"0.53024083",
"0.52908045",
"0.52843773",
"0.5281342",
"0.52672267",
"0.52593917",
"0.52553546",
"0.5246583",
"0.5246583",
"0.5246338",
"0.5239682",
"0.5236802",
"0.5236267",
"0.5230588",
"0.52302384",
"0.5228871",
"0.5225509",
"0.5219945",
"0.52115476",
"0.5205933",
"0.5201978",
"0.5201666",
"0.5190557",
"0.5186811",
"0.5173099",
"0.5169715",
"0.51638854",
"0.5159588",
"0.51436454",
"0.51385945",
"0.5135016",
"0.51332134",
"0.51311946",
"0.51232076",
"0.5117107",
"0.5117107",
"0.51150507",
"0.51150507"
] | 0.8755693 | 0 |
Get the [operation_prime_fixed_amount] column value. | public function getOperationPrimeFixedAmount()
{
return $this->operation_prime_fixed_amount;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getOperationPrimeMaximumAmount()\n {\n\n return $this->operation_prime_maximum_amount;\n }",
"public function setOperationPrimeFixedAmount($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_string($v)){\n $v = str_replace(\n array(' ',','),\n array('','.'),\n $v\n );\n }\n \n if(is_numeric($v)) {\n $v = (float) $v;\n }\n }\n if ($this->operation_prime_fixed_amount !== $v) {\n $this->operation_prime_fixed_amount = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OPERATION_PRIME_FIXED_AMOUNT;\n }\n\n\n return $this;\n }",
"public function getOperationPrimeCurrencyId()\n {\n\n return $this->operation_prime_currency_id;\n }",
"public function getOperationPrimeProductPricePourcentage()\n {\n\n return $this->operation_prime_product_price_pourcentage;\n }",
"public function getChargeValueModifier()\n {\n $value = 0;\n\n if ($this->isCompleted() || $this->isPending()) {\n $value += $this->getValue();\n }\n\n if ($this->getBackendTransactions()) {\n foreach ($this->getBackendTransactions() as $transaction) {\n if ($transaction->isRefund() && $transaction->isSucceed()) {\n $value -= abs($transaction->getValue());\n }\n }\n }\n\n return max(0, $value);\n }",
"public function getFixedCost()\n {\n return $this->fixed_cost;\n }",
"public function getTransactionValue() {\n return $this->mutation_amount * $this->mutation_price;\n }",
"public function getOpPrimeNumero()\n {\n\n return $this->op_prime_numero;\n }",
"public function getFixedDiscountPrice()\n {\n return $this->fixed_discount_price . ' $';\n }",
"public function getDepositPrice()\n {\n $this->checkIfKeyExistsAndIsInteger('price');\n\n return $this->data['price'];\n }",
"public function factorial(): BigInteger\n {\n $calculatedValue = gmp_fact($this->getValue());\n\n return $this->assignValue($calculatedValue);\n }",
"public function getFixed64Field()\n {\n $value = $this->get(self::FIXED64_FIELD);\n return $value === null ? (integer)$value : $value;\n }",
"public function amount(): float\n {\n return $this->amount;\n }",
"function getSystemMoneyValue()\n\t\t{\n\t\t\t$system_value = $this->_BLL_obj->manage_content->getLastValue('system_money_info', '*', 1, 1, 'id');\n\t\t\treturn $system_value[0]['system_balance'];\n\t\t}",
"public function getAmount()\n {\n return $this->_fields['Amount']['FieldValue'];\n }",
"public function getPerPersonEquivFareAmount()\n {\n return $this->PerPersonEquivFareAmount;\n }",
"public function getAmount() \n {\n return $this->_fields['Amount']['FieldValue'];\n }",
"public function get_concession_amount(){\n $row = 100; //$this->fetch($run);\n return $row;\n }",
"public function getSfixed64Field()\n {\n $value = $this->get(self::SFIXED64_FIELD);\n return $value === null ? (integer)$value : $value;\n }",
"public function getMontoFinanciamiento()\n {\n $montoFinanciamiento = 0;\n foreach($this->fuentes as $fuente)\n {\n $moneda=$fuente->getMoneda();\n $montoFinanciamiento+=($fuente->getMonto()*$moneda->getPrecioBs());\n }\n return $montoFinanciamiento;\n }",
"public function getIteneraryEquivFareAmount()\n {\n return $this->IteneraryEquivFareAmount;\n }",
"public function getAmount()\n {\n return $this->MoneyAmount;\n }",
"public function getAmount(): float;",
"public function getTransactionAmount() \n {\n return $this->_fields['TransactionAmount']['FieldValue'];\n }",
"public function getProfitFinalPriceAttribute()\n {\n if ( Configuration::isTrue('ENABLE_ECOTAXES') )\n return $this->unit_final_price - $this->ecotax_amount;\n\n // Otherwise\n return $this->unit_final_price;\n }",
"public function getPrice(): int\n {\n return $this->getProduct()->getPriceInfo()->getPrice('final_price')->getValue();\n }",
"public function getAmountPlanned()\n {\n return $this->amountPlanned instanceof CentPrecisionMoneyBuilder ? $this->amountPlanned->build() : $this->amountPlanned;\n }",
"public function column_amount( $request ) {\n\t\t$currency = get_post_meta( $request->ID, '_camppayments_currency', true );\n\t\t$amount = get_post_meta( $request->ID, '_camppayments_payment_amount', true );\n\n\t\tif ( strpos( $currency, 'null' ) === false && $amount ) {\n\t\t\treturn sprintf( '%s %s', esc_html( $amount ), esc_html( $currency ) );\n\t\t} elseif ( $amount ) {\n\t\t\treturn esc_html( $amount );\n\t\t}\n\t}",
"public function getDealPrice()\n {\n $value = $this->get(self::deal_price);\n return $value === null ? (integer)$value : $value;\n }",
"public function getTotalMarketValue()\n {\n return $this->totalMarketValue;\n }",
"public function amount() {\r\n\t\treturn $this->amount;\r\n\t}",
"public function getTotalPriceValueAttribute()\n {\n $price = $this->quantity * $this->price;\n $price = PriceHelper::round($price);\n\n return $price;\n }",
"public function getModulus(): float\n {\n return sqrt($this->real ** 2 + $this->imaginary ** 2);\n }",
"private function getInvoiceAmount()\n {\n $sql = 'SELECT invoice_amount FROM s_order WHERE id = ?';\n\n return Shopware()->Db()->fetchOne($sql, ['15315351']);\n }",
"public function getAmount(): float\n {\n return $this->_amount;\n }",
"public function getMonthlyFee(): float { return 2.0; }",
"public function Price() {\n\t\t$amount = $this->Amount();\n\n\t\t//Transform price here for display in different currencies etc.\n\t\t$this->extend('updatePrice', $amount);\n\n\t\treturn $amount;\n\t}",
"public function getFixed32Field()\n {\n $value = $this->get(self::FIXED32_FIELD);\n return $value === null ? (integer)$value : $value;\n }",
"public function getFee(): float;",
"public function getAmount()\n {\n return $this->get(self::_AMOUNT);\n }",
"public function getAmount()\n {\n return $this->get(self::_AMOUNT);\n }",
"public function getAmount()\n {\n return $this->get(self::_AMOUNT);\n }",
"public function getAmount()\n {\n return $this->get(self::_AMOUNT);\n }",
"public function getAmount()\n {\n return $this->get(self::_AMOUNT);\n }",
"public function getRaisedAmount() {\n $sql = sprintf(\"SELECT SUM(amount) AS total_amount FROM donation WHERE project_id = %d;\", $this->id);\n $results = self::$connection->execute($sql);\n $total_amount = $results[0][\"total_amount\"];\n return $total_amount ? $total_amount : 0;\n }",
"public function getEstimatedBoxContentsFee()\n {\n return $this->_fields['EstimatedBoxContentsFee']['FieldValue'];\n }",
"public function discountOrChargeValueBoleta()\n {\n if($this->discount_or_charge_value > 0)\n return $this->discount_or_charge_value;\n else if ($this->discount_or_charge_percentage > 0)\n return (int) round( ($this->discount_or_charge_percentage / 100) * ($this->price * $this->quantity));\n else //pos sale without discount\n return 0;\n }",
"public function getPerfection(): float\n {\n return round($this->getTotal() / 45, 3) * 100;\n }",
"private function amount()\n {\n // Divide and return\n return ceil($this->total / $this->limit);\n }",
"public function getAmountExactAttribute()\n {\n return ! $this->is_percentage ? $this->amount : 0;\n }",
"public function GetMaxAmount()\n\t {\n\t\t return $this->db->query(\"select MAX(TotalPrice) as price from tb_products\")->row_array(); \n\t }",
"public function getSum()\n {\n return $this->amount;\n }",
"public function getDepositAmount(){\n return $this->getParameter('deposit_amount');\n }",
"public function amount()\n {\n foreach ($this->operations as $operation) {\n if ($operation->type == 'authorize') {\n return $operation->amount / 100;\n }\n }\n\n return null;\n }",
"public function tallyFee($row)\n\t{\n\t\treturn ($row['c_quantity'] * $row['og_s_value']) * ($this->settings['eco_stocks_buy_fee']/100);\n\t}",
"public function getCheckoutValue($amount) {\n $chekout_percentage = $this->getOfferCheckoutPercentage();\n return ($amount * $chekout_percentage) / 100;\n }",
"public function getFinanceFromPrice()\n {\n $product = $this->getProduct();\n $finaceFromPrice = $product->getData('finance_from_price');\n $price = Mage::helper('core')->currency($finaceFromPrice, true, false);\n\n return $price;\n }",
"public function getOpPrimeLibelle()\n {\n\n return $this->op_prime_libelle;\n }",
"public function getAmount()\r\n\t{\r\n\t\treturn $this->getTransaction()->getAmount();\r\n\t}",
"public function getDollarPriceChange(): float;",
"public function getAmount()\n {\n return $this->getSource()->getDataUsingMethod($this->getSourceField());\n }",
"public function getCalculatedFinalPrice()\n {\n return $this->_getData('calculated_final_price');\n }",
"private function _calculatePaymentFee(): int\n {\n $paymentFee = 0;\n if ($this->paymentMethod === 'paypal' && $_COOKIE['currency'] == 'EUR') {\n $paymentFee = 45;\n }\n\n return $paymentFee;\n }",
"protected function getCashMax()\n\t{\n\t\treturn $this->ut->up->rank['number'] / count(\\game::$ranks['items']) * $this->cash_max_real / 2 + $this->cash_max_real / 2;\n\t}",
"public function getAmount()\n {\n return $this->getData(self::AMOUNT);\n }",
"public function getTicketAmount(bool $isLastPeriod): int;",
"public function getMoney()\n {\n return $this->get(self::_MONEY);\n }",
"public function getMoney()\n {\n return $this->get(self::_MONEY);\n }",
"public function getMoney()\n {\n return $this->get(self::_MONEY);\n }",
"public function getMoney()\n {\n return $this->get(self::_MONEY);\n }",
"public function getMoney()\n {\n return $this->get(self::_MONEY);\n }",
"public function getMoney()\n {\n return $this->get(self::_MONEY);\n }",
"public function getTransactionFee()\n {\n return $this->transaction_fee;\n }",
"public function getTransactionFee()\n {\n return $this->transaction_fee;\n }",
"public function getPerPersonEquivFareCurrency()\n {\n return $this->PerPersonEquivFareCurrency;\n }",
"public function getMoney()\n {\n return $this->Money;\n }",
"public function getWithdrawUnconfirmedYetPrice()\n {\n $this->checkIfKeyExistsAndIsInteger('price');\n\n return $this->data['price'];\n }",
"public function getMaximalPrice()\n {\n if (!$this->maximalPrice) {\n $maximalPrice = $this->product->getMaximalPrice();\n if ($maximalPrice === null) {\n $maximalPrice = $this->getValue();\n } else {\n $maximalPrice = $this->priceCurrency->convertAndRound($maximalPrice);\n }\n $this->maximalPrice = $this->calculator->getAmount($maximalPrice, $this->product);\n }\n return $this->maximalPrice;\n }",
"public function getPothmiscamt()\n {\n return $this->pothmiscamt;\n }",
"public function calcularSaldoPorcentaje(){\n if($this->iPresupuestoModificado == 0)\n return 0;\n $porcentajeSaldo = ($this->iSaldo/$this->iPresupuestoModificado)*100;\n return $porcentajeSaldo;\n }",
"public function value(): Number\n {\n return $this->value;\n }",
"public function getValueAttribute()\n\t{\n\t\treturn $this->attributes['valor_total'];\n\t}",
"function getFinanceAmount($game_id, $round_number, $company_id){\r\n\t\t\t$ProductsNumber=$this->getNumberOfProducts($game_id);\r\n\t\t\t$RegionsNumber=$this->getNumberOfRegions($game_id);\r\n\t\t\t$ChannelsNumber=$this->getNumberOfChannels($game_id);\r\n\t\t\t$total_market_size=0;\r\n\t\t\tfor ($ProductCounter = 1; $ProductCounter < ($ProductsNumber+1); $ProductCounter++) {\r\n\t\t\t\t$availability=$this->getProductAvailibility($game_id, $round_number, $company_id, $ProductCounter);\r\n\t\t\t\t//var_dump($availability);\r\n\t\t\t\tif($availability==1){\r\n\t\t\t\t\tfor ($RegionCounter = 1; $RegionCounter < ($RegionsNumber+1); $RegionCounter++) {\r\n\t\t\t\t\t\t$market_size=$this->getMarketSize($game_id, $round_number, $ProductCounter, $RegionCounter);\r\n\t\t\t\t\t\tfor ($ChannelCounter = 1; $ChannelCounter < ($ChannelsNumber+1); $ChannelCounter++) {\r\n\t\t\t\t\t\t\t$ideal_price=$this->getMarketPrices($game_id, $round_number, $ProductCounter, $ChannelCounter, $RegionCounter);\r\n\t\t\t\t\t\t\t$average_price=$ideal_price['ideal_price'];\r\n\t\t\t\t\t\t\t$total_market_size=$total_market_size+($market_size*$average_price);\r\n\t\t\t\t\t\t\t//var_dump($market_size);die();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\t$total_market_size+=0;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t$companies_counter=$this->getNumberOfCompanies($game_id);\r\n\t\t\t$amount=($total_market_size/$ChannelsNumber)/$companies_counter;\r\n\t\t\t\r\n\t\t\t$option[0]=array('value'=>ceil(0.0*$amount), 'descriptor'=>'Ninguno');\r\n\t\t\t$option[1]=array('value'=>ceil(0.6*$amount), 'descriptor'=>'Opción 1: '.number_format(ceil(0.6*$amount), 2, '.', ',').' €');\r\n\t\t\t$option[2]=array('value'=>ceil(0.9*$amount), 'descriptor'=>'Opción 2: '.number_format(ceil(0.9*$amount), 2, '.', ',').' €');\r\n\t\t\t$option[3]=array('value'=>ceil(1.2*$amount), 'descriptor'=>'Opción 3: '.number_format(ceil(1.2*$amount), 2, '.', ',').' €');\r\n\t\t\t\r\n\t\t\treturn $option;\r\n\t\t}",
"protected function LiveRawTableValue()\n {\n // if (! isset(self::$temp_raw_table_value[$this->OrderID])) {\n $currentRate = $this->LiveCurrentRate();\n $currentCountry = $this->LiveCountry();\n $itemsTax = $this->workoutOrderItemsTax($currentRate, $currentCountry);\n $modifiersTax = $this->workoutModifiersTax($currentRate, $currentCountry);\n return $itemsTax + $modifiersTax;\n }",
"public function getPrice()\n {\n return $this->amount;\n }",
"private function get_disc_max_price() : float {\n\t\tpreg_match( '/runParams\\.actMaxPrice=\"(.*?)\";/s', $this->request, $matches );\n\t\tif ( empty( $matches[1] ) ) {\n\t\t\treturn 0.0;\n\t\t}\n\t\treturn floatval( $matches[1] );\n\t}",
"public function getAmountDisplayed()\n {\n return $this->iaDb->keyvalue(['block_id', 'amount_displayed'], null, self::getTableBlockOptions());\n }",
"public function getTotalPrice()\n {\n return @$this->attributes[\"valor_notafiscal\"];\n }",
"public function getMoney() {\n\t\t// $this: con tro nội tại của lớp - chính là tên lớp\n\t\treturn $this->money;\n\t}",
"public function amount(): string\n {\n $amount = 0;\n if ($this->tier === Patreon::PLEDGE_OWLBEAR) {\n $amount = 5;\n } elseif ($this->tier === Patreon::PLEDGE_ELEMENTAL) {\n $amount = 25;\n }\n\n // Offer a free month for those who sub for a year\n if ($this->period === 'yearly') {\n $amount *= 11;\n }\n\n return $this->user->currencySymbol() . ' ' . $amount . '.00';\n }",
"public function getServiceFeeAttribute(): float\n\t{\n\t\treturn $this->calcServiceFee();\n\t}",
"public function getValorAtual() {\n return $this->nValorAtual;\n }",
"public function getPriceInteger()\n {\n return (int) round($this->price * 100);\n }",
"public function getOpPrimeId()\n {\n\n return $this->op_prime_id;\n }",
"public function totalPrimeAceSumup($projectId)\n {\n $registry = Zend_Registry::getInstance();\n\t\t$DB = $registry['DB'];\n $sql = \"SELECT SUM(total_fees_a12) as TOTAL_A12 FROM tbl_aces_calc WHERE project_id = $projectId AND deleted = 0 \";\n \t\t$result = $DB->fetchCol($sql);\n\t\treturn $result;\n }",
"public function currencyPrice()\n {\n \t$this->currencyPrice = CurrencyPrice::getCurrencyPrices($this->sellPrices->CurrencyNo)->BuyPrice;\n \treturn $this->currencyPrice > 0 ? $this->currencyPrice : 1 ;\n }",
"public function getSolde(): float\n {\n return $this->solde;\n }",
"public function getDepositAmount()\n {\n return $this->depositAmount;\n }",
"public function value(): BigInteger\n {\n return Hex::of($this->raw())->toInteger();\n }",
"public function value(): BigInteger\n {\n return Hex::of($this->raw())->toInteger();\n }"
] | [
"0.6291335",
"0.56566775",
"0.53594",
"0.53132343",
"0.52206147",
"0.52107495",
"0.5126435",
"0.5124241",
"0.51042885",
"0.508893",
"0.50851667",
"0.50497",
"0.48663005",
"0.48652673",
"0.48305568",
"0.48106357",
"0.48056546",
"0.48026884",
"0.47845963",
"0.47630927",
"0.47477075",
"0.4740365",
"0.47379816",
"0.4729797",
"0.4714235",
"0.47077885",
"0.47049296",
"0.47015887",
"0.4694054",
"0.4691676",
"0.46789512",
"0.466494",
"0.4661684",
"0.46610788",
"0.46534836",
"0.46492222",
"0.4647861",
"0.4647661",
"0.46462116",
"0.46456426",
"0.46456426",
"0.46456426",
"0.46456426",
"0.46456426",
"0.46416563",
"0.46354797",
"0.4623233",
"0.46077567",
"0.45950258",
"0.45935783",
"0.459223",
"0.4587513",
"0.4585166",
"0.45784163",
"0.456854",
"0.4567778",
"0.45608777",
"0.45590523",
"0.45569226",
"0.45562345",
"0.45560753",
"0.45457628",
"0.45428574",
"0.45346728",
"0.45340246",
"0.45289817",
"0.45206875",
"0.45206875",
"0.45206875",
"0.45206875",
"0.45206875",
"0.45206875",
"0.45137557",
"0.45137557",
"0.45096317",
"0.45071778",
"0.45062348",
"0.45012218",
"0.4494244",
"0.44900388",
"0.44842023",
"0.44757107",
"0.44733715",
"0.4472725",
"0.4472562",
"0.44714954",
"0.44692892",
"0.44614533",
"0.44581237",
"0.445694",
"0.44515684",
"0.4449036",
"0.4447468",
"0.44457504",
"0.44397154",
"0.44377837",
"0.44322345",
"0.4428484",
"0.4428436",
"0.4428436"
] | 0.82540286 | 0 |
Get the [operation_prime_product_price_pourcentage] column value. | public function getOperationPrimeProductPricePourcentage()
{
return $this->operation_prime_product_price_pourcentage;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function setOperationPrimeProductPricePourcentage($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_numeric($v)) {\n $v = (int) $v;\n }\n }\n if ($this->operation_prime_product_price_pourcentage !== $v) {\n $this->operation_prime_product_price_pourcentage = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OPERATION_PRIME_PRODUCT_PRICE_POURCENTAGE;\n }\n\n\n return $this;\n }",
"public function getOperationPrimeFixedAmount()\n {\n\n return $this->operation_prime_fixed_amount;\n }",
"public function getPourcentage() : float\n {\n return $this->pourcentage;\n }",
"public function getProfitFinalPriceAttribute()\n {\n if ( Configuration::isTrue('ENABLE_ECOTAXES') )\n return $this->unit_final_price - $this->ecotax_amount;\n\n // Otherwise\n return $this->unit_final_price;\n }",
"public function getOperationPrimeCurrencyId()\n {\n\n return $this->operation_prime_currency_id;\n }",
"public function getPourcentage()\n {\n return $this->pourcentage;\n }",
"public function getOperationPrimeMaximumAmount()\n {\n\n return $this->operation_prime_maximum_amount;\n }",
"public function getPrice(): int\n {\n return $this->getProduct()->getPriceInfo()->getPrice('final_price')->getValue();\n }",
"public function getProductPrice() {\n //return the value product price\n return $this->ProductPrice;\n }",
"public function getOpPrimeNumero()\n {\n\n return $this->op_prime_numero;\n }",
"public function getPrice() {\n $price = 420;\n return $price;\n }",
"public function getPrice()\n {\n if ($this->_calculatePrice || !$this->getData('price')) {\n return $this->getPriceModel()->getPrice($this);\n } else {\n return $this->getData('price');\n }\n }",
"public function get_price() {\n\n\t\t$price = null;\n\t\tif ( $this->is_on_sale() ) {\n\t\t\tif ( strstr($this->sale_price,'%') ) {\n\t\t\t\t$price = round($this->regular_price * ( (100 - str_replace('%','',$this->sale_price) ) / 100 ), 4);\n\t\t\t} else if ( $this->sale_price ) {\n\t\t\t\t$price = $this->sale_price;\n\t\t\t}\n\t\t} else {\n\t\t\t$price = apply_filters('jigoshop_product_get_regular_price', $this->regular_price, $this->variation_id);\n\t\t}\n\t\treturn apply_filters( 'jigoshop_product_get_price', $price, $this->variation_id );\n\n\t}",
"public function currencyPrice()\n {\n \t$this->currencyPrice = CurrencyPrice::getCurrencyPrices($this->sellPrices->CurrencyNo)->BuyPrice;\n \treturn $this->currencyPrice > 0 ? $this->currencyPrice : 1 ;\n }",
"public function getProfit() {\n return round($this->getTotalPrice()*0.2, 2);\n }",
"public function getFinanceFromPrice()\n {\n $product = $this->getProduct();\n $finaceFromPrice = $product->getData('finance_from_price');\n $price = Mage::helper('core')->currency($finaceFromPrice, true, false);\n\n return $price;\n }",
"static function getPrice($procent , $price){\n return $price - ( $price / 100 * $procent);\n }",
"public function getPrice() : float\n {\n return $this->get('price', 'products');\n }",
"public function getProductPriceX()\n {\n return $this->_scopeConfig->getValue('splitprice/split_price_config/maximum_splits', \\Magento\\Store\\Model\\ScopeInterface::SCOPE_STORE);\n }",
"public function getPriceAttribute()\n {\n if (isset($this->attributes['price'])) {\n return $this->attributes['price'] / 100;\n }\n\n return null;\n }",
"public function get_price(){\n\t\treturn $this->price;\n\t}",
"public function getPrice():float\n {\n return $this->price;\n }",
"public function getFinalPrice()\n {\n return ($this->sale_price > 0) ? $this->sale_price : $this->price;\n }",
"public function getPrice() {\n\t\treturn($this->price);\n\t}",
"public function getPrice()\n\t{\n\t\treturn $this->isDiscounted() ? 0.0 : floatval($this->price);\n\t}",
"public function getPrice()\n\t{\n\t\t$total = intval($this->var['price']);\n\t\t$d = $total/100;\n\t\t$c = $total%100;\n\t\treturn sprintf(\"%d.%02d\",$d,$c);\n\t\t//return \"$d.$c\";\n\t}",
"public function getCalculatedFinalPrice()\n {\n return $this->_getData('calculated_final_price');\n }",
"public function getProductPrice(){\n return $this->product_price;\n }",
"public function getPaymentPrice() {\r\n\r\n\t\tself::errorReset();\r\n\t\t$this->reload();\r\n\t\treturn $this->paymentPrice;\r\n\t}",
"public function getPrice()\n\t{\n\t\treturn $this->price;\n\t}",
"public function getPrice()\n {\n\n return $this->price;\n }",
"public function getProvisionCp(): ?float {\n return $this->provisionCp;\n }",
"public function getTotalPricePoint() {\n return $this->totalPricePoint;\n }",
"public function getDepositPrice()\n {\n $this->checkIfKeyExistsAndIsInteger('price');\n\n return $this->data['price'];\n }",
"public function getPricePoint() {\n return $this->pricePoint;\n }",
"public function getPrice()\n {\n return $this->price;\n }",
"public function getPrice()\n {\n return $this->price;\n }",
"public function getPrice()\n {\n return $this->price;\n }",
"public function getPrice()\n {\n return $this->price;\n }",
"public function getPrice()\n {\n return $this->price;\n }",
"public function getPrice()\n {\n return $this->price;\n }",
"public function getPrice()\n {\n return $this->price;\n }",
"public function getPrice()\n {\n return $this->price;\n }",
"public function getPrice()\n {\n return $this->price;\n }",
"public function getPrice()\n {\n return $this->price;\n }",
"public function getPrice()\n {\n return $this->price;\n }",
"public function getPrice()\n {\n return $this->price;\n }",
"public function getPrice()\n {\n return $this->price;\n }",
"public function getPrice()\n {\n return $this->price;\n }",
"public function getPrice()\n {\n return $this->price;\n }",
"public function getPrice()\n {\n return $this->price;\n }",
"public function getPrice()\n {\n return $this->price;\n }",
"public function getPrice()\n {\n return $this->price;\n }",
"public function Price() {\n\t\t$amount = $this->Amount();\n\n\t\t//Transform price here for display in different currencies etc.\n\t\t$this->extend('updatePrice', $amount);\n\n\t\treturn $amount;\n\t}",
"public function getPrice()\n {\n return $this->get(self::_PRICE);\n }",
"public function getTotalPriceValueAttribute()\n {\n $price = $this->quantity * $this->price;\n $price = PriceHelper::round($price);\n\n return $price;\n }",
"public function getPrice() : int\n {\n return $this->price;\n }",
"public function getPriceProduct()\n {\n return $this->priceProduct;\n }",
"public function getProductPrice()\n {\n $currentProduct = Mage::registry('current_product');\n\n //seria melhor usar uma constante nativa, mas nao encontrei.\n if ('configurable' == $currentProduct->getTypeId()) {\n return $currentProduct->getFinalPrice();\n }\n\n if ('bundle' == $currentProduct->getTypeId()) {\n $_priceModel = $currentProduct->getPriceModel();\n list($_minimalPriceTax, $_maximalPriceTax) = $_priceModel->getTotalPrices($currentProduct, null, null, false);\n\n return $_minimalPriceTax;\n }\n\n if ('grouped' == $currentProduct->getTypeId()) {\n $regularPrice = 0;\n $usedProds = $currentProduct->getTypeInstance(true)->getAssociatedProducts($currentProduct); \n foreach ($usedProds as $child) {\n if ($child->getId() != $currentProduct->getId()) {\n $regularPrice += $child->getPrice();\n }\n }\n return $regularPrice;\n }\n\n return $currentProduct->getFinalPrice();\n }",
"public function getPrice()\n {\n return $this->Price;\n }",
"public function getPrice()\r\n {\r\n return $this->price;\r\n }",
"public function getProductPrice()\n {\n $currentProduct = $this->_registry->registry('current_product');\n\n //seria melhor usar uma constante nativa, mas nao encontrei.\n if ('configurable' == $currentProduct->getTypeId()) {\n return $currentProduct->getPriceInfo()->getPrice('regular_price')->getMinRegularAmount()->getValue();\n }\n\n if ('bundle' == $currentProduct->getTypeId()) {\n return $currentProduct->getPriceInfo()->getPrice('regular_price')->getMinimalPrice()->getValue();\n }\n\n if ('grouped' == $currentProduct->getTypeId()) {\n $regularPrice = 0;\n $usedProds = $currentProduct->getTypeInstance(true)->getAssociatedProducts($currentProduct); \n foreach ($usedProds as $child) {\n if ($child->getId() != $currentProduct->getId()) {\n $regularPrice += $child->getPrice();\n }\n }\n return $regularPrice;\n }\n\n return $currentProduct->getFinalPrice();\n }",
"public function getBasePrice()\n {\n return $this->base_price;\n }",
"public function getPrice()\n {\n return $this->amount;\n }",
"public function getProductPrice()\n {\n $currentProduct = $this->_registry->registry('current_product');\n \n //qual preco retornar? o base ou o special???\n //o ideal seria usar constante nativa, mas nao encontrei.\n if ('configurable' == $currentProduct->getTypeId()) {\n return $currentProduct->getPriceInfo()->getPrice('regular_price')->getMinRegularAmount()->getValue();\n }\n\n if ('bundle' == $currentProduct->getTypeId()) {\n return $currentProduct->getPriceInfo()->getPrice('regular_price')->getMinimalPrice()->getValue();\n }\n\n if ('grouped' == $currentProduct->getTypeId()) {\n $regularPrice = 0;\n $usedProds = $currentProduct->getTypeInstance(true)->getAssociatedProducts($currentProduct); \n foreach ($usedProds as $child) {\n if ($child->getId() != $currentProduct->getId()) {\n $regularPrice += $child->getPrice();\n }\n }\n return $regularPrice;\n }\n\n return $currentProduct->getFinalPrice();\n }",
"public function getCurrencyPrice()\n {\n return isset($this->currencyPrice) ? $this->currencyPrice : null;\n }",
"public function getTotalPrice()\n {\n $stat = $this->getAllStat();\n return $stat['totalPrice'];\r\n }",
"public function getPrecio()\n {\n return $this->precio;\n }",
"public function getPrecio()\n {\n return $this->precio;\n }",
"public function getPrecio()\n {\n return $this->precio;\n }",
"public function getPrecio()\n {\n return $this->precio;\n }",
"public function getPrecio()\n {\n return $this->precio;\n }",
"public function getTicket_price()\n {\n return $this->ticket_price;\n }",
"public function get_max_product_price()\n\t{\n\t\t$this->db->select('MAX(product_selling_price) AS price')->from('product')->where(\"product_status = 1\");\n\t\t$query = $this->db->get();\n\t\t$result = $query->row();\n\t\t\n\t\treturn $result->price;\n\t}",
"public function getPrecio()\n {\n return $this->precio;\n }",
"public function getPrecio()\n {\n return $this->precio;\n }",
"public function getPrecio()\n {\n return $this->precio;\n }",
"public function getPriceInteger()\n {\n return (int) round($this->price * 100);\n }",
"public function getPrice()\n {\n return $this->price;\n }",
"public function getPrice()\n {\n return $this->price;\n }",
"public function getOpPrimeLibelle()\n {\n\n return $this->op_prime_libelle;\n }",
"public function getPrecioCompra()\n\t{\n\t\treturn $this->precio_compra;\n\t}",
"public function getProfit(){\n\t\tglobal $db;\n\t\t$sql = $db->prepare(\"SELECT SUM(price) FROM project01_report;\");\n\t\t$sql->execute();\n\t\tif ($sql->rowCount()>0) {\n\t\t\t$profit = $sql->fetch();\n\t\t\treturn $profit;\n\t\t}\n\t}",
"public function getPrice() {\n return $this->_price;\n }",
"public function getPrice()\n {\n return $this->object->Price;\n }",
"public function getPrecio()\n {\n return $this->precio;\n }",
"public function getCurrentPrice() : float;",
"function ppom_get_product_price( $product ) {\n\t\n\t$product_price = $product->get_price();\n\t\n\tif( has_filter('woocs_exchange_value') ) {\n\t\tglobal $WOOCS;\n\t\t\n\t\tif($WOOCS->current_currency != $WOOCS->default_currency ) {\n\t\t\tif($WOOCS->is_multiple_allowed) {\n\t\t\t\t$product_price = apply_filters('woocs_raw_woocommerce_price', $product_price);\n\t\t\t} else {\n\t\t\t\t\n\t\t\t\t$product_price = apply_filters('woocs_exchange_value', $product_price);\n\t\t\t}\n\t\t}\n\t}\n\t\n\treturn apply_filters('ppom_product_price', $product_price, $product);\n}",
"public function getPurchaseProdPrice() {\n return $this->purchaseProdPrice;\n }",
"public function getPerPersonEquivFareCurrency()\n {\n return $this->PerPersonEquivFareCurrency;\n }",
"protected function getBasePrice()\n {\n if (!$this->basePrice) {\n $this->basePrice = $this->priceInfo->getPrice(BasePrice::PRICE_CODE);\n }\n return $this->basePrice;\n }",
"public function presentPrice(){\n \t\n \treturn money_format('$%i', $this->price / 100);\n }",
"public function getMarketPrice()\n {\n return $this->market_price;\n }",
"public function getOffer_price()\n {\n return $this->offer_price;\n }",
"public function getTicketPrice() {\n return $this->get(self::TICKETPRICE);\n }",
"public function getPricePerMonth($_product) {\n $price = $_product->getResource()->getAttribute('santanderpricemonth')->getFrontend()->getValue($_product);\n return Mage::helper('core')->currency(round($price, 2));\n }",
"public function getPriceAttribute() {\n return BASE_PRICE\n + INGREDIENT_PRICES['salad'] * $this->salad\n + INGREDIENT_PRICES['cheese'] * $this->cheese\n + INGREDIENT_PRICES['meat'] * $this->meat\n + INGREDIENT_PRICES['bacon'] * $this->bacon;\n }",
"public function getTotalPriceAttribute()\n {\n if (empty($this->shopCalculations)) $this->runCalculations();\n return round($this->shopCalculations->totalPrice, 2);\n }",
"public function getOpPrimeId()\n {\n\n return $this->op_prime_id;\n }",
"function sale_price() {\n\t\treturn $this->_apptivo_sale_price;\n\t}"
] | [
"0.68424267",
"0.6395525",
"0.6274206",
"0.61656374",
"0.61491066",
"0.61201084",
"0.6116658",
"0.6059438",
"0.60510963",
"0.5940293",
"0.58956015",
"0.587776",
"0.58571327",
"0.5856519",
"0.58443177",
"0.5826923",
"0.5826112",
"0.58171475",
"0.5777953",
"0.5754116",
"0.5738691",
"0.5738257",
"0.57189035",
"0.5706587",
"0.56995255",
"0.56903124",
"0.56653976",
"0.56610376",
"0.5652148",
"0.56442666",
"0.5642445",
"0.5631563",
"0.5629952",
"0.56297326",
"0.5618557",
"0.56140536",
"0.5611424",
"0.5611424",
"0.5611424",
"0.5611424",
"0.5611424",
"0.5611424",
"0.5611424",
"0.5611424",
"0.5611424",
"0.5611424",
"0.5611424",
"0.5611424",
"0.5611424",
"0.5611424",
"0.5611424",
"0.5611424",
"0.5611424",
"0.56042993",
"0.5596916",
"0.559258",
"0.55722815",
"0.5566184",
"0.5557287",
"0.5556274",
"0.55548024",
"0.5548942",
"0.554015",
"0.55288726",
"0.55254966",
"0.55191356",
"0.55129385",
"0.5502893",
"0.5502893",
"0.5502893",
"0.5502893",
"0.5502893",
"0.54816014",
"0.5479725",
"0.54712343",
"0.54712343",
"0.54712343",
"0.5471133",
"0.54681414",
"0.54681414",
"0.5448895",
"0.54484665",
"0.5443878",
"0.5439431",
"0.54315865",
"0.54294896",
"0.5427607",
"0.54235387",
"0.5418474",
"0.54017067",
"0.5401569",
"0.53916377",
"0.53905493",
"0.5387208",
"0.5383457",
"0.53752214",
"0.53662056",
"0.5360579",
"0.53524905",
"0.5350715"
] | 0.8628817 | 0 |
Get the [operation_prime_maximum_amount] column value. | public function getOperationPrimeMaximumAmount()
{
return $this->operation_prime_maximum_amount;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getOperationPrimeFixedAmount()\n {\n\n return $this->operation_prime_fixed_amount;\n }",
"public function getMaxPriceInt()\n {\n $stats = $this->_getFieldStats();\n $max = $stats['max'];\n if (!is_numeric($max)) {\n $max = parent::getMaxPriceInt();\n }\n return $max;\n }",
"public function getMaximumAmountPerMonth()\n {\n return $this->maximumAmountPerMonth;\n }",
"public function getMaximumAmount()\n\t{\n\t\treturn ['amount' => 5000.00, 'currency' => 'EUR'];\n\t}",
"public function GetMaxAmount()\n\t {\n\t\t return $this->db->query(\"select MAX(TotalPrice) as price from tb_products\")->row_array(); \n\t }",
"public function getMaxPrice() {\n return $this->get(self::MAXPRICE);\n }",
"public function getMaximum() {\r\n return $this->maximumvalue;\r\n }",
"function get_price_max_amount( $amount ) {\n\t\treturn $this->price_max;\n\t}",
"public function getMaximalPrice()\n {\n if (!$this->maximalPrice) {\n $maximalPrice = $this->product->getMaximalPrice();\n if ($maximalPrice === null) {\n $maximalPrice = $this->getValue();\n } else {\n $maximalPrice = $this->priceCurrency->convertAndRound($maximalPrice);\n }\n $this->maximalPrice = $this->calculator->getAmount($maximalPrice, $this->product);\n }\n return $this->maximalPrice;\n }",
"public static function get_max_value() {\n return self::MAX_VALUE;\n }",
"public function get_max_product_price()\n\t{\n\t\t$this->db->select('MAX(product_selling_price) AS price')->from('product')->where(\"product_status = 1\");\n\t\t$query = $this->db->get();\n\t\t$result = $query->row();\n\t\t\n\t\treturn $result->price;\n\t}",
"public function getMaxValue()\n {\n return $this->get('MaxValue');\n }",
"public function getMaxNumber()\n {\n return $this->maxNumber;\n }",
"public function maxNumber(): int\n {\n try {\n return (int) $this->createQueryBuilder('b')\n ->select('max(b.number) as maxi')\n ->getQuery()\n ->getSingleScalarResult()\n ;\n } catch (NonUniqueResultException $exception) {\n //this should not be reached.\n return 0;\n } catch (NoResultException $exception) {\n return 0;\n }\n }",
"public function getMaxPrice()\n\n {\n\n return $this->maxPrice;\n }",
"public function setOperationPrimeMaximumAmount($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_string($v)){\n $v = str_replace(\n array(' ',','),\n array('','.'),\n $v\n );\n }\n \n if(is_numeric($v)) {\n $v = (float) $v;\n }\n }\n if ($this->operation_prime_maximum_amount !== $v) {\n $this->operation_prime_maximum_amount = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OPERATION_PRIME_MAXIMUM_AMOUNT;\n }\n\n\n return $this;\n }",
"public function getMax()\n {\n return $this->_fields['Max']['FieldValue'];\n }",
"function getNota_max()\n {\n if (!isset($this->inota_max) && !$this->bLoaded) {\n $this->DBCarregar();\n }\n return $this->inota_max;\n }",
"function getNota_max()\n {\n if (!isset($this->inota_max) && !$this->bLoaded) {\n $this->DBCarregar();\n }\n return $this->inota_max;\n }",
"function getMax() { return $this->readMaxValue(); }",
"public function getMaximumLoanAmount()\n\t{\n\t\treturn $this->max_loan_amount;\n\t}",
"public function getMaximum()\n {\n return $this->max;\n }",
"protected function getCashMax()\n\t{\n\t\treturn $this->ut->up->rank['number'] / count(\\game::$ranks['items']) * $this->cash_max_real / 2 + $this->cash_max_real / 2;\n\t}",
"public function getMaximumQuantity()\n {\n return $this->maximumQuantity;\n }",
"public function getMaximum()\n {\n return $this->maximum;\n }",
"public function getMax()\n {\n return $this->_maxValue;\n }",
"public function getMax()\n {\n return $this->_fMax;\n }",
"public function getMaxValue();",
"public function getMaxValue();",
"public function getMax() {\n return $this->max;\n }",
"protected function getMax() {\n\n\t\t$max = 0;\n\n\t\tif (!empty($this->tagsArray)) {\n\n\t\t\t$preAmount = 0;\n\n\t\t\tforeach ($this->tagsArray as $key => $value) {\n\n\t\t\t\t$currentAmount = $value['amount'];\n\t\t\t\tif ($currentAmount > $preAmount) {\n\t\t\t\t\t$max = $currentAmount;\n\t\t\t\t\t$preAmount = $currentAmount;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn $max;\n\t}",
"function getMaxValue() { return $this->readMaxValue(); }",
"function getMaxValue() { return $this->readMaxValue(); }",
"function max() { return $this->max; }",
"protected function max_value() {\n $max = 0;\n foreach ($this->data_collections as $data_collection) {\n foreach ($data_collection->get_items() as $item) {\n if ($max < $item->get_value()) {\n $max = $item->get_value();\n }\n }\n }\n return $max;\n }",
"public function maxSortingNumber(){\n $result = $this->repo->maxSortingNumber();\n return $result;\n }",
"public function getMaxPriceInt()\n {\n $maxPrice = $this->getData('max_price_int');\n if (is_null($maxPrice)) {\n $collection = $this->getLayer()->getProductCollection();\n $maxPrice = $collection->clearPriceFilters()->getMaxPrice();\n $collection->retrievePriceFilters();\n $maxPrice = ceil($maxPrice);\n $this->setData('max_price_int', $maxPrice);\n }\n\n return $maxPrice;\n }",
"public function getCargaMaxima()\n {\n return $this->cargaMaxima;\n }",
"protected function _getMax(): int\n {\n $field = $this->_config['right'];\n $rightField = $this->_config['rightField'];\n $edge = $this->_scope($this->_table->find())\n ->select([$field])\n ->orderByDesc($rightField)\n ->first();\n\n if ($edge === null || empty($edge[$field])) {\n return 0;\n }\n\n return $edge[$field];\n }",
"public function getProductsMaxPrice()\n {\n return $this->filterData['max'] ?? '';\n }",
"public function maximalVal( string $column = '' )\n {\n return $this->show()->max( $column );\n }",
"public function max() : ColumnVector\n {\n return ColumnVector::quick(array_map('max', $this->a));\n }",
"public function getOpPrimeNumero()\n {\n\n return $this->op_prime_numero;\n }",
"function getPriceMax($game_id, $round_number, $product_number, $region_number, $channel_number){\r\n\t\t\t$prices=new Model_DbTable_Decisions_Mk_Prices();\r\n\t\t\t$max=0;\r\n\t\t\t$companies=$this->getCompaniesInGame($game_id);\r\n\t\t\tforeach ($companies as $company) {\r\n\t\t\t\t$result=$prices->getDecision($game_id, $company['id'], $round_number);\r\n\t\t\t\t$result_product=$result['product_'.$product_number];\r\n\t\t\t\t$result_channel=$result_product['channel_'.$channel_number];\r\n\t\t\t\t$result_region=$result_channel['region_'.$region_number];\r\n\t\t\t\t$price=$result_region;\r\n\t\t\t\tif ($price>$max){\r\n\t\t\t\t\t$max=$price;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn $max;\r\n\t\t}",
"public function ultimoPedido(){\n //$conexao = $c->conexao();\n\n $query = \"SELECT max(idpedido)idpedido FROM tbpedidos c;\";\n $query = $this->conexao->query($query);\n $row = $query->fetch_assoc();\n\n return $row;\n\n }",
"function exibeAtualMax(){\n $nmin= (($this->atual * $this->numpage) - $this->numpage)+1;\n return $nmax= ($this->numpage + $nmin)-1;\n }",
"public function calculateMaxLoanAmount()\n\t{\n\t\tif(! is_a($this->biz_rules, 'Business_Rules'))\n\t\t{\n\t\t\trequire_once('/virtualhosts/lib/business_rules.class.php');\n\t\t\t$this->biz_rules = new Business_Rules($this->db);\n\t\t}\n\t\t\n\t\tif(empty($this->rule_set))\n\t\t{\n\t\t\tif(empty($this->rule_set_id))\n\t\t\t{\n\t\t\t\t$this->_Get_Application_Info($this->application_id, TRUE);\n\t\t\t}\n\t\t\t\n\t\t\t$this->rule_set = $this->biz_rules->Get_Rule_Set_Tree($this->rule_set_id);\n\t\t}\n\t\t\n\t\t$data = new stdClass;\n\t\t$data->business_rules = $this->rule_set;\n\t\t$data->income_monthly = $this->income_monthly;\n\t\t$data->is_react = $this->is_react;\n\t\t\n\t\trequire_once('loan_amount_calculator.class.php');\n\n\t\t$loan_amount_calc = LoanAmountCalculator::Get_Instance();\n\t\treturn $loan_amount_calc->calculateMaxLoanAmount($data);\t\n\t}",
"public function ultimoNumeroFactura(){\n $pdo = Database::connect();\n $sql = \"select max(idfactura) numero from facturas\";\n $consulta = $pdo->prepare($sql);\n $consulta->execute();\n //obtenemos el registro especifico:\n $res=$consulta->fetch(PDO::FETCH_ASSOC);\n $numero=$res['numero'];\n Database::disconnect();\n //retornamos el numero encontrado:\n if(!isset($numero))\n return 0;\n return $numero;\n }",
"private function getMaxPriceInt(EntityStorage $entityStorage)\n {\n $aggregations = $this->dataProvider->getAggregations($entityStorage);\n $maxPrice = $aggregations['max'];\n $maxPrice = floor($maxPrice);\n\n return $maxPrice;\n }",
"final public function getMaxValue($tableName=\"\",$coloumnName=\"\") {\r\n if($tableName==\"\"||$coloumnName==\"\") {\r\n die(NOT_ENOUGH_ARGUMENT_SUPPLIED);\r\n }\r\n else {\r\n return $this->returnMaxValue($tableName,$coloumnName);\r\n }\r\n }",
"abstract public function maxMax(): int;",
"public function max(string $column): ?int\n {\n if ($this->shouldEmulateExecution()) {\n return null;\n }\n\n return (int) $this->executeScript('Max', !empty($column) ? $column : $this->attribute);\n }",
"public function getSliderMaxPrice()\n {\n if (!$this->getPriceRange()['max']) {\n return $this->getProductsMaxPrice();\n }\n return $this->getPriceRange()['max'];\n }",
"function maxLoan(){\n\tglobal $driver;\n\t$sql\t=\t\"SELECT maxloan FROM settings\"; //Retrieve maximum loan amount to be given\n\tif($maxloan\t\t=\t$driver->perform_request($sql)):\n\t\t$row\t\t=\t$driver->load_data($maxloan);\n\t\t$maxloanamt\t=\t(($row['maxloan'])>0)?($row['maxloan']):500000;\n\telse:\n\t\tdie('<p class=\"error\">ERROR Retrieving Maximum Loan Amount.<br/>'.mysql_error().'</p>');\n\tendif;\n\treturn $maxloanamt; //The maximum amount to loan\n}",
"private function get_max_price() : float {\n\t\tpreg_match( '/runParams\\.maxPrice=\"(.*?)\";/s', $this->request, $matches );\n\t\tif ( empty( $matches[1] ) ) {\n\t\t\treturn 0.0;\n\t\t}\n\t\treturn floatval( $matches[1] );\n\t}",
"public static function getMaxUsedNumber()\n {\n $query = new Query;\n\n $query->select('recepient_num, count(recepient_num) as quan')\n ->from('call')\n ->groupBy('recepient_num')\n ->orderBy('quan desc')\n ->limit(1);\n\n $rows = $query->all();\n\n return $rows[0]['recepient_num'];\n }",
"public function max($field)\n {\n $this->field(\"MAX(`{$field}``) AS max\", false);\n $list = $this->__select();\n $result = 0;\n if (count($list) == 1) {\n $result = intval($list[0]['max']);\n }\n elseif (count($list) > 1) {\n $result = array();\n foreach ($list as $row) {\n $result[] = $row['max'];\n }\n }\n return $result;\n }",
"function getMaxprice(){\r\n $q = \"SELECT * FROM maximum\";\r\n $result = $this->query($q);\r\n return $result;\r\n }",
"public function argMax(): vector {\n $v = vector::factory($this->row, vector::INT);\n if ($this->dtype === self::DOUBLE) {\n for ($i = 0; $i < $this->row; ++$i) {\n $v->data[$i] = core\\blas::dmax($this->rowAsVector($i));\n }\n } elseif ($this->dtype === self::FLOAT) {\n for ($i = 0; $i < $this->row; ++$i) {\n $v->data[$i] = core\\blas::smax($this->rowAsVector($i));\n }\n }\n return $v;\n }",
"function maxLoanCoded(){\n global $driver;\n $sql\t=\t\"SELECT maxloan_coded FROM settings\"; //Retrieve maximum loan amount to be given\n if($maxloan\t\t=\t$driver->perform_request($sql)):\n $row\t\t=\t$driver->load_data($maxloan);\n $maxloanamt\t=\t(($row['maxloan'])>0)?($row['maxloan']):500000;\n else:\n die('<p class=\"error\">ERROR Retrieving Maximum Loan Amount.<br/>'.mysql_error().'</p>');\n endif;\n return $maxloanamt; //The maximum amount to loan\n}",
"public function getMax(): float;",
"public function max($column)\r\n {\r\n return $this->select('max('.$column.') max')->value('max');\r\n }",
"public function max(string $column): float\n {\n return (float) $this->selection->max($column);\n }",
"public function ultimoProduto()\n {\n //$conexao = $c->conexao();\n\n $query = \"SELECT max(id)id FROM tbproduto c;\";\n $query = $this->conexao->query($query);\n $row = $query->fetch_assoc();\n\n return $row;\n }",
"public function getMax(): int;",
"public function getCountMax(): int\n {\n return $this->countMax;\n }",
"public function getSlotMaxAttribute()\n {\n return ($this->trainer_slot_id ? $this->trainer_count * $this->slot_max_potential : $this->slot_max_potential);\n }",
"public function getMaxPrice();",
"public function getOperationPrimeCurrencyId()\n {\n\n return $this->operation_prime_currency_id;\n }",
"function getMaxValue( $colValueName, $tblName) { // selected column name, table name\n\t\n\tglobal $dbf;\n $sql_get = \"SELECT MAX($colValueName) as $colValueName FROM $tblName\";\n\t\n\t$getValue = $dbf;\n\t$getValue->query($sql_get);\n\t$getValue->next_record();\n\n\t$rowValue = $getValue->rowdata();\n\t$theValue = $rowValue[$colValueName];\n\n\treturn $theValue;\n\n}",
"public function max()\n {\n $maximum = round($this->centre + $this->centre * $this->deviation);\n\n return $this->unsigned ? max($maximum, 0) : $maximum;\n }",
"public function CodigoProduccion()\r\n\r\n {\r\n $objetoBD = new Conexion();\r\n $objetoBD->conectar();\r\n $mysqli=$objetoBD->cadenaConexion();\r\n\r\n $consulta=\"SELECT max(prod_id) as maximo FROM produccion \";\r\n $resultado=$mysqli->query($consulta);\r\n\r\n $maximo=\"\";\r\n while($fila=mysqli_fetch_object($resultado)){\r\n\r\n $maximo=$fila->maximo;\r\n\r\n\r\n }\r\n return $maximo+1;\r\n\r\n }",
"protected function _getMax()\n {\n $max = 0;\n if (!empty($this->_tagsArray)) {\n $p_size = 0;\n foreach ($this->_tagsArray as $cKey => $cVal) {\n $c_size = $cVal['size'];\n if ($c_size > $p_size) {\n $max = $c_size;\n $p_size = $c_size;\n }\n }\n }\n return $max;\n }",
"public function getMaxID(){\n\t\t try{\n\t\t\t$conn = DBConnection::GetConnection();\t\n\t\t\t$queryForGetMaxId=\"SELECT MAX(product_id) AS max_value FROM product\";\n\t\t\t$max_result=$conn->prepare($queryForGetMaxId);\n\t\t\t$max_result->execute();\n\t\t\t$maxId = $max_result->fetch(PDO::FETCH_ASSOC); \n\t\t\t$pId=$maxId['max_value']; \n\t\t\t$incrementPid=$pId+1;\n\t\t\treturn $incrementPid;\n\t\t}catch(PDOException $e){\n\t\t\techo 'Fail to connect';\n\t\t\techo $e->getMessage();\n\t\t}\t\n }",
"public function getNextNumMvt($mode = '')\n\t{\n\t\tglobal $conf;\n\n\t\t$sql = \"SELECT MAX(piece_num)+1 as max FROM \" . MAIN_DB_PREFIX . $this->table_element.$mode;\n\t\t$sql .= \" WHERE entity IN (\" . getEntity('accountancy') . \")\";\n\n\t\tdol_syslog(get_class($this) . \"getNextNumMvt sql=\" . $sql, LOG_DEBUG);\n\t\t$result = $this->db->query($sql);\n\n\t\tif ($result) {\n\t\t\t$obj = $this->db->fetch_object($result);\n\t\t\tif ($obj) $result = $obj->max;\n\t\t\tif (empty($result)) $result = 1;\n\t\t\treturn $result;\n\t\t} else {\n\t\t\t$this->error = \"Error \" . $this->db->lasterror();\n\t\t\tdol_syslog(get_class($this) . \"::getNextNumMvt \" . $this->error, LOG_ERR);\n\t\t\treturn - 1;\n\t\t}\n\t}",
"public function getMaxId($_column = null, $_next = false)\n {\n $column = $_column ? $_column : $this->primary;\n if (!$column) {\n return false;\n }\n\n $select = $this->getSql()->select();\n $select->columns(array('col' => new Expression('MAX(' . $column . ')')));\n $row = $this->selectWith($select)->toArray();\n $val = gv('col', gv(0, $row));\n if ($_next && is_numeric($val)) {\n return (int) $val + 1;\n }\n else {\n return (int) $val;\n }\n }",
"public function getMaxLimit()\n {\n return $this->max_limit;\n }",
"public function getMaxValueCharacteristic(){\n\t\t$maxValue = 1;\n\t\t\n\t\tforeach( $this->attributes as $key => $value ){\n\t\t\tif( $key!='knights_id' && $maxValue < $value ) $maxValue = $value; \n\t\t}\t\t\n\t\treturn $maxValue;\n\t}",
"public function getMaxNotaFiscalNumero() {\r\n\r\n $sql = \"SELECT MAX(nflno_numero) + 1 as nflno_numero FROM nota_fiscal WHERE nflserie = 'A'\";\r\n\r\n $result = $this->_fetchAssoc(pg_query($this->_adapter, $sql));\r\n\r\n return $result['nflno_numero']; \r\n }",
"public static function getMaxExponent()\n {\n return pow(2, static::getNumExponentBits()) - 1;\n }",
"public function getHighestOrderNumber()\n {\n return ((int) self::max($this->determineOrderColumnName())) + 1;\n }",
"private function chartmax($data){\n\t\t\t$max = 0;\n\t\t\tforeach($data as $row){\n\t\t\t\t$max = max($max,$row['value']);\n\t\t\t}\n\t\t\treturn $max;\n\t\t}",
"public function CodigoPedido()\r\n\r\n {\r\n $objetoBD = new Conexion();\r\n $objetoBD->conectar();\r\n $mysqli=$objetoBD->cadenaConexion();\r\n\r\n $consulta=\"SELECT max(ped_id) as maximo FROM pedidos \";\r\n $resultado=$mysqli->query($consulta);\r\n\r\n $maximo=\"\";\r\n while($fila=mysqli_fetch_object($resultado)){\r\n\r\n $maximo=$fila->maximo;\r\n\r\n\r\n }\r\n return $maximo+1;\r\n\r\n }",
"static function getSiteMaxPrice() {\n return self::getMetaValueRange(PostProperty::META_PRICE, false, 1000000000);\n }",
"public function max($max=null)\n {\n $max = LambdaUtils::toSelectCallable($max);\n $temp = $this->select($max)->toArray();\n return max($temp);\n }",
"public function getMaxPerUserId()\n {\n return $this->maxPerUserId;\n }",
"public function obtenerUltimoCodigoCanton() {\n\n $resultado = mysqli_query($this->connection, \"select max(codigoCanton) as ultimoCodigoCanton from tbcanton \");\n $ultimoCodigoCanton = 0;\n\n while ($filaTemporal = mysqli_fetch_array($resultado)) {\n $ultimoCodigoCanton = $filaTemporal['ultimoCodigoCanton'];\n }\n return $ultimoCodigoCanton;\n }",
"public function evalMax()\n {\n $users = User::students()->get();\n $max = 0;\n\n foreach ( $users as $user )\n {\n if ($this->evalGradeExists($user))\n {\n if ($this->userPercentage($user) > $max)\n {\n $max = $this->userPercentage($user);\n }\n\n }\n\n }\n\n return $max;\n }",
"public function max(Query $query, string $field): float;",
"public function f_get_leaveBal_on_maxTransaction($emp_no)\r\n {\r\n // trans_dt = (SELECT MAX(trans_dt) FROM td_leave_dtls WHERE emp_no = $emp_no)\r\n // AND trans_cd = (SELECT distinct trans_cd FROM td_leave_dtls WHERE emp_no = $emp_no \r\n // AND trans_dt = (SELECT MAX(trans_dt) FROM td_leave_dtls WHERE emp_no = $emp_no) ) \");\r\n \r\n$sql = $this->db->query(\" SELECT cl_bal, el_bal, ml_bal, od_bal FROM td_leave_dtls\r\n WHERE emp_no = $emp_no \r\n and trans_dt=(SELECT MAX(trans_dt) FROM td_leave_dtls \r\n WHERE emp_no = $emp_no )\r\n and trans_cd=(select max(trans_cd) from td_leave_dtls WHERE emp_no = $emp_no and trans_dt=(SELECT MAX(trans_dt) FROM td_leave_dtls WHERE emp_no = $emp_no )) \");\r\n \r\n \r\n return $sql->result();\r\n\r\n }",
"function get_max_id($table_name,$col_name=\"id\") {\n\tglobal $db, $dbname;\n //$stmt = $db->prepare(\"SELECT MAX($col_name) AS max_id FROM `$dbname`.`$table_name`\");\n $stmt->execute();\n $invNum = $stmt->fetch(PDO::FETCH_ASSOC); //echo \"Max:\".$invNum['max_id'];\n return $invNum['max_id'];\n}",
"static Public function mdlgetUltNumCancelado(){\n\ttry{ \n\t $stmt=Conexion::conectar()->prepare(\"SELECT MAX(num_cancelacion)+1 AS num_cancelacion FROM cancela_venta\");\n\n\t $stmt->execute();\n\t \n\t return $stmt->fetch();\n\n\t} catch (Exception $e) {\n\t\techo \"Failed: \" . $e->getMessage();\n }\n\t //$stmt->close();\n\t \n\t $stmt=null;\n }",
"protected function getMaxValueAcrossSeries(): float\n {\n if ($this->base) {\n return $this->base;\n }\n\n $maxes = array_map('max', $this->data);\n return max($maxes);\n }",
"public function getMaxOrderTotal();",
"public function getLastBatchNumber()\n {\n global $wpdb;\n\n $max = $wpdb->get_results(\n \"SELECT MAX(`batch`) as max FROM {$wpdb->prefix}exolnet_migration as em\",\n 'ARRAY_A'\n );\n\n return absint($max[0]['max']) ?? 0;\n }",
"public function getMax();",
"public function getMaxTarget()\n {\n $bits = $this->lowestBits();\n $target = $this->math->getCompact($bits);\n\n return $target;\n }",
"private function queryMaxId(){\r\n $this->conexion->conectar();\r\n $consultaMaxId =\"SELECT (max(id_perfil)+1) AS id FROM perfil\";\r\n $queryId = $this->conexion->ejecutar($consultaMaxId);\r\n while(OCIFetch($queryId)){\r\n $id = ociresult($queryId, \"ID\");\r\n }\r\n $this->conexion->desconectar();\r\n return $id;\r\n }",
"function getMaxBatch(){\n\t$crud = new CRUD();\n\t$crud->connect();\n\n\t$crud->sql(\"SELECT MAX(batch_no) from breeding_tbl\");\n\t$r = $crud->getResult();\n\tforeach($r as $rs){\n\t\treturn $rs['MAX(batch_no)'];\n\n\t}\n\n\t$crud->disconnect();\n}",
"public function getMax() {\n\n $this->db->select_max('codigo');\n $query = $this->db->get($this->table);\n if($query -> num_rows() >= 1)\n {\n return $query->row_array();\n }\n else\n {\n\n return $this->db->get_compiled_select();\n } \n\n }"
] | [
"0.65634733",
"0.6449375",
"0.6447475",
"0.64324164",
"0.6414635",
"0.6414212",
"0.6369714",
"0.6368224",
"0.63564134",
"0.63075167",
"0.6303096",
"0.6262085",
"0.6239464",
"0.62193793",
"0.61821467",
"0.6166045",
"0.6160484",
"0.6154595",
"0.6154595",
"0.61134857",
"0.61012185",
"0.6098445",
"0.60959333",
"0.60919845",
"0.6079249",
"0.6053305",
"0.6022266",
"0.60146767",
"0.60146767",
"0.60086286",
"0.59553945",
"0.5951476",
"0.5934021",
"0.5922002",
"0.5907978",
"0.58982146",
"0.5890042",
"0.58370364",
"0.5808467",
"0.57938254",
"0.57873976",
"0.5767207",
"0.57653207",
"0.5728811",
"0.5707537",
"0.5698392",
"0.56781673",
"0.56596017",
"0.5645702",
"0.56064135",
"0.55952334",
"0.5581567",
"0.55813026",
"0.5579372",
"0.55582136",
"0.5556403",
"0.55512387",
"0.55486506",
"0.5538521",
"0.55127865",
"0.5511085",
"0.5510338",
"0.5494266",
"0.5489936",
"0.5485404",
"0.54850495",
"0.5478462",
"0.5476938",
"0.54590225",
"0.54551786",
"0.54449075",
"0.5410468",
"0.5393785",
"0.5377375",
"0.53722745",
"0.53576624",
"0.53574896",
"0.53554",
"0.5346954",
"0.5322991",
"0.53177065",
"0.5309064",
"0.52984756",
"0.5296885",
"0.52940375",
"0.52777034",
"0.52776814",
"0.5263657",
"0.52593845",
"0.52550983",
"0.52460706",
"0.5243385",
"0.5240334",
"0.5236244",
"0.522926",
"0.5227471",
"0.5213982",
"0.5213441",
"0.52131015",
"0.5211858"
] | 0.83265495 | 0 |
Set the value of [op_prime_id] column. | public function setOpPrimeId($v)
{
if ($v === ''){
$v = null;
}
elseif ($v !== null){
if(is_numeric($v)) {
$v = (int) $v;
}
}
if ($this->op_prime_id !== $v) {
$this->op_prime_id = $v;
$this->modifiedColumns[] = OperationPrimesPeer::OP_PRIME_ID;
}
return $this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function setOpId($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_numeric($v)) {\n $v = (int) $v;\n }\n }\n if ($this->op_id !== $v) {\n $this->op_id = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OP_ID;\n }\n\n if ($this->aOperations !== null && $this->aOperations->getOpId() !== $v) {\n $this->aOperations = null;\n }\n\n\n return $this;\n }",
"public function getOpPrimeId()\n {\n\n return $this->op_prime_id;\n }",
"public function setOpPrimeNumero($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_numeric($v)) {\n $v = (int) $v;\n }\n }\n if ($this->op_prime_numero !== $v) {\n $this->op_prime_numero = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OP_PRIME_NUMERO;\n }\n\n\n return $this;\n }",
"public function setOperationPrimeCurrencyId($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_numeric($v)) {\n $v = (int) $v;\n }\n }\n if ($this->operation_prime_currency_id !== $v) {\n $this->operation_prime_currency_id = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OPERATION_PRIME_CURRENCY_ID;\n }\n\n if ($this->aRCurrencies !== null && $this->aRCurrencies->getRCurrencyId() !== $v) {\n $this->aRCurrencies = null;\n }\n\n\n return $this;\n }",
"public function setPrimaryKey($key)\n {\n $this->setOpPrimeId($key);\n }",
"public function getOpPrimeNumero()\n {\n\n return $this->op_prime_numero;\n }",
"function setid_exp($val)\n { $this->id_exp=$val;}",
"function setid_exp($val)\n { $this->id_exp=$val;}",
"function setid_exp($val)\n { $this->id_exp=$val;}",
"public function getOperationPrimeCurrencyId()\n {\n\n return $this->operation_prime_currency_id;\n }",
"protected function setProduct_id($value)\n\t{\n\t\tif (isInt($value) || is_null($value)) { $this->product_id = $value; }\n\t}",
"public function getPrimaryKey()\n {\n return $this->getOpPrimeId();\n }",
"public function setOperationPrimeRRewardExpeditionModeId($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_numeric($v)) {\n $v = (int) $v;\n }\n }\n if ($this->operation_prime_r_reward_expedition_mode_id !== $v) {\n $this->operation_prime_r_reward_expedition_mode_id = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OPERATION_PRIME_R_REWARD_EXPEDITION_MODE_ID;\n }\n\n if ($this->aRRewardExpeditionModes !== null && $this->aRRewardExpeditionModes->getRRewardExpeditionModeId() !== $v) {\n $this->aRRewardExpeditionModes = null;\n }\n\n\n return $this;\n }",
"public function setOpPrimeLibelle($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->op_prime_libelle !== $v) {\n $this->op_prime_libelle = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OP_PRIME_LIBELLE;\n }\n\n\n return $this;\n }",
"public function setCubosTiposId($data)\n {\n\n if ($this->_cubosTiposId != $data) {\n $this->_logChange('cubosTiposId');\n }\n\n if ($data instanceof \\Zend_Db_Expr) {\n $this->_cubosTiposId = $data;\n } else if (!is_null($data)) {\n $this->_cubosTiposId = (int) $data;\n } else {\n $this->_cubosTiposId = $data;\n }\n return $this;\n }",
"static public function OpAssignOp ($op) {\n\t\treturn new Binop('OpAssignOp', 20, [$op]);\n\t}",
"public function setPrecinctId($v)\n\t{\n\r\n\t\t// Since the native PHP type for this column is integer,\r\n\t\t// we will cast the input value to an int (if it is not).\r\n\t\tif ($v !== null && !is_int($v) && is_numeric($v)) {\r\n\t\t\t$v = (int) $v;\r\n\t\t}\r\n\n\t\tif ($this->precinct_id !== $v) {\n\t\t\t$this->precinct_id = $v;\n\t\t\t$this->modifiedColumns[] = MmPeer::PRECINCT_ID;\n\t\t}\n\n\t\tif ($this->aPrecinct !== null && $this->aPrecinct->getId() !== $v) {\n\t\t\t$this->aPrecinct = null;\n\t\t}\n\n\t}",
"function setId_preceptor($iid_preceptor = '')\n {\n $this->iid_preceptor = $iid_preceptor;\n }",
"function setId_preceptor($iid_preceptor = '')\n {\n $this->iid_preceptor = $iid_preceptor;\n }",
"public function setCompteIdAttribute($input)\n {\n $this->attributes['compte_id'] = $input ? $input : null;\n }",
"public function set_id_pg($id=0){\n\t\t\t$id = (int) $id;\n\t\t\tif($id!=0){\n\t\t\t\t$this->ipg_id=$id;\n\t\t\t}else{\n\t\t\t\t$this->ipg_id=0;\n\t\t\t}\n\t\t}",
"public function setCentrosEmergenciaId($data)\n {\n\n if ($this->_centrosEmergenciaId != $data) {\n $this->_logChange('centrosEmergenciaId');\n }\n\n if ($data instanceof \\Zend_Db_Expr) {\n $this->_centrosEmergenciaId = $data;\n } else if (!is_null($data)) {\n $this->_centrosEmergenciaId = (int) $data;\n } else {\n $this->_centrosEmergenciaId = $data;\n }\n return $this;\n }",
"function setId($value) {\n $this->_id = intval($value);\n }",
"public function setEmpId($val){\n\t\tif(intval($val) > 0){\n\t\t\t$this->employeeId = intval($val);\n\t\t}\t\t\n\t\treturn $this;\n\t}",
"public function setCuboId($data)\n {\n\n if ($this->_cuboId != $data) {\n $this->_logChange('cuboId');\n }\n\n if ($data instanceof \\Zend_Db_Expr) {\n $this->_cuboId = $data;\n } else if (!is_null($data)) {\n $this->_cuboId = (int) $data;\n } else {\n $this->_cuboId = $data;\n }\n return $this;\n }",
"public function getOpId()\n {\n\n return $this->op_id;\n }",
"public function setEtatCmdIdAttribute($input)\n {\n $this->attributes['etat_cmd_id'] = $input ? $input : null;\n }",
"public function setID($value) {\r\n //if (!is_numeric($value)) die(\"setID() only accepts a numerical ID value\");\r\n $this->id = $value;\r\n }",
"function SetId($value) { $this->id=$value; }",
"public function set_idnumber($value) {\r\n $this->idnumber = $value;\r\n data::add(\"idnumber\", $this->idnumber == \"\" ? NODATA : input::santize($this->idnumber), $this->table_fields);\r\n }",
"protected function setMesto_id($value)\n\t{\n\t\tif (isInt($value) || is_null($value)) { $this->mesto_id = $value; }\n\t}",
"public function setPrimaryKey($key)\n {\n $this->setPothnbr($key);\n }",
"public function setPosteId($data)\n {\n\n if ($this->_posteId != $data) {\n $this->_logChange('posteId');\n }\n\n if ($data instanceof \\Zend_Db_Expr) {\n $this->_posteId = $data;\n } else if (!is_null($data)) {\n $this->_posteId = (int) $data;\n } else {\n $this->_posteId = $data;\n }\n return $this;\n }",
"public function setPrimaryKey($key)\n {\n $this->setProdId($key);\n }",
"public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME)\n {\n $pos = OperationPrimesPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM);\n\n $this->setByPosition($pos, $value);\n }",
"public function setId ($v)\n {\n // Since the native PHP type for this column is integer,\n // we will cast the input value to an int (if it is not).\n if ( $v !== null && !is_int ($v) && is_numeric ($v) )\n {\n $v = (int) $v;\n }\n if ( $this->id !== $v || $v === 0 )\n {\n $this->id = $v;\n }\n }",
"public function updateStockId();",
"public function setPrimaryKey($key)\n\t{\n\t\t$this->setCoParticipante($key);\n\t}",
"public function setId($pId) {\n\t\t$this->Id = $pId;\n\t}",
"public function getOpPrimeLibelle()\n {\n\n return $this->op_prime_libelle;\n }",
"function _set_id( $idGrupo ){\n \t\t$this->idGrupo = $idGrupo;\n }",
"public function setId()\n {\n throw new \\RuntimeException('It is not possible to set job id, you must create a new job');\n }",
"public function setPuntosRecogidaId($data)\n {\n\n if ($this->_puntosRecogidaId != $data) {\n $this->_logChange('puntosRecogidaId');\n }\n\n if ($data instanceof \\Zend_Db_Expr) {\n $this->_puntosRecogidaId = $data;\n } else if (!is_null($data)) {\n $this->_puntosRecogidaId = (int) $data;\n } else {\n $this->_puntosRecogidaId = $data;\n }\n return $this;\n }",
"public function setOppoUserid($value)\n {\n return $this->set(self::_OPPO_USERID, $value);\n }",
"public function setIdPROVEEDORES($idPROVEEDORES){\n $this->idPROVEEDORES = $idPROVEEDORES;\n }",
"public function setEmpleado_idemp($empleado_idemp){\n $this->empleado_idemp = $empleado_idemp;\n }",
"function setEditableManufacturerID($epmid)\n {\n// if ($this->isCorrectManufacturerId($epmid))\n// {\n $this->editableManufacturerID = $epmid;\n// }\n }",
"function setPrimaryKey($pkey_name){\n\n\t\t$this->pkey = $pkey_name;\n\n\t}",
"public function getOperationPrimeRRewardExpeditionModeId()\n {\n\n return $this->operation_prime_r_reward_expedition_mode_id;\n }",
"function set_pm_defecto($punto)\n\t{\n\t\t$db = $this->get_db();\n\t\t$id_punto = $db->quote($punto->get_id());\n\t\t$sql = \"UPDATE apex_proyecto\n\t\t\t\tSET pm_impresion = $id_punto,\n\t\t\t\t\tpm_sesion = $id_punto,\n\t\t\t\t\tpm_contexto = $id_punto,\n\t\t\t\t\tpm_usuario = $id_punto\n\t\t\t\tWHERE proyecto = \".$db->quote($this->identificador);\n\t\t$db->ejecutar($sql);\n\t}",
"public function setPrimaryKey($key)\n\t{\n\t\t$this->setCoNumInventario($key);\n\t}",
"public function resetIdInformazione($conn){\n\t\t$sth = $conn->prepare(\"set @num := 0\");\n\t\t$sth->execute();\n\t\t$sth = $conn->prepare(\"update Filmato_Presentazione set id = @num := (@num+1)\");\n\t\t$sth->execute();\n\t\t$sth = $conn->prepare(\"alter table Filmato_Presentazione auto_increment = 1\");\n\t\t$sth->execute();\n\t}",
"public function setOperationPrimeProductPricePourcentage($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_numeric($v)) {\n $v = (int) $v;\n }\n }\n if ($this->operation_prime_product_price_pourcentage !== $v) {\n $this->operation_prime_product_price_pourcentage = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OPERATION_PRIME_PRODUCT_PRICE_POURCENTAGE;\n }\n\n\n return $this;\n }",
"public function setProcessId(?int $value): void {\n $this->getBackingStore()->set('processId', $value);\n }",
"function setIdentifier($val) {\n $this->identifier = $this->updateDB('identifier', $val);\n }",
"public function setcedulaPaciente($value){\n\n\t\t$this->_cedulaPaciente = $value;\n\t}",
"public function setId($v)\n\t{\n\r\n\t\t// Since the native PHP type for this column is integer,\r\n\t\t// we will cast the input value to an int (if it is not).\r\n\t\tif ($v !== null && !is_int($v) && is_numeric($v)) {\r\n\t\t\t$v = (int) $v;\r\n\t\t}\r\n\n\t\tif ($this->id !== $v) {\n\t\t\t$this->id = $v;\n\t\t\t$this->modifiedColumns[] = MmPeer::ID;\n\t\t}\n\n\t}",
"public function setComunaIdAttribute($input)\n {\n $this->attributes['comuna_id'] = $input ? $input : null;\n }",
"public function setPIID($value)\n {\n return $this->set('PIID', $value);\n }",
"function setId($value) {\n\t\treturn $this->setColumnValue('id', $value, Model::COLUMN_TYPE_INTEGER);\n\t}",
"public function setProductIdAttribute($input)\n {\n $this->attributes['product_id'] = $input ? $input : null;\n }",
"public function setProcessIdAttribute($input)\n {\n $this->attributes['process_id'] = $input ? $input : null;\n }",
"public function setPrimaryKey($key)\n {\n $this->setIDCommande($key);\n }",
"public function setByPosition($pos, $value)\n {\n switch ($pos) {\n case 0:\n $this->setOpPrimeId($value);\n break;\n case 1:\n $this->setOpId($value);\n break;\n case 2:\n $this->setOpPrimeLibelle($value);\n break;\n case 3:\n $this->setOpPrimeNumero($value);\n break;\n case 4:\n $this->setGdlArtId($value);\n break;\n case 5:\n $this->setOperationPrimeCurrencyId($value);\n break;\n case 6:\n $this->setOperationPrimeRRewardTypeId($value);\n break;\n case 7:\n $this->setOperationPrimeRRewardExpeditionModeId($value);\n break;\n case 8:\n $this->setOperationPrimeRRewardTransporterId($value);\n break;\n case 9:\n $this->setOperationPrimeFixedAmount($value);\n break;\n case 10:\n $this->setOperationPrimeProductPricePourcentage($value);\n break;\n case 11:\n $this->setOperationPrimeMaximumAmount($value);\n break;\n } // switch()\n }",
"public function setPid(int $pid){\n $this->pid = $pid;\n }",
"public function SetMaqOp($data){\n\t\t$data = (array)$data;\n\t\t\t\t\t$command = \\Yii::$app->db_mysql;\n\t\t\t$result = $command->createCommand()->insert('maquina_operador',[\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t'maquina' => $data['maquina'], \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t'operador' => $data['operador']\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t])->execute();\n\t\t\n\t}",
"public function setId($data)\n {\n\n if ($this->_id != $data) {\n $this->_logChange('id');\n }\n\n if ($data instanceof \\Zend_Db_Expr) {\n $this->_id = $data;\n\n } else if (!is_null($data)) {\n $this->_id = (int) $data;\n\n } else {\n $this->_id = $data;\n }\n return $this;\n }",
"public function setId($data)\n {\n\n if ($this->_id != $data) {\n $this->_logChange('id');\n }\n\n if ($data instanceof \\Zend_Db_Expr) {\n $this->_id = $data;\n\n } else if (!is_null($data)) {\n $this->_id = (int) $data;\n\n } else {\n $this->_id = $data;\n }\n return $this;\n }",
"public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME)\n {\n $keys = OperationPrimesPeer::getFieldNames($keyType);\n\n if (array_key_exists($keys[0], $arr)) $this->setOpPrimeId($arr[$keys[0]]);\n if (array_key_exists($keys[1], $arr)) $this->setOpId($arr[$keys[1]]);\n if (array_key_exists($keys[2], $arr)) $this->setOpPrimeLibelle($arr[$keys[2]]);\n if (array_key_exists($keys[3], $arr)) $this->setOpPrimeNumero($arr[$keys[3]]);\n if (array_key_exists($keys[4], $arr)) $this->setGdlArtId($arr[$keys[4]]);\n if (array_key_exists($keys[5], $arr)) $this->setOperationPrimeCurrencyId($arr[$keys[5]]);\n if (array_key_exists($keys[6], $arr)) $this->setOperationPrimeRRewardTypeId($arr[$keys[6]]);\n if (array_key_exists($keys[7], $arr)) $this->setOperationPrimeRRewardExpeditionModeId($arr[$keys[7]]);\n if (array_key_exists($keys[8], $arr)) $this->setOperationPrimeRRewardTransporterId($arr[$keys[8]]);\n if (array_key_exists($keys[9], $arr)) $this->setOperationPrimeFixedAmount($arr[$keys[9]]);\n if (array_key_exists($keys[10], $arr)) $this->setOperationPrimeProductPricePourcentage($arr[$keys[10]]);\n if (array_key_exists($keys[11], $arr)) $this->setOperationPrimeMaximumAmount($arr[$keys[11]]);\n }",
"public function setRequestorId(?string $value): void {\n $this->getBackingStore()->set('requestorId', $value);\n }",
"public function setdefaultExecPersonId($v)\n {\n if ($v !== null && is_numeric($v)) {\n $v = (int) $v;\n }\n\n if ($this->defaultexecperson_id !== $v) {\n $this->defaultexecperson_id = $v;\n $this->modifiedColumns[] = ActionTypePeer::DEFAULTEXECPERSON_ID;\n }\n\n\n return $this;\n }",
"public function setId($x) { $this->id = $x; }",
"function initialiserId()\n {\n if(empty($this->m_idOption))\n {\n $requete = 'SELECT idOption FROM optionHotel WHERE libelleOption=? AND prixOption=?';\n $tabParametres = array($this->m_libelleOption, $this->m_prixOption);\n $tabResultat = $this->m_bdd->selection($requete, $tabParametres);\n $this->m_idOption = $tabResultat[0]['idOption']; \n }\n }",
"public function setIdpension($idpension){\n $this->idpension = $idpension;\n }",
"public function let_id_pg(){\n\t\t\treturn (int)$this->ipg_id;\n\t\t}",
"public function setIdp($idp)\n {\n $this->idp = $idp;\n }",
"public function setSeriesIdAttribute($value)\n {\n $this->attributes['series_id'] = $value ? $value : null;\n }",
"public function setSerialId($v)\n\t{\n\r\n\t\t// Since the native PHP type for this column is integer,\r\n\t\t// we will cast the input value to an int (if it is not).\r\n\t\tif ($v !== null && !is_int($v) && is_numeric($v)) {\r\n\t\t\t$v = (int) $v;\r\n\t\t}\r\n\n\t\tif ($this->serial_id !== $v) {\n\t\t\t$this->serial_id = $v;\n\t\t\t$this->modifiedColumns[] = MmPeer::SERIAL_ID;\n\t\t}\n\n\t\tif ($this->aSerial !== null && $this->aSerial->getId() !== $v) {\n\t\t\t$this->aSerial = null;\n\t\t}\n\n\t}",
"public function setRowId($val) {\n if ($val === null) {\n $this->_row_id = null;\n } else if (is_int($val)) {\n $this->_row_id = intval($val);\n } else {\n /**\n * @see Scenario_Exception\n */\n require_once 'Scenario/Exception.php';\n throw new Scenario_Exception('$val must be null or an integer value.');\n }\n }",
"private function SetID($value)\n\t\t{\n\t\t\t$this->id = $value;\n\t\t}",
"public function setPublicIdAttribute($value)\n {\n do{\n \t $newPublicId = chr(rand(64, 90)) . chr(rand(64, 90)) . rand(10,99);\n $publicIdCount = count( $this->whereRaw(\"public_id = '{$newPublicId}'\")->get());\n }while($publicIdCount != 0);\n $this->attributes['public_id'] = $newPublicId;\n }",
"public function set_lockedOperator(string $newval): int\n {\n $rest_val = $newval;\n return $this->_setAttr(\"lockedOperator\", $rest_val);\n }",
"public function setRowId($val) {\n if ($val === null || is_integer($val)) {\n $this->_row_id = $val;\n } else {\n require_once 'Scenario/Exception.php';\n throw new Scenario_Exception('Row ID must be an integer or null.');\n }\n }",
"public function setActionIdAttribute($input)\n {\n $this->attributes['action_id'] = $input ? $input : null;\n }",
"public function setPid($pid, $reassign = false);",
"public function setMaconomyId(string $key): void\n {\n $this->data['instancekeyField'] = $key;\n }",
"public function setPrimaryKey($key)\n\t{\n\t\t$this->setId($key);\n\t}",
"public function setPrimaryKey($key)\n\t{\n\t\t$this->setId($key);\n\t}",
"public function setPrimaryKey($key)\n\t{\n\t\t$this->setId($key);\n\t}",
"public function setPrimaryKey($key)\n\t{\n\t\t$this->setId($key);\n\t}",
"public function setPrimaryKey($key)\n\t{\n\t\t$this->setId($key);\n\t}",
"public function setPrimaryKey($key)\n\t{\n\t\t$this->setId($key);\n\t}",
"public function setPrimaryKey($key)\n\t{\n\t\t$this->setId($key);\n\t}",
"public function setPrimaryKey($key)\n\t{\n\t\t$this->setId($key);\n\t}",
"function setOperationnode($node){\n\t\t$this->operationNode = $node;\n\t}",
"public function setId($value) {\n\t\tif(!is_numeric($value))\n\t\t\tthrow new \\Exception('Comment::setId() failed: value is not numeric');\n\n\t\t$this->id = $value;\n\t}",
"public function setOperationPrimeFixedAmount($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_string($v)){\n $v = str_replace(\n array(' ',','),\n array('','.'),\n $v\n );\n }\n \n if(is_numeric($v)) {\n $v = (float) $v;\n }\n }\n if ($this->operation_prime_fixed_amount !== $v) {\n $this->operation_prime_fixed_amount = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OPERATION_PRIME_FIXED_AMOUNT;\n }\n\n\n return $this;\n }",
"function setId_nom($iid_nom)\n {\n $this->iid_nom = $iid_nom;\n }",
"function setId_nom($iid_nom)\n {\n $this->iid_nom = $iid_nom;\n }",
"public function setTournamentmodeIdAttribute($input)\n {\n $this->attributes['tournamentmode_id'] = $input ? $input : null;\n }"
] | [
"0.70000744",
"0.69464374",
"0.6362339",
"0.6270644",
"0.5910605",
"0.5812543",
"0.5671231",
"0.5596519",
"0.5596519",
"0.5568444",
"0.5216141",
"0.5169974",
"0.51482946",
"0.51230294",
"0.5119571",
"0.49663097",
"0.49595487",
"0.49336648",
"0.49336648",
"0.4933062",
"0.49271995",
"0.49056584",
"0.49029747",
"0.4898448",
"0.4887591",
"0.48828372",
"0.4882207",
"0.4839877",
"0.48340917",
"0.4829764",
"0.48253602",
"0.48190483",
"0.4816996",
"0.48045343",
"0.47983354",
"0.47854233",
"0.47531924",
"0.47403732",
"0.4733302",
"0.4718325",
"0.47158062",
"0.47040558",
"0.46932542",
"0.4677148",
"0.46714166",
"0.46700513",
"0.46645123",
"0.46624315",
"0.46393943",
"0.4633242",
"0.4629522",
"0.4628761",
"0.46219882",
"0.4616662",
"0.46144113",
"0.4597849",
"0.45775336",
"0.45651147",
"0.45634544",
"0.45477417",
"0.4547547",
"0.4544879",
"0.45446795",
"0.45389056",
"0.45279098",
"0.4523132",
"0.45116377",
"0.45116377",
"0.45046097",
"0.4502978",
"0.4496142",
"0.44930953",
"0.44912177",
"0.44910377",
"0.44848934",
"0.44820976",
"0.4480564",
"0.44800532",
"0.44732484",
"0.44631228",
"0.4454742",
"0.44516915",
"0.4448415",
"0.444679",
"0.4444433",
"0.44431058",
"0.44420806",
"0.44420806",
"0.44420806",
"0.44420806",
"0.44420806",
"0.44420806",
"0.44420806",
"0.44420806",
"0.44389242",
"0.44315612",
"0.44261074",
"0.44189265",
"0.44189265",
"0.44154423"
] | 0.7637416 | 0 |
setOpPrimeId() Set the value of [op_id] column. | public function setOpId($v)
{
if ($v === ''){
$v = null;
}
elseif ($v !== null){
if(is_numeric($v)) {
$v = (int) $v;
}
}
if ($this->op_id !== $v) {
$this->op_id = $v;
$this->modifiedColumns[] = OperationPrimesPeer::OP_ID;
}
if ($this->aOperations !== null && $this->aOperations->getOpId() !== $v) {
$this->aOperations = null;
}
return $this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function setOpPrimeId($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_numeric($v)) {\n $v = (int) $v;\n }\n }\n if ($this->op_prime_id !== $v) {\n $this->op_prime_id = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OP_PRIME_ID;\n }\n\n\n return $this;\n }",
"public function getOpPrimeId()\n {\n\n return $this->op_prime_id;\n }",
"public function setOpPrimeNumero($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_numeric($v)) {\n $v = (int) $v;\n }\n }\n if ($this->op_prime_numero !== $v) {\n $this->op_prime_numero = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OP_PRIME_NUMERO;\n }\n\n\n return $this;\n }",
"public function setPrimaryKey($key)\n {\n $this->setOpPrimeId($key);\n }",
"public function setOperationPrimeCurrencyId($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_numeric($v)) {\n $v = (int) $v;\n }\n }\n if ($this->operation_prime_currency_id !== $v) {\n $this->operation_prime_currency_id = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OPERATION_PRIME_CURRENCY_ID;\n }\n\n if ($this->aRCurrencies !== null && $this->aRCurrencies->getRCurrencyId() !== $v) {\n $this->aRCurrencies = null;\n }\n\n\n return $this;\n }",
"public function getOpPrimeNumero()\n {\n\n return $this->op_prime_numero;\n }",
"function setid_exp($val)\n { $this->id_exp=$val;}",
"function setid_exp($val)\n { $this->id_exp=$val;}",
"function setid_exp($val)\n { $this->id_exp=$val;}",
"public function setOperationPrimeRRewardExpeditionModeId($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_numeric($v)) {\n $v = (int) $v;\n }\n }\n if ($this->operation_prime_r_reward_expedition_mode_id !== $v) {\n $this->operation_prime_r_reward_expedition_mode_id = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OPERATION_PRIME_R_REWARD_EXPEDITION_MODE_ID;\n }\n\n if ($this->aRRewardExpeditionModes !== null && $this->aRRewardExpeditionModes->getRRewardExpeditionModeId() !== $v) {\n $this->aRRewardExpeditionModes = null;\n }\n\n\n return $this;\n }",
"public function setOpPrimeLibelle($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->op_prime_libelle !== $v) {\n $this->op_prime_libelle = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OP_PRIME_LIBELLE;\n }\n\n\n return $this;\n }",
"static public function OpAssignOp ($op) {\n\t\treturn new Binop('OpAssignOp', 20, [$op]);\n\t}",
"public function getPrimaryKey()\n {\n return $this->getOpPrimeId();\n }",
"public function getOpId()\n {\n\n return $this->op_id;\n }",
"function SetId($value) { $this->id=$value; }",
"public function setCubosTiposId($data)\n {\n\n if ($this->_cubosTiposId != $data) {\n $this->_logChange('cubosTiposId');\n }\n\n if ($data instanceof \\Zend_Db_Expr) {\n $this->_cubosTiposId = $data;\n } else if (!is_null($data)) {\n $this->_cubosTiposId = (int) $data;\n } else {\n $this->_cubosTiposId = $data;\n }\n return $this;\n }",
"function setId_preceptor($iid_preceptor = '')\n {\n $this->iid_preceptor = $iid_preceptor;\n }",
"function setId_preceptor($iid_preceptor = '')\n {\n $this->iid_preceptor = $iid_preceptor;\n }",
"public function getOperationPrimeCurrencyId()\n {\n\n return $this->operation_prime_currency_id;\n }",
"public function setPosteId($data)\n {\n\n if ($this->_posteId != $data) {\n $this->_logChange('posteId');\n }\n\n if ($data instanceof \\Zend_Db_Expr) {\n $this->_posteId = $data;\n } else if (!is_null($data)) {\n $this->_posteId = (int) $data;\n } else {\n $this->_posteId = $data;\n }\n return $this;\n }",
"public function setId($pId) {\n\t\t$this->Id = $pId;\n\t}",
"public function set_id_pg($id=0){\n\t\t\t$id = (int) $id;\n\t\t\tif($id!=0){\n\t\t\t\t$this->ipg_id=$id;\n\t\t\t}else{\n\t\t\t\t$this->ipg_id=0;\n\t\t\t}\n\t\t}",
"function setPrimaryKey($pkey_name){\n\n\t\t$this->pkey = $pkey_name;\n\n\t}",
"protected function setProduct_id($value)\n\t{\n\t\tif (isInt($value) || is_null($value)) { $this->product_id = $value; }\n\t}",
"function _set_id( $idGrupo ){\n \t\t$this->idGrupo = $idGrupo;\n }",
"public function setPrecinctId($v)\n\t{\n\r\n\t\t// Since the native PHP type for this column is integer,\r\n\t\t// we will cast the input value to an int (if it is not).\r\n\t\tif ($v !== null && !is_int($v) && is_numeric($v)) {\r\n\t\t\t$v = (int) $v;\r\n\t\t}\r\n\n\t\tif ($this->precinct_id !== $v) {\n\t\t\t$this->precinct_id = $v;\n\t\t\t$this->modifiedColumns[] = MmPeer::PRECINCT_ID;\n\t\t}\n\n\t\tif ($this->aPrecinct !== null && $this->aPrecinct->getId() !== $v) {\n\t\t\t$this->aPrecinct = null;\n\t\t}\n\n\t}",
"protected function setMesto_id($value)\n\t{\n\t\tif (isInt($value) || is_null($value)) { $this->mesto_id = $value; }\n\t}",
"public function setIdPROVEEDORES($idPROVEEDORES){\n $this->idPROVEEDORES = $idPROVEEDORES;\n }",
"public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME)\n {\n $pos = OperationPrimesPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM);\n\n $this->setByPosition($pos, $value);\n }",
"public function setPrimaryKey($key)\n\t{\n\t\t$this->setCoParticipante($key);\n\t}",
"public function setIdp($idp)\n {\n $this->idp = $idp;\n }",
"public function setCentrosEmergenciaId($data)\n {\n\n if ($this->_centrosEmergenciaId != $data) {\n $this->_logChange('centrosEmergenciaId');\n }\n\n if ($data instanceof \\Zend_Db_Expr) {\n $this->_centrosEmergenciaId = $data;\n } else if (!is_null($data)) {\n $this->_centrosEmergenciaId = (int) $data;\n } else {\n $this->_centrosEmergenciaId = $data;\n }\n return $this;\n }",
"public function setCuboId($data)\n {\n\n if ($this->_cuboId != $data) {\n $this->_logChange('cuboId');\n }\n\n if ($data instanceof \\Zend_Db_Expr) {\n $this->_cuboId = $data;\n } else if (!is_null($data)) {\n $this->_cuboId = (int) $data;\n } else {\n $this->_cuboId = $data;\n }\n return $this;\n }",
"public function setEmpId($val){\n\t\tif(intval($val) > 0){\n\t\t\t$this->employeeId = intval($val);\n\t\t}\t\t\n\t\treturn $this;\n\t}",
"public function setByPosition($pos, $value)\n {\n switch ($pos) {\n case 0:\n $this->setOpPrimeId($value);\n break;\n case 1:\n $this->setOpId($value);\n break;\n case 2:\n $this->setOpPrimeLibelle($value);\n break;\n case 3:\n $this->setOpPrimeNumero($value);\n break;\n case 4:\n $this->setGdlArtId($value);\n break;\n case 5:\n $this->setOperationPrimeCurrencyId($value);\n break;\n case 6:\n $this->setOperationPrimeRRewardTypeId($value);\n break;\n case 7:\n $this->setOperationPrimeRRewardExpeditionModeId($value);\n break;\n case 8:\n $this->setOperationPrimeRRewardTransporterId($value);\n break;\n case 9:\n $this->setOperationPrimeFixedAmount($value);\n break;\n case 10:\n $this->setOperationPrimeProductPricePourcentage($value);\n break;\n case 11:\n $this->setOperationPrimeMaximumAmount($value);\n break;\n } // switch()\n }",
"public function setOppoUserid($value)\n {\n return $this->set(self::_OPPO_USERID, $value);\n }",
"function setId($value) {\n $this->_id = intval($value);\n }",
"public function setPrimaryKey($key)\n {\n $this->setPothnbr($key);\n }",
"public function SetMaqOp($data){\n\t\t$data = (array)$data;\n\t\t\t\t\t$command = \\Yii::$app->db_mysql;\n\t\t\t$result = $command->createCommand()->insert('maquina_operador',[\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t'maquina' => $data['maquina'], \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t'operador' => $data['operador']\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t])->execute();\n\t\t\n\t}",
"public function setOperador($operador)\r\n {\r\n // $this->_myParameters = $myParameters;\r\n $this->_OPERADOR = $operador;\r\n \t//$this->_OPERADOR='1';\r\n \t//Zend_Registry::get('logger')->log(\"testeddd\", Zend_Log::INFO);\r\n \t$projeto= new Application_Model_DbTable_Projeto();\r\n \t//$this->_PROJETOS=$projeto->getProjetoCombo() ;\r\n \t$this->_PROJETOS=$projeto->getProjetosOperadorPermissao($operador);\r\n \t\r\n }",
"public function setPrimaryKey($key)\n {\n $this->setProdId($key);\n }",
"protected function setOperation( $op, $opt = null )\n {\n if(!$this->operation) {\n switch ($op) {\n case 'select':\n $this->operation = new Select(['isDistinct' => $opt]);\n break;\n }\n }\n else throw new \\Exception(\"WpSqlBuilder - Trying to add new operation to existing query.\", 1);\n }",
"public function setOperator( Person $operator ) \n {//-------------------->> setOperator()\n $this->_operator = $operator;\n }",
"function set_pm_defecto($punto)\n\t{\n\t\t$db = $this->get_db();\n\t\t$id_punto = $db->quote($punto->get_id());\n\t\t$sql = \"UPDATE apex_proyecto\n\t\t\t\tSET pm_impresion = $id_punto,\n\t\t\t\t\tpm_sesion = $id_punto,\n\t\t\t\t\tpm_contexto = $id_punto,\n\t\t\t\t\tpm_usuario = $id_punto\n\t\t\t\tWHERE proyecto = \".$db->quote($this->identificador);\n\t\t$db->ejecutar($sql);\n\t}",
"public function setRequestorId(?string $value): void {\n $this->getBackingStore()->set('requestorId', $value);\n }",
"public function setPrimaryKey($key)\n\t{\n\t\t$this->setCoNumInventario($key);\n\t}",
"public function setPuntosRecogidaId($data)\n {\n\n if ($this->_puntosRecogidaId != $data) {\n $this->_logChange('puntosRecogidaId');\n }\n\n if ($data instanceof \\Zend_Db_Expr) {\n $this->_puntosRecogidaId = $data;\n } else if (!is_null($data)) {\n $this->_puntosRecogidaId = (int) $data;\n } else {\n $this->_puntosRecogidaId = $data;\n }\n return $this;\n }",
"public function setID($value) {\r\n //if (!is_numeric($value)) die(\"setID() only accepts a numerical ID value\");\r\n $this->id = $value;\r\n }",
"public function setId ($v)\n {\n // Since the native PHP type for this column is integer,\n // we will cast the input value to an int (if it is not).\n if ( $v !== null && !is_int ($v) && is_numeric ($v) )\n {\n $v = (int) $v;\n }\n if ( $this->id !== $v || $v === 0 )\n {\n $this->id = $v;\n }\n }",
"public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME)\n {\n $keys = OperationPrimesPeer::getFieldNames($keyType);\n\n if (array_key_exists($keys[0], $arr)) $this->setOpPrimeId($arr[$keys[0]]);\n if (array_key_exists($keys[1], $arr)) $this->setOpId($arr[$keys[1]]);\n if (array_key_exists($keys[2], $arr)) $this->setOpPrimeLibelle($arr[$keys[2]]);\n if (array_key_exists($keys[3], $arr)) $this->setOpPrimeNumero($arr[$keys[3]]);\n if (array_key_exists($keys[4], $arr)) $this->setGdlArtId($arr[$keys[4]]);\n if (array_key_exists($keys[5], $arr)) $this->setOperationPrimeCurrencyId($arr[$keys[5]]);\n if (array_key_exists($keys[6], $arr)) $this->setOperationPrimeRRewardTypeId($arr[$keys[6]]);\n if (array_key_exists($keys[7], $arr)) $this->setOperationPrimeRRewardExpeditionModeId($arr[$keys[7]]);\n if (array_key_exists($keys[8], $arr)) $this->setOperationPrimeRRewardTransporterId($arr[$keys[8]]);\n if (array_key_exists($keys[9], $arr)) $this->setOperationPrimeFixedAmount($arr[$keys[9]]);\n if (array_key_exists($keys[10], $arr)) $this->setOperationPrimeProductPricePourcentage($arr[$keys[10]]);\n if (array_key_exists($keys[11], $arr)) $this->setOperationPrimeMaximumAmount($arr[$keys[11]]);\n }",
"public function setPartieId($v)\n\t{\n\t\tif ($v !== null) {\n\t\t\t$v = (int) $v;\n\t\t}\n\n\t\tif ($this->partie_id !== $v) {\n\t\t\t$this->partie_id = $v;\n\t\t\t$this->modifiedColumns[] = PostPeer::PARTIE_ID;\n\t\t}\n\n\t\tif ($this->aPartie !== null && $this->aPartie->getId() !== $v) {\n\t\t\t$this->aPartie = null;\n\t\t}\n\n\t\treturn $this;\n\t}",
"public function setId($v)\n\t{\n\r\n\t\t// Since the native PHP type for this column is integer,\r\n\t\t// we will cast the input value to an int (if it is not).\r\n\t\tif ($v !== null && !is_int($v) && is_numeric($v)) {\r\n\t\t\t$v = (int) $v;\r\n\t\t}\r\n\n\t\tif ($this->id !== $v) {\n\t\t\t$this->id = $v;\n\t\t\t$this->modifiedColumns[] = MmPeer::ID;\n\t\t}\n\n\t}",
"protected function setIpSetId(int $id)\n {\n $this->props['ipSetId'] = $id;\n $this->props['ipSet'] = null;\n }",
"public function setPid(int $pid){\n $this->pid = $pid;\n }",
"public function set_lockedOperator(string $newval): int\n {\n $rest_val = $newval;\n return $this->_setAttr(\"lockedOperator\", $rest_val);\n }",
"public function setEmpleado_idemp($empleado_idemp){\n $this->empleado_idemp = $empleado_idemp;\n }",
"function set_id($id) {\n\t\t$this->id = $id;\n\t}",
"public function SetId ($id);",
"public function setId()\n {\n throw new \\RuntimeException('It is not possible to set job id, you must create a new job');\n }",
"public static function SetPlatEstActif($id) {\n\t\t$sql = 'CALL upd_plat_actif(:pID,:pActif)';\n\t\t$param = array(':pID' => $id, ':pActif' => 1);\n\t\tDatabaseHandler::Execute($sql, $param);\n\t}",
"function setEditableManufacturerID($epmid)\n {\n// if ($this->isCorrectManufacturerId($epmid))\n// {\n $this->editableManufacturerID = $epmid;\n// }\n }",
"public function updateStockId();",
"public function setid($v)\n {\n if ($v !== null && is_numeric($v)) {\n $v = (int) $v;\n }\n\n if ($this->id !== $v) {\n $this->id = $v;\n $this->modifiedColumns[] = ActionTypePeer::ID;\n }\n\n if ($this->aActionPropertyTypeRelatedByid !== null && $this->aActionPropertyTypeRelatedByid->getactionTypeId() !== $v) {\n $this->aActionPropertyTypeRelatedByid = null;\n }\n\n\n return $this;\n }",
"public function setId($data)\n {\n\n if ($this->_id != $data) {\n $this->_logChange('id');\n }\n\n if ($data instanceof \\Zend_Db_Expr) {\n $this->_id = $data;\n\n } else if (!is_null($data)) {\n $this->_id = (int) $data;\n\n } else {\n $this->_id = $data;\n }\n return $this;\n }",
"public function setId($data)\n {\n\n if ($this->_id != $data) {\n $this->_logChange('id');\n }\n\n if ($data instanceof \\Zend_Db_Expr) {\n $this->_id = $data;\n\n } else if (!is_null($data)) {\n $this->_id = (int) $data;\n\n } else {\n $this->_id = $data;\n }\n return $this;\n }",
"public function setOpEndpoint($url)\n {\n $this->_opEndpoint = $url;\n }",
"public function setIdVit($id){\n\t\t$this->id = $id;\n\t}",
"function setPID($pid) {\n\t\t$this->_pid = $pid;\n\t}",
"function setOperationnode($node){\n\t\t$this->operationNode = $node;\n\t}",
"public function setPrimaryKey($key)\n\t{\n\t\t$this->setId($key);\n\t}",
"public function setPrimaryKey($key)\n\t{\n\t\t$this->setId($key);\n\t}",
"public function setPrimaryKey($key)\n\t{\n\t\t$this->setId($key);\n\t}",
"public function setPrimaryKey($key)\n\t{\n\t\t$this->setId($key);\n\t}",
"public function setPrimaryKey($key)\n\t{\n\t\t$this->setId($key);\n\t}",
"public function setPrimaryKey($key)\n\t{\n\t\t$this->setId($key);\n\t}",
"public function setPrimaryKey($key)\n\t{\n\t\t$this->setId($key);\n\t}",
"public function setPrimaryKey($key)\n\t{\n\t\t$this->setId($key);\n\t}",
"public function setEtatCmdIdAttribute($input)\n {\n $this->attributes['etat_cmd_id'] = $input ? $input : null;\n }",
"public function setPrimaryKey($key)\n {\n $this->setSekolahId($key);\n }",
"public function ChangeVote($db, $poi_id, $votes, $operation){\n if ($operation == \"up\"){\n $votes++;\n }else{\n $votes--;\n }\n $stmt = $db->prepare(\"UPDATE pois\n SET votes = :votes\n WHERE poi_id = :poi_id\");\n $stmt->bindParam(':votes', $votes, PDO::PARAM_INT);\n $stmt->bindParam(':poi_id', $poi_id, PDO::PARAM_INT);\n $stmt->execute();\n return $votes;\n }",
"function setId($id) {\r\n $this->_id = $id;\r\n }",
"public function setPid($pid, $reassign = false);",
"public function setOperationPrimeProductPricePourcentage($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_numeric($v)) {\n $v = (int) $v;\n }\n }\n if ($this->operation_prime_product_price_pourcentage !== $v) {\n $this->operation_prime_product_price_pourcentage = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OPERATION_PRIME_PRODUCT_PRICE_POURCENTAGE;\n }\n\n\n return $this;\n }",
"public function setID($id) {\n\t\t// if passed in task ID is not null or not numeric, is not between 0 and 9223372036854775807 (signed bigint max val - 64bit)\n\t\t// over nine quintillion rows\n\t\tif(($id !== null) && (!is_numeric($id) || $id <= 0 || $id > 9223372036854775807 || $this->_id !== null)) {\n\t\t\tthrow new TaskException(\"Task ID error\");\n\t\t}\n\t\t$this->_id = $id;\n\t}",
"public function set($new_id);",
"public function setPrimaryKey($key)\n\t{\n\t\t$this->setCoUsuario($key);\n\t}",
"function set(Mecanico $mecanico, $pkid) {\r\n //dice el numero de filas modificades\r\n $parametros = $mecanico->getArray();\r\n $parametrosWhere = array();\r\n $parametrosWhere[\"id\"] = $pkid;\r\n return $this->bd->update($this->tabla, $parametros, $parametrosWhere);\r\n }",
"public function getOpPrimeLibelle()\n {\n\n return $this->op_prime_libelle;\n }",
"public function setProcessId(?int $value): void {\n $this->getBackingStore()->set('processId', $value);\n }",
"public function setPrimaryKey($key)\n {\n $this->setid($key);\n }",
"function setId($id) {\n\t\t$this->_id = $id;\n\t}",
"public function setPrimaryKey($key)\n {\n $this->setFeatureCvtermId($key);\n }",
"public function set_operator_on_work($operator_id) {\n if (!$operator_id) throw new ArcticDeskAPIException(\"Operator ID can not be empty!\");\n # ensure that this operator exists\n $this->operators->id($operator_id); // will throw an error otherwise.\n $this->operator_on_work = $operator_id;\n }",
"public function setId($x) { $this->id = $x; }",
"function setIdentifier($val) {\n $this->identifier = $this->updateDB('identifier', $val);\n }",
"public function resetIdInformazione($conn){\n\t\t$sth = $conn->prepare(\"set @num := 0\");\n\t\t$sth->execute();\n\t\t$sth = $conn->prepare(\"update Filmato_Presentazione set id = @num := (@num+1)\");\n\t\t$sth->execute();\n\t\t$sth = $conn->prepare(\"alter table Filmato_Presentazione auto_increment = 1\");\n\t\t$sth->execute();\n\t}",
"public function actionSetInvoiceId($id, $value) {\n // Save column data\n $this->setColumn($id, $value, 'invoice_id', 'setInvoiceId');\n }",
"public function set_id( $id ) {\n\t\t$this->id = absint( $id );\n\t}",
"function set_id($id)\n {\n $this->id = $id;\n }",
"public function setId($id)\n {\n $this->_id = (int) $id;\n }"
] | [
"0.7645354",
"0.6735857",
"0.6311355",
"0.60500765",
"0.58966213",
"0.54381555",
"0.5321016",
"0.5246689",
"0.5246689",
"0.52158755",
"0.51608074",
"0.5129233",
"0.5099695",
"0.50778925",
"0.5020183",
"0.5008836",
"0.5005647",
"0.5005647",
"0.49662164",
"0.49269044",
"0.491931",
"0.49159282",
"0.48398042",
"0.48320907",
"0.48282912",
"0.48233673",
"0.4782082",
"0.47726658",
"0.4770143",
"0.4759837",
"0.4757",
"0.47460008",
"0.47445622",
"0.46843487",
"0.46734664",
"0.4672416",
"0.4662841",
"0.46576032",
"0.46561623",
"0.4652222",
"0.46216562",
"0.46178448",
"0.46133623",
"0.4612907",
"0.46059552",
"0.45997763",
"0.4560002",
"0.45556742",
"0.45552716",
"0.45492423",
"0.45224434",
"0.4520775",
"0.45201653",
"0.45092592",
"0.44998696",
"0.44990718",
"0.44737557",
"0.44725984",
"0.44663554",
"0.44614336",
"0.44612363",
"0.4450682",
"0.4449527",
"0.44431767",
"0.44431767",
"0.44423378",
"0.44390664",
"0.4430987",
"0.4426954",
"0.44223025",
"0.44223025",
"0.44223025",
"0.44223025",
"0.44223025",
"0.44223025",
"0.44223025",
"0.44223025",
"0.4421556",
"0.4407054",
"0.4402743",
"0.43982995",
"0.4397377",
"0.4391263",
"0.43904492",
"0.4386458",
"0.43850422",
"0.43841437",
"0.43827227",
"0.43765983",
"0.4375003",
"0.4373003",
"0.43726316",
"0.43718353",
"0.4369929",
"0.4366927",
"0.43642795",
"0.43624428",
"0.43587708",
"0.4357295",
"0.43572196"
] | 0.73395073 | 1 |
setOpId() Set the value of [op_prime_libelle] column. | public function setOpPrimeLibelle($v)
{
if ($v !== null) {
$v = (string) $v;
}
if ($this->op_prime_libelle !== $v) {
$this->op_prime_libelle = $v;
$this->modifiedColumns[] = OperationPrimesPeer::OP_PRIME_LIBELLE;
}
return $this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function setOpId($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_numeric($v)) {\n $v = (int) $v;\n }\n }\n if ($this->op_id !== $v) {\n $this->op_id = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OP_ID;\n }\n\n if ($this->aOperations !== null && $this->aOperations->getOpId() !== $v) {\n $this->aOperations = null;\n }\n\n\n return $this;\n }",
"public function setOpPrimeId($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_numeric($v)) {\n $v = (int) $v;\n }\n }\n if ($this->op_prime_id !== $v) {\n $this->op_prime_id = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OP_PRIME_ID;\n }\n\n\n return $this;\n }",
"public function setId($valor){\n\t\t\t$this->id = $valor;\n\t\t}",
"function _set_id( $idGrupo ){\n \t\t$this->idGrupo = $idGrupo;\n }",
"public function getOpPrimeLibelle()\n {\n\n return $this->op_prime_libelle;\n }",
"function setIdadeFilho( $iIndiceFilho, $iIdade ) {\n $this->{\"iIdadeFilho$iIndiceFilho\"} = $iIdade;\n }",
"public function getOpPrimeId()\n {\n\n return $this->op_prime_id;\n }",
"function initialiserId()\n {\n if(empty($this->m_idOption))\n {\n $requete = 'SELECT idOption FROM optionHotel WHERE libelleOption=? AND prixOption=?';\n $tabParametres = array($this->m_libelleOption, $this->m_prixOption);\n $tabResultat = $this->m_bdd->selection($requete, $tabParametres);\n $this->m_idOption = $tabResultat[0]['idOption']; \n }\n }",
"public function setIdAtelier($valeur){\n $this->idAtelier = $valeur;\n }",
"public function SetId($valor)\r\n\t{\r\n\t\t$this->id = $valor;\r\n\t}",
"function setId_nom($iid_nom)\n {\n $this->iid_nom = $iid_nom;\n }",
"function setId_nom($iid_nom)\n {\n $this->iid_nom = $iid_nom;\n }",
"public function setOpPrimeNumero($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_numeric($v)) {\n $v = (int) $v;\n }\n }\n if ($this->op_prime_numero !== $v) {\n $this->op_prime_numero = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OP_PRIME_NUMERO;\n }\n\n\n return $this;\n }",
"public function SetIdConvocatoria($valor){\n\t\t $this->id_convocatoria= $valor;\n\t }",
"function setIdComentaire($idCommentaire) {\n $this->idCommentaire = $idCommentaire;\n }",
"public function setIdadeFilho1 ($iIdadeFilho1) {\n $this->iIdadeFilho1 = $iIdadeFilho1;\n }",
"public function setIdadeFilho2 ($iIdadeFilho2) {\n $this->iIdadeFilho2 = $iIdadeFilho2;\n }",
"public function setId($IDabbonamento)\n {\n $this->id = $IDabbonamento;\n }",
"function set($idModelo, $idPedido=NULL, $idProduccion=NULL, $belongsTo=NULL, $idVenta=NULL){\r\n\t\t\r\n\t\ttry{\r\n\t\t\t$prod = array('modelos_id'=>$idModelo);\r\n\t\t\tif($idPedido != NULL)$prod['pedidos_id']= $idPedido;\r\n\t\t\tif($idProduccion != NULL)$prod['producciones_id']= $idProduccion;\r\n\t\t\tif($idVenta != NULL)$prod['ventas_id']= $idVenta;\r\n\t\t\tif($belongsTo != NULL)$prod['belongsTo']= $belongsTo;\r\n\t\t\t\r\n\t\t\tif(!$this->create($prod))\r\n\t\t\t\tthrow new BadRequestException('Hubo un error al agregar el producto a la cola de impresión.');\r\n\r\n\t\t\t//Agrego los modelos\r\n\t\t\t$idImp = $this->con->lastInsertID('colaimpresion', 'id');\r\n\t\t\t$prod['id']=$idImp;\r\n\t\t\t\t\t\t\t\r\n\t\t\treturn array('success'=>true, 'ColaImpresion'=>$prod);\r\n\t\t\t\r\n\t\t} catch (Exception $e) {\r\n\t\t\t\r\n\t\t\treturn array('success'=>false, 'msg'=>$e->getMsg());\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}",
"function setid_exp($val)\n { $this->id_exp=$val;}",
"public function setOperationPrimeCurrencyId($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_numeric($v)) {\n $v = (int) $v;\n }\n }\n if ($this->operation_prime_currency_id !== $v) {\n $this->operation_prime_currency_id = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OPERATION_PRIME_CURRENCY_ID;\n }\n\n if ($this->aRCurrencies !== null && $this->aRCurrencies->getRCurrencyId() !== $v) {\n $this->aRCurrencies = null;\n }\n\n\n return $this;\n }",
"public function setIdAuteur($idauteur){\n\t\t$idauteur = (int) $idauteur;\n\t\t// On vérifie ensuite si ce nombre est bien strictement positif.\n\t\tif ($idauteur > 0){\n\t\t\t// Si c'est le cas, c'est tout bon, on assigne la valeur à l'attribut correspondant.\n\t\t\t$this->_idauteur = $idauteur;\n\t\t}\n\t}",
"public function setOperador($operador)\r\n {\r\n // $this->_myParameters = $myParameters;\r\n $this->_OPERADOR = $operador;\r\n \t//$this->_OPERADOR='1';\r\n \t//Zend_Registry::get('logger')->log(\"testeddd\", Zend_Log::INFO);\r\n \t$projeto= new Application_Model_DbTable_Projeto();\r\n \t//$this->_PROJETOS=$projeto->getProjetoCombo() ;\r\n \t$this->_PROJETOS=$projeto->getProjetosOperadorPermissao($operador);\r\n \t\r\n }",
"public function setOperationId($var)\n {\n GPBUtil::checkString($var, True);\n $this->operation_id = $var;\n\n return $this;\n }",
"function setId_preceptor($iid_preceptor = '')\n {\n $this->iid_preceptor = $iid_preceptor;\n }",
"function setId_preceptor($iid_preceptor = '')\n {\n $this->iid_preceptor = $iid_preceptor;\n }",
"function __set($modelo, $valor)\n\t{\n\t\t$this->modelo = $modelo;\n\t}",
"function setId_serie($iid_serie)\n {\n $this->iid_serie = $iid_serie;\n }",
"function setid_exp($val)\n { $this->id_exp=$val;}",
"function setid_exp($val)\n { $this->id_exp=$val;}",
"public function setIdadeFilho4 ($iIdadeFilho4) {\n $this->iIdadeFilho4 = $iIdadeFilho4;\n }",
"function setIdkitprodutos($idkitprodutos) {\n $this->idkitprodutos = $idkitprodutos;\n }",
"public function set_data($id_producto,$proveedores_id_proveedor,$categoria_id_Categoria,$nom_producto,$pre_producto,$can_producto)\n {\n $this->id_producto=$id_producto;\n $this->proveedores_id_proveedor=$proveedores_id_proveedor;\n $this->categoria_id_Categoria=$categoria_id_Categoria;\n $this->nom_producto=$nom_producto;\n $this->pre_producto=$pre_producto;\n $this->can_producto=$can_producto;\n }",
"public function setIdUsuarioOrigen($usuarioOrigen) {\n\t\t$this->usuarioOrigen = $usuarioOrigen;\n\t}",
"public function setPrimaryKey($key)\n {\n $this->setOpPrimeId($key);\n }",
"public function setPuntosRecogidaId($data)\n {\n\n if ($this->_puntosRecogidaId != $data) {\n $this->_logChange('puntosRecogidaId');\n }\n\n if ($data instanceof \\Zend_Db_Expr) {\n $this->_puntosRecogidaId = $data;\n } else if (!is_null($data)) {\n $this->_puntosRecogidaId = (int) $data;\n } else {\n $this->_puntosRecogidaId = $data;\n }\n return $this;\n }",
"function obo_id(){\n\t\t$obo_id = str_replace(' ','', strtoupper(trim($this->col_data)));\n\t\t#fall through if blank\n\t\tif($obo_id != ''){\n\t\t\t# fall through to check if it looks right already\n\t\t\tif(!preg_match('/^'.$this->ontologyName.':\\d+$/',$obo_id)){\n\t\t\t\t$new_obo_id = self::correct_obo_id($obo_id, $this->ontologyName);\n\t\t\t\tif ($new_obo_id != $obo_id){\n\t\t\t\t\t$obo_id = $new_obo_id;\n\t\t\t\t\t$this->error =\n\t\t\t\t\t\t\"<div style='color:green'>Guessing that when you wrote $this->col_data you meant...</div>\";\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(trim($obo_id) != '' && $this->term->name == ''){\n\t\t\t\t$obo_id = $this->col_data;\n\t\t\t\t$this->error =\n\t\t\t\t\t\"<div style='color:red'>$this->col_data doesn't look like a $this->ontologyName id</div>\";\n\t\t\t}\n\t\t}\n\t\treturn TableEditView::form_field($this->col_index, $obo_id, 40,'text');\n\t\t\n\t}",
"function setId_situacion($iid_situacion = '')\n {\n $this->iid_situacion = (int)$iid_situacion;\n }",
"function SetId($value) { $this->id=$value; }",
"public function setIdDetalleRegistroGradoFolio( $idDetalleRegistroGradoFolio ){\n\t\t\t$this->idDetalleRegistroGradoFolio = $idDetalleRegistroGradoFolio;\n\t\t}",
"public function setCubosTiposId($data)\n {\n\n if ($this->_cubosTiposId != $data) {\n $this->_logChange('cubosTiposId');\n }\n\n if ($data instanceof \\Zend_Db_Expr) {\n $this->_cubosTiposId = $data;\n } else if (!is_null($data)) {\n $this->_cubosTiposId = (int) $data;\n } else {\n $this->_cubosTiposId = $data;\n }\n return $this;\n }",
"function setId_ubi($iid_ubi = '')\n {\n $this->iid_ubi = $iid_ubi;\n }",
"public function setLafiliere_idlafiliere(int $lafiliere_idlafiliere):void\n {\n $lafiliere_idlafiliere = (int)$lafiliere_idlafiliere;\n //checking is empty\n if(empty($lafiliere_idlafiliere)){\n trigger_error(\"The foreign key session is not valid\",E_USER_NOTICE);\n }else{\n $this->lafiliere_idlafiliere = $lafiliere_idlafiliere;\n }\n }",
"public function setIdProducto($idProducto)\n {\n $this->idProducto = $idProducto;\n\n return $this;\n }",
"public function getOpId()\n {\n\n return $this->op_id;\n }",
"public function setCentrosEmergenciaId($data)\n {\n\n if ($this->_centrosEmergenciaId != $data) {\n $this->_logChange('centrosEmergenciaId');\n }\n\n if ($data instanceof \\Zend_Db_Expr) {\n $this->_centrosEmergenciaId = $data;\n } else if (!is_null($data)) {\n $this->_centrosEmergenciaId = (int) $data;\n } else {\n $this->_centrosEmergenciaId = $data;\n }\n return $this;\n }",
"public function updateStockId();",
"private function setCodigoOrdem($iCodigoOrdem){\n $this->iCodigoOrdem = $iCodigoOrdem;\n }",
"function set_pm_defecto($punto)\n\t{\n\t\t$db = $this->get_db();\n\t\t$id_punto = $db->quote($punto->get_id());\n\t\t$sql = \"UPDATE apex_proyecto\n\t\t\t\tSET pm_impresion = $id_punto,\n\t\t\t\t\tpm_sesion = $id_punto,\n\t\t\t\t\tpm_contexto = $id_punto,\n\t\t\t\t\tpm_usuario = $id_punto\n\t\t\t\tWHERE proyecto = \".$db->quote($this->identificador);\n\t\t$db->ejecutar($sql);\n\t}",
"public function setContribuyenteId($data)\n {\n\n if ($this->_contribuyenteId != $data) {\n $this->_logChange('contribuyenteId');\n }\n\n if ($data instanceof \\Zend_Db_Expr) {\n $this->_contribuyenteId = $data;\n } else if (!is_null($data)) {\n $this->_contribuyenteId = (int) $data;\n } else {\n $this->_contribuyenteId = $data;\n }\n return $this;\n }",
"function setId($value) {\n $this->_id = intval($value);\n }",
"public function setPrimaryKey($key)\n {\n $this->setIDCommande($key);\n }",
"function setId_ubi($iid_ubi)\n {\n $this->iid_ubi = $iid_ubi;\n }",
"function setId_ubi($iid_ubi)\n {\n $this->iid_ubi = $iid_ubi;\n }",
"public function setPrimaryKey($key)\n\t{\n\t\t$this->setCoNumInventario($key);\n\t}",
"function setComprobantePagoARegistroPago() {\n\t\tglobal $bd;\t\t\n\t\tglobal $x_correlativo_comprobante;\n\t\t$correlatico_comprobante = $x_correlativo_comprobante;\n\t\t$x_array_comprobante = $_POST['p_comprobante'];\n\t\t$id_registro_pago = $_POST['idregistro_pago'];\n\n\t\t$idtipo_comprobante_serie = $x_array_comprobante['idtipo_comprobante_serie'];\n\t\t\n\t\t$sqlrp=\"update registro_pago set idtipo_comprobante_serie=\".$idtipo_comprobante_serie.\" where idregistro_pago=\".$id_registro_pago;\n\t\t$idregistro_pago=$bd->xConsulta_NoReturn($sqlrp);\n\t}",
"public function setIdNiche($idNiche)\n {\n $this->idNiche = $idNiche;\n }",
"function getId_Producto(){\r\n\t\treturn $this->nId_Producto;\r\n\t}",
"function setOrden($iorden = '')\n {\n $this->iorden = $iorden;\n }",
"public function setIdadeFilho3 ($iIdadeFilho3) {\n $this->iIdadeFilho3 = $iIdadeFilho3;\n }",
"public function setIdJeu(int $id_jeu) {\n $this->id_jeu = $id_jeu;\n }",
"public function setParcela(int $parcela)\n {\n $this->parcela = $parcela;\n }",
"function setIdCliente($id_cliente)\r\n\t {\r\n\t\t $this->id_cliente = $id_cliente;\r\n\t }",
"protected function setProduct_id($value)\n\t{\n\t\tif (isInt($value) || is_null($value)) { $this->product_id = $value; }\n\t}",
"function setEditableManufacturerID($epmid)\n {\n// if ($this->isCorrectManufacturerId($epmid))\n// {\n $this->editableManufacturerID = $epmid;\n// }\n }",
"public function setIdProducto($idProducto)\n {\n return $this->idProducto=$idProducto;\n }",
"public function getOpPrimeNumero()\n {\n\n return $this->op_prime_numero;\n }",
"public function setIdadeFilho5 ($iIdadeFilho5) {\n $this->iIdadeFilho5 = $iIdadeFilho5;\n }",
"public function _setEntregable($data)\n {\n try {\n $id = (int)$data['entregableid'];\n if ($id == 0) {\n $sql = $this->_db->query(\"select codigo_prop_proy from proyecto where\n proyectoid = '\".$data['proyectoid'].\"'\");\n $codigo = $sql->fetch();\n $ent = $this->createRow();\n $ent->codigo_prop_proy = $codigo['codigo_prop_proy'];\n $ent->proyectoid = $data['proyectoid'];\n $ent->revision_entregable = 'A';\n $ent->edt = '000';\n $ent->tipo_documento = $data['tipo_documento'];\n $ent->disciplina = $data['disciplina'];\n $ent->codigo_anddes = $data['codigo_anddes'];\n $ent->codigo_cliente = $data['codigo_cliente'];\n $ent->descripcion_entregable = $data['descripcion'];\n $ent->estado = 'Ultimo';\n $ent->clase = $data['clase'];\n $ent->revision_documento = $data['revision'];\n $ent->estado_entregable = 9;\n $ent->save();\n $resp['resultado'] = 'guardado';\n return $resp;\n } else {\n $ent = $this->fetchRow('cod_le = '.$id);\n $ent->tipo_documento = $data['tipo_documento'];\n $ent->disciplina = $data['disciplina'];\n $ent->codigo_anddes = $data['codigo_anddes'];\n $ent->codigo_cliente = $data['codigo_cliente'];\n $ent->descripcion_entregable = $data['descripcion'];\n $ent->save();\n $resp['resultado'] = 'guardado';\n return $resp;\n }\n return $id;\n } catch (Exception $e) {\n print $e->getMessage();\n }\n }",
"public function SetMaqOp($data){\n\t\t$data = (array)$data;\n\t\t\t\t\t$command = \\Yii::$app->db_mysql;\n\t\t\t$result = $command->createCommand()->insert('maquina_operador',[\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t'maquina' => $data['maquina'], \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t'operador' => $data['operador']\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t])->execute();\n\t\t\n\t}",
"public function edit_produit_libelle($libelleproduit,$id_produit)\n\t{\n\t\ttry\n\t\t{\n\t\t\t\t$stmt = $this->conn->prepare(\"UPDATE produit SET LibelleProduit = :libelleproduit WHERE IDProduit = :id\");\n\t\t\t\t$stmt->bindparam(\":libelleproduit\", $libelleproduit);\n\t\t\t\t$stmt->bindparam(\":id\", $id_produit);\n\t\t\t\t$stmt->execute();\n\t\t\treturn $stmt;\n\t\t}\n\t\tcatch(PDOException $e)\n\t\t{\n\t\t\techo $e->getMessage();\n\t\t}\n\t}",
"public function setRecordInDB($id_sede, $nome, $id_luogo){\r\n include_once './db_functions.php';\r\n $db = new DB_Functions();\r\n //Escaping\r\n $id_sede = DB_Functions::esc($id_sede);\r\n $nome = DB_Functions::esc($nome);\r\n $id_luogo = DB_Functions::esc($id_luogo);\r\n\r\n $query = \"UPDATE SEDE \r\n SET \tNOME = $nome,\r\n ID_LUOGO = $id_luogo,\r\n WHERE \t\r\n ID_SEDE = $id_sede;\";\r\n $resQuery = $db->executeQuery($query);\r\n if ($resQuery[\"state\"]) {\r\n $this->nome = $nome;\r\n $this->id_luogo = $id_luogo;\r\n }\r\n return $resQuery;\r\n }",
"public function setIdusuario($value){\n $this->idusuario = $value;\n }",
"function setNumero($numero){\n if(empty($numero)){\n header(\"Location:../vu/formulaire_inscription.php\");\n return;\n\n }\n //on declare de la variable numero puis on appelle la varibale prive numero\n $this->_numero = $numero;\n }",
"public function setIdgrupo_sanguineo($idgrupo_sanguineo){\n $this->idgrupo_sanguineo = $idgrupo_sanguineo;\n }",
"public function setOperationPrimeRRewardExpeditionModeId($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_numeric($v)) {\n $v = (int) $v;\n }\n }\n if ($this->operation_prime_r_reward_expedition_mode_id !== $v) {\n $this->operation_prime_r_reward_expedition_mode_id = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OPERATION_PRIME_R_REWARD_EXPEDITION_MODE_ID;\n }\n\n if ($this->aRRewardExpeditionModes !== null && $this->aRRewardExpeditionModes->getRRewardExpeditionModeId() !== $v) {\n $this->aRRewardExpeditionModes = null;\n }\n\n\n return $this;\n }",
"public function setCompteIdAttribute($input)\n {\n $this->attributes['compte_id'] = $input ? $input : null;\n }",
"public function setId_recette($id_recette)\n {\n $id_recette = (int) $id_recette;\n $this->_id_recette = $id_recette;\n }",
"public function setIdFornecedor($IdFornecedor) {\n $this->IdFornecedor = $IdFornecedor;\n }",
"public function setIdEvento($id_evento)\n {\n if (!empty($id_evento) && !is_null($id_evento))\n $this->id_evento = $id_evento;\n }",
"public function setIdProducto($id_producto)\n {\n $this->id_producto = $id_producto;\n\n return $this;\n }",
"public function setIdProducto($id_producto)\n {\n $this->id_producto = $id_producto;\n\n return $this;\n }",
"public function setRecordInDB($id_luogo, $citta, $paese){\r\n include_once './db_functions.php';\r\n $db = new DB_Functions();\r\n //Escaping\r\n $id_luogo = DB_Functions::esc($id_luogo);\r\n $citta = DB_Functions::esc($citta);\r\n $paese = DB_Functions::esc($paese);\r\n\r\n $query = \"UPDATE LUOGO \r\n SET \tCITTA = $citta,\r\n PAESE = $paese,\r\n WHERE \t\r\n ID_LUOGO = $id_luogo;\";\r\n $resQuery = $db->executeQuery($query);\r\n if ($resQuery[\"state\"]) {\r\n $this->citta = $citta;\r\n $this->paese = $paese;\r\n }\r\n return $resQuery;\r\n }",
"public function _setCodigoCliente($entregableid, $codigo_cliente)\n {\n $id = (int)$entregableid;\n $row = $this->fetchRow('cod_le = ' . $id);\n if (!$row) {\n throw new Exception(\"No hay resultados para ese transmittal\");\n }\n $row->codigo_cliente = $codigo_cliente;\n $row->save();\n if ($row->codigo_anddes != null && $row->codigo_anddes != '' &&\n $row->codigo_cliente != null && $row->codigo_cliente != '' &&\n $row->estado_entregable != 7) {\n $row->estado_entregable = 7;\n }\n $row->save();\n }",
"public function getIdOrdenCompra() {\n return $this->id_orden_compra;\n }",
"public function setIdproducto($idproducto)\n {\n $this->idproducto = $this->db->real_escape_string($idproducto);\n\n return $this;\n }",
"public function setPrimaryKey($key)\n {\n $this->setBiblioId($key);\n }",
"public function testSetLibelle() {\n\n $obj = new ParamEtiquettes();\n\n $obj->setLibelle(\"libelle\");\n $this->assertEquals(\"libelle\", $obj->getLibelle());\n }",
"public function setidExamen($Valor){\r\n $this->idExamen = trim($Valor);\r\n }",
"public function setEmpleado_idemp($empleado_idemp){\n $this->empleado_idemp = $empleado_idemp;\n }",
"public function testSetLibelle() {\n\n $obj = new FichesControlesEntetes();\n\n $obj->setLibelle(\"libelle\");\n $this->assertEquals(\"libelle\", $obj->getLibelle());\n }",
"function setId_nivel($iid_nivel = '')\n {\n $this->iid_nivel = $iid_nivel;\n }",
"public function set_id_poblacion($value = \"\"){ \n $this->_id_poblacion= \\helpers\\Validator::valInt('f_id_poblacion',$value,TRUE);\n}",
"function setId_asignatura($iid_asignatura = '')\n {\n $this->iid_asignatura = $iid_asignatura;\n }",
"function setEpoca($iepoca = '')\n {\n $this->iepoca = $iepoca;\n }",
"function setIdentifier($val) {\n $this->identifier = $this->updateDB('identifier', $val);\n }",
"public function testSetIdAppel() {\n\n $obj = new AppelsEnCours();\n\n $obj->setIdAppel(10);\n $this->assertEquals(10, $obj->getIdAppel());\n }",
"function editar_pr_factura(){\n\n\t\t $u = new entrada();\n $u->usuario_id = $GLOBALS['usuarioid'];\n $u->empresas_id = $GLOBALS['empresaid'];\n\t$precio=$_POST['costo_unitario'];\n\t$producto_id=$_POST['cproductos_id'];\n $u->fecha = date(\"Y-m-d H:i:s\");\n $related = $u->from_array($_POST);\n if ($u->id == 0)\n unset($u->id);\n if ($u->save($related)) {\n$this->db->query(\"update cproductos set precio_compra='$precio' where id=$producto_id\");\n echo $u->id;\n } else\n echo 0; \n \n\t}",
"public function edit_adm_audit_stock_limpieza ($valores=NULL){\n return \"\n UPDATE adm_audit_stock_limpieza\n SET id_adm_audit_stock_limpieza_proc = -2\n WHERE id_adm_audit_stock_limpieza = $valores[0]\n ;\n \";\n }",
"public function setIdempresa($idempresa){\n $this->idempresa = $idempresa;\n }"
] | [
"0.6400785",
"0.5944037",
"0.54900444",
"0.5470849",
"0.54667693",
"0.53647137",
"0.5357475",
"0.53508675",
"0.53074986",
"0.5305721",
"0.5252752",
"0.5252752",
"0.5249579",
"0.523691",
"0.5098855",
"0.50392437",
"0.5018835",
"0.5011726",
"0.50029075",
"0.49668217",
"0.49652767",
"0.49554974",
"0.49474683",
"0.493217",
"0.49302",
"0.49302",
"0.49244422",
"0.49113548",
"0.48957142",
"0.48957142",
"0.48756984",
"0.4871426",
"0.48681095",
"0.48629633",
"0.4855416",
"0.48533106",
"0.4828393",
"0.48212272",
"0.48108995",
"0.4809218",
"0.4807923",
"0.48061606",
"0.48059466",
"0.48023024",
"0.4798776",
"0.47958916",
"0.47921282",
"0.47811633",
"0.47807977",
"0.477846",
"0.47577643",
"0.475636",
"0.47540334",
"0.47540334",
"0.47511053",
"0.47506553",
"0.47492957",
"0.47349185",
"0.47323343",
"0.47207534",
"0.47172764",
"0.4712106",
"0.47083637",
"0.4694428",
"0.4690934",
"0.4679187",
"0.46714014",
"0.46662274",
"0.46615994",
"0.46609536",
"0.46603465",
"0.4655218",
"0.46484336",
"0.46438086",
"0.46401963",
"0.46309695",
"0.46248493",
"0.46149665",
"0.46074438",
"0.46032473",
"0.45928693",
"0.45928693",
"0.4587795",
"0.4586741",
"0.45701712",
"0.45684853",
"0.456049",
"0.45601898",
"0.45529115",
"0.45517817",
"0.4548036",
"0.4541472",
"0.45334977",
"0.45297915",
"0.4526523",
"0.45235187",
"0.45221093",
"0.45214888",
"0.4520354",
"0.45203504"
] | 0.60888827 | 1 |
setOpPrimeLibelle() Set the value of [op_prime_numero] column. | public function setOpPrimeNumero($v)
{
if ($v === ''){
$v = null;
}
elseif ($v !== null){
if(is_numeric($v)) {
$v = (int) $v;
}
}
if ($this->op_prime_numero !== $v) {
$this->op_prime_numero = $v;
$this->modifiedColumns[] = OperationPrimesPeer::OP_PRIME_NUMERO;
}
return $this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function setOpPrimeLibelle($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->op_prime_libelle !== $v) {\n $this->op_prime_libelle = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OP_PRIME_LIBELLE;\n }\n\n\n return $this;\n }",
"public function getOpPrimeLibelle()\n {\n\n return $this->op_prime_libelle;\n }",
"public function getOpPrimeNumero()\n {\n\n return $this->op_prime_numero;\n }",
"public function setOpPrimeId($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_numeric($v)) {\n $v = (int) $v;\n }\n }\n if ($this->op_prime_id !== $v) {\n $this->op_prime_id = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OP_PRIME_ID;\n }\n\n\n return $this;\n }",
"public function setOperador($operador)\r\n {\r\n // $this->_myParameters = $myParameters;\r\n $this->_OPERADOR = $operador;\r\n \t//$this->_OPERADOR='1';\r\n \t//Zend_Registry::get('logger')->log(\"testeddd\", Zend_Log::INFO);\r\n \t$projeto= new Application_Model_DbTable_Projeto();\r\n \t//$this->_PROJETOS=$projeto->getProjetoCombo() ;\r\n \t$this->_PROJETOS=$projeto->getProjetosOperadorPermissao($operador);\r\n \t\r\n }",
"public function getOpPrimeId()\n {\n\n return $this->op_prime_id;\n }",
"function setComprobantePagoARegistroPago() {\n\t\tglobal $bd;\t\t\n\t\tglobal $x_correlativo_comprobante;\n\t\t$correlatico_comprobante = $x_correlativo_comprobante;\n\t\t$x_array_comprobante = $_POST['p_comprobante'];\n\t\t$id_registro_pago = $_POST['idregistro_pago'];\n\n\t\t$idtipo_comprobante_serie = $x_array_comprobante['idtipo_comprobante_serie'];\n\t\t\n\t\t$sqlrp=\"update registro_pago set idtipo_comprobante_serie=\".$idtipo_comprobante_serie.\" where idregistro_pago=\".$id_registro_pago;\n\t\t$idregistro_pago=$bd->xConsulta_NoReturn($sqlrp);\n\t}",
"function setNumero($numero){\n if(empty($numero)){\n header(\"Location:../vu/formulaire_inscription.php\");\n return;\n\n }\n //on declare de la variable numero puis on appelle la varibale prive numero\n $this->_numero = $numero;\n }",
"public function setOperationNumber($value) {\n if(strlen($value) > 50 ){\n throw new ValueException(\"Value \".$value.\" is higher than 8\");\n }\n $this->Num_operacion = $value;\n }",
"public function setOpId($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_numeric($v)) {\n $v = (int) $v;\n }\n }\n if ($this->op_id !== $v) {\n $this->op_id = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OP_ID;\n }\n\n if ($this->aOperations !== null && $this->aOperations->getOpId() !== $v) {\n $this->aOperations = null;\n }\n\n\n return $this;\n }",
"function __set($modelo, $valor)\n\t{\n\t\t$this->modelo = $modelo;\n\t}",
"function set_pm_defecto($punto)\n\t{\n\t\t$db = $this->get_db();\n\t\t$id_punto = $db->quote($punto->get_id());\n\t\t$sql = \"UPDATE apex_proyecto\n\t\t\t\tSET pm_impresion = $id_punto,\n\t\t\t\t\tpm_sesion = $id_punto,\n\t\t\t\t\tpm_contexto = $id_punto,\n\t\t\t\t\tpm_usuario = $id_punto\n\t\t\t\tWHERE proyecto = \".$db->quote($this->identificador);\n\t\t$db->ejecutar($sql);\n\t}",
"public function setOperationPrimeCurrencyId($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_numeric($v)) {\n $v = (int) $v;\n }\n }\n if ($this->operation_prime_currency_id !== $v) {\n $this->operation_prime_currency_id = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OPERATION_PRIME_CURRENCY_ID;\n }\n\n if ($this->aRCurrencies !== null && $this->aRCurrencies->getRCurrencyId() !== $v) {\n $this->aRCurrencies = null;\n }\n\n\n return $this;\n }",
"public function testSetNumeroOrdre() {\n\n $obj = new EmpRecapCodePenibilite();\n\n $obj->setNumeroOrdre(10);\n $this->assertEquals(10, $obj->getNumeroOrdre());\n }",
"public function setParcela(int $parcela)\n {\n $this->parcela = $parcela;\n }",
"public function SetMaqOp($data){\n\t\t$data = (array)$data;\n\t\t\t\t\t$command = \\Yii::$app->db_mysql;\n\t\t\t$result = $command->createCommand()->insert('maquina_operador',[\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t'maquina' => $data['maquina'], \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t'operador' => $data['operador']\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t])->execute();\n\t\t\n\t}",
"function modificarNumFilhos($numFilhos) {\r\n $this->numFilhos = $numFilhos;\r\n }",
"function setChangeCodigo($numero_nuevo){\n\t\t\t$numero_socio \t= $this->mCodigo ;\n\t\t\t\n\t\t\t$xQL\t\t\t= new MQL();\n\t\t\t$msg = \"\";\n\t\t\t$msg .= \"================== MODIFICANDO UN NUMERO DE SOCIO \\r\\n\";\n\t\t\t$msg .= \"================== SE ACTUALIZA DEL $numero_socio AL $numero_nuevo \\r\\n\";\n\n\t\t\t$var[\"aml_alerts\"]\t\t\t\t\t= \"persona_de_destino\";\n\t\t\t$var[\"aml_risk_register\"]\t\t\t= \"persona_relacionada\";\n\t\t\t$var[\"bancos_operaciones\"]\t\t\t= \"numero_de_socio\";\n\t\t\t$var[\"captacion_cuentas\"]\t\t\t= \"numero_socio\";\n\t\t\t$var[\"captacion_sdpm_historico\"]\t= \"numero_de_socio\";\n\t\t\t$var[\"contable_polizas_proforma\"]\t= \"socio\";\n\t\t\t$var[\"creditos_flujoefvo\"]\t\t\t= \"socio_flujo\";\n\t\t\t$var[\"creditos_garantias\"]\t\t\t= \"socio_garantia\";\n\t\t\t$var[\"creditos_lineas\"]\t\t\t\t= \"numero_socio\";\n\t\t\t$var[\"creditos_parametros_negociados\"]\t= \"numero_de_socio\";\n\t\t\t$var[\"creditos_sdpm_historico\"]\t\t= \"numero_de_socio\";\n\t\t\t$var[\"creditos_solicitud\"]\t\t\t= \"numero_socio\";\n\t\t\t\n\t\t\t$var[\"general_sucursales\"]\t\t\t= \"clave_de_persona\";\n\t\t\t$var[\"operaciones_mvtos\"]\t\t\t= \"socio_afectado\";\n\t\t\t$var[\"operaciones_recibos\"]\t\t\t= \"numero_socio\";\n\t\t\t\n\t\t\t$var[\"personas_documentacion\"]\t\t= \"clave_de_persona\";\n\t\t\t$var[\"personas_perfil_transaccional\"]\t= \"clave_de_persona\";\n\t\t\t$var[\"seguimiento_compromisos\"]\t\t= \"socio_comprometido\";\n\t\t\t$var[\"seguimiento_llamadas\"]\t\t= \"numero_socio\";\n\t\t\t$var[\"seguimiento_notificaciones\"]\t= \"socio_notificado\";\n\t\t\t$var[\"socios_aeconomica\"]\t\t\t= \"socio_aeconomica\";\n\t\t\t$var[\"socios_aeconomica_dependencias\"]\t= \"clave_de_persona\";\n\t\t\t$var[\"socios_aportaciones\"]\t\t\t= \"numero_socio\";\n\t\t\t$var[\"socios_baja\"]\t\t\t\t\t= \"numero_de_socio\";\n\t\t\t$var[\"socios_cajalocal\"]\t\t\t= \"ultimosocio\";\n\t\t\t$var[\"socios_firmas\"]\t\t\t\t= \"numero_de_socio\";\n\t\t\t$var[\"socios_general\"]\t\t\t\t= \"codigo\";\n\n\t\t\t$var[\"socios_grupossolidarios\"]\t\t= \"clave_de_persona\";\n\t\t\t$var[\"socios_memo\"]\t\t\t\t\t= \"numero_socio\";\n\t\t\t$var[\"socios_otros_parametros\"]\t\t= \"clave_de_persona\";\n\t\t\t$var[\"socios_patrimonio\"]\t\t\t= \"socio_patrimonio\";\n\t\t\t$var[\"socios_relaciones\"]\t\t\t= \"socio_relacionado\";\n\t\t\t\n\t\t\t$var[\"socios_scoring_simple\"]\t\t= \"numero_socio\";\n\t\t\t$var[\"socios_vivienda\"]\t\t\t\t= \"socio_numero\";\n\t\t\t$var[\"t_03f996214fba4a1d05a68b18fece8e71\"]\t= \"codigo_de_persona\";\n\t\t\t$var[\"tesoreria_cajas_movimientos\"]\t= \"persona\";\n\t\t\t$var[\"usuarios\"]\t\t\t\t\t= \"codigo_de_persona\";\n\t\t\t$var[\"usuarios_web_notas\"]\t\t\t= \"socio\";\n\t\t\tforeach ($var as $tabla => $campo){\n\t\t\t\t$msg\t.= \"WARN\\tCambiar Registros de la Tabla $tabla, Campo $campo de $numero_socio a $numero_nuevo\\r\\n\";\n\t\t\t\t$xQL->setRawQuery(\"UPDATE $tabla SET $campo = $numero_nuevo WHERE $campo = $numero_socio\");\n\t\t\t}\n\t\t\t$var2[\"aml_alerts\"]\t\t\t\t\t= \"persona_de_origen\";\n\t\t\t$var2[\"creditos_solicitud\"]\t\t\t= \"persona_asociada\";\n\t\t\t$var2[\"operaciones_recibos\"]\t\t\t= \"persona_asociada\";\n\t\t\t$var2[\"socios_relaciones\"]\t\t\t= \"numero_socio\";\n\t\t\t$var2[\"socios_grupossolidarios\"]\t\t= \"representante_numerosocio\";\n\t\t\t//$var2[\"socios_grupossolidarios\"]\t\t= \"vocalvigilancia_numerosocio\";\t\t\t\n\t\t\tforeach ($var2 as $tabla => $campo){\n\t\t\t\t$msg\t.= \"WARN\\tCambiar Registros de la Tabla $tabla, Campo $campo de $numero_socio a $numero_nuevo\\r\\n\";\n\t\t\t\t$xQL->setRawQuery(\"UPDATE $tabla SET $campo = $numero_nuevo WHERE $campo = $numero_socio\");\n\t\t\t}\n\t\treturn $msg;\n\t}",
"function setNota_num($inota_num = '')\n {\n // adminto ',' como separador decimal.\n $inota_num = str_replace(\",\", \".\", $inota_num);\n $this->inota_num = $inota_num;\n }",
"public function setNumeroIP( $numero ) {\n $this->numero_ip=$numero;\n $this->enviarNumero();\n $this->activarPantalla();\n //activar y enviar numero\n }",
"function setNota_num($inota_num = '')\n {\n $this->inota_num = $inota_num;\n }",
"public function setNumcompte($numcompte)\n {\n $this->numcompte = $numcompte;\n }",
"public function testSetNumeroPermis() {\n\n $obj = new Employes();\n\n $obj->setNumeroPermis(\"numeroPermis\");\n $this->assertEquals(\"numeroPermis\", $obj->getNumeroPermis());\n }",
"function setSoporte($soporte) {\r\n $this->soporte = $soporte;\r\n }",
"function modificarProcesoCompra(){\n\t\t$this->procedimiento='adq.f_proceso_compra_ime';\n\t\t$this->transaccion='ADQ_PROC_MOD';\n\t\t$this->tipo_procedimiento='IME';\n\t\t\t\t\n\t\t//Define los parametros para la funcion\n\t\t$this->setParametro('id_proceso_compra','id_proceso_compra','int4');\n\t\t$this->setParametro('id_depto','id_depto','int4');\n\t\t$this->setParametro('num_convocatoria','num_convocatoria','varchar');\n\t\t$this->setParametro('id_solicitud','id_solicitud','int4');\n\t\t$this->setParametro('id_estado_wf','id_estado_wf','int4');\n\t\t$this->setParametro('fecha_ini_proc','fecha_ini_proc','date');\n\t\t$this->setParametro('obs_proceso','obs_proceso','varchar');\n\t\t$this->setParametro('id_proceso_wf','id_proceso_wf','int4');\n\t\t$this->setParametro('num_tramite','num_tramite','varchar');\n\t\t$this->setParametro('codigo_proceso','codigo_proceso','varchar');\n\t\t$this->setParametro('estado_reg','estado_reg','varchar');\n\t\t$this->setParametro('estado','estado','varchar');\n\t\t$this->setParametro('num_cotizacion','num_cotizacion','varchar');\n\n\t\t//Ejecuta la instruccion\n\t\t$this->armarConsulta();\n\t\t$this->ejecutarConsulta();\n\n\t\t//Devuelve la respuesta\n\t\treturn $this->respuesta;\n\t}",
"public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME)\n {\n $pos = OperationPrimesPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM);\n\n $this->setByPosition($pos, $value);\n }",
"public function setLnkOperationPrimeRCountriess(PropelCollection $lnkOperationPrimeRCountriess, PropelPDO $con = null)\n {\n $lnkOperationPrimeRCountriessToDelete = $this->getLnkOperationPrimeRCountriess(new Criteria(), $con)->diff($lnkOperationPrimeRCountriess);\n\n\n $this->lnkOperationPrimeRCountriessScheduledForDeletion = $lnkOperationPrimeRCountriessToDelete;\n\n foreach ($lnkOperationPrimeRCountriessToDelete as $lnkOperationPrimeRCountriesRemoved) {\n $lnkOperationPrimeRCountriesRemoved->setOperationPrimes(null);\n }\n\n $this->collLnkOperationPrimeRCountriess = null;\n foreach ($lnkOperationPrimeRCountriess as $lnkOperationPrimeRCountries) {\n $this->addLnkOperationPrimeRCountries($lnkOperationPrimeRCountries);\n }\n\n $this->collLnkOperationPrimeRCountriess = $lnkOperationPrimeRCountriess;\n $this->collLnkOperationPrimeRCountriessPartial = false;\n\n return $this;\n }",
"public function setOperationPrimeMaximumAmount($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_string($v)){\n $v = str_replace(\n array(' ',','),\n array('','.'),\n $v\n );\n }\n \n if(is_numeric($v)) {\n $v = (float) $v;\n }\n }\n if ($this->operation_prime_maximum_amount !== $v) {\n $this->operation_prime_maximum_amount = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OPERATION_PRIME_MAXIMUM_AMOUNT;\n }\n\n\n return $this;\n }",
"public function updateprematricula($db, $numeroordenpago, $digitoprematricula ){\n $strPrematricula = \"UPDATE prematricula SET codigoestadoprematricula='4\".$digitoprematricula.\"' WHERE \".\n \" idprematricula = (select d.idprematricula from detalleprematricula d \".\n \" where d.numeroordenpago = '\".$numeroordenpago.\"' limit 1)\";\n return is_object($db->Execute($strPrematricula));\n }",
"public function setOperationPrimeProductPricePourcentage($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_numeric($v)) {\n $v = (int) $v;\n }\n }\n if ($this->operation_prime_product_price_pourcentage !== $v) {\n $this->operation_prime_product_price_pourcentage = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OPERATION_PRIME_PRODUCT_PRICE_POURCENTAGE;\n }\n\n\n return $this;\n }",
"public function testSetPrimeHComplMaj() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setPrimeHComplMaj(10.092018);\n $this->assertEquals(10.092018, $obj->getPrimeHComplMaj());\n }",
"function setITipo($iTipo) {\n $this->iTipo = $iTipo;\n }",
"function setEpoca($iepoca = '')\n {\n $this->iepoca = $iepoca;\n }",
"public function set_pagamento(Pagamento_model $pagamento)\n {\n $this->pagamento = $pagamento;\n }",
"function setAgregarUnPais(){\n\t\t$this->comienza_con++;\n\t}",
"public function edit_adm_audit_stock_limpieza ($valores=NULL){\n return \"\n UPDATE adm_audit_stock_limpieza\n SET id_adm_audit_stock_limpieza_proc = -2\n WHERE id_adm_audit_stock_limpieza = $valores[0]\n ;\n \";\n }",
"public function __set($propriedade, $valor) {\n $this->data[$propriedade] = $valor;\n }",
"public function setPesoArea($peso) {\n $this->_peso = $peso; \n }",
"public function setEmpleado_idemp($empleado_idemp){\n $this->empleado_idemp = $empleado_idemp;\n }",
"public function testSetLibelle() {\n\n $obj = new ParamEtiquettes();\n\n $obj->setLibelle(\"libelle\");\n $this->assertEquals(\"libelle\", $obj->getLibelle());\n }",
"function setTipo($itipo = '')\n {\n $this->itipo = $itipo;\n }",
"private function _setPagSeguroModuleVersion(){\n PagSeguroLibrary::setModuleVersion('prestashop-v.'.$this->module->version);\n }",
"public function setProducto($pro){ $this->producto = $pro;}",
"protected function setOpcao($sNome, $mValor) \r\n\t{\r\n\t\t$this->aOpcoes[$sNome] = $mValor;\r\n\t}",
"public function setOperationPrimeFixedAmount($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_string($v)){\n $v = str_replace(\n array(' ',','),\n array('','.'),\n $v\n );\n }\n \n if(is_numeric($v)) {\n $v = (float) $v;\n }\n }\n if ($this->operation_prime_fixed_amount !== $v) {\n $this->operation_prime_fixed_amount = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OPERATION_PRIME_FIXED_AMOUNT;\n }\n\n\n return $this;\n }",
"public function mostraAggiornaP($pagina) {\r\n $idUpdate = isset($_REQUEST['id']) ? $_REQUEST['id'] : null;\r\n $idPratica = isset($_REQUEST[\"idPratica\"]) ? $_REQUEST[\"idPratica\"] : null;\r\n\r\n $operatore = $_SESSION[\"op\"];\r\n $pagina->setHeaderFile(\"./view/header.php\");\r\n $pagina->setContentFile(\"./view/operatore/aggiornaP.php\");\r\n $ruolo = $operatore->getFunzione();\r\n OperatoreController::setruolo($pagina);\r\n $operatori = OperatoreFactory::getListaOp();\r\n $rows = count($operatori);\r\n\r\n if ($ruolo >= 2) {\r\n $pagina->setJsFile(\"./js/contentPratica.js\");\r\n } else {\r\n $pagina->setJsFile(\"./js/operatore.js\");\r\n }\r\n\r\n if ($_REQUEST[\"cmd\"] === \"aggiornaP\" && isset($_REQUEST[\"numeroP\"])) {\r\n\r\n $numeroP = $_REQUEST[\"numeroP\"];\r\n\r\n $idUpdate = PraticaFactory::ricercaPerNumeroPratica($numeroP);\r\n if ($numeroP == \"\") {\r\n $pagina->setMsg(\"Errore, inserisci il numero di una pratica esistente <br/>oppure utilizza la voce di menu [Elenco].\");\r\n } elseif (!isset($idUpdate)) {\r\n $pagina->setMsg(\"Errore, pratica N. \" . $numeroP . \" non presente! <br/>Inserisci il numero di una pratica esistente <br/>oppure utilizza la voce di menu [Elenco].\");\r\n } elseif ($ruolo < 2) {\r\n $pratica = PraticaFactory::getPraticaById($idUpdate);\r\n if ($pratica->getIncaricato() != $operatore->getId()) {\r\n unset($pratica);\r\n unset($idUpdate);\r\n }\r\n }\r\n }\r\n\r\n if (!isset($idUpdate)) {\r\n $pratica = new Pratica();\r\n } else {\r\n $pratica = PraticaFactory::getPraticaById($idUpdate);\r\n $pagina->setContentFile(\"./view/contentPratica.php\");\r\n $pagina->setTitle(\"Aggiorna pratica\");\r\n\r\n if (!isset($pratica)) {\r\n $pratica = new Pratica();\r\n }\r\n }\r\n\r\n if ($_REQUEST[\"cmd\"] == \"salvaP\") {\r\n $pagina->setJsFile(\"./js/contentPratica.js\");\r\n\r\n $contatto = isset($_REQUEST[\"contatto\"]) ? ($_REQUEST[\"contatto\"]) : null;\r\n $dataAvvioProcedimento = isset($_REQUEST[\"dataAvvioProcedimento\"]) ? ($_REQUEST[\"dataAvvioProcedimento\"]) : null;\r\n $dataCaricamento = isset($_REQUEST[\"dataCaricamento\"]) ? ($_REQUEST[\"dataCaricamento\"]) : null;\r\n $dataConferenzaServizi = isset($_REQUEST[\"dataConferenzaServizi\"]) ? ($_REQUEST[\"dataConferenzaServizi\"]) : null;\r\n $dataInvioRicevuta = isset($_REQUEST[\"dataInvioRicevuta\"]) ? ($_REQUEST[\"dataInvioRicevuta\"]) : null;\r\n $dataInvioVerifiche = isset($_REQUEST[\"dataInvioVerifiche\"]) ? ($_REQUEST[\"dataInvioVerifiche\"]) : null;\r\n $dataProtocollo = isset($_REQUEST[\"dataProtocollo\"]) ? ($_REQUEST[\"dataProtocollo\"]) : null;\r\n $dataProvvedimento = isset($_REQUEST[\"dataProvvedimento\"]) ? ($_REQUEST[\"dataProvvedimento\"]) : null;\r\n $flagAllaFirma = isset($_REQUEST[\"flagAllaFirma\"]) ? ($_REQUEST[\"flagAllaFirma\"]) : null;\r\n $flagFirmata = isset($_REQUEST[\"flagFirmata\"]) ? ($_REQUEST[\"flagFirmata\"]) : null;\r\n $flagInAttesa = isset($_REQUEST[\"flagInAttesa\"]) ? ($_REQUEST[\"flagInAttesa\"]) : null;\r\n $flagSoprintendenza = isset($_REQUEST[\"flagSoprintendenza\"]) ? ($_REQUEST[\"flagSoprintendenza\"]) : null;\r\n $importoDiritti = isset($_REQUEST[\"importoDiritti\"]) ? ($_REQUEST[\"importoDiritti\"]) : null;\r\n $incaricato = isset($_REQUEST[\"incaricato\"]) ? ($_REQUEST[\"incaricato\"]) : null;\r\n $motivoAttesa = isset($_REQUEST[\"motivoAttesa\"]) ? ($_REQUEST[\"motivoAttesa\"]) : null;\r\n $numeroPratica = isset($_REQUEST[\"numeroPratica\"]) ? ($_REQUEST[\"numeroPratica\"]) : null;\r\n $numeroProtocollo = isset($_REQUEST[\"numeroProtocollo\"]) ? ($_REQUEST[\"numeroProtocollo\"]) : null;\r\n $numeroProtocolloProvvedimento = isset($_REQUEST[\"numeroProtocolloProvvedimento\"]) ? ($_REQUEST[\"numeroProtocolloProvvedimento\"]) : null;\r\n $oggetto = isset($_REQUEST[\"oggetto\"]) ? ($_REQUEST[\"oggetto\"]) : null;\r\n $procuratore = isset($_REQUEST[\"procuratore\"]) ? ($_REQUEST[\"procuratore\"]) : null;\r\n $procuratoreId = isset($_REQUEST[\"procuratoreId\"]) ? ($_REQUEST[\"procuratoreId\"]) : null;\r\n $richiedente = isset($_REQUEST[\"richiedente\"]) ? ($_REQUEST[\"richiedente\"]) : null;\r\n $richiedenteId = isset($_REQUEST[\"richiedenteId\"]) ? ($_REQUEST[\"richiedenteId\"]) : null;\r\n $statoPratica = isset($_REQUEST[\"statoPratica\"]) ? ($_REQUEST[\"statoPratica\"]) : null;\r\n $suap = isset($_REQUEST[\"suap\"]) ? ($_REQUEST[\"suap\"]) : null;\r\n $tipoPratica = isset($_REQUEST[\"tipoPratica\"]) ? ($_REQUEST[\"tipoPratica\"]) : null;\r\n $ubicazione = isset($_REQUEST[\"ubicazione\"]) ? ($_REQUEST[\"ubicazione\"]) : null;\r\n\r\n $err = 0;\r\n $pratica->setContatto($contatto);\r\n $pratica->setDataAvvioProcedimento($dataAvvioProcedimento);\r\n $pratica->setDataCaricamento($dataCaricamento);\r\n $pratica->setDataConferenzaServizi($dataConferenzaServizi);\r\n $pratica->setDataInvioRicevuta($dataInvioRicevuta);\r\n $pratica->setDataInvioVerifiche($dataInvioVerifiche);\r\n if ($ruolo > 1) {\r\n $pratica->setDataProtocollo($dataProtocollo);\r\n $pratica->setFlagFirmata($flagFirmata);\r\n $pratica->setProcuratore($procuratore);\r\n if (!$pratica->setProcuratoreId($procuratoreId)) {\r\n $err++;\r\n }\r\n $pratica->setRichiedente($richiedente);\r\n if (!$pratica->setRichiedenteId($richiedenteId)) {\r\n $err++;\r\n }\r\n if (!$pratica->setIncaricato($incaricato)) {\r\n $err++;\r\n }\r\n if (!$pratica->setNumeroPratica($numeroPratica)) {\r\n $err++;\r\n }\r\n if (!$pratica->setNumeroProtocollo($numeroProtocollo)) {\r\n $err++;\r\n }\r\n if (!$pratica->setStatoPratica($statoPratica)) {\r\n $err++;\r\n }\r\n if (!$pratica->setTipoPratica($tipoPratica)) {\r\n $err++;\r\n }\r\n if (!$pratica->setSuap($suap)) {\r\n $err++;\r\n }\r\n }\r\n\r\n $pratica->setDataProvvedimento($dataProvvedimento);\r\n $pratica->setFlagAllaFirma($flagAllaFirma);\r\n $pratica->setFlagInAttesa($flagInAttesa);\r\n $pratica->setFlagSoprintendenza($flagSoprintendenza);\r\n $pratica->setImportoDiritti($importoDiritti);\r\n $pratica->setMotivoAttesa($motivoAttesa);\r\n $pratica->setNumeroProtocolloProvvedimento($numeroProtocolloProvvedimento);\r\n $pratica->setOggetto($oggetto);\r\n $pratica->setUbicazione($ubicazione);\r\n\r\n if ($idPratica == \"\" && $err === 0) {\r\n $pagina->setTitle(\"Salvataggio pratica\");\r\n $errore = PraticaFactory::salvaP($pratica);\r\n } elseif ($err === 0) {\r\n $pagina->setTitle(\"Aggiorna pratica\");\r\n $errore = PraticaFactory::aggiornaP($pratica);\r\n } else {\r\n $pagina->setTitle(\"Errore\");\r\n }\r\n if ($errore == 0 && $err == 0) {\r\n $pagina->setContentFile(\"./view/operatore/okNuovaP.php\");\r\n } elseif ($errore == 1062) {\r\n $pagina->setContentFile(\"./view/contentPratica.php\");\r\n $pagina->setMsg(\"Errore, pratica N. \" . $pratica->getNumeroPratica() . \" già presente!\");\r\n } else {\r\n $pagina->setContentFile(\"./view/contentPratica.php\");\r\n }\r\n }\r\n\r\n include \"./view/masterPage.php\";\r\n }",
"public function setByPosition($pos, $value)\n {\n switch ($pos) {\n case 0:\n $this->setOpPrimeId($value);\n break;\n case 1:\n $this->setOpId($value);\n break;\n case 2:\n $this->setOpPrimeLibelle($value);\n break;\n case 3:\n $this->setOpPrimeNumero($value);\n break;\n case 4:\n $this->setGdlArtId($value);\n break;\n case 5:\n $this->setOperationPrimeCurrencyId($value);\n break;\n case 6:\n $this->setOperationPrimeRRewardTypeId($value);\n break;\n case 7:\n $this->setOperationPrimeRRewardExpeditionModeId($value);\n break;\n case 8:\n $this->setOperationPrimeRRewardTransporterId($value);\n break;\n case 9:\n $this->setOperationPrimeFixedAmount($value);\n break;\n case 10:\n $this->setOperationPrimeProductPricePourcentage($value);\n break;\n case 11:\n $this->setOperationPrimeMaximumAmount($value);\n break;\n } // switch()\n }",
"public function testSetNumero() {\n\n $obj = new Collaborateurs();\n\n $obj->setNumero(\"numero\");\n $this->assertEquals(\"numero\", $obj->getNumero());\n }",
"function setMontoAhorroPreferente($monto){\n\t\t$xOP\t= new cPersonasCatalogoOtrosDatos();\n\t\t$this->addOtrosParametros($xOP->PERSONAS_MONTO_AHORRO_PREFERENTE, $monto);\n\t\t\n\t\t$this->setUpdate(array(\"descuento_preferente\" => $monto) );\n\t\t\n\t\tif(PERSONAS_COMPARTIR_CON_ASOCIADA == true){\n\t\t\t//ejecutar el url\n\t\t\t$this->getExportarAsociada(TPERSONAS_GENERALES);\n\t\t\t$this->getExportarAsociada(TPERSONAS_DIRECCIONES);\n\t\t\t$this->getExportarAsociada(TPERSONAS_ACTIVIDAD_ECONOMICA);\n\t\t\tif($this->getEsEmpresaConConvenio() == true){\n\t\t\t\t$this->getExportarAsociada(TCATALOGOS_EMPRESAS);\n\t\t\t}\n\t\t}\n\t}",
"public function mostraElencoP($pagina) {\r\n $pagina->setJsFile(\"./js/ricerca.js\");\r\n $operatore = $_SESSION[\"op\"];\r\n $ruolo = $operatore->getFunzione();\r\n $pagina->setHeaderFile(\"./view/header.php\");\r\n $pagina->setTitle(\"Elenco pratiche\");\r\n OperatoreController::setruolo($pagina);\r\n $pagina->setMsg('');\r\n $pagina->setContentFile(\"./view/operatore/elencoP.php\");\r\n $operatori = OperatoreFactory::getListaOp();\r\n $rows = count($operatori);\r\n include \"./view/masterPage.php\";\r\n }",
"public function getOperationPrimeCurrencyId()\n {\n\n return $this->operation_prime_currency_id;\n }",
"private function setCodigoProcessoCompras($iCodigoProcessoCompras) {\n $this->iCodigoProcessoCompras = $iCodigoProcessoCompras;\n }",
"public function testSetCodeModele() {\n\n $obj = new ParamEtiquettes();\n\n $obj->setCodeModele(\"codeModele\");\n $this->assertEquals(\"codeModele\", $obj->getCodeModele());\n }",
"public function testSetCodeOfficielCommune() {\n\n $obj = new Employes();\n\n $obj->setCodeOfficielCommune(\"codeOfficielCommune\");\n $this->assertEquals(\"codeOfficielCommune\", $obj->getCodeOfficielCommune());\n }",
"public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME)\n {\n $keys = OperationPrimesPeer::getFieldNames($keyType);\n\n if (array_key_exists($keys[0], $arr)) $this->setOpPrimeId($arr[$keys[0]]);\n if (array_key_exists($keys[1], $arr)) $this->setOpId($arr[$keys[1]]);\n if (array_key_exists($keys[2], $arr)) $this->setOpPrimeLibelle($arr[$keys[2]]);\n if (array_key_exists($keys[3], $arr)) $this->setOpPrimeNumero($arr[$keys[3]]);\n if (array_key_exists($keys[4], $arr)) $this->setGdlArtId($arr[$keys[4]]);\n if (array_key_exists($keys[5], $arr)) $this->setOperationPrimeCurrencyId($arr[$keys[5]]);\n if (array_key_exists($keys[6], $arr)) $this->setOperationPrimeRRewardTypeId($arr[$keys[6]]);\n if (array_key_exists($keys[7], $arr)) $this->setOperationPrimeRRewardExpeditionModeId($arr[$keys[7]]);\n if (array_key_exists($keys[8], $arr)) $this->setOperationPrimeRRewardTransporterId($arr[$keys[8]]);\n if (array_key_exists($keys[9], $arr)) $this->setOperationPrimeFixedAmount($arr[$keys[9]]);\n if (array_key_exists($keys[10], $arr)) $this->setOperationPrimeProductPricePourcentage($arr[$keys[10]]);\n if (array_key_exists($keys[11], $arr)) $this->setOperationPrimeMaximumAmount($arr[$keys[11]]);\n }",
"public function testSetCodeOfficielCommune() {\n\n $obj = new Collaborateurs();\n\n $obj->setCodeOfficielCommune(\"codeOfficielCommune\");\n $this->assertEquals(\"codeOfficielCommune\", $obj->getCodeOfficielCommune());\n }",
"public function setDataNascimentoConjuge ($oDataNascimentoConjuge) {\n $this->oDataNascimentoConjuge = $oDataNascimentoConjuge;\n }",
"public function setDataPagamento(string $dataPagamento = null)\n {\n $this->dataPagamento = $dataPagamento;\n }",
"public function testSetPrime10() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setPrime10(10.092018);\n $this->assertEquals(10.092018, $obj->getPrime10());\n }",
"function EditDataPromosi()\n\t{\n\t\tinclude '../../koneksi/koneksi.php';\n\n\t\t//inisialisasi\n\t\t$id_promosi = $_POST['id_promosi'];\n\t\t$status = $_POST['status'];\n\t\t\n\t\t//update ke tabel promosi\n\t\t$sql = \"UPDATE promosi SET status = ?, id_pegawai = ? WHERE id_promosi = ?\";\n\t\t$stmt = $db->prepare($sql);\n\t\t$stmt->bind_param('sii', $status, $id_pegawai, $id_promosi);\n\t\tif($stmt->execute()){\n\t\t\t$_SESSION['status_operasi_promosi'] = \"berhasil_memperbaharui\";\n\t\t}else{\n\t\t\t$_SESSION['status_operasi_promosi'] = \"gagal_memperbaharui\";\n\t\t}\n\t\t$stmt->close();\n\t}",
"public function testSetLibelle() {\n\n $obj = new FichesControlesEntetes();\n\n $obj->setLibelle(\"libelle\");\n $this->assertEquals(\"libelle\", $obj->getLibelle());\n }",
"public function setCodeLibelle(?string $codeLibelle): HistoTauxRetraiteMetier {\n $this->codeLibelle = $codeLibelle;\n return $this;\n }",
"public function setCodare($codare){\n\t\t$this->codare = $codare;\n\t}",
"public function __set($atributo, $valor) {\n\t\t\t// $this->modelo = $valor;\n\t\t\t$this->$atributo = $valor;\n\t\t}",
"public function setModelo($modelo)\n {\n $this->modelo = $modelo;\n }",
"public function testSetPrimeJf2Normal() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setPrimeJf2Normal(10.092018);\n $this->assertEquals(10.092018, $obj->getPrimeJf2Normal());\n }",
"function modificaProyecto($proyecto){\n include 'dbdatos.php';\n mysql_pconnect($dbhost, $dbuname, $dbpass);\n @mysql_select_db(\"$dbname\") or die (\"Imposible acceder a la BD en modificaProyecto\");\n $query= \"update proyecto set\n estado='\".$proyecto->getEstadoNumerico().\"' where\n nproyecto='\".$proyecto->getNproyecto().\"'\";\n $sel=mysql_query($query) or die(\"Error en modificaProyecto proyectoDao\");\n mysql_close();\n }",
"public function testSetNumeroLigne() {\n\n $obj = new ParamEtiquettes();\n\n $obj->setNumeroLigne(10);\n $this->assertEquals(10, $obj->getNumeroLigne());\n }",
"function alterar($id_operacao,$codigo,$descricao,$papeis,$dbhw){\n\tglobal $convUTF, $esquemaadmin;\n\tif ($convUTF != true){\n\t\t$descricao = utf8_decode($descricao);\n\t}\n\t$dataCol = array(\n\t\t\"codigo\" => $codigo,\n\t\t\"descricao\" => $descricao\n\t);\n\t$resultado = i3GeoAdminUpdate($dbhw,\"i3geousr_operacoes\",$dataCol,\"WHERE id_operacao = $id_operacao\");\n\tif($resultado === false){\n\t\treturn false;\n\t}\n\t//apaga todos os papeis\n\t$resultado = excluirPapeis($id_operacao,$dbhw);\n\tif($resultado === false){\n\t\treturn false;\n\t}\n\tif(!empty($papeis)){\n\t\t//atualiza papeis vinculados\n\t\tforeach($papeis as $p){\n\t\t\t$resultado = adicionaPapel($id_operacao,$p,$dbhw);\n\t\t\tif($resultado === false){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t}\n\treturn $id_operacao;\n}",
"function modificarSolicitudObligacionPago()\r\n {\r\n $this->procedimiento = 'tes.ft_solicitud_obligacion_pago_ime';\r\n $this->transaccion = 'TES_SOOBPG_MOD';\r\n $this->tipo_procedimiento = 'IME';\r\n\r\n //Define los parametros para la funcion\r\n $this->setParametro('id_obligacion_pago', 'id_obligacion_pago', 'int4');\r\n $this->setParametro('id_proveedor', 'id_proveedor', 'int4');\r\n $this->setParametro('tipo_obligacion', 'tipo_obligacion', 'varchar');\r\n $this->setParametro('id_moneda', 'id_moneda', 'int4');\r\n $this->setParametro('obs', 'obs', 'varchar');\r\n $this->setParametro('porc_retgar', 'porc_retgar', 'numeric');\r\n $this->setParametro('id_subsistema', 'id_subsistema', 'int4');\r\n $this->setParametro('id_funcionario', 'id_funcionario', 'int4');\r\n $this->setParametro('porc_anticipo', 'porc_anticipo', 'numeric');\r\n $this->setParametro('fecha', 'fecha', 'date');\r\n $this->setParametro('id_depto', 'id_depto', 'int4');\r\n $this->setParametro('tipo_cambio_conv', 'tipo_cambio_conv', 'numeric');\r\n $this->setParametro('pago_variable', 'pago_variable', 'varchar');\r\n\r\n $this->setParametro('total_nro_cuota', 'total_nro_cuota', 'int4');\r\n $this->setParametro('fecha_pp_ini', 'fecha_pp_ini', 'date');\r\n $this->setParametro('rotacion', 'rotacion', 'int4');\r\n $this->setParametro('id_plantilla', 'id_plantilla', 'int4');\r\n\r\n $this->setParametro('tipo_anticipo', 'tipo_anticipo', 'varchar');\r\n $this->setParametro('id_contrato', 'id_contrato', 'int4');\r\n\r\n //$this->setParametro('id_funcionario_responsable','id_funcionario_responsable','int4');\r\n\r\n\r\n //Ejecuta la instruccion\r\n $this->armarConsulta();\r\n $this->ejecutarConsulta();\r\n\r\n //Devuelve la respuesta\r\n return $this->respuesta;\r\n }",
"public function modificarEstadoDocumetoCodigoAsociado($codigo,$estado){\n $filter->COMPGUI_FlagEstado = $estado;\n $where = array(\"CPP_Codigo\" => $codigo);\n $this->db->where($where);\n $this->db->update('cji_comprobante_guiarem', (array) $filter);\n }",
"public function set_lockedOperator(string $newval): int\n {\n $rest_val = $newval;\n return $this->_setAttr(\"lockedOperator\", $rest_val);\n }",
"public function setProcedimento ($oProcedimento) {\n $this->oProcedimento = $oProcedimento;\n }",
"public function setValor($valor)\n {\n $this->valor = $valor;\n }",
"function updateModulTable($pk, $col, $new_value) {\n\t$sql = \"UPDATE ict_module SET \".$col.\"='\".$new_value.\"' WHERE modul_nr='\".$pk.\"';\";\n\terror_log('Info from updateModuleTable: '.$sql);\n\tif ($this->conn->query($sql)===TRUE){\n\t\t$this->conn->commit();\n\t\treturn \"OK\";\n\t}\n\treturn $this->conn->error;\t\n}",
"function setReciboDeOperacion($recibo){ $this->mReciboDeOperacion\t= $recibo; }",
"function set_bundle_cnt($ordno,$mall,$type='p'){\n\t\t\n\t\tif($type=='p'){\n\t\t\t$default_val=0;\n\t\t\t$calu=\"+\";\n\t\t}else if($type=='m'){\n\t\t\t$default_val=2;\n\t\t\t$calu=\"-\";\n\t\t}\n\t\t\n\t\tif($mall){\n\t\t\t$add_where=\" and mall_no=:mall_no\";\n\t\t\t$param[':mall_no']=$mall;\n\t\t}\n\t\t$qry=\"update order_list set bundle=if(bundle='\".$default_val.\"',bundle\".$calu.\"2,bundle\".$calu.\"1) where bundle>0 and ordno=:ordno\".$add_where;\n\t\t$param[':ordno']=$ordno;\n\t\t$this->db->query($qry,$param);\n\t\t\n\t}",
"function setSumarPais(){\n\t\t$this->cantidad_paises++;\n\t}",
"function editar_estado(){\t\n\t\tif (isset($_GET['valor']) && $_GET['valor']!=\"\" && isset($_GET['id']) && $_GET['id']!=\"\"){\n\t\t\t$id=$_GET['id'];\n\t\t\t$valor=$_GET['valor'];\n\t\t\t//echo \"Entro: \".$_GET['valor'];\n\t\t\t$sql=\"UPDATE producto SET aprobado_pro='$valor' WHERE id_pro='$id'\";\n\t\t\t$consulta=mysql_query($sql) or die(mysql_error());\n\t\t\t//if($valor==1)\n\t\t\t\t//$this->enviar_correos2($id);\n\t\t\theader(\"location:/admin/producto/\");\n\t\t}\n\t}",
"public function setDocumentProductCfop(int $document_product_cfop)\n {\n $this->collection->put('document_product_cfop', (string) $document_product_cfop);\n }",
"function setOperationnode($node){\n\t\t$this->operationNode = $node;\n\t}",
"public function mostraElencoProvvedimenti($pagina) {\r\n \r\n $pagina->setJsFile(\"\");\r\n $operatore = $_SESSION[\"op\"];\r\n $ruolo = $operatore->getFunzione();\r\n $pagina->setHeaderFile(\"./view/header.php\"); \r\n OperatoreController::setruolo($pagina);\r\n $pagina->setMsg('');\r\n \r\n if (isset($_REQUEST['id'])) {\r\n $id = $_REQUEST['id'];\r\n $nuovoProvvedimento = ProvvedimentoFactory::getProvvedimento($id);\r\n $pagina->setTitle(\"Modifica operatore\");\r\n $pagina->setContentFile(\"./view/operatore/nuovoProvvedimento.php\");\r\n $update = true;\r\n } else {\r\n $pagina->setJsFile(\"./js/provvedimenti.js\");\r\n $pagina->setTitle(\"Elenco provvedimenti Unici\");\r\n $pagina->setContentFile(\"./view/operatore/elencoProvvedimenti.php\"); \r\n }\r\n include \"./view/masterPage.php\";\r\n }",
"public function testSetPrimeJfNormal() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setPrimeJfNormal(10.092018);\n $this->assertEquals(10.092018, $obj->getPrimeJfNormal());\n }",
"function modifier($unNum, $unNom, $unPrenom, $uneAdresse, $uneTel, $uneSpe, $unDepartement, $uneNotoriete, $unType, $tabErreurs) {\n$connexion = mysql_connect(\"localhost\",\"root\",\"\");\n\n// Si la connexion au SGBD à réussi\nif ($connexion) \n{\n // sélectionner la base de donnée\n mysql_select_db(\"gsbcrstat\",$connexion);\n \n // Créer la requête de modification\n $requete=\"insert into produit\"\n .\"(PRA_NUM, PRA_NOM, PRA_PRENOM, PRA_ADRESSE, PRA_TEL, PRA_SPECIALITE_COMP, PRA_DEPARTEMENT, PRA_COEFNOTORIETE, TYP_CODE) values ('\"\n .$unNum.\"','\"\n .$unNom.\"','\"\n .$unPrenom.\"','\"\n .$uneAdresse.\"','\"\n .$uneTel.\"','\"\n .$uneSpe.\"','\"\n .$unDepartement.\"','\"\n .$uneNotoriete.\"','\"\n .$unType.\"');\";\n \n $requete =\"update praticien set PRA_NOM ='\".$_POST[\"PRA_NOM\"].\n \"',PRA_PRENOM='\".$_POST[\"PRA_PRENOM\"].\n \"',PRA_ADRESSE='\".$_POST[\"PRA_ADRESSE\"].\n \"',PRA_TEL='\".$_POST[\"PRA_TEL\"].\n \"',PRA_SPECIALITE_COMP='\".$_POST[\"PRA_SPECIALITE_COMP\"].\n \"',PRA_DEPARTEMENT='\".$_POST[\"PRA_DEPARTEMENT\"].\n \"',PRA_COEFNOTORIETE='\".$_POST[\"PRA_COEFNOTORIETE\"].\n \"',TYP_CODE='\".$_POST[\"TYP_CODE\"].\n \"' where PRA_NUM='\".$unNum.\"';\";\n echo $requete;\n // Lancer la requête\n $ok= mysql_query($requete,$connexion);\n \n // Si la requête a réussi\n if ($ok)\n {\n $message= \"Le praticien a bien été modifié.\";\n }\n else\n {\n $message= \"Attention, la modification du praticien a échoué !!!\";\n }\n}\nelse\n{\n $message= \"problème à la connexion <br />\";\n}\n\n}",
"public function setNumber_autho($fv_nummber_autho)\n {\n \tif(!empty($fv_nummber_autho))\n \t{\n\n\t\t\t$fv_nummber_autho = trim($fv_nummber_autho);\n\t\t\t\n\t\t\tif(!is_numeric($fv_nummber_autho))\n\t\t\t{\n\n\t\t\t\t$this->fv_error_message = $this->fv_error_message . '<br>- Numero de Autorizacion '.$fv_nummber_autho.ERROR_DATO_NUMERICO;\n\t\t\t\treturn $this->fv_nummber_autho =null;\n\t\t\t}\n\t\t\tif($fv_nummber_autho<0)\n\t\t\t{\n\t\t\t\t$this->fv_error_message = $this->fv_error_message . '<br>- Numero de Autorizacion '.$fv_nummber_autho.ERROR_NUMERICO_POSITIVO;\n\t\t\t\treturn $this->fv_nummber_autho =null;\t\t\n\t\t\t}\n\t\t\treturn $this->fv_nummber_autho = $fv_nummber_autho;\n\t\t}\n\t\t$this->fv_error_message = $this->fv_error_message .'<br>- Numero de Autorizacion '.ERROR_NULL;\n\t\treturn $this->fv_nummber_autho=null;\n\n \n }",
"public function edit_ave_campania ($valores=NULL){\n return \"\n UPDATE ave_campania\n SET id_ave_campania_proc = -2\n WHERE id_ave_campania = $valores[0]\n ;\n \";\n }",
"public function testSetPrime2() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setPrime2(10.092018);\n $this->assertEquals(10.092018, $obj->getPrime2());\n }",
"public function setTipoCompra($iTipoCompra){\n $this->iTipoCompra = $iTipoCompra;\n }",
"public function testSetNumero() {\n\n $obj = new Employes();\n\n $obj->setNumero(\"numero\");\n $this->assertEquals(\"numero\", $obj->getNumero());\n }",
"public function setProyecto( $proyecto ){\n\t\t\t$this->proyecto= $proyecto;\n\t\t}",
"function setNum($num)\n {\n $this->num = $num;\n }",
"public function valorespordefecto(){\n\t\t\t\t\t\t$matriz=VwOpcionesdocumentos::Model()->search_d('220')->getData();\n\t\t\t\t\t\t//recorreindo la matriz\n\t\t\t\t\t\t\n\t\t\t\t\t\t $i=0;\n\t\t\t\t\t\n\t\t\t\t\t\t\t for ($i=0; $i <= count($matriz)-1;$i++) {\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t if ($matriz[$i]['tipodato']==\"N\" ) {\n\t\t\t\t\t\t\t\t\t\t\t\t$this->{$matriz[$i]['campo']}=!empty($matriz[$i]['valor'])?$matriz[$i]['valor']+0:'';\n\t\t\t\t\t\t\t\t\t\t\t }ELSE {\n\t\t\t\t\t\t\t\t\t\t\t\t $this->{$matriz[$i]['campo']}=!empty($matriz[$i]['valor'])?$matriz[$i]['valor']:'';\n\t\t\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t}\t\t\n\t\t\t\t\treturn 1;\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t}",
"public function modifierPersonne($nom,$prenom,$tel,$mail,$login,$motDePasse,$nump){\n $requete = $this->db->prepare(\n \"UPDATE personne set per_nom=:per_nom,per_prenom=:per_prenom,per_tel=:per_tel,per_mail=:per_mail,per_admin=:per_admin,per_login=:per_login,per_pwd=:per_pwd where per_num='$nump';\");\n\n $requete->bindValue(':per_nom',$nom);\n $requete->bindValue(':per_prenom',$prenom);\n $requete->bindValue(':per_tel',$tel);\n $requete->bindValue(':per_mail',$mail);\n $requete->bindValue(':per_admin',0);\n $requete->bindValue(':per_login',$login);\n $requete->bindValue(':per_pwd',$motDePasse);\n\n $retour=$requete->execute();\n return $retour;\n }",
"protected function modifierUnVelo()\n\t{\n\n\t\t\t/**\n\t\t\t * Si le velo existe, on peut lancer le module\n\t\t\t * sinon on passe directement a une erreur\n\t\t\t */\n\t\tif(\n\t\t\tisset($_GET['valeur'])\n\t\t\tand $this->odbVelo->estVelo($_GET['valeur'])\n\t\t\t)\n\t\t{\n\t\t\t\t/** @var array stock les erreurs de la modification du velo */\n\t\t\t$has_error = array();\n\n\t\t\t\t/**\n\t\t\t\t * Si on a un envois de fomulaire sur la demande de modification de velo\n\t\t\t\t */\n\t\t\tif (!empty($_POST))\n\t\t\t{\n\t\t\t\t\t/**\n\t\t\t\t\t * on test les valeurs\n\t\t\t\t\t */\n\t\t\t\t\t/** que la station existe bien */\n\t\t\t\tif (!isset($_POST['stationVelo'])\n\t\t\t\t\tor !$this->odbStation->estStationById($_POST['stationVelo']))\n\t\t\t\t\t$has_error['stationVelo'] = true;\n\t\t\t\t\t/** que l'etat existe lui aussi */\n\t\t\t\tif (!isset($_POST['etatVelo'])\n\t\t\t\t\tor !$this->odbEtat->estEtatById($_POST['etatVelo']))\n\t\t\t\t\t$has_error['etatVelo'] = true;\n\t\t\t\t\t/** que le champ accessoire a pas etais supprime */\n\t\t\t\tif (!isset($_POST['accessoireVelo']))\n\t\t\t\t\t$has_error['accessoireVelo'] = true; // on ne supprime pas des champs...\n\t\t\t\t\t/** on charge le code du velo a modifier directement depuis le GET */\n\t\t\t\t$_POST['codeVelo'] = $_GET['valeur'];\n\n\t\t\t\t\t/**\n\t\t\t\t\t * si aucune erreur trouvee\n\t\t\t\t\t */\n\t\t\t\tif (empty($has_error))\n\t\t\t\t{\n\t\t\t\t\t\t// on lance la modif\n\t\t\t\t\t$outModifVelo = $this->odbVelo->modifierUnVelo(\n\t\t\t\t\t\t$_POST['stationVelo'],\n\t\t\t\t\t\t$_POST['etatVelo'],\n\t\t\t\t\t\t$_POST['accessoireVelo'],\n\t\t\t\t\t\t$_POST['codeVelo']\n\t\t\t\t\t\t);\n\t\t\t\t\t\t/** si on a un nombre de ligne >0 et donc TRUE */\n\t\t\t\t\tif ($outModifVelo)\n\t\t\t\t\t{\n\t\t\t\t\t\t$_SESSION['tampon']['success'][] =\n\t\t\t\t\t\t\t'Modification du vélo No '.$_GET['valeur'].' réussie !';\n\t\t\t\t\t\t\t// on redirige vers la page d'affiche d'un velo\n\t\t\t\t\t\theader('Location:index.php?page=velo&action=unvelo&valeur='.$_GET['valeur']);\n\t\t\t\t\t\tdie; // on stop le chargement de la page\n\t\t\t\t\t}\n\t\t\t\t\telse // sinon on charge une erreur\n\t\t\t\t\t\t$_SESSION['tampon']['error'][] = 'Erreur avec la modification du vélo No '.$_GET['valeur'];\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t\t/**\n\t\t\t\t * partie principal de la modif velo, on va chercher les info\n\t\t\t\t * - du velo\n\t\t\t\t * - des stations\n\t\t\t\t * - des etats\n\t\t\t\t * - des types de velo\n\t\t\t\t */\n\n\t\t\t$leVelo = $this->odbVelo->getUnVelo($_GET['valeur']);\n\t\t\t$lesStations = $this->odbStation->getLesIdStations();\n\t\t\t$lesEtats = $this->odbEtat->getLesEtats();\n\n\n\t\t\t$_SESSION['tampon']['html']['title'] = 'Modifier un Vélo';\n\t\t\t$_SESSION['tampon']['menu'][1]['current'] = 'Modifier';\n\n\t\t\t\t/** en cas de retour vide sur une des valeurs */\n\t\t\tif (empty($lesStations))\n\t\t\t\t$_SESSION['tampon']['error'][] = 'Aucune station dans la base !';\n\t\t\tif (empty($lesEtats))\n\t\t\t\t$_SESSION['tampon']['error'][] = 'Aucun état dans la base !';\n\n\t\t\t\t/**\n\t\t\t\t * Load des vues\n\t\t\t\t */\n\t\t\tview('htmlHeader');\n\t\t\tview('contentMenu');\n\t\t\tview('contentModifierUnVelo', array(\n\t\t\t\t\t'lesStations'=>$lesStations,\n\t\t\t\t\t'leVelo'=>$leVelo,\n\t\t\t\t\t'lesEtats'=>$lesEtats,\n\t\t\t\t\t'has_error'=>$has_error,\n\t\t\t\t\t));\n\t\t\tview('htmlFooter');\n\t\t}\n\t\telseif(isset($_GET['valeur']))\n\t\t{\n\n\t\t\t$_SESSION['tampon']['html']['title'] = 'Modifier un Vélo - ERREUR';\n\t\t\t$_SESSION['tampon']['menu'][1]['current'] = 'Modifier vélo';\n\n\t\t\t$_SESSION['tampon']['error'][] = 'Le vélo ne semble pas exister...';\n\n\t\t\t\t/**\n\t\t\t\t * Load des vues\n\t\t\t\t */\n\t\t\tview('htmlHeader');\n\t\t\tview('contentMenu');\n\t\t\tview('contentError');\n\t\t\tview('htmlFooter');\n\t\t}\n\t\telse\n\t\t\t$this->rechercherUnVelo();\n\t}",
"public function alterarPessoaCompleto($pessoa)\n\t{\n\t\t\n\t\t$sqlComand = \"UPDATE tbPessoa\n\t\tSET nome = '\". $pessoa->getNome() .\"',\n\t\tcpf = '\". $pessoa->getCpf() .\"',\n\t\tdataNascimento = '\". $pessoa->getDataNascimento() .\"',\n\t\tdataCadastro = '\". $pessoa->getDataCadastro() .\"',\n\t\temail = '\". $pessoa->getEmail() .\"',\n\t\tnivelAcesso = '\". $pessoa->getNivelAcesso() .\"',\n\t\tddd1 = '\". $pessoa->getDdd1() .\"',\n\t\ttelefone = '\". $pessoa->getTelefone() .\"',\n\t\tddd2 = '\". $pessoa->getDdd2() .\"',\n\t\tcelular = '\". $pessoa->getCelular() .\"',\n\t\tendereco = '\". $pessoa->getEndereco() .\"',\n\t\tcomplemento = '\". $pessoa->getComplemento() .\"',\n\t\tbairro = '\". $pessoa->getBairro() .\"',\n\t\tcidade = '\". $pessoa->getCidade() .\"',\n\t\testado = '\". $pessoa->getEstado() .\"',\n\t\tcep = '\". $pessoa->getCep() .\"',\n\t\tsexo = '\". $pessoa->getSexo() .\"',\n\t\tsenha = '\". $pessoa->getSenha() .\"'\n\t\t\n\t\tWHERE idPessoa = '\". $pessoa->getIdPessoa() .\"'\n\t\t\";\n\t\t\n\t\t$banco = $this->conexao->GetBanco();\n\t\t$result = $banco->query($sqlComand);\n\t\t$this->conexao->Desconectar();\n\t\t\n\t\treturn \"Usuário(a) \". $pessoa->getNome() .\" alterado(a) com sucesso\";\n\t\t\n\t}",
"public function testSetNumeroCasPartSecu() {\n\n $obj = new Employes();\n\n $obj->setNumeroCasPartSecu(10);\n $this->assertEquals(10, $obj->getNumeroCasPartSecu());\n }",
"public function setLenumero(int $lenumero)\n {\n $lenumero= (int)$lenumero;\n //checking numero is empty\n if(empty($lenumero)){ \n trigger_error('The number is not correct');\n }else{\n $this->lenumero = $lenumero;\n }\n }",
"public function setParcelas($quantidade, $valorParcela, $parcelasSemJuros = null) {\n\t\t$this->checkoutTransparente['cartao']['installmentQuantity'] = $quantidade;\n\t\t$this->checkoutTransparente['cartao']['installmentValue'] = number_format($valorParcela, 2, '.', '');\n\t\tif ($parcelasSemJuros != null)\n\t\t\t$this->checkoutTransparente['cartao']['noInterestInstallmentQuantity'] = $parcelasSemJuros;\n\t\treturn $this;\n\t}",
"static public function OpAssignOp ($op) {\n\t\treturn new Binop('OpAssignOp', 20, [$op]);\n\t}",
"function setId_nom($iid_nom)\n {\n $this->iid_nom = $iid_nom;\n }"
] | [
"0.70246905",
"0.63940185",
"0.61862445",
"0.61179996",
"0.56006974",
"0.54776704",
"0.5434198",
"0.5344516",
"0.5338527",
"0.5286343",
"0.52756554",
"0.5219183",
"0.5157126",
"0.5111251",
"0.5043052",
"0.5037178",
"0.50180155",
"0.50172955",
"0.50164115",
"0.50139993",
"0.49919832",
"0.4978429",
"0.49697614",
"0.49468884",
"0.4907251",
"0.4899173",
"0.48899448",
"0.48830318",
"0.48786223",
"0.48646942",
"0.48464245",
"0.48430556",
"0.48389608",
"0.48076984",
"0.4805334",
"0.4793834",
"0.47851157",
"0.47787845",
"0.47689322",
"0.475816",
"0.47530377",
"0.4729146",
"0.47070628",
"0.46920133",
"0.46820787",
"0.46737468",
"0.46690208",
"0.46685067",
"0.4667746",
"0.46545678",
"0.4626885",
"0.45978785",
"0.45872566",
"0.4576407",
"0.45725542",
"0.45689353",
"0.45635322",
"0.45362204",
"0.45332277",
"0.45264497",
"0.4525904",
"0.45001656",
"0.4492202",
"0.4489661",
"0.44895732",
"0.4487686",
"0.44783917",
"0.4476162",
"0.44683933",
"0.44644293",
"0.4459217",
"0.4447164",
"0.4441418",
"0.4439355",
"0.4437811",
"0.44354683",
"0.44346002",
"0.4432649",
"0.4431436",
"0.44308835",
"0.44274828",
"0.44237724",
"0.44209573",
"0.44113252",
"0.44105726",
"0.44101533",
"0.44087955",
"0.44080433",
"0.44051278",
"0.43962508",
"0.4394892",
"0.4392672",
"0.4392383",
"0.43887132",
"0.43857595",
"0.43848637",
"0.43843904",
"0.43800497",
"0.43772697",
"0.43758643"
] | 0.68324995 | 1 |
setOpPrimeNumero() Set the value of [gdl_art_id] column. | public function setGdlArtId($v)
{
if ($v === ''){
$v = null;
}
elseif ($v !== null){
if(is_numeric($v)) {
$v = (int) $v;
}
}
if ($this->gdl_art_id !== $v) {
$this->gdl_art_id = $v;
$this->modifiedColumns[] = OperationPrimesPeer::GDL_ART_ID;
}
return $this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function setOpPrimeNumero($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_numeric($v)) {\n $v = (int) $v;\n }\n }\n if ($this->op_prime_numero !== $v) {\n $this->op_prime_numero = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OP_PRIME_NUMERO;\n }\n\n\n return $this;\n }",
"public function setOpPrimeId($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_numeric($v)) {\n $v = (int) $v;\n }\n }\n if ($this->op_prime_id !== $v) {\n $this->op_prime_id = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OP_PRIME_ID;\n }\n\n\n return $this;\n }",
"public function getOpPrimeNumero()\n {\n\n return $this->op_prime_numero;\n }",
"public function getOpPrimeId()\n {\n\n return $this->op_prime_id;\n }",
"public function setOpId($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_numeric($v)) {\n $v = (int) $v;\n }\n }\n if ($this->op_id !== $v) {\n $this->op_id = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OP_ID;\n }\n\n if ($this->aOperations !== null && $this->aOperations->getOpId() !== $v) {\n $this->aOperations = null;\n }\n\n\n return $this;\n }",
"public function setOpPrimeLibelle($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->op_prime_libelle !== $v) {\n $this->op_prime_libelle = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OP_PRIME_LIBELLE;\n }\n\n\n return $this;\n }",
"function setEditableManufacturerID($epmid)\n {\n// if ($this->isCorrectManufacturerId($epmid))\n// {\n $this->editableManufacturerID = $epmid;\n// }\n }",
"function setComprobantePagoARegistroPago() {\n\t\tglobal $bd;\t\t\n\t\tglobal $x_correlativo_comprobante;\n\t\t$correlatico_comprobante = $x_correlativo_comprobante;\n\t\t$x_array_comprobante = $_POST['p_comprobante'];\n\t\t$id_registro_pago = $_POST['idregistro_pago'];\n\n\t\t$idtipo_comprobante_serie = $x_array_comprobante['idtipo_comprobante_serie'];\n\t\t\n\t\t$sqlrp=\"update registro_pago set idtipo_comprobante_serie=\".$idtipo_comprobante_serie.\" where idregistro_pago=\".$id_registro_pago;\n\t\t$idregistro_pago=$bd->xConsulta_NoReturn($sqlrp);\n\t}",
"public function __set($propriedade, $valor) {\n $this->data[$propriedade] = $valor;\n }",
"public function getGdlArtId()\n {\n\n return $this->gdl_art_id;\n }",
"public function obtenerIDPrimerPagoElectronico(){\n $criteria = new CDbCriteria;\n $criteria->condition = 'id_pedido = '.$this->id_pedido;\n $registrosCarro = PagosElectronicos::model()->findAll($criteria);\n\n if (sizeof($registrosCarro) > 0)\n return $registrosCarro[0]->id;\n return 0;\n }",
"function setNota_num($inota_num = '')\n {\n $this->inota_num = $inota_num;\n }",
"public function setCentrosEmergenciaId($data)\n {\n\n if ($this->_centrosEmergenciaId != $data) {\n $this->_logChange('centrosEmergenciaId');\n }\n\n if ($data instanceof \\Zend_Db_Expr) {\n $this->_centrosEmergenciaId = $data;\n } else if (!is_null($data)) {\n $this->_centrosEmergenciaId = (int) $data;\n } else {\n $this->_centrosEmergenciaId = $data;\n }\n return $this;\n }",
"private function setidArt($newidArt)\n\t {\n\t $this->idArt = $newidArt;\n\t }",
"private function setidArt($newidArt)\n\t {\n\t $this->idArt = $newidArt;\n\t }",
"private function setidArt($newidArt)\n\t {\n\t $this->idArt = $newidArt;\n\t }",
"function getLoteIdGenerado($prov_id, $arti_id, $depo_id, $cod_lote){\n\n\t\t$empr_id = empresa();\n\t\t$url = AJST.'/services/asp/ALMDataService/lote/id/prov_id/'.$prov_id.'/arti_id/'.$arti_id.'/depo_id/'.$depo_id.'/empr_id/'.$empr_id.'/cod_lote/'.$cod_lote;\n\t\t$aux = $this->rest->callAPI(\"GET\",$url);\n\t\t$aux =json_decode($aux[\"data\"]);\n\t\treturn $aux->lote->lote_id;\n\t}",
"public function updateprematricula($db, $numeroordenpago, $digitoprematricula ){\n $strPrematricula = \"UPDATE prematricula SET codigoestadoprematricula='4\".$digitoprematricula.\"' WHERE \".\n \" idprematricula = (select d.idprematricula from detalleprematricula d \".\n \" where d.numeroordenpago = '\".$numeroordenpago.\"' limit 1)\";\n return is_object($db->Execute($strPrematricula));\n }",
"public function testSetNumeroOrdre() {\n\n $obj = new EmpRecapCodePenibilite();\n\n $obj->setNumeroOrdre(10);\n $this->assertEquals(10, $obj->getNumeroOrdre());\n }",
"function setEpoca($iepoca = '')\n {\n $this->iepoca = $iepoca;\n }",
"function editar_pr_factura(){\n\n\t\t $u = new entrada();\n $u->usuario_id = $GLOBALS['usuarioid'];\n $u->empresas_id = $GLOBALS['empresaid'];\n\t$precio=$_POST['costo_unitario'];\n\t$producto_id=$_POST['cproductos_id'];\n $u->fecha = date(\"Y-m-d H:i:s\");\n $related = $u->from_array($_POST);\n if ($u->id == 0)\n unset($u->id);\n if ($u->save($related)) {\n$this->db->query(\"update cproductos set precio_compra='$precio' where id=$producto_id\");\n echo $u->id;\n } else\n echo 0; \n \n\t}",
"function _set_id( $idGrupo ){\n \t\t$this->idGrupo = $idGrupo;\n }",
"public function _setEntregable($data)\n {\n try {\n $id = (int)$data['entregableid'];\n if ($id == 0) {\n $sql = $this->_db->query(\"select codigo_prop_proy from proyecto where\n proyectoid = '\".$data['proyectoid'].\"'\");\n $codigo = $sql->fetch();\n $ent = $this->createRow();\n $ent->codigo_prop_proy = $codigo['codigo_prop_proy'];\n $ent->proyectoid = $data['proyectoid'];\n $ent->revision_entregable = 'A';\n $ent->edt = '000';\n $ent->tipo_documento = $data['tipo_documento'];\n $ent->disciplina = $data['disciplina'];\n $ent->codigo_anddes = $data['codigo_anddes'];\n $ent->codigo_cliente = $data['codigo_cliente'];\n $ent->descripcion_entregable = $data['descripcion'];\n $ent->estado = 'Ultimo';\n $ent->clase = $data['clase'];\n $ent->revision_documento = $data['revision'];\n $ent->estado_entregable = 9;\n $ent->save();\n $resp['resultado'] = 'guardado';\n return $resp;\n } else {\n $ent = $this->fetchRow('cod_le = '.$id);\n $ent->tipo_documento = $data['tipo_documento'];\n $ent->disciplina = $data['disciplina'];\n $ent->codigo_anddes = $data['codigo_anddes'];\n $ent->codigo_cliente = $data['codigo_cliente'];\n $ent->descripcion_entregable = $data['descripcion'];\n $ent->save();\n $resp['resultado'] = 'guardado';\n return $resp;\n }\n return $id;\n } catch (Exception $e) {\n print $e->getMessage();\n }\n }",
"public function setEmpleado_idemp($empleado_idemp){\n $this->empleado_idemp = $empleado_idemp;\n }",
"function setNota_num($inota_num = '')\n {\n // adminto ',' como separador decimal.\n $inota_num = str_replace(\",\", \".\", $inota_num);\n $this->inota_num = $inota_num;\n }",
"public function set_pedido(Pedido $p){\n $this->pedido=$p;\n }",
"function set_pm_defecto($punto)\n\t{\n\t\t$db = $this->get_db();\n\t\t$id_punto = $db->quote($punto->get_id());\n\t\t$sql = \"UPDATE apex_proyecto\n\t\t\t\tSET pm_impresion = $id_punto,\n\t\t\t\t\tpm_sesion = $id_punto,\n\t\t\t\t\tpm_contexto = $id_punto,\n\t\t\t\t\tpm_usuario = $id_punto\n\t\t\t\tWHERE proyecto = \".$db->quote($this->identificador);\n\t\t$db->ejecutar($sql);\n\t}",
"public function setOperationPrimeCurrencyId($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_numeric($v)) {\n $v = (int) $v;\n }\n }\n if ($this->operation_prime_currency_id !== $v) {\n $this->operation_prime_currency_id = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OPERATION_PRIME_CURRENCY_ID;\n }\n\n if ($this->aRCurrencies !== null && $this->aRCurrencies->getRCurrencyId() !== $v) {\n $this->aRCurrencies = null;\n }\n\n\n return $this;\n }",
"function\tassignERPNos( $_key=\"\", $_id=-1, $_val=\"\") {\n\t\ttry {\n\t\t\tif ( $this->SupplierPrefix == \"\") {\n\t\t\t\t$e\t=\t\"Supplier.php::Supplier::assignERPNos(...): supplier does not have prefix assigned\" ;\n\t\t\t\terror_log( $e) ;\n\t\t\t\tthrow new Exception( $e) ;\n\t\t\t}\n\t\t\tif ( $this->ERPNoStart == \"\") {\n\t\t\t\t$e\t=\t\"Supplier.php::Supplier::assignERPNos(...): supplier does not have vallid ERP no. range\" ;\n\t\t\t\terror_log( $e) ;\n\t\t\t\tthrow new Exception( $e) ;\n\t\t\t}\n\t\t\t$myArticle\t=\tnew Article() ;\n\t\t\tfor ( $myArticle->_firstFromDb( \"ArticleNr like '\" . $this->SupplierPrefix . \".%' AND ERPNo = '' \") ;\n\t\t\t\t\t$myArticle->_valid ;\n\t\t\t\t\t$myArticle->_firstFromDb( \"ArticleNr like '\" . $this->SupplierPrefix . \".%' AND ERPNo = '' \")) {\n\t\t\t\tFDbg::dumpL( \"0x00000002\", \"Supplier.php::Supplier::assignERPNo(...): current article no. '$myArticle->ArticleNr'\") ;\n\t\t\t\ttry {\n\t\t\t\t\t$erpNoStart\t=\t$this->ERPNoStart ;\n\t\t\t\t\t$erpNoEnd\t=\t$this->ERPNoEnd ;\n\t\t\t\t\t$myQuery\t=\t\"SELECT IFNULL(( SELECT ERPNo + 1 FROM Article \" .\n\t\t\t\t\t\t\t\t\t\"WHERE ArticleNr LIKE '\".$this->SupplierPrefix.\".%' AND ERPNo >= '$erpNoStart' AND ERPNo <= '$erpNoEnd' \" .\n\t\t\t\t\t\t\t\t\t\"ORDER BY ERPNo DESC LIMIT 1 ), \" . ( $erpNoStart + 1) . \" ) AS newKey\" ;\n\t\t\t\t\t$myRow\t=\tFDb::queryRow( $myQuery) ;\n\t\t\t\t\t$myArticle->ERPNo\t=\tsprintf( \"%08s\", $myRow['newKey']) ;\n\t\t\t\t\t$myArticle->updateColInDb( \"ERPNo\") ;\n\t\t\t\t} catch (Exception $e) {\n\t\t\t\t\tthrow $e ;\n\t\t\t\t}\n\t\t\t}\n\t\t} catch( Exception $e) {\n\t\t\tthrow $e ;\n\t\t}\n\t\treturn true ;\n\t}",
"public function setPosteId($data)\n {\n\n if ($this->_posteId != $data) {\n $this->_logChange('posteId');\n }\n\n if ($data instanceof \\Zend_Db_Expr) {\n $this->_posteId = $data;\n } else if (!is_null($data)) {\n $this->_posteId = (int) $data;\n } else {\n $this->_posteId = $data;\n }\n return $this;\n }",
"public function setEncendidoProyector( $encendido ) {\n $this->proyector_on=$encendido;\n $this->enviarComandoEstado();\n //$this->activarPantalla();\n }",
"public function setArticulo($articulo)\n {\n $this->articulo = $articulo;\n }",
"public function setIdPROVEEDORES($idPROVEEDORES){\n $this->idPROVEEDORES = $idPROVEEDORES;\n }",
"public function getOpPrimeLibelle()\n {\n\n return $this->op_prime_libelle;\n }",
"protected function setProduct_id($value)\n\t{\n\t\tif (isInt($value) || is_null($value)) { $this->product_id = $value; }\n\t}",
"public function setProducto($pro){ $this->producto = $pro;}",
"public function setOperador($operador)\r\n {\r\n // $this->_myParameters = $myParameters;\r\n $this->_OPERADOR = $operador;\r\n \t//$this->_OPERADOR='1';\r\n \t//Zend_Registry::get('logger')->log(\"testeddd\", Zend_Log::INFO);\r\n \t$projeto= new Application_Model_DbTable_Projeto();\r\n \t//$this->_PROJETOS=$projeto->getProjetoCombo() ;\r\n \t$this->_PROJETOS=$projeto->getProjetosOperadorPermissao($operador);\r\n \t\r\n }",
"public function setProcedimento ($oProcedimento) {\n $this->oProcedimento = $oProcedimento;\n }",
"public function set_apelido(Apelido $object)\n {\n $this->apelido = $object;\n $this->apelido_id = $object->id;\n }",
"function getId_Producto(){\r\n\t\treturn $this->nId_Producto;\r\n\t}",
"public function setParcela(int $parcela)\n {\n $this->parcela = $parcela;\n }",
"public function setPesoArea($peso) {\n $this->_peso = $peso; \n }",
"public function setSerialId($v)\n\t{\n\r\n\t\t// Since the native PHP type for this column is integer,\r\n\t\t// we will cast the input value to an int (if it is not).\r\n\t\tif ($v !== null && !is_int($v) && is_numeric($v)) {\r\n\t\t\t$v = (int) $v;\r\n\t\t}\r\n\n\t\tif ($this->serial_id !== $v) {\n\t\t\t$this->serial_id = $v;\n\t\t\t$this->modifiedColumns[] = MmPeer::SERIAL_ID;\n\t\t}\n\n\t\tif ($this->aSerial !== null && $this->aSerial->getId() !== $v) {\n\t\t\t$this->aSerial = null;\n\t\t}\n\n\t}",
"public function setId($valor){\n\t\t\t$this->id = $valor;\n\t\t}",
"public function set_id_pg($id=0){\n\t\t\t$id = (int) $id;\n\t\t\tif($id!=0){\n\t\t\t\t$this->ipg_id=$id;\n\t\t\t}else{\n\t\t\t\t$this->ipg_id=0;\n\t\t\t}\n\t\t}",
"function setid_exp($val)\n { $this->id_exp=$val;}",
"public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME)\n {\n $keys = OperationPrimesPeer::getFieldNames($keyType);\n\n if (array_key_exists($keys[0], $arr)) $this->setOpPrimeId($arr[$keys[0]]);\n if (array_key_exists($keys[1], $arr)) $this->setOpId($arr[$keys[1]]);\n if (array_key_exists($keys[2], $arr)) $this->setOpPrimeLibelle($arr[$keys[2]]);\n if (array_key_exists($keys[3], $arr)) $this->setOpPrimeNumero($arr[$keys[3]]);\n if (array_key_exists($keys[4], $arr)) $this->setGdlArtId($arr[$keys[4]]);\n if (array_key_exists($keys[5], $arr)) $this->setOperationPrimeCurrencyId($arr[$keys[5]]);\n if (array_key_exists($keys[6], $arr)) $this->setOperationPrimeRRewardTypeId($arr[$keys[6]]);\n if (array_key_exists($keys[7], $arr)) $this->setOperationPrimeRRewardExpeditionModeId($arr[$keys[7]]);\n if (array_key_exists($keys[8], $arr)) $this->setOperationPrimeRRewardTransporterId($arr[$keys[8]]);\n if (array_key_exists($keys[9], $arr)) $this->setOperationPrimeFixedAmount($arr[$keys[9]]);\n if (array_key_exists($keys[10], $arr)) $this->setOperationPrimeProductPricePourcentage($arr[$keys[10]]);\n if (array_key_exists($keys[11], $arr)) $this->setOperationPrimeMaximumAmount($arr[$keys[11]]);\n }",
"public function setEdad($valor){\n\t\t\t$this->edad = $valor;\n\t\t}",
"function editar_pr_factura_inventario(){\n\n\t\t $u = new entrada();\n $u->usuario_id = $GLOBALS['usuarioid'];\n $u->empresas_id = $GLOBALS['empresaid'];\n\t$precio=$_POST['costo_unitario'];\n\t$producto_id=$_POST['cproductos_id'];\n $u->fecha = date(\"Y-m-d H:i:s\");\n $related = $u->from_array($_POST);\n\t $f = new Pr_factura();\n $f->get_by_id($u->pr_facturas_id);\n $u->espacios_fisicos_id = $f->espacios_fisicos_id;\n $u->lote_id = $f->lote_id;\n $u->costo_total = ($u->cantidad * $u->costo_unitario);\n\t$u->existencia = $u->cantidad;\n $u->cproveedores_id = $f->cproveedores_id;\n $u->fecha = date(\"Y-m-d H:i:s\");\n if ($u->id == 0)\n unset($u->id);\n if ($u->save($related)) {\n$this->db->query(\"update cproductos set precio_compra='$precio' where id=$producto_id\");\n echo $u->id;\n } else\n echo 0; \n \n\t}",
"public function setOperationPrimeRRewardExpeditionModeId($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_numeric($v)) {\n $v = (int) $v;\n }\n }\n if ($this->operation_prime_r_reward_expedition_mode_id !== $v) {\n $this->operation_prime_r_reward_expedition_mode_id = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OPERATION_PRIME_R_REWARD_EXPEDITION_MODE_ID;\n }\n\n if ($this->aRRewardExpeditionModes !== null && $this->aRRewardExpeditionModes->getRRewardExpeditionModeId() !== $v) {\n $this->aRRewardExpeditionModes = null;\n }\n\n\n return $this;\n }",
"public function setOperationPrimeProductPricePourcentage($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_numeric($v)) {\n $v = (int) $v;\n }\n }\n if ($this->operation_prime_product_price_pourcentage !== $v) {\n $this->operation_prime_product_price_pourcentage = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OPERATION_PRIME_PRODUCT_PRICE_POURCENTAGE;\n }\n\n\n return $this;\n }",
"function setNumero($numero){\n if(empty($numero)){\n header(\"Location:../vu/formulaire_inscription.php\");\n return;\n\n }\n //on declare de la variable numero puis on appelle la varibale prive numero\n $this->_numero = $numero;\n }",
"protected function setMesto_id($value)\n\t{\n\t\tif (isInt($value) || is_null($value)) { $this->mesto_id = $value; }\n\t}",
"public function setIdEdificio($n)\n {\n echo $this->getContenido();\n $this->c_id_edificio = $n;\n }",
"public function setEgoera($data)\n {\n\n if ($this->_egoera != $data) {\n $this->_logChange('egoera');\n }\n\n if ($data instanceof \\Zend_Db_Expr) {\n $this->_egoera = $data;\n\n } else if (!is_null($data)) {\n $this->_egoera = (int) $data;\n\n } else {\n $this->_egoera = $data;\n }\n return $this;\n }",
"public function setIdpension($idpension){\n $this->idpension = $idpension;\n }",
"public function setRecordInDB($id_utilizzo_biglietto, $data, $numero_posti, $id_prenotazione){\r\n include_once './db_functions.php';\r\n $db = new DB_Functions();\r\n //Escaping\r\n $id_utilizzo_biglietto = DB_Functions::esc($id_utilizzo_biglietto);\r\n $data = DB_Functions::esc($data);\r\n $numero_posti = DB_Functions::esc($numero_posti);\r\n $id_prenotazione = DB_Functions::esc($id_prenotazione);\r\n\r\n $query = \"UPDATE UTILIZZO_BIGLIETTO \r\n SET \tDATA = $data,\r\n NUMERO_POSTI = $numero_posti,\r\n ID_PRENOTAZIONE = $id_prenotazione\r\n WHERE \t\r\n ID_UTILIZZO_BIGLIETTO = $id_utilizzo_biglietto;\";\r\n $resQuery = $db->executeQuery($query);\r\n if ($resQuery[\"state\"]) {\r\n $this->data = $data;\r\n $this->numero_posti = $numero_posti;\r\n $this->id_prenotazione = $id_prenotazione;\r\n }\r\n return $resQuery;\r\n }",
"public function setPartieId($v)\n\t{\n\t\tif ($v !== null) {\n\t\t\t$v = (int) $v;\n\t\t}\n\n\t\tif ($this->partie_id !== $v) {\n\t\t\t$this->partie_id = $v;\n\t\t\t$this->modifiedColumns[] = PostPeer::PARTIE_ID;\n\t\t}\n\n\t\tif ($this->aPartie !== null && $this->aPartie->getId() !== $v) {\n\t\t\t$this->aPartie = null;\n\t\t}\n\n\t\treturn $this;\n\t}",
"public function testSetNumeroCasPartSecu() {\n\n $obj = new Employes();\n\n $obj->setNumeroCasPartSecu(10);\n $this->assertEquals(10, $obj->getNumeroCasPartSecu());\n }",
"function setid_exp($val)\n { $this->id_exp=$val;}",
"function setid_exp($val)\n { $this->id_exp=$val;}",
"public function setCubosTiposId($data)\n {\n\n if ($this->_cubosTiposId != $data) {\n $this->_logChange('cubosTiposId');\n }\n\n if ($data instanceof \\Zend_Db_Expr) {\n $this->_cubosTiposId = $data;\n } else if (!is_null($data)) {\n $this->_cubosTiposId = (int) $data;\n } else {\n $this->_cubosTiposId = $data;\n }\n return $this;\n }",
"public function setPuntosRecogidaId($data)\n {\n\n if ($this->_puntosRecogidaId != $data) {\n $this->_logChange('puntosRecogidaId');\n }\n\n if ($data instanceof \\Zend_Db_Expr) {\n $this->_puntosRecogidaId = $data;\n } else if (!is_null($data)) {\n $this->_puntosRecogidaId = (int) $data;\n } else {\n $this->_puntosRecogidaId = $data;\n }\n return $this;\n }",
"function setEol($eol)\n\t{\n\t\t$this->eol = $eol;\n\t}",
"public function setEncendidoPizarra( $encendido ) {\n $this->pizarra_on=$encendido;\n $this->enviarComandoEstado();\n //$this->activarPantalla();\n }",
"public function setLafiliere_idlafiliere(int $lafiliere_idlafiliere):void\n {\n $lafiliere_idlafiliere = (int)$lafiliere_idlafiliere;\n //checking is empty\n if(empty($lafiliere_idlafiliere)){\n trigger_error(\"The foreign key session is not valid\",E_USER_NOTICE);\n }else{\n $this->lafiliere_idlafiliere = $lafiliere_idlafiliere;\n }\n }",
"function setForcePerso($forcePerso) { $forcePerso = (int) $forcePerso;\r\n if ($forcePerso >= 1 && $forcePerso <= 100) {\r\n $this->_forcePerso = $forcePerso;\r\n }\r\n }",
"public function let_id_pg(){\n\t\t\treturn (int)$this->ipg_id;\n\t\t}",
"public function testSetDernNumPrime() {\n\n $obj = new Employes();\n\n $obj->setDernNumPrime(10);\n $this->assertEquals(10, $obj->getDernNumPrime());\n }",
"public function setCodope($codope){\n\t\t$this->codope = $codope;\n\t}",
"public function setRowId($val) {\n if ($val === null) {\n $this->_row_id = null;\n } else if (is_int($val)) {\n $this->_row_id = intval($val);\n } else {\n /**\n * @see Scenario_Exception\n */\n require_once 'Scenario/Exception.php';\n throw new Scenario_Exception('$val must be null or an integer value.');\n }\n }",
"public function updateEstadoPago($db,$val,$digito, $id){\n $strConsulta = \"UPDATE ordenpago SET codigoestadoordenpago = '\".$id.\"\".$digito.\"' WHERE numeroordenpago ='\".$val.\"';\"; \n return is_object($db->Execute($strConsulta));\n\n }",
"public function setPrimaryKey($key)\n {\n $this->setOpPrimeId($key);\n }",
"public function getFkPessoalDeParaLotacaoOrgoes()\n {\n return $this->fkPessoalDeParaLotacaoOrgoes;\n }",
"public function setLenumero(int $lenumero)\n {\n $lenumero= (int)$lenumero;\n //checking numero is empty\n if(empty($lenumero)){ \n trigger_error('The number is not correct');\n }else{\n $this->lenumero = $lenumero;\n }\n }",
"public function setCodProy($codProy) {\n $this->codProy = $codProy;\n }",
"public function getOperationPrimeCurrencyId()\n {\n\n return $this->operation_prime_currency_id;\n }",
"public function setcedulaPaciente($value){\n\n\t\t$this->_cedulaPaciente = $value;\n\t}",
"public function setIdDetalleRegistroGradoFolio( $idDetalleRegistroGradoFolio ){\n\t\t\t$this->idDetalleRegistroGradoFolio = $idDetalleRegistroGradoFolio;\n\t\t}",
"function SetPersistence($bln) {\n $this->_blnPsnt = $bln;\n }",
"function setNum($num)\n {\n $this->num = $num;\n }",
"public function setArticulo($nombre, $codigo, $descripcion, $alto, $ancho, $largo, $diametro, $peso, $empaque, $categoria, $tipo) {\n\t\trequire_once 'phputils/mysqlConexion.php';\n\t\t/*$nombre = strtolower($nombre);\n\t\t$codigo = strtolower($codigo);\n\t\t$descripcion = strtolower($descripcion);*/\n\t\t\n\t\t$newArticulo = new Articulos;\n\t\t$newArticulo -> nombre = $nombre;\n\t\t$newArticulo -> codigo = $codigo;\n\t\t$newArticulo -> descripcion = $descripcion;\n\t\tif ($alto != null)\n\t\t\t$newArticulo -> alto = $alto;\n\t\tif ($ancho != null)\n\t\t\t$newArticulo -> ancho = $ancho;\n\t\tif ($largo != null)\n\t\t\t$newArticulo -> largo = $largo;\n\t\tif ($diametro != null)\n\t\t\t$newArticulo -> diametro = $diametro;\n\t\tif ($peso != null)\n\t\t\t$newArticulo -> peso = $peso;\n\t\tif ($empaque != null)\n\t\t\t$newArticulo -> empaque = $empaque;\n\t\t$today = time() - 18720; \n\t\t$mysqldate = date('Y-m-d h:i:s',$today);\n\t\t$newArticulo -> fechaingreso = $mysqldate;\n\t\t$newArticulo -> categoria = $categoria;\n\t\t$newArticulo -> tipo = $tipo;\n\n\t\ttry {\n\t\t\t$newArticulo -> save();\n\t\t\treturn $newArticulo -> id;\n\t\t} catch (Exception $e) {\n\t\t\treturn 'false';\n\t\t} \n\t\t\n\t}",
"function setMontoAhorroPreferente($monto){\n\t\t$xOP\t= new cPersonasCatalogoOtrosDatos();\n\t\t$this->addOtrosParametros($xOP->PERSONAS_MONTO_AHORRO_PREFERENTE, $monto);\n\t\t\n\t\t$this->setUpdate(array(\"descuento_preferente\" => $monto) );\n\t\t\n\t\tif(PERSONAS_COMPARTIR_CON_ASOCIADA == true){\n\t\t\t//ejecutar el url\n\t\t\t$this->getExportarAsociada(TPERSONAS_GENERALES);\n\t\t\t$this->getExportarAsociada(TPERSONAS_DIRECCIONES);\n\t\t\t$this->getExportarAsociada(TPERSONAS_ACTIVIDAD_ECONOMICA);\n\t\t\tif($this->getEsEmpresaConConvenio() == true){\n\t\t\t\t$this->getExportarAsociada(TCATALOGOS_EMPRESAS);\n\t\t\t}\n\t\t}\n\t}",
"public static function set_costo_promedio($id_bodega,$id_producto,$costo_prom)\n {\n $item = InvProducto::find( $id_producto );\n $item->set_costo_promedio( $id_bodega, $costo_prom );\n }",
"function alta_entrada(){\n $e = new Entrada();\n\t\t$precio=$_POST['costo_unitario'];\n\t\t$producto_id=$_POST['cproductos_id'];\n $e->usuario_id = $GLOBALS['usuarioid'];\n $e->empresas_id = $GLOBALS['empresaid'];\n $related = $e->from_array($_POST);\n //if($e->costo_unitario=='undefined') $e->costo_unitario=0;\n $f = new Pr_factura();\n $f->get_by_id($e->pr_facturas_id);\n $e->espacios_fisicos_id = $f->espacios_fisicos_id;\n $e->lote_id = $f->lote_id;\n $e->costo_total = ($e->cantidad * $e->costo_unitario);\n\t\t$e->existencia = $e->cantidad;\n $e->cproveedores_id = $f->cproveedores_id;\n $e->fecha = date(\"Y-m-d H:i:s\");\n if ($e->id == 0)\n unset($e->id);\n if ($e->save($related)) {\n echo $e->id;\n\t\t\t$this->db->query(\"update cproductos set precio_compra='$precio' where id=$producto_id\");\n } else\n echo 0;\n }",
"public function setVida($valor){\n $this->vida=$valor;\n }",
"function loadArticulo(){\n\t\t\t$r = $this->ar->getArticuloById($this->id);\n\t\t\tif($r != -1){\n\t\t\t\t$this->id \t\t\t= $r['doa_id'];\n\t\t\t\t$this->alcance \t\t= $r['alc_id'];\n\t\t\t\t$this->documento \t= $r['doc_id'];\n\t\t\t\t$this->nombre \t\t= $r['doa_nombre'];\n\t\t\t\t$this->descripcion\t= $r['doa_descripcion'];\n\t\t\t}else{\n\t\t\t\t$this->id \t\t\t= \"\";\n\t\t\t\t$this->alcance \t\t= \"\";\n\t\t\t\t$this->documento \t= \"\";\n\t\t\t\t$this->nombre \t\t= \"\";\n\t\t\t\t$this->descripcion\t= \"\";\n\t\t\t}\n\t}",
"public function initialize($pgen) {\n\tglobal $qqs,$qqj;\n\n\t$idorder=False;\n\tif (($idorder=$pgen->getPageExtra()) == '') {\n\t\t$idorder=ec_prodorder::getUnshippedOrderId(False);\n\t}\n\tif ($idorder === False)\n\t\treturn;\n\n\t// dynamic js--set chain mask\n\t$args=$qqj->seedArgs($this);\n\t$qqj->addjs('$','ecporder::setorderdetailid',array_merge($args,array('id'=>$idorder)));\n}",
"public function setPrecinctId($v)\n\t{\n\r\n\t\t// Since the native PHP type for this column is integer,\r\n\t\t// we will cast the input value to an int (if it is not).\r\n\t\tif ($v !== null && !is_int($v) && is_numeric($v)) {\r\n\t\t\t$v = (int) $v;\r\n\t\t}\r\n\n\t\tif ($this->precinct_id !== $v) {\n\t\t\t$this->precinct_id = $v;\n\t\t\t$this->modifiedColumns[] = MmPeer::PRECINCT_ID;\n\t\t}\n\n\t\tif ($this->aPrecinct !== null && $this->aPrecinct->getId() !== $v) {\n\t\t\t$this->aPrecinct = null;\n\t\t}\n\n\t}",
"function editar_estado(){\t\n\t\tif (isset($_GET['valor']) && $_GET['valor']!=\"\" && isset($_GET['id']) && $_GET['id']!=\"\"){\n\t\t\t$id=$_GET['id'];\n\t\t\t$valor=$_GET['valor'];\n\t\t\t//echo \"Entro: \".$_GET['valor'];\n\t\t\t$sql=\"UPDATE producto SET aprobado_pro='$valor' WHERE id_pro='$id'\";\n\t\t\t$consulta=mysql_query($sql) or die(mysql_error());\n\t\t\t//if($valor==1)\n\t\t\t\t//$this->enviar_correos2($id);\n\t\t\theader(\"location:/admin/producto/\");\n\t\t}\n\t}",
"function setOrden($iorden = '')\n {\n $this->iorden = $iorden;\n }",
"public function SetMaqOp($data){\n\t\t$data = (array)$data;\n\t\t\t\t\t$command = \\Yii::$app->db_mysql;\n\t\t\t$result = $command->createCommand()->insert('maquina_operador',[\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t'maquina' => $data['maquina'], \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t'operador' => $data['operador']\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t])->execute();\n\t\t\n\t}",
"public function setCodProy($codProy) {\n $this->codProy = $codProy;\n }",
"public static function editar_empresa($idnodo, $propiedad, $detalle){\n\t\t//Obtengo toda la informacion del nodo\n\t\t$editar = Neo4Play::client()->getNode($idnodo);\n\t\t//edita la propiedad y si no existe la crea\n\t\t$editar->setProperty($propiedad,$detalle)\n\t\t \t->save();\n\t}",
"function edit(Plato $objeto) {\r\n $sql = \"update $this->tabla set nombre = :nombre, descripcion = :descripcion,\"\r\n . \"precio = :precio \"\r\n . \"where idPlato= :idPlato;\";\r\n $parametros[\"nombre\"] = $objeto->getNombre();\r\n $parametros[\"descripcion\"] = $objeto->getDescripcion();\r\n $parametros[\"precio\"] = $objeto->getPrecio();\r\n $parametros[\"idPlato\"] = $objeto->getIdPlato();\r\n $r = $this->bd->setConsulta($sql, $parametros);\r\n\r\n if (!$r) {\r\n return -1;\r\n }\r\n return $this->bd->getNumeroFilas(); //0\r\n }",
"function reset_lampeggia_plus($par) {\r\n $pdo = connetti();\r\n $sqlu = \"UPDATE odl_riga SET \"; \r\n $col = \"tR\";\r\n $flag = \"PVIL\";\r\n if (rowcheck4value($par['idrigaodl'],\"rColore\")=='class2blink') { $sqlu .= \" rColore = \\\"{$col}\\\", \"; }\r\n if (rowcheck4value($par['idrigaodl'],\"rCpro\")=='class2blink') { $sqlu .= \" rCpro = \\\"{$col}\\\", \"; }\r\n if (rowcheck4value($par['idrigaodl'],\"rClav\")=='class2blink') { $sqlu .= \" rClav = \\\"{$col}\\\", \"; }\r\n if (rowcheck4value($par['idrigaodl'],\"rCcol\")=='class2blink') { $sqlu .= \" rCcol = \\\"{$col}\\\", \"; }\r\n if (rowcheck4value($par['idrigaodl'],\"rCsti\")=='class2blink') { $sqlu .= \" rCsti = \\\"{$col}\\\", \"; }\r\n if (rowcheck4value($par['idrigaodl'],\"rCcom\")=='class2blink') { $sqlu .= \" rCcom = \\\"{$col}\\\", \"; }\r\n if (rowcheck4value($par['idrigaodl'],\"rCpez\")=='class2blink') { $sqlu .= \" rCpez = \\\"{$col}\\\", \"; }\r\n if (rowcheck4value($par['idrigaodl'],\"rCimb\")=='class2blink') { $sqlu .= \" rCimb = \\\"{$col}\\\", \"; }\r\n if (rowcheck4value($par['idrigaodl'],\"rCtpa\")=='class2blink') { $sqlu .= \" rCtpa = \\\"{$col}\\\", \"; }\r\n if (rowcheck4value($par['idrigaodl'],\"rCmis\")=='class2blink') { $sqlu .= \" rCmis = \\\"{$col}\\\", \"; }\r\n $sqlu .= \"controller = \\\"{$GLOBALS['utente']}:{$flag}\\\", \";\r\n $sqlu .= \"dataLastMod = \\\"{$GLOBALS['datatempo']}\\\" \";\r\n $sqlu .= \"WHERE idRigaOdL = \\\"{$par['idrigaodl']}\\\"\";\r\n if(BETA3) { echo \"<pre class=\\\"Beta3\\\">function reset_lampeggia_plus: \"; print_r($sqlu); echo \"</pre>\\n\"; }\r\n $queu = $pdo->prepare($sqlu);\r\n $queu->execute();\r\n}",
"public function setNumber_autho($fv_nummber_autho)\n {\n \tif(!empty($fv_nummber_autho))\n \t{\n\n\t\t\t$fv_nummber_autho = trim($fv_nummber_autho);\n\t\t\t\n\t\t\tif(!is_numeric($fv_nummber_autho))\n\t\t\t{\n\n\t\t\t\t$this->fv_error_message = $this->fv_error_message . '<br>- Numero de Autorizacion '.$fv_nummber_autho.ERROR_DATO_NUMERICO;\n\t\t\t\treturn $this->fv_nummber_autho =null;\n\t\t\t}\n\t\t\tif($fv_nummber_autho<0)\n\t\t\t{\n\t\t\t\t$this->fv_error_message = $this->fv_error_message . '<br>- Numero de Autorizacion '.$fv_nummber_autho.ERROR_NUMERICO_POSITIVO;\n\t\t\t\treturn $this->fv_nummber_autho =null;\t\t\n\t\t\t}\n\t\t\treturn $this->fv_nummber_autho = $fv_nummber_autho;\n\t\t}\n\t\t$this->fv_error_message = $this->fv_error_message .'<br>- Numero de Autorizacion '.ERROR_NULL;\n\t\treturn $this->fv_nummber_autho=null;\n\n \n }",
"public function setNOMBREEMPLEADO_PROVEEDORES($nOMBREEMPLEADO_PROVEEDORES){\n $this->NOMBREEMPLEADO_PROVEEDORES = $nOMBREEMPLEADO_PROVEEDORES;\n }",
"private function set_zoho_id($row,$zohoid){\r\n }",
"function editar_producto_precio($id, $precio){\n\t\t$conexion_bd = conectar_bd();\n\t\t\n\t\t//Prepaprar la consulta\n\t\t$dml = 'UPDATE `producto` SET `precio` = precio WHERE `producto`.`id` = id ';\n\t\tif ( !($statement = $conexion_bd->prepare($dml)) ){\n\t\t\tdie(\"Error: (\" . $conexion_bd->errno . \") \" . $conexion_bd->error);\n\t\t\treturn 0;\n\t\t\t}\n\n\t\t// Unir los parametros de la funcion con los parametros de la consulta\n\t\t// El primer argumento de bind_param es el formato de cada parametro\n\t\tif (!$statement->bind_param(\"s\", $precio)) {\n\t\t\tdie(\"Error en vinculación: (\" . $statement->errno . \") \" . $statement->error);\n\t\t\treturn 0;\n\t\t\t}\n\n\t\t// Ejecutar la consulta\n\t\tif (!$statement->execute()) {\n\t\t\tdie(\"Error en ejecución: (\" . $statement->errno . \") \" . $statement->error);\n\t\t\treturn 0;\n\t\t\t}\n\n\t\t//Desconectarse de la base de datos\n\t\t\t desconectar_bd($conexion_bd);\n\t\t\t return 1;\n \n\t}"
] | [
"0.6233631",
"0.6034504",
"0.5551276",
"0.54178816",
"0.5288946",
"0.5272168",
"0.51445645",
"0.51422405",
"0.51296794",
"0.4999414",
"0.4962086",
"0.4954606",
"0.48946822",
"0.4889888",
"0.4889888",
"0.4889888",
"0.48810947",
"0.48737988",
"0.48709202",
"0.48494264",
"0.48418885",
"0.48341712",
"0.48220778",
"0.48143247",
"0.4813027",
"0.48001397",
"0.47641817",
"0.47632006",
"0.47483182",
"0.4738265",
"0.47108996",
"0.47044924",
"0.4701045",
"0.4657185",
"0.46547666",
"0.462982",
"0.46288997",
"0.46105176",
"0.45968097",
"0.4588073",
"0.45873106",
"0.4559322",
"0.45538676",
"0.45453215",
"0.45440292",
"0.4543441",
"0.4534231",
"0.4533107",
"0.45159078",
"0.45091847",
"0.45069423",
"0.45017907",
"0.45004937",
"0.44988242",
"0.4489641",
"0.44764954",
"0.4471107",
"0.4466194",
"0.4460631",
"0.4455479",
"0.4455479",
"0.44477957",
"0.44342822",
"0.44214463",
"0.4409305",
"0.4405044",
"0.44005704",
"0.43984678",
"0.4398193",
"0.4379078",
"0.43693638",
"0.43676317",
"0.43655992",
"0.436265",
"0.4357574",
"0.43482077",
"0.43463528",
"0.4341161",
"0.43325976",
"0.43304422",
"0.43301988",
"0.43218854",
"0.43172672",
"0.4316712",
"0.43096808",
"0.43086207",
"0.4304878",
"0.43039513",
"0.42981303",
"0.42981145",
"0.42980194",
"0.42970824",
"0.429578",
"0.428525",
"0.42852253",
"0.42832267",
"0.42829415",
"0.42781103",
"0.4275125",
"0.4262002"
] | 0.638567 | 0 |
setGdlArtId() Set the value of [operation_prime_currency_id] column. | public function setOperationPrimeCurrencyId($v)
{
if ($v === ''){
$v = null;
}
elseif ($v !== null){
if(is_numeric($v)) {
$v = (int) $v;
}
}
if ($this->operation_prime_currency_id !== $v) {
$this->operation_prime_currency_id = $v;
$this->modifiedColumns[] = OperationPrimesPeer::OPERATION_PRIME_CURRENCY_ID;
}
if ($this->aRCurrencies !== null && $this->aRCurrencies->getRCurrencyId() !== $v) {
$this->aRCurrencies = null;
}
return $this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function setGdlArtId($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_numeric($v)) {\n $v = (int) $v;\n }\n }\n if ($this->gdl_art_id !== $v) {\n $this->gdl_art_id = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::GDL_ART_ID;\n }\n\n\n return $this;\n }",
"private function setidArt($newidArt)\n\t {\n\t $this->idArt = $newidArt;\n\t }",
"private function setidArt($newidArt)\n\t {\n\t $this->idArt = $newidArt;\n\t }",
"private function setidArt($newidArt)\n\t {\n\t $this->idArt = $newidArt;\n\t }",
"public function getGdlArtId()\n {\n\n return $this->gdl_art_id;\n }",
"public function setIdpension($idpension){\n $this->idpension = $idpension;\n }",
"public function setIdArt($idArt)\n {\n $this->idArt = $idArt;\n\n return $this;\n }",
"public function getIdArt()\n {\n return $this->idArt;\n }",
"public function updateStockId();",
"function setid_exp($val)\n { $this->id_exp=$val;}",
"public function getOperationPrimeCurrencyId()\n {\n\n return $this->operation_prime_currency_id;\n }",
"function setEditableManufacturerID($epmid)\n {\n// if ($this->isCorrectManufacturerId($epmid))\n// {\n $this->editableManufacturerID = $epmid;\n// }\n }",
"function setid_exp($val)\n { $this->id_exp=$val;}",
"function setid_exp($val)\n { $this->id_exp=$val;}",
"public function getidArt()\n\t {\n\t return $this->idArt;\n\t }",
"public function getidArt()\n\t {\n\t return $this->idArt;\n\t }",
"public function getidArt()\n\t {\n\t return $this->idArt;\n\t }",
"public function setEntity( $entity )\n {\n\n $this->entity = $entity;\n $this->rowid = $entity->getId();\n \n }",
"public function setEntityRelatedPk($pk) {\n\t\t$this->_entityRelatedPk = $pk;\n\t}",
"public function setCentrosEmergenciaId($data)\n {\n\n if ($this->_centrosEmergenciaId != $data) {\n $this->_logChange('centrosEmergenciaId');\n }\n\n if ($data instanceof \\Zend_Db_Expr) {\n $this->_centrosEmergenciaId = $data;\n } else if (!is_null($data)) {\n $this->_centrosEmergenciaId = (int) $data;\n } else {\n $this->_centrosEmergenciaId = $data;\n }\n return $this;\n }",
"public function getResourceArtId()\n\t{\n\t\treturn 3;\n\t}",
"public function setRowId($val) {\n if ($val === null) {\n $this->_row_id = null;\n } else if (is_int($val)) {\n $this->_row_id = intval($val);\n } else {\n /**\n * @see Scenario_Exception\n */\n require_once 'Scenario/Exception.php';\n throw new Scenario_Exception('$val must be null or an integer value.');\n }\n }",
"function setIdkitprodutos($idkitprodutos) {\n $this->idkitprodutos = $idkitprodutos;\n }",
"public function setRowId($val) {\n if ($val === null || is_integer($val)) {\n $this->_row_id = $val;\n } else {\n require_once 'Scenario/Exception.php';\n throw new Scenario_Exception('Row ID must be an integer or null.');\n }\n }",
"public function setId($valor){\n\t\t\t$this->id = $valor;\n\t\t}",
"public function setId($x) { $this->id = $x; }",
"public function setId_entity($id_entity)\n {\n $this->id_entity = $id_entity;\n \n return $this;\n }",
"function setIdentifier($val) {\n $this->identifier = $this->updateDB('identifier', $val);\n }",
"protected function setProduct_id($value)\n\t{\n\t\tif (isInt($value) || is_null($value)) { $this->product_id = $value; }\n\t}",
"public function setOpPrimeId($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_numeric($v)) {\n $v = (int) $v;\n }\n }\n if ($this->op_prime_id !== $v) {\n $this->op_prime_id = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OP_PRIME_ID;\n }\n\n\n return $this;\n }",
"public function setOpId($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_numeric($v)) {\n $v = (int) $v;\n }\n }\n if ($this->op_id !== $v) {\n $this->op_id = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OP_ID;\n }\n\n if ($this->aOperations !== null && $this->aOperations->getOpId() !== $v) {\n $this->aOperations = null;\n }\n\n\n return $this;\n }",
"function setIdComentaire($idCommentaire) {\n $this->idCommentaire = $idCommentaire;\n }",
"public function setMarketId($var)\n {\n GPBUtil::checkString($var, True);\n $this->market_id = $var;\n }",
"public function setId($id)\n {\n $this->setIdSale($id);\n }",
"public function setId_recette($id_recette)\n {\n $id_recette = (int) $id_recette;\n $this->_id_recette = $id_recette;\n }",
"public function getMarketId()\n {\n return $this->market_id;\n }",
"public function setIdWithDependency($id, $em) {\n $oldId = $this->getId();\n $this->setId($id);\n if ($id == 1){\n $this->setPartenaireId(1);\n }\n $tasksWithThatClientId = $em->getRepository('maindbBundle:Tachesimple')->findBy(Array('clientId' => $oldId));\n foreach ($tasksWithThatClientId as $task) {\n $task->setClientId($id);\n $em->persist($task);\n $em->flush();\n }\n $em->persist($this);\n $metadata = $em->getClassMetaData(get_class($this));\n $metadata->setIdGeneratorType(\\Doctrine\\ORM\\Mapping\\ClassMetadata::GENERATOR_TYPE_NONE);\n $em->flush();\n }",
"public function setId($pId) {\n\t\t$this->Id = $pId;\n\t}",
"function SetId($value) { $this->id=$value; }",
"function setId($value) {\n $this->_id = intval($value);\n }",
"public function set_attribute_by_art($Art_ID, $Attribut_ID)\r\n\t{\r\n\t\tif($Art_ID != 0 && $Attribut_ID != 0){\r\n\t\t\t$Query = \"UPDATE tblZuordnung_art_attr AS zuord\r\n\t\t\t\t\t\tSET Art_ID='\".$Art_ID.\"',Attribut_ID='\".$Attribut_ID.\"'\r\n\t\t\t\t\t\tWHERE zuord.Art_ID ='\".$ID.\"'\";\r\n\t\t}\r\n\t\treturn $this->query($Query);\r\n\t}",
"public function setProductId($id);",
"public function setId($var){\n\t\t$this->id=$var;\n\t}",
"function setPrice($classId, $price) {\r\n $data['classPrice'] = $price;\r\n $this->db->where('id', $classId);\r\n $this->db->update('class', $data);\r\n }",
"public function setArticulo($articulo)\n {\n $this->articulo = $articulo;\n }",
"public function set_id($setid){\n $this->id = $setid;\n }",
"protected function setPreviousIdAttr($mod, $xpath, $table) {\r\n\t\t$originalNodes = $xpath->query(\"//*[@class='newVersion']//*[@akn_currentId ='$mod->id' or @parent = '$mod->id']\", $table);\r\n\t\t$originalNodes = (!$originalNodes->length) ? \r\n\t\t\t\t\t\t\t$xpath->query(\"//*[@class='newVersion']//*[@akn_currentId ='$mod->id' or contains(@parent, '$mod->id')]\", $table) \r\n\t\t\t\t\t\t\t: $originalNodes;\r\n\t\tforeach($originalNodes as $node) {\r\n\t\t\tif(preg_match(\"/\\b$mod->id/\", $node->getAttribute(\"parent\"))) {\r\n\t\t\t\t$this->setAllAttribute(array($node), \"parentOriginalId\", $mod->previousId);\t\t\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public function initialize($pgen) {\n\tglobal $qqs,$qqj;\n\n\t$idorder=False;\n\tif (($idorder=$pgen->getPageExtra()) == '') {\n\t\t$idorder=ec_prodorder::getUnshippedOrderId(False);\n\t}\n\tif ($idorder === False)\n\t\treturn;\n\n\t// dynamic js--set chain mask\n\t$args=$qqj->seedArgs($this);\n\t$qqj->addjs('$','ecporder::setorderdetailid',array_merge($args,array('id'=>$idorder)));\n}",
"public function setProductId($image_id, $product_id){\r\n $this->ID = (int)$image_id;\r\n $this->product_id = $product_id;\r\n \r\n return $this->update();\r\n }",
"function loadArticulo(){\n\t\t\t$r = $this->ar->getArticuloById($this->id);\n\t\t\tif($r != -1){\n\t\t\t\t$this->id \t\t\t= $r['doa_id'];\n\t\t\t\t$this->alcance \t\t= $r['alc_id'];\n\t\t\t\t$this->documento \t= $r['doc_id'];\n\t\t\t\t$this->nombre \t\t= $r['doa_nombre'];\n\t\t\t\t$this->descripcion\t= $r['doa_descripcion'];\n\t\t\t}else{\n\t\t\t\t$this->id \t\t\t= \"\";\n\t\t\t\t$this->alcance \t\t= \"\";\n\t\t\t\t$this->documento \t= \"\";\n\t\t\t\t$this->nombre \t\t= \"\";\n\t\t\t\t$this->descripcion\t= \"\";\n\t\t\t}\n\t}",
"function set_entity($ent){\n $this -> table = $ent;\n }",
"public function setId($id){\n $this->_sub_cat_id = $id;\n }",
"public function setId()\n {\n throw new \\RuntimeException('It is not possible to set job id, you must create a new job');\n }",
"function setId($id) {\r\n $this->_id = $id;\r\n }",
"function initialiserId()\n {\n if(empty($this->m_idOption))\n {\n $requete = 'SELECT idOption FROM optionHotel WHERE libelleOption=? AND prixOption=?';\n $tabParametres = array($this->m_libelleOption, $this->m_prixOption);\n $tabResultat = $this->m_bdd->selection($requete, $tabParametres);\n $this->m_idOption = $tabResultat[0]['idOption']; \n }\n }",
"public function setPrimaryKey($key)\n {\n $this->setOpPrimeId($key);\n }",
"public function testSetProductIdGetProductId()\n {\n $oTestObject = oxNew('oxArticleException', $this->_sMsg);\n $this->assertNull($oTestObject->getProductId());\n\n $this->_oTestObject->setProductId('xxx');\n $this->assertEquals('xxx', $this->_oTestObject->getProductId());\n }",
"public function setQuoteId($id);",
"public function setExtOrderId($id);",
"public function setInvoiceId($val)\n {\n $this->_propDict[\"invoiceId\"] = $val;\n return $this;\n }",
"function\tassignERPNos( $_key=\"\", $_id=-1, $_val=\"\") {\n\t\ttry {\n\t\t\tif ( $this->SupplierPrefix == \"\") {\n\t\t\t\t$e\t=\t\"Supplier.php::Supplier::assignERPNos(...): supplier does not have prefix assigned\" ;\n\t\t\t\terror_log( $e) ;\n\t\t\t\tthrow new Exception( $e) ;\n\t\t\t}\n\t\t\tif ( $this->ERPNoStart == \"\") {\n\t\t\t\t$e\t=\t\"Supplier.php::Supplier::assignERPNos(...): supplier does not have vallid ERP no. range\" ;\n\t\t\t\terror_log( $e) ;\n\t\t\t\tthrow new Exception( $e) ;\n\t\t\t}\n\t\t\t$myArticle\t=\tnew Article() ;\n\t\t\tfor ( $myArticle->_firstFromDb( \"ArticleNr like '\" . $this->SupplierPrefix . \".%' AND ERPNo = '' \") ;\n\t\t\t\t\t$myArticle->_valid ;\n\t\t\t\t\t$myArticle->_firstFromDb( \"ArticleNr like '\" . $this->SupplierPrefix . \".%' AND ERPNo = '' \")) {\n\t\t\t\tFDbg::dumpL( \"0x00000002\", \"Supplier.php::Supplier::assignERPNo(...): current article no. '$myArticle->ArticleNr'\") ;\n\t\t\t\ttry {\n\t\t\t\t\t$erpNoStart\t=\t$this->ERPNoStart ;\n\t\t\t\t\t$erpNoEnd\t=\t$this->ERPNoEnd ;\n\t\t\t\t\t$myQuery\t=\t\"SELECT IFNULL(( SELECT ERPNo + 1 FROM Article \" .\n\t\t\t\t\t\t\t\t\t\"WHERE ArticleNr LIKE '\".$this->SupplierPrefix.\".%' AND ERPNo >= '$erpNoStart' AND ERPNo <= '$erpNoEnd' \" .\n\t\t\t\t\t\t\t\t\t\"ORDER BY ERPNo DESC LIMIT 1 ), \" . ( $erpNoStart + 1) . \" ) AS newKey\" ;\n\t\t\t\t\t$myRow\t=\tFDb::queryRow( $myQuery) ;\n\t\t\t\t\t$myArticle->ERPNo\t=\tsprintf( \"%08s\", $myRow['newKey']) ;\n\t\t\t\t\t$myArticle->updateColInDb( \"ERPNo\") ;\n\t\t\t\t} catch (Exception $e) {\n\t\t\t\t\tthrow $e ;\n\t\t\t\t}\n\t\t\t}\n\t\t} catch( Exception $e) {\n\t\t\tthrow $e ;\n\t\t}\n\t\treturn true ;\n\t}",
"private function setRecountProduct() {\n\n //$this->model->setDocumentNumber($this->getDocumentNumber);\n $sql = null;\n if ($this->getVendor() == self::MYSQL) {\n $sql = \"\n INSERT INTO `productrecount` \n (\n `companyId`,\n `warehouseId`,\n `productCode`,\n `productDescription`,\n `productRecountDate`,\n `productRecountSystemQuantity`,\n `productRecountPhysicalQuantity`,\n `isDefault`,\n `isNew`,\n `isDraft`,\n `isUpdate`,\n `isDelete`,\n `isActive`,\n `isApproved`,\n `isReview`,\n `isPost`,\n `executeBy`,\n `executeTime`\n ) VALUES ( \n '\" . $this->getCompanyId() . \"',\n '\" . $this->model->getWarehouseId() . \"',\n '\" . $this->model->getProductCode() . \"',\n '\" . $this->model->getProductDescription() . \"',\n '\" . $this->model->getProductRecountDate() . \"',\n '\" . $this->model->getProductRecountSystemQuantity() . \"',\n '\" . $this->model->getProductRecountPhysicalQuantity() . \"',\n '\" . $this->model->getIsDefault(0, 'single') . \"',\n '\" . $this->model->getIsNew(0, 'single') . \"',\n '\" . $this->model->getIsDraft(0, 'single') . \"',\n '\" . $this->model->getIsUpdate(0, 'single') . \"',\n '\" . $this->model->getIsDelete(0, 'single') . \"',\n '\" . $this->model->getIsActive(0, 'single') . \"',\n '\" . $this->model->getIsApproved(0, 'single') . \"',\n '\" . $this->model->getIsReview(0, 'single') . \"',\n '\" . $this->model->getIsPost(0, 'single') . \"',\n '\" . $this->model->getExecuteBy() . \"',\n \" . $this->model->getExecuteTime() . \"\n );\";\n } else {\n if ($this->getVendor() == self::MSSQL) {\n $sql = \"\n INSERT INTO [productRecount]\n (\n [productRecountId],\n [companyId],\n [warehouseId],\n [productCode],\n [productDescription],\n [productRecountDate],\n [productRecountSystemQuantity],\n [productRecountPhysicalQuantity],\n [isDefault],\n [isNew],\n [isDraft],\n [isUpdate],\n [isDelete],\n [isActive],\n [isApproved],\n [isReview],\n [isPost],\n [executeBy],\n [executeTime]\n) VALUES (\n '\" . $this->getCompanyId() . \"',\n '\" . $this->model->getWarehouseId() . \"',\n '\" . $this->model->getProductCode() . \"',\n '\" . $this->model->getProductDescription() . \"',\n '\" . $this->model->getProductRecountDate() . \"',\n '\" . $this->model->getProductRecountSystemQuantity() . \"',\n '\" . $this->model->getProductRecountPhysicalQuantity() . \"',\n '\" . $this->model->getIsDefault(0, 'single') . \"',\n '\" . $this->model->getIsNew(0, 'single') . \"',\n '\" . $this->model->getIsDraft(0, 'single') . \"',\n '\" . $this->model->getIsUpdate(0, 'single') . \"',\n '\" . $this->model->getIsDelete(0, 'single') . \"',\n '\" . $this->model->getIsActive(0, 'single') . \"',\n '\" . $this->model->getIsApproved(0, 'single') . \"',\n '\" . $this->model->getIsReview(0, 'single') . \"',\n '\" . $this->model->getIsPost(0, 'single') . \"',\n '\" . $this->model->getExecuteBy() . \"',\n \" . $this->model->getExecuteTime() . \"\n );\";\n } else {\n if ($this->getVendor() == self::ORACLE) {\n $sql = \"\n INSERT INTO PRODUCTRECOUNT\n (\n COMPANYID,\n WAREHOUSEID,\n PRODUCTCODE,\n PRODUCTDESCRIPTION,\n PRODUCTRECOUNTDATE,\n PRODUCTRECOUNTSYSTEMQUANTITY,\n PRODUCTRECOUNTPHYSICALQUANTITY,\n ISDEFAULT,\n ISNEW,\n ISDRAFT,\n ISUPDATE,\n ISDELETE,\n ISACTIVE,\n ISAPPROVED,\n ISREVIEW,\n ISPOST,\n EXECUTEBY,\n EXECUTETIME\n ) VALUES (\n '\" . $this->getCompanyId() . \"',\n '\" . $this->model->getWarehouseId() . \"',\n '\" . $this->model->getProductCode() . \"',\n '\" . $this->model->getProductDescription() . \"',\n '\" . $this->model->getProductRecountDate() . \"',\n '\" . $this->model->getProductRecountSystemQuantity() . \"',\n '\" . $this->model->getProductRecountPhysicalQuantity() . \"',\n '\" . $this->model->getIsDefault(0, 'single') . \"',\n '\" . $this->model->getIsNew(0, 'single') . \"',\n '\" . $this->model->getIsDraft(0, 'single') . \"',\n '\" . $this->model->getIsUpdate(0, 'single') . \"',\n '\" . $this->model->getIsDelete(0, 'single') . \"',\n '\" . $this->model->getIsActive(0, 'single') . \"',\n '\" . $this->model->getIsApproved(0, 'single') . \"',\n '\" . $this->model->getIsReview(0, 'single') . \"',\n '\" . $this->model->getIsPost(0, 'single') . \"',\n '\" . $this->model->getExecuteBy() . \"',\n \" . $this->model->getExecuteTime() . \"\n );\";\n }\n }\n }\n try {\n $this->q->create($sql);\n } catch (\\Exception $e) {\n $this->q->rollback();\n echo json_encode(array(\"success\" => false, \"message\" => $e->getMessage()));\n exit();\n }\n }",
"function setId($id) {\n\t\t$this->_id = $id;\n\t}",
"public function setId($id) {\n $this->datosprop->setId_prop_carac($id);\n }",
"public function SetId($valor)\r\n\t{\r\n\t\t$this->id = $valor;\r\n\t}",
"public function setPrimaryKey($key)\n {\n $this->setArticleId($key);\n }",
"public function setEntityId(?int $entityId);",
"public function setPrimaryKey($key)\n {\n $this->setProdId($key);\n }",
"public function setIdPROVEEDORES($idPROVEEDORES){\n $this->idPROVEEDORES = $idPROVEEDORES;\n }",
"public function setIdAtelier($valeur){\n $this->idAtelier = $valeur;\n }",
"public function setEmpId($val){\n\t\tif(intval($val) > 0){\n\t\t\t$this->employeeId = intval($val);\n\t\t}\t\t\n\t\treturn $this;\n\t}",
"public function setId($val)\n {\n $this->_propDict[\"id\"] = $val;\n return $this;\n }",
"function _set_id( $idGrupo ){\n \t\t$this->idGrupo = $idGrupo;\n }",
"function jo($entity) {\n $entity->setEntityId(($entity->getEntityId() +1));\n }",
"public function setKbArticleId(?string $value): void {\n $this->getBackingStore()->set('kbArticleId', $value);\n }",
"public function getProdPriceId()\n {\n return $this->prod_price_id;\n }",
"protected function _set_row_id($id) {\r\n $this->row_id = $id;\r\n }",
"public function setIdarl($idarl){\n $this->idarl = $idarl;\n }",
"public function setIdVit($id){\n\t\t$this->id = $id;\n\t}",
"public function setId($id) {\n $this->vendorData[\"ID_VENDOR\"] = (int)$id;\n }",
"public function setIdEdificio($n)\n {\n echo $this->getContenido();\n $this->c_id_edificio = $n;\n }",
"public function setLicenseReferenceId(int $val): LicenseReference\n {\n if ($val < 0) {\n throw StockApiException::withMessage('License Reference id cannot be negative');\n }\n \n $this->id = $val;\n return $this;\n }",
"public function setId($id)\n\t{\n\t\tif (isset($this->id)) {\n\t\t\tthrow new \\RuntimeException('ID is already set, you cannot change it once it is set!');\n\t\t}\n\t\t$this->id = $id;\n\t}",
"public function setId_recette($id) {\n\n\t\t$id = (int) $id;\n\n \tif ($id>0) {\n\n \t\t$this->_id_recette = $id;\n\n \t}\n\n\t}",
"public function setOperationPrimeRRewardExpeditionModeId($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_numeric($v)) {\n $v = (int) $v;\n }\n }\n if ($this->operation_prime_r_reward_expedition_mode_id !== $v) {\n $this->operation_prime_r_reward_expedition_mode_id = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OPERATION_PRIME_R_REWARD_EXPEDITION_MODE_ID;\n }\n\n if ($this->aRRewardExpeditionModes !== null && $this->aRRewardExpeditionModes->getRRewardExpeditionModeId() !== $v) {\n $this->aRRewardExpeditionModes = null;\n }\n\n\n return $this;\n }",
"public function setProductId($product_id){\n $this->product_id = $product_id;\n }",
"public function setCoin(string $cryptoCoin);",
"function setSyncItemsCodeProduct()\n {\n }",
"public function setId($id){\n $this->_id = $id;\n }",
"function setPrice($price)\n {\n $this->price = $price;\n }",
"function setId($id) {\n\t\t$this->setData('id', $id);\n\t}",
"public function setPrimaryKey($key)\n {\n $this->setIDCommande($key);\n }",
"function set_product_sequence($voucher_id, $prod_id, $seq)\n\t{\n\t\t$this->db->where(array('voucher_id'=>$voucher_id, 'product_id'=>$prod_id));\n\t\t$this->db->update('vouchers_products', array('sequence'=>$seq));\n\t}",
"public function setEmpleado_idemp($empleado_idemp){\n $this->empleado_idemp = $empleado_idemp;\n }",
"public function setId($id)\r\n {\r\n $this->data['itemid'] = (int) $id;\r\n }",
"function eZProductCurrency( $id=-1 )\r\n {\r\n if ( $id != -1 )\r\n {\r\n $this->ID = $id;\r\n $this->get( $this->ID );\r\n }\r\n }",
"public function setId($value) {\n\t\tif(!is_numeric($value))\n\t\t\tthrow new \\Exception('Comment::setId() failed: value is not numeric');\n\n\t\t$this->id = $value;\n\t}",
"public function setID($_id) \n \t{\n \t\t$this->_id = $_id;\n \t}",
"public function setPrimaryKey($key)\n\t{\n\t\t$this->setCoNumInventario($key);\n\t}",
"public function setSerialId($v)\n\t{\n\r\n\t\t// Since the native PHP type for this column is integer,\r\n\t\t// we will cast the input value to an int (if it is not).\r\n\t\tif ($v !== null && !is_int($v) && is_numeric($v)) {\r\n\t\t\t$v = (int) $v;\r\n\t\t}\r\n\n\t\tif ($this->serial_id !== $v) {\n\t\t\t$this->serial_id = $v;\n\t\t\t$this->modifiedColumns[] = MmPeer::SERIAL_ID;\n\t\t}\n\n\t\tif ($this->aSerial !== null && $this->aSerial->getId() !== $v) {\n\t\t\t$this->aSerial = null;\n\t\t}\n\n\t}"
] | [
"0.6839967",
"0.60208195",
"0.60208195",
"0.60208195",
"0.5705689",
"0.5243628",
"0.5219914",
"0.52018285",
"0.5145235",
"0.51423347",
"0.5126546",
"0.5126174",
"0.5050896",
"0.5050896",
"0.5050793",
"0.5050793",
"0.5050793",
"0.4979946",
"0.496901",
"0.49682245",
"0.4931932",
"0.48993653",
"0.48628956",
"0.48605067",
"0.48307374",
"0.48250562",
"0.4806762",
"0.47921467",
"0.47448736",
"0.47198683",
"0.47069368",
"0.46688172",
"0.46620798",
"0.4656703",
"0.46340814",
"0.4578619",
"0.45737654",
"0.45704624",
"0.45611233",
"0.45570317",
"0.45453075",
"0.45378086",
"0.45356447",
"0.4527544",
"0.451523",
"0.45142567",
"0.4488477",
"0.44855732",
"0.4483864",
"0.44690436",
"0.4458378",
"0.44445816",
"0.44442996",
"0.44401082",
"0.44381365",
"0.44297236",
"0.44261515",
"0.4419462",
"0.44160828",
"0.4412341",
"0.44082284",
"0.43980327",
"0.43950465",
"0.43941036",
"0.43933898",
"0.4391268",
"0.43908727",
"0.43891546",
"0.43869263",
"0.43832824",
"0.4381523",
"0.43714875",
"0.43684548",
"0.43669644",
"0.43624362",
"0.43537337",
"0.43422636",
"0.43370086",
"0.43345335",
"0.43338254",
"0.433106",
"0.43306935",
"0.43302813",
"0.4329901",
"0.43260565",
"0.43231153",
"0.43223673",
"0.4318859",
"0.4318365",
"0.43153876",
"0.43006763",
"0.43001935",
"0.42930648",
"0.42914608",
"0.42846525",
"0.42816788",
"0.42786166",
"0.42693886",
"0.4268526",
"0.42665097"
] | 0.5227507 | 6 |
setOperationPrimeCurrencyId() Set the value of [operation_prime_r_reward_type_id] column. | public function setOperationPrimeRRewardTypeId($v)
{
if ($v === ''){
$v = null;
}
elseif ($v !== null){
if(is_numeric($v)) {
$v = (int) $v;
}
}
if ($this->operation_prime_r_reward_type_id !== $v) {
$this->operation_prime_r_reward_type_id = $v;
$this->modifiedColumns[] = OperationPrimesPeer::OPERATION_PRIME_R_REWARD_TYPE_ID;
}
if ($this->aRRewardTypes !== null && $this->aRRewardTypes->getRRewardTypeId() !== $v) {
$this->aRRewardTypes = null;
}
return $this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getOperationPrimeRRewardTypeId()\n {\n\n return $this->operation_prime_r_reward_type_id;\n }",
"public function setOperationPrimeCurrencyId($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_numeric($v)) {\n $v = (int) $v;\n }\n }\n if ($this->operation_prime_currency_id !== $v) {\n $this->operation_prime_currency_id = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OPERATION_PRIME_CURRENCY_ID;\n }\n\n if ($this->aRCurrencies !== null && $this->aRCurrencies->getRCurrencyId() !== $v) {\n $this->aRCurrencies = null;\n }\n\n\n return $this;\n }",
"public function getOperationPrimeCurrencyId()\n {\n\n return $this->operation_prime_currency_id;\n }",
"public function setOperationPrimeRRewardExpeditionModeId($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_numeric($v)) {\n $v = (int) $v;\n }\n }\n if ($this->operation_prime_r_reward_expedition_mode_id !== $v) {\n $this->operation_prime_r_reward_expedition_mode_id = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OPERATION_PRIME_R_REWARD_EXPEDITION_MODE_ID;\n }\n\n if ($this->aRRewardExpeditionModes !== null && $this->aRRewardExpeditionModes->getRRewardExpeditionModeId() !== $v) {\n $this->aRRewardExpeditionModes = null;\n }\n\n\n return $this;\n }",
"public function getOperationPrimeRRewardExpeditionModeId()\n {\n\n return $this->operation_prime_r_reward_expedition_mode_id;\n }",
"public function setOperationPrimeRRewardTransporterId($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_numeric($v)) {\n $v = (int) $v;\n }\n }\n if ($this->operation_prime_r_reward_transporter_id !== $v) {\n $this->operation_prime_r_reward_transporter_id = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OPERATION_PRIME_R_REWARD_TRANSPORTER_ID;\n }\n\n if ($this->aRRewardTransporters !== null && $this->aRRewardTransporters->getRRewardTransporterId() !== $v) {\n $this->aRRewardTransporters = null;\n }\n\n\n return $this;\n }",
"public function setId_recette($id_recette)\n {\n $id_recette = (int) $id_recette;\n $this->_id_recette = $id_recette;\n }",
"public function set_scoring_type($scoring_type)\n {\n $this->scoring_type = $scoring_type;\n }",
"public function setOpPrimeId($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_numeric($v)) {\n $v = (int) $v;\n }\n }\n if ($this->op_prime_id !== $v) {\n $this->op_prime_id = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OP_PRIME_ID;\n }\n\n\n return $this;\n }",
"public function setCommissionType($commissionTypeKey)\n\t{\n\t\tif (!array_key_exists($commissionTypeKey, $this->commissionTypes)) {\n\t\t\tthrow new Exception('Commission type \"' . $commissionTypeKey . '\" not registered...', 1);\n\t\t}\n\t\t$this->attributes['commission_type'] = $commissionTypeKey;\n\t}",
"public function getOperationPrimeRRewardTransporterId()\n {\n\n return $this->operation_prime_r_reward_transporter_id;\n }",
"public function setType( Quantifier $type ): void {\n\t\t\t$this->type = $type;\n\t\t}",
"public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME)\n {\n $keys = OperationPrimesPeer::getFieldNames($keyType);\n\n if (array_key_exists($keys[0], $arr)) $this->setOpPrimeId($arr[$keys[0]]);\n if (array_key_exists($keys[1], $arr)) $this->setOpId($arr[$keys[1]]);\n if (array_key_exists($keys[2], $arr)) $this->setOpPrimeLibelle($arr[$keys[2]]);\n if (array_key_exists($keys[3], $arr)) $this->setOpPrimeNumero($arr[$keys[3]]);\n if (array_key_exists($keys[4], $arr)) $this->setGdlArtId($arr[$keys[4]]);\n if (array_key_exists($keys[5], $arr)) $this->setOperationPrimeCurrencyId($arr[$keys[5]]);\n if (array_key_exists($keys[6], $arr)) $this->setOperationPrimeRRewardTypeId($arr[$keys[6]]);\n if (array_key_exists($keys[7], $arr)) $this->setOperationPrimeRRewardExpeditionModeId($arr[$keys[7]]);\n if (array_key_exists($keys[8], $arr)) $this->setOperationPrimeRRewardTransporterId($arr[$keys[8]]);\n if (array_key_exists($keys[9], $arr)) $this->setOperationPrimeFixedAmount($arr[$keys[9]]);\n if (array_key_exists($keys[10], $arr)) $this->setOperationPrimeProductPricePourcentage($arr[$keys[10]]);\n if (array_key_exists($keys[11], $arr)) $this->setOperationPrimeMaximumAmount($arr[$keys[11]]);\n }",
"public function getCurrencyType()\n {\n return $this->hasOne(CurrencyType::className(), ['id' => 'currency_type_id']);\n }",
"private function setType($type)\n\t\t{\n\t\t\tif(is_null($this->type) && is_int($type))\n\t\t\t{\n\t\t\t\t$this->type = $type;\n\t\t\t}\n\t\t\telseif(!is_int($type))\n\t\t\t{\n\t\t\t\tthrow new \\Exception('Statement.setType(): This method only accepts integer values. ' . $type . ' given.');\t\n\t\t\t}\n\t\t}",
"public function setRefundLedgerId($value, $key, $type) {\r\n\t\tif ($type == 'single') {\r\n\t\t\t$this->refundLedgerId = $value;\r\n\t\t} else if ($type == 'array') {\r\n\t\t\t$this->refundLedgerId [$key] = $value;\r\n\t\t} else {\r\n\t\t\techo json_encode(array(\"success\" => false, \"message\" => \"Cannot Identifiy Type String Or Array:setRefundLedgerId ?\"));\r\n\t\t\texit();\r\n\t\t}\r\n\t}",
"public function setId_recette($id) {\n\n\t\t$id = (int) $id;\n\n \tif ($id>0) {\n\n \t\t$this->_id_recette = $id;\n\n \t}\n\n\t}",
"public function saveComponentAssociativeRelationTypeID($typeID): void\n {\n $associativeRelation = $this->getComponentAssociative();\n if ($associativeRelation && $associativeRelation->exists()) {\n $associativeRelation->AssociativeRelationTypeID = $typeID;\n }\n $associativeRelation->write();\n }",
"public function set_type($type) {\n $this->update([\n 'type' => $type\n ]);\n\n $this->type = $type;\n\n // finish configuring this OrderExchange\n $this->sync();\n }",
"public function setPrimaryKey($key)\n {\n $this->setOpPrimeId($key);\n }",
"public function set_type( $type ) {\n\t\t$this->report_type = $type;\n\t\tupdate_comment_meta( $this->id, APP_REPORTS_C_RECIPIENT_TYPE_KEY, $type );\n\t}",
"public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME)\n {\n $pos = OperationPrimesPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM);\n\n $this->setByPosition($pos, $value);\n }",
"public function getOpPrimeId()\n {\n\n return $this->op_prime_id;\n }",
"public function setType_id($type_id)\n {\n $this->type_id = $type_id;\n\n return $this;\n }",
"public function setIdType(string $idType): static;",
"function setResponseType($typeInt=5) {\n\t\t$this->lobSub->responseTypeId = $typeInt;\n\t}",
"public function SetPreferredCurrency(EcommerceCurrency $currency)\n {\n if ($this->owner->exists()) {\n if ($currency && $currency->exists()) {\n $this->owner->PreferredCurrencyID = $currency->ID;\n $this->owner->write();\n }\n }\n }",
"public function setOpId($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_numeric($v)) {\n $v = (int) $v;\n }\n }\n if ($this->op_id !== $v) {\n $this->op_id = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OP_ID;\n }\n\n if ($this->aOperations !== null && $this->aOperations->getOpId() !== $v) {\n $this->aOperations = null;\n }\n\n\n return $this;\n }",
"public function setBaseCurrency(SetBaseCurrencyRequest $request)\n {\n $message = $this->exchange_service->updateUserBaseCurrency(\n auth()->user(),\n $request->base_currency\n )->message;\n return Responser::send(200, [], $message);\n }",
"public function setIdType($idType)\n {\n $this->idType = $idType;\n\n return $this;\n }",
"protected function set_type() {\n\t\t$this->type = 'kirki-color';\n\t}",
"public function setPuntosRecogidaId($data)\n {\n\n if ($this->_puntosRecogidaId != $data) {\n $this->_logChange('puntosRecogidaId');\n }\n\n if ($data instanceof \\Zend_Db_Expr) {\n $this->_puntosRecogidaId = $data;\n } else if (!is_null($data)) {\n $this->_puntosRecogidaId = (int) $data;\n } else {\n $this->_puntosRecogidaId = $data;\n }\n return $this;\n }",
"public function setPoolType($type)\n\t{\n\t\tif ((CPoolLister::POOL_TYPE_CD == $type) || (CPoolLister::POOL_TYPE_DOWNLOAD == $type) || (CPoolLister::POOL_TYPE_USECLIENTDEBS == $type))\n\t\t\treturn($this->setProperty('type', $type));\n\t\telse\n\t\t\tdie('ERROR: Invalid pool type: '.$type);\n\t}",
"public function setid($v)\n {\n if ($v !== null && is_numeric($v)) {\n $v = (int) $v;\n }\n\n if ($this->id !== $v) {\n $this->id = $v;\n $this->modifiedColumns[] = ActionTypePeer::ID;\n }\n\n if ($this->aActionPropertyTypeRelatedByid !== null && $this->aActionPropertyTypeRelatedByid->getactionTypeId() !== $v) {\n $this->aActionPropertyTypeRelatedByid = null;\n }\n\n\n return $this;\n }",
"protected function setType(int $type):void {\r\n\t\t$this->type = $type;\r\n\t}",
"public function setPurchaseRequestId($value, $key, $type) { \n if ($type == 'single') { \n $this->purchaseRequestId = $value;\n return $this;\n } else if ($type == 'array') {\n $this->purchaseRequestId[$key] = $value;\n return $this;\n } else {\n echo json_encode(array(\"success\" => false, \"message\" => \"Cannot Identify Type String Or Array:setpurchaseRequestId?\"));\n exit(); \n }\n }",
"public function setCoinType($var)\n {\n GPBUtil::checkString($var, True);\n $this->coin_type = $var;\n\n return $this;\n }",
"public function setContribuyenteId($data)\n {\n\n if ($this->_contribuyenteId != $data) {\n $this->_logChange('contribuyenteId');\n }\n\n if ($data instanceof \\Zend_Db_Expr) {\n $this->_contribuyenteId = $data;\n } else if (!is_null($data)) {\n $this->_contribuyenteId = (int) $data;\n } else {\n $this->_contribuyenteId = $data;\n }\n return $this;\n }",
"public function setjobTypeId($v)\n {\n if ($v !== null && is_numeric($v)) {\n $v = (int) $v;\n }\n\n if ($this->jobtype_id !== $v) {\n $this->jobtype_id = $v;\n $this->modifiedColumns[] = ActionTypePeer::JOBTYPE_ID;\n }\n\n\n return $this;\n }",
"public function setOperationType(?Win32LobAppPowerShellScriptRuleOperationType $value): void {\n $this->getBackingStore()->set('operationType', $value);\n }",
"public function setCurrencyCode($currencyCode);",
"public function setOpPrimeNumero($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_numeric($v)) {\n $v = (int) $v;\n }\n }\n if ($this->op_prime_numero !== $v) {\n $this->op_prime_numero = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OP_PRIME_NUMERO;\n }\n\n\n return $this;\n }",
"public function setOfferReferenceType($offer_reference_type)\n {\n $this->offer_reference_type = $offer_reference_type;\n }",
"public function setTypeId($type_id)\n {\n $this->type_id = $type_id;\n\n return $this;\n }",
"public function setTypeId($type_id)\n {\n $this->type_id = $type_id;\n\n return $this;\n }",
"public function setTypeId($type_id)\n {\n $this->type_id = $type_id;\n\n return $this;\n }",
"function setCurrencyCode(){\n switch($this->Currency){\n case \"USD\": $this->CurrencyCode = 840;\n break;\n case \"EUR\": $this->CurrencyCode = 978;\n break;\n case \"AUD\": $this->CurrencyCode = 036;\n break;\n case \"CAD\": $this->CurrencyCode = 124;\n break;\n case \"GBP\": $this->CurrencyCode = 826;\n break;\n case \"JPY\": $this->CurrencyCode = 392;\n break;\n }// end switch\n }",
"public function setRelationTypeId($relation_type_id)\n {\n $this->relation_type_id = $relation_type_id;\n\n return $this;\n }",
"public function setKeyType($type);",
"public function set_response_type($response_type)\n\t{\n\t\t$this->response_type = $response_type;\n\t}",
"public function set_response_type($response_type)\n\t{\n\t\t$this->response_type = $response_type;\n\t}",
"public function setTypeProrata(?string $typeProrata): PostesCharge {\n $this->typeProrata = $typeProrata;\n return $this;\n }",
"public function set_type($type){\n // remove unwanted types -> they should not be send from client\n // -> reset keys! otherwise JSON format results in object and not in array\n $type = array_values(array_intersect(array_unique((array)$type), self::$connectionTypeWhitelist));\n\n // set EOL timestamp\n if( !in_array('wh_eol', $type) ){\n $this->eolUpdated = null;\n }elseif(\n in_array('wh_eol', $type) &&\n !in_array('wh_eol', (array)$this->type) // $this->type == null for new connection! (e.g. map import)\n ){\n // connection EOL status change\n $this->touch('eolUpdated');\n }\n\n return $type;\n }",
"public function setClaimType($claimType)\r\n {\r\n if ($claimType == \"repair-warranty\" || $claimType == \"repair-no-warranty\" ||\r\n $claimType == \"repair-no-transaction\")\r\n {\r\n $this->claimType = $claimType;\r\n }\r\n else\r\n {\r\n die(\"<h2> Error - Invaild Claim Type provided for setClaimType() method. Must be ethier repair-warranty, repair-no-warranty or repair-no-transaction.</h2>\");\r\n }\r\n }",
"public function edit(PrizeType $prizeType)\n {\n //\n }",
"public function set_currency($data)\n {\n $required = array(\n 'currency' => 'Currency code not passed',\n );\n $this->di['validator']->checkRequiredParamsForArray($required, $data);\n\n $currencyService = $this->di['mod_service']('currency');\n $currency = $currencyService->getByCode($data['currency']);\n if (!$currency instanceof \\Model_Currency) {\n throw new \\Box_Exception('Currency not found');\n }\n $cart = $this->getService()->getSessionCart();\n\n return $this->getService()->changeCartCurrency($cart, $currency);\n }",
"public function setprescribedTypeId($v)\n {\n if ($v !== null && is_numeric($v)) {\n $v = (int) $v;\n }\n\n if ($this->prescribedtype_id !== $v) {\n $this->prescribedtype_id = $v;\n $this->modifiedColumns[] = ActionTypePeer::PRESCRIBEDTYPE_ID;\n }\n\n\n return $this;\n }",
"public function setTipoId($data)\n {\n if ($this->_logChanges === true && $this->_tipoId != $data) {\n\n $this->_logChange('tipoId');\n }\n\n $this->_tipoId = $data;\n return $this;\n }",
"public function setOfferType($offer_type): void\n {\n if (rex_plugin::get('d2u_machinery', 'used_machines')->isAvailable()) {\n $this->offer_type = $offer_type;\n }\n }",
"public function set_objectType($_objectType)\n {\n $this->_objectType = $_objectType;\n }",
"public function modifierType($type)\r\n {\r\n // Connexion à la base\r\n self::connexionBD();\r\n \r\n // Prépare la requête\r\n $requete = self::getBaseDeDonnees()->getCnxBD()->prepare(self::RQT_MODIFIER_TYPE_UTIL);\r\n \r\n $ok = $requete->execute(array(\r\n ':login' => $this->login,\r\n ':type' => ($type == 'A' ? self::$TYPE_ADMIN : self::$TYPE_USER)\r\n ));\r\n \r\n if ($ok) {\r\n $this->type = $type;\r\n }\r\n \r\n return $ok;\r\n }",
"function setType($type) {\n\t\t$this->_type = $type;\n\t}",
"function setType($type) {\n\t\t$this->_type = $type;\n\t}",
"public function setPaymentType($payment_type){\n $this->payment_type = $payment_type;\n }",
"public function setCurrencyId($var)\n {\n GPBUtil::checkString($var, True);\n $this->currency_id = $var;\n\n return $this;\n }",
"public function setType($type, $agentSchemeNumber) {\n\n $allTypes = $this->getAllTypes();\n foreach($allTypes as $key => $val) {\n switch($val) {\n case 'historicaccount':\n if ($type == Model_Core_Agent_Type::HISTORIC_ACCOUNT) {\n $translatedType = $key;\n break 2;\n }\n break;\n case 'newcustomer':\n if ($type == Model_Core_Agent_Type::NEW_CUSTOMER) {\n $translatedType = $key;\n break 2;\n }\n break;\n case 'returningcustomer':\n if ($type == Model_Core_Agent_Type::RETURNING_CUSTOMER) {\n $translatedType = $key;\n break 2;\n }\n break;\n case 'legalentitychange':\n if ($type == Model_Core_Agent_Type::LEGAL_ENTITY_CHANGE) {\n $translatedType = $key;\n break 2;\n }\n break;\n }\n }\n\n $where = $this->getAdapter()->quoteInto('agentschemeno = ?', $agentSchemeNumber);\n $update = $this->update(array('NEWAGENTTYPELOOKUPID' => $translatedType), $where);\n }",
"public function setTypeCoin($typeCoin)\n {\n $this->typeCoin = $typeCoin;\n\n return $this;\n }",
"public function enrolment_type_change($opType) {\n $args = array(); \n $args['tenant_id'] = $this->tenant_id;\n $args['logged_in_user_id'] = $this->user->user_id;\n $args['individual_user_id'] = $this->input->post('individual_user_id');\n $args['individual_payment_due_id'] = $this->input->post('pymnt_due_id');\n $args['subsidy_amount'] = $this->input->post('subsidy_amount');\n $args['unit_fees'] = $this->input->post('unit_fees');\n $args['comp_invoice_id'] = $this->input->post('comp_invoice_id');\n $args['comp_payment_due_id'] = $this->input->post('comp_pymnt_due_id');\n $args['company_id'] = $this->input->post('company_id');\n $args['comp_gst_rate'] = $this->input->post('comp_gst_rate');\n $args['comp_gst_rule'] = $this->input->post('comp_gst_rule');\n $args['course_id'] = $this->input->post('course_id');\n $args['class_id'] = $this->input->post('class_id');\n ///addded by shubhranshu since the subsidy is not coming during form post to apply the subsidy during invoice cretion\n $subsidy = $this->classtraineemodel->get_individual_enrol_trainees_subsidy($args['tenant_id'],$args['individual_payment_due_id'],$args['individual_user_id']);\n $args['subsidy_amount'] = $subsidy[0]->subsidy_amount;\n ////end --------\n if ($opType == 'mergeInvoice') {\n $status = $this->classtraineemodel->merge_invoice($args);\n if ($status == FALSE) {\n $this->session->set_flashdata(\"error\", \"Unable to move Individual Enrollment to the selected Company Invoice. Please try again later.\");\n } else {\n $this->session->set_flashdata(\"success\", \"Successfully merged Individual Enrollment to the selected Company Invoice.\");\n }\n }\n if ($opType == 'newInvoice') {\n $status = $this->classtraineemodel->new_invoice($args);\n if ($status == FALSE) {\n $this->session->set_flashdata(\"error\", \"Unable to create a new Invoice for the company. Please try again later.\");\n } else {\n $this->session->set_flashdata(\"success\", \"Successfully created a new invoice for the Company.\");\n }\n }\n redirect(\"class_trainee\");\n }",
"public function setquotaTypeId($v)\n {\n if ($v !== null && is_numeric($v)) {\n $v = (int) $v;\n }\n\n if ($this->quotatype_id !== $v) {\n $this->quotatype_id = $v;\n $this->modifiedColumns[] = ActionTypePeer::QUOTATYPE_ID;\n }\n\n\n return $this;\n }",
"public function setType($var)\n {\n GPBUtil::checkEnum($var, \\Google\\Cloud\\DocumentAI\\V1\\Document\\Provenance\\OperationType::class);\n $this->type = $var;\n\n return $this;\n }",
"function set_action_type($action_type='customer')\n\t{\n\t\t$this->action_type = (strtolower($action_type)=='customer') ? 'ACTION_BY_CUSTOMER' : 'ACTION_BY_CONTACT';\n\t}",
"public function setType(RecommendationTypeInterface $type);",
"public function calculateOreTaxValue($type_id, $percent, $contractType): int\n {\n $tax_rate = TaxRate::where('type_id', $type_id)->first();\n\n // If we don't have a stored tax rate for this ore type, queue a job to calculate it.\n if (isset($tax_rate)) {\n // Grab the stored value of this ore.\n $ore_value = $tax_rate->value;\n\n // Calculate what volume of the total ore will be this type.\n $ore_volume = $this->total_ore_volume * $percent / 100;\n\n // Based on the volume of the ore type, how many units does that volume represent.\n $type = Type::find($type_id);\n $units = $ore_volume / $type->volume;\n\n // Base Tax Rate of 10% for individuals and 5% for corporations\n $taxRate = $contractType === Renter::TYPE_CORPORATION ? 5 : 10;\n\n // Addition of previously-taxable value for each ore.\n switch ($type->groupID) {\n case 1884: // Ubiquitous R4\n break;\n case 1920: // Common R8\n $taxRate += 5;\n break;\n case 1921: // Uncommon R16\n $taxRate += 10;\n break;\n case 1922: // Rare R32\n $taxRate += 15;\n break;\n case 1923: // Exceptional R64\n $taxRate += 20;\n break;\n }\n\n // For non-moon ores, apply a 50% discount.\n $discount = (in_array($type->groupID, [1884, 1920, 1921, 1922, 1923])) ? 1 : 0.5;\n\n // Calculate the tax value to be charged for the volume of this ore that can be mined.\n return (int) round($ore_value * $units * $taxRate / 100 * $discount);\n } else {\n // Add a new record for this unknown ore type.\n $tax_rate = new TaxRate;\n $tax_rate->type_id = $type_id;\n $tax_rate->check_materials = 1;\n $tax_rate->value = 0;\n $tax_rate->tax_rate = 7;\n $tax_rate->updated_by = 0;\n $tax_rate->save();\n\n Log::info('CalculateRent: unknown ore ' . $type_id . ' found, new tax rate record created');\n\n // Queue the jobs to update the ore values rather than waiting for the next scheduled job.\n UpdateReprocessedMaterials::dispatch();\n UpdateMaterialValues::dispatch();\n\n return 0;\n }\n }",
"public function setOperationType($operationType) {\r\n $this->_operationType = $operationType;\r\n return $this;\r\n }",
"public function setPriceType(int $priceType)\n {\n $this->priceType = $priceType;\n\n return $this;\n }",
"public function getRelationTypeId()\n {\n return $this->relation_type_id;\n }",
"public function setRequestorID(\\Devlabs91\\TravelgateNotify\\Models\\Ota\\SourceType\\RequestorIDAType $requestorID)\n {\n $this->requestorID = $requestorID;\n return $this;\n }",
"public function getPremiumType(): int\n {\n return $this->premium_type;\n }",
"protected function getTradeType()\n {\n return 'MICROPAY';\n }",
"public function setTypeId($var)\n {\n GPBUtil::checkEnum($var, \\Ydb\\Type\\PrimitiveTypeId::class);\n $this->writeOneof(1, $var);\n\n return $this;\n }",
"public function setGlobalCurrencyCode($code);",
"function editTypeOfRent($data) {\n\t\t\t$conn = $this->connect();\n\t\t\t$tOFr = $this->modify(mysqli_real_escape_string($conn, $data['tOFr']));\n\t\t\t$uid = $_SESSION['userid'];\n\t\t\t$pid = $_SESSION['pid'];\n\t\t\tif(empty($tOFr)) {\n\t\t\t\t$this->re_direct(\"mypost_details\", \"post_id=\".$pid.\"&Empty\");\n\t\t\t} else {\n\t\t\t\tif(preg_match(\"/^[a-z ]+$/i\", $tOFr)) {\n\t\t\t\t\tif($this->length($tOFr, 25, 3)) {\n\t\t\t\t\t\t$result = $this->changepost('newpost', 'post_type_of_Rent', $tOFr, $uid , $pid);\n\t\t\t\t\t\tif($result == true) {\n\t\t\t\t\t\t\t$this->re_direct(\"mypost_details\", \"post_id=\".$pid.\"&Successfully_Changed\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$this->re_direct(\"mypost_details\", \"post_id=\".$pid.\"&Failed!\");\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$this->re_direct(\"mypost_details\", \"post_id=\".$pid.\"&length=tooBigOrSmall\");\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t$this->re_direct(\"mypost_details\", \"post_id=\".$pid.\"&invalid=type\");\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"public function setUserType($type)\n\t{\n\t\t$this->type = $type;\n\t}",
"function setType($type) {\n $this->type = $type;\n }",
"public function setCapabilityType($type = 'post'){\n\t\t$this->capabilityType = $type;\n\t}",
"public function UpdateMoney($id, $type, $money){\n $roles = Yii::app() -> user -> roles;\n $uid = Yii::app() -> user -> id;\n if ($type == 1) {\n $sql = 'UPDATE user SET user_money = user_money + '.$money.' WHERE user_id = '.$id;\n if ($roles = 3) {\n $sql2 = 'UPDATE user SET user_money = user_money - '.$money.' WHERE user_id = '.$uid;\n Yii::app() -> db -> createCommand($sql2) -> execute();\n }\n } else {\n $sql = 'UPDATE user SET user_money = user_money - '.$money.' WHERE user_id = '.$id;\n if ($roles = 3) {\n $sql2 = 'UPDATE user SET user_money = user_money + '.$money.' WHERE user_id = '.$uid;\n Yii::app() -> db -> createCommand($sql2) -> execute();\n }\n }\n\n if (Yii::app() -> db -> createCommand($sql) -> execute()) {\n return true;\n } else {\n return false;\n }\n\t}",
"public function setRoleId($u_r_id) {\n\n $this->u_r_id = $u_r_id;\n\n }",
"public function set_column_type($column_type) {\n\t\t$this->_expat['columnTypes'] = $column_type;\n\t}",
"public function setRCurrencies(RCurrencies $v = null)\n {\n if ($v === null) {\n $this->setOperationPrimeCurrencyId(NULL);\n } else {\n $this->setOperationPrimeCurrencyId($v->getRCurrencyId());\n }\n\n $this->aRCurrencies = $v;\n\n // Add binding for other direction of this n:n relationship.\n // If this object has already been added to the RCurrencies object, it will not be re-added.\n if ($v !== null) {\n $v->addOperationPrimes($this);\n }\n\n\n return $this;\n }",
"public function setPrimaryKey($key)\n {\n $this->setIDCommande($key);\n }",
"public function testSetParcCodeRemorque() {\n\n $obj = new Collaborateurs();\n\n $obj->setParcCodeRemorque(\"parcCodeRemorque\");\n $this->assertEquals(\"parcCodeRemorque\", $obj->getParcCodeRemorque());\n }",
"public function setTypeCom($v)\n {\n if ($v !== null) {\n $v = (int) $v;\n }\n\n if ($this->type_com !== $v) {\n $this->type_com = $v;\n $this->modifiedColumns[AliMemberTableMap::COL_TYPE_COM] = true;\n }\n\n return $this;\n }",
"public function setTypepayementIdAttribute($input)\n {\n $this->attributes['typepayement_id'] = $input ? $input : null;\n }",
"public function getItineraryTypeId()\n {\n return $this->itinerary_type_id;\n }",
"function set_pred_type($name,$type) {\n $pred=$this->get_pred($name);\n if( !$this->write_mode ) {\n $pred['type']=$type;\n $this->pred_cache[$name]=$pred;\n } else if( !is_null($pred['type']) ) {\n if( $pred['type']!=$type ) {\n $this->update_pred($name,$type);\n $old_type=$pred['type'];\n $pred['type']=$type;\n $this->pred_cache[$name]=$pred;\n $list=$this->get_triple_list(array($old_type),null,$name,null,null,null);\n $list->rewind();\n while( $list->valid() ) {\n $triple=$list->current();\n $this->normalize_triple($triple,$old_type);\n $node=$this->get_node($triple['sub']);\n $this->remove_triple_from_node($node,$triple);\n $this->cast_datum($triple['ob'],$old_type,$type);\n if( $type==='node' ) $triple['sub_ok']=$triple['id'];\n else unset( $triple['sub_ok'] );\n $triple['type']=$type;\n $this->add_triple_to_node($node,$triple);\n $this->insert_triple( $triple );\n $this->remove_triple($triple['id'],$old_type);\n $list->next();\n }\n }\n } else {\n $pred['type']=$type;\n $this->insert_pred($name,$type);\n $this->pred_cache[$name]=$pred;\n }\n return $pred;\n }",
"private function setIndicator($type, $indicatorType) {\n $type = strtolower($type);\n $indicatorType = strtolower($indicatorType);\n $func = 'get' . ucfirst($type) . ucfirst($indicatorType) . 'Indicator';\n $indicator = _SUGAR::getGlobalConfiguration()->$func();\n\n $arrayKey = $type . ucfirst($indicatorType);\n if (!array_key_exists($arrayKey, $this->sugarTemplateIndicators)) {\n throw new SugarExecutionException;\n }\n\n $this->sugarTemplateIndicators[$arrayKey] = $indicator !== null ?\n $indicator :\n $this->sugarTemplateIndicators[$arrayKey];\n }",
"public function setType( $type ) {\n\n\t\t$this->type = $type;\n\t}",
"function lb_subscription_set_payment_type($account, $subscription, $payment_type) {\n // The $account that rules passes contains the original information, which may have\n // changed as a result of an action that has run.\n $entity = entity_load_single('user', $account->uid);\n $account_subscription_data = lb_subscription_retrieve_account_subscription_data($entity, $subscription);\n if ($account_subscription_data['delta'] === NULL) {\n lb_subscription_set_subscription($entity, $subscription);\n $entity = entity_load_single('user', $account->uid);\n $account_subscription_data = lb_subscription_retrieve_account_subscription_data($entity, $subscription);\n }\n if ($account_subscription_data['delta'] !== NULL) {\n if ($account_subscription_data['payment_type'] != $payment_type) {\n $entity->field_subscription[LANGUAGE_NONE][$account_subscription_data['delta']]['field_payment_type'] = array(\n LANGUAGE_NONE => array(\n 0 => array(\n 'value' => $payment_type,\n ),\n ),\n );\n entity_save('user', $entity);\n }\n }\n}",
"private function createPromocode($promoType, $userId) {\n if (!is_null($promoType)) {\n $promocode = Promocode::create([\n 'user_id' => $userId,\n 'name' => $promoType->name.''.str_random(5),\n 'type_id' => $promoType->id,\n 'discount' => $promoType->discount,\n 'valid_from' => date('Y-m-d'),\n 'valid_to' => date('Y-m-d', strtotime(' + '.$promoType->period.' days')),\n 'period' => $promoType->period,\n 'treshold' => $promoType->treshold,\n 'to_use' => 0,\n 'times' => $promoType->times,\n 'status' => 'valid',\n 'user_id' => $userId\n ]);\n\n return $promocode;\n }\n }",
"public function setType(int $type)\n {\n $this->type = $type;\n\n return $this;\n }"
] | [
"0.6900251",
"0.5843858",
"0.56379414",
"0.515349",
"0.49355042",
"0.4888926",
"0.4834812",
"0.4783253",
"0.47449628",
"0.46492386",
"0.4648264",
"0.4637516",
"0.45783117",
"0.45426005",
"0.4486766",
"0.44685248",
"0.4450876",
"0.44495705",
"0.44354624",
"0.43686885",
"0.4339969",
"0.42990872",
"0.42693198",
"0.42158294",
"0.4206176",
"0.41926622",
"0.4173605",
"0.4172491",
"0.41575322",
"0.4150592",
"0.4149647",
"0.41387203",
"0.4134357",
"0.41149354",
"0.4114625",
"0.40915498",
"0.40912026",
"0.40855363",
"0.40752026",
"0.4073379",
"0.40606457",
"0.4054723",
"0.40527716",
"0.4048928",
"0.4048928",
"0.4048928",
"0.40478858",
"0.4031278",
"0.40251774",
"0.40160757",
"0.40160757",
"0.40018544",
"0.39932558",
"0.39866272",
"0.39778864",
"0.3977571",
"0.3976771",
"0.39719552",
"0.39713585",
"0.39701724",
"0.3968314",
"0.39623845",
"0.39623845",
"0.39506164",
"0.39472052",
"0.39347574",
"0.39338627",
"0.39338568",
"0.39326102",
"0.39302042",
"0.39072457",
"0.39062464",
"0.39058197",
"0.39006028",
"0.3899443",
"0.3898386",
"0.38974",
"0.38833725",
"0.38794482",
"0.38785955",
"0.38750115",
"0.3870906",
"0.38644496",
"0.38606748",
"0.3859747",
"0.3850387",
"0.38497096",
"0.3848859",
"0.3847623",
"0.38473293",
"0.3846167",
"0.38443118",
"0.38438508",
"0.3843527",
"0.38428268",
"0.38390866",
"0.38380402",
"0.38367596",
"0.38366726",
"0.38356912"
] | 0.68138164 | 1 |
setOperationPrimeRRewardTypeId() Set the value of [operation_prime_r_reward_expedition_mode_id] column. | public function setOperationPrimeRRewardExpeditionModeId($v)
{
if ($v === ''){
$v = null;
}
elseif ($v !== null){
if(is_numeric($v)) {
$v = (int) $v;
}
}
if ($this->operation_prime_r_reward_expedition_mode_id !== $v) {
$this->operation_prime_r_reward_expedition_mode_id = $v;
$this->modifiedColumns[] = OperationPrimesPeer::OPERATION_PRIME_R_REWARD_EXPEDITION_MODE_ID;
}
if ($this->aRRewardExpeditionModes !== null && $this->aRRewardExpeditionModes->getRRewardExpeditionModeId() !== $v) {
$this->aRRewardExpeditionModes = null;
}
return $this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getOperationPrimeRRewardTypeId()\n {\n\n return $this->operation_prime_r_reward_type_id;\n }",
"public function setOperationPrimeRRewardTypeId($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_numeric($v)) {\n $v = (int) $v;\n }\n }\n if ($this->operation_prime_r_reward_type_id !== $v) {\n $this->operation_prime_r_reward_type_id = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OPERATION_PRIME_R_REWARD_TYPE_ID;\n }\n\n if ($this->aRRewardTypes !== null && $this->aRRewardTypes->getRRewardTypeId() !== $v) {\n $this->aRRewardTypes = null;\n }\n\n\n return $this;\n }",
"public function getOperationPrimeRRewardExpeditionModeId()\n {\n\n return $this->operation_prime_r_reward_expedition_mode_id;\n }",
"public function setRRewardExpeditionModes(RRewardExpeditionModes $v = null)\n {\n if ($v === null) {\n $this->setOperationPrimeRRewardExpeditionModeId(NULL);\n } else {\n $this->setOperationPrimeRRewardExpeditionModeId($v->getRRewardExpeditionModeId());\n }\n\n $this->aRRewardExpeditionModes = $v;\n\n // Add binding for other direction of this n:n relationship.\n // If this object has already been added to the RRewardExpeditionModes object, it will not be re-added.\n if ($v !== null) {\n $v->addOperationPrimes($this);\n }\n\n\n return $this;\n }",
"public function setOperationPrimeRRewardTransporterId($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_numeric($v)) {\n $v = (int) $v;\n }\n }\n if ($this->operation_prime_r_reward_transporter_id !== $v) {\n $this->operation_prime_r_reward_transporter_id = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OPERATION_PRIME_R_REWARD_TRANSPORTER_ID;\n }\n\n if ($this->aRRewardTransporters !== null && $this->aRRewardTransporters->getRRewardTransporterId() !== $v) {\n $this->aRRewardTransporters = null;\n }\n\n\n return $this;\n }",
"public function getOperationPrimeRRewardTransporterId()\n {\n\n return $this->operation_prime_r_reward_transporter_id;\n }",
"public function setRRewardTypes(RRewardTypes $v = null)\n {\n if ($v === null) {\n $this->setOperationPrimeRRewardTypeId(NULL);\n } else {\n $this->setOperationPrimeRRewardTypeId($v->getRRewardTypeId());\n }\n\n $this->aRRewardTypes = $v;\n\n // Add binding for other direction of this n:n relationship.\n // If this object has already been added to the RRewardTypes object, it will not be re-added.\n if ($v !== null) {\n $v->addOperationPrimes($this);\n }\n\n\n return $this;\n }",
"public function setEditionId($var)\n {\n GPBUtil::checkString($var, True);\n $this->edition_id = $var;\n }",
"public function setId_recette($id_recette)\n {\n $id_recette = (int) $id_recette;\n $this->_id_recette = $id_recette;\n }",
"public function getRealestateType()\n {\n return $this->hasOne(RealEstateType::className(), ['id' => 'realestate_type_id']);\n }",
"public function setType(RecommendationTypeInterface $type);",
"public function set_scoring_type($scoring_type)\n {\n $this->scoring_type = $scoring_type;\n }",
"public function setModeReglement($modeReglement) {\n $this->modeReglement = $modeReglement;\n return $this;\n }",
"function setInvitationMode($invitation_mode = 0) \n\t{\n\t\t$this->invitation_mode = $invitation_mode;\n }",
"public function getRewardId()\n {\n return $this->reward_id;\n }",
"public function getEditionId()\n {\n return $this->edition_id;\n }",
"public function setjobTypeId($v)\n {\n if ($v !== null && is_numeric($v)) {\n $v = (int) $v;\n }\n\n if ($this->jobtype_id !== $v) {\n $this->jobtype_id = $v;\n $this->modifiedColumns[] = ActionTypePeer::JOBTYPE_ID;\n }\n\n\n return $this;\n }",
"protected function set_type() {\n\n\t\t\t$this->type = 'kirki-editor';\n\n\t\t}",
"public function setRoleId($u_r_id) {\n\n $this->u_r_id = $u_r_id;\n\n }",
"public function setCapabilityType($type = 'post'){\n\t\t$this->capabilityType = $type;\n\t}",
"Public function set_libtypeexp($libtypeexp)\n\t\t{\n\t\t\t$this -> libtypeexp = $libtypeexp;\n\t\t}",
"Public function get_ididtypeexp()\n\t\t{\n\t\t\tReturn $this ->idtypeexp;\n\t\t}",
"public function getRemediationType()\n {\n return $this->remediation_type;\n }",
"function setMode($mode) {\n\t\t$this->_mode = $mode;\n\t}",
"function setMode($mode) {\n\t\t$this->_mode = $mode;\n\t}",
"public function modifierType($type)\r\n {\r\n // Connexion à la base\r\n self::connexionBD();\r\n \r\n // Prépare la requête\r\n $requete = self::getBaseDeDonnees()->getCnxBD()->prepare(self::RQT_MODIFIER_TYPE_UTIL);\r\n \r\n $ok = $requete->execute(array(\r\n ':login' => $this->login,\r\n ':type' => ($type == 'A' ? self::$TYPE_ADMIN : self::$TYPE_USER)\r\n ));\r\n \r\n if ($ok) {\r\n $this->type = $type;\r\n }\r\n \r\n return $ok;\r\n }",
"public function setMode($mode) {\n $this->mode = $mode;\n }",
"public function getRecommenderId()\n {\n return $this->recommender_id;\n }",
"function _exp_mode($mode=NULL){\n $mode = 'exp_' . nz($mode,$this->exp_mode_default);\n return method_exists($this,$mode)?$mode:FALSE;\n }",
"public function getItineraryTypeId()\n {\n return $this->itinerary_type_id;\n }",
"public function getRoleType() {\r\n\t return $this->roleType;\r\n\t}",
"public function getIdModerator()\n {\n return $this->idModerator;\n }",
"public function getModeReglement() {\n return $this->modeReglement;\n }",
"public function setid($v)\n {\n if ($v !== null && is_numeric($v)) {\n $v = (int) $v;\n }\n\n if ($this->id !== $v) {\n $this->id = $v;\n $this->modifiedColumns[] = ActionTypePeer::ID;\n }\n\n if ($this->aActionPropertyTypeRelatedByid !== null && $this->aActionPropertyTypeRelatedByid->getactionTypeId() !== $v) {\n $this->aActionPropertyTypeRelatedByid = null;\n }\n\n\n return $this;\n }",
"public function setMode($mode)\n {\n $this->mode = $mode;\n }",
"public function set_restriction_mode( $mode ) {\n\n\t\tif ( array_key_exists( $mode, $this->get_restriction_modes() ) ) {\n\n\t\t\tupdate_option( $this->restriction_mode_option, $mode );\n\n\t\t\t$this->restriction_mode = $mode;\n\t\t}\n\t}",
"public function SetMode($mode)\n\t{\n\t\t$this->mode = $mode;\n\t}",
"public function getRole()\n {\n return $this->hasOne(ParticulerTypes::className(), ['ID' => 'RoleID']);\n }",
"public function setRemediationType($var)\n {\n GPBUtil::checkEnum($var, \\Google\\Cloud\\AssuredWorkloads\\V1\\Violation\\Remediation\\RemediationType::class);\n $this->remediation_type = $var;\n\n return $this;\n }",
"public function getQuestionnaireTypeId()\n {\n return $this->questionnaire_type_id;\n }",
"function editTypeOfRent($data) {\n\t\t\t$conn = $this->connect();\n\t\t\t$tOFr = $this->modify(mysqli_real_escape_string($conn, $data['tOFr']));\n\t\t\t$uid = $_SESSION['userid'];\n\t\t\t$pid = $_SESSION['pid'];\n\t\t\tif(empty($tOFr)) {\n\t\t\t\t$this->re_direct(\"mypost_details\", \"post_id=\".$pid.\"&Empty\");\n\t\t\t} else {\n\t\t\t\tif(preg_match(\"/^[a-z ]+$/i\", $tOFr)) {\n\t\t\t\t\tif($this->length($tOFr, 25, 3)) {\n\t\t\t\t\t\t$result = $this->changepost('newpost', 'post_type_of_Rent', $tOFr, $uid , $pid);\n\t\t\t\t\t\tif($result == true) {\n\t\t\t\t\t\t\t$this->re_direct(\"mypost_details\", \"post_id=\".$pid.\"&Successfully_Changed\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$this->re_direct(\"mypost_details\", \"post_id=\".$pid.\"&Failed!\");\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$this->re_direct(\"mypost_details\", \"post_id=\".$pid.\"&length=tooBigOrSmall\");\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t$this->re_direct(\"mypost_details\", \"post_id=\".$pid.\"&invalid=type\");\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"public function changeMode ($hdfsPath, $mode)\n {\n if (!is_int($mode))\n {\n throw new Exception\\IllegalArgumentException(\"Integer expected for \\$mode argument. Given: $mode\", false);\n }\n\n $response = $this->web->exec(Method::PUT, $hdfsPath, 'SETPERMISSION', array('permission' => decoct($mode)));\n if ($response->getException())\n {\n throw $this->getException();\n }\n }",
"public function setType( Quantifier $type ): void {\n\t\t\t$this->type = $type;\n\t\t}",
"public function getPremiumType(): int\n {\n return $this->premium_type;\n }",
"public function setTournamentmodeIdAttribute($input)\n {\n $this->attributes['tournamentmode_id'] = $input ? $input : null;\n }",
"public function setMode($mode = 'create')\n {\n $this->mode = $mode;\n }",
"public function setIdType($idType)\n {\n $this->idType = $idType;\n\n return $this;\n }",
"public function set_type( $type ) {\n\t\t$this->report_type = $type;\n\t\tupdate_comment_meta( $this->id, APP_REPORTS_C_RECIPIENT_TYPE_KEY, $type );\n\t}",
"public function setType($type, $reassign = false);",
"function setInvitationAndMode($invitation = 0, $invitation_mode = 0)\n\t{\n\t\t$this->invitation_mode = $invitation_mode;\n\t\t$this->setInvitation($invitation);\n\t}",
"public function setOfferType($offer_type): void\n {\n if (rex_plugin::get('d2u_machinery', 'used_machines')->isAvailable()) {\n $this->offer_type = $offer_type;\n }\n }",
"public function setquotaTypeId($v)\n {\n if ($v !== null && is_numeric($v)) {\n $v = (int) $v;\n }\n\n if ($this->quotatype_id !== $v) {\n $this->quotatype_id = $v;\n $this->modifiedColumns[] = ActionTypePeer::QUOTATYPE_ID;\n }\n\n\n return $this;\n }",
"private function setMode($mode)\n {\n $this->mode = $mode;\n }",
"public function getRelationTypeId()\n {\n return $this->relation_type_id;\n }",
"public function saveReaction($userID, $postID, $type) {\n if($type != REACTION_LIKE && $type != REACTION_DISLIKE && $type != REACTION_NONE)\n return false;\n $exists = $this->doesReactionExist($userID, $postID);\n\n $stmt;\n\n if($type == REACTION_NONE) {\n if(!$exists)\n return true;\n else {\n $stmt = $this->connection->prepare(\"DELETE FROM \".DB_REACTION_TABLE.\" WHERE \".COL_REACTION_USER.\" = ? AND \".COL_REACTION_POST.\" = ?\");\n $stmt->bind_param(\"ii\", $userID, $postID);\n }\n }\n else {\n if($exists)\n $stmt = $this->connection->prepare(\"UPDATE \".DB_REACTION_TABLE.\"\n SET \".COL_REACTION_TYPE.\" = ?\n WHERE \".COL_REACTION_USER.\" = ? AND \".COL_REACTION_POST.\" = ?\");\n else\n $stmt = $this->connection->prepare(\"INSERT INTO \".DB_REACTION_TABLE.\"(\".COL_REACTION_TYPE.\", \".COL_REACTION_USER.\", \".COL_REACTION_POST.\")\n VALUES (?, ?, ?)\");\n $stmt->bind_param(\"iii\", $type, $userID, $postID);\n }\n return $stmt->execute();\n }",
"public function getMode()\n {\n return $this->hasOne(MsMode::className(), ['id' => 'mode_id']);\n }",
"public function setMode(?int $mode): self\n {\n $this->mode = $mode;\n\n return $this;\n }",
"public function getPurchasableEntityTypeId();",
"public function modifierModePaiement($nomModeFR, $nomModeEN, $idModePaiement) {\n $requete = \"UPDATE modePaiement SET nomModeFR = :nFR, nomModeEN = :nEN WHERE idModePaiement = :idM\";\n\t\t\t$requetePreparee = $this -> connexion -> prepare($requete);\n $requetePreparee -> bindParam(\":nFR\", $nomModeFR);\n $requetePreparee -> bindParam(\":nEN\", $nomModeEN);\n $requetePreparee -> bindParam(\":idM\", $idModePaiement);\n $requetePreparee -> execute();\n }",
"public function get_scoring_type()\n {\n return $this->scoring_type;\n }",
"public function edit(PrizeType $prizeType)\n {\n //\n }",
"public function getEntityTypeID()\n\t{\n\t\treturn \\CCrmOwnerType::Deal;\n\t}",
"public function set_type($type) {\n $this->update([\n 'type' => $type\n ]);\n\n $this->type = $type;\n\n // finish configuring this OrderExchange\n $this->sync();\n }",
"public function getEdition(): int\n {\n /** @var WebApplication|ConsoleApplication $this */\n $handle = $this->getProjectConfig()->get('system.edition') ?? 'solo';\n return App::editionIdByHandle($handle);\n }",
"public function setRoleId($RoleId)\n {\n $this->__set(\"role_id\", $RoleId);\n }",
"public function getId_recette()\n {\n return $this->_id_recette;\n }",
"public function mode($mode, $ident, $options = array()) {\n if ($mode == 'value' && is_integer($ident)) {\n $ident = $this->field_name($ident);\n }\n $this->mode = $mode;\n $this->mode_ident = $ident;\n $this->mode_options = $options;\n return $this;\n }",
"function setResponseType($typeInt=5) {\n\t\t$this->lobSub->responseTypeId = $typeInt;\n\t}",
"public function setIterationMode(int $mode);",
"private function setMode() {\r\n\t\t$this->mode = substr($this->mode, -1);\r\n\t}",
"public function setIdType(string $idType): static;",
"public function setMode($mode) {\n\t\t$editMode = ($mode==\"on\")?true:false;\n\t\t//SessionUtils::setMessageEditionMode($editMode);\n\t\tif ($editMode) {\n\t\t\t$_SESSION[\"FINE_MESSAGE_EDITION_MODE\"] = true;\n\t\t\t$this->isMessageEditionMode = true;\n\t\t} else {\n\t\t\tunset($_SESSION[\"FINE_MESSAGE_EDITION_MODE\"]);\n\t\t}\n\n\t\t$this->content->addFile('../utils.i18n.fine/src/views/enableDisableEdition.php', $this);\n\t\t$this->template->toHtml();\n\t}",
"public function experienceTypeName(): string\n {\n return 'experience_award';\n }",
"public function getRRewardExpeditionModes(PropelPDO $con = null, $doQuery = true)\n {\n if ($this->aRRewardExpeditionModes === null && ($this->operation_prime_r_reward_expedition_mode_id !== null) && $doQuery) {\n $this->aRRewardExpeditionModes = RRewardExpeditionModesQuery::create()->findPk($this->operation_prime_r_reward_expedition_mode_id, $con);\n /* The following can be used additionally to\n guarantee the related object contains a reference\n to this object. This level of coupling may, however, be\n undesirable since it could result in an only partially populated collection\n in the referenced object.\n $this->aRRewardExpeditionModes->addOperationPrimess($this);\n */\n }\n\n return $this->aRRewardExpeditionModes;\n }",
"public static function mode($mode) {\n static::$mode = $mode;\n }",
"public function setTypeOrga(?string $typeOrga): RetraitesEmp {\n $this->typeOrga = $typeOrga;\n return $this;\n }",
"public function edit(ExpenceManagement $expenceManagement) {\n\t\t//\n\t}",
"function set_post_type($post_id = 0, $post_type = 'post')\n {\n }",
"public function setRequestorID(\\Devlabs91\\TravelgateNotify\\Models\\Ota\\SourceType\\RequestorIDAType $requestorID)\n {\n $this->requestorID = $requestorID;\n return $this;\n }",
"public function setType($var)\n {\n GPBUtil::checkEnum($var, \\Eolymp\\Executor\\Interactor_Type::class);\n $this->type = $var;\n\n return $this;\n }",
"public function testSetIdRecap() {\n\n $obj = new EmpRecapCodePenibilite();\n\n $obj->setIdRecap(10);\n $this->assertEquals(10, $obj->getIdRecap());\n }",
"public function setType_id($type_id)\n {\n $this->type_id = $type_id;\n\n return $this;\n }",
"protected function _getEdition()\n {\n $edition = self::TYPE_COMMUNITY;\n\n if (method_exists('Mage', 'getEdition')) {\n $edition = Mage::getEdition();\n } else {\n $dir = Mage::getBaseDir('code') . DS . 'core' . DS . self::TYPE_ENTERPRISE;\n if (file_exists($dir)) {\n $edition = self::TYPE_ENTERPRISE;\n }\n }\n\n return $edition;\n }",
"public function setId_recette($id) {\n\n\t\t$id = (int) $id;\n\n \tif ($id>0) {\n\n \t\t$this->_id_recette = $id;\n\n \t}\n\n\t}",
"public function set_theme_mode($mode)\n {\n clearos_profile(__METHOD__, __LINE__);\n\n $this->_set_parameter('theme_mode', $mode);\n }",
"public function set_response_type($response_type)\n\t{\n\t\t$this->response_type = $response_type;\n\t}",
"public function set_response_type($response_type)\n\t{\n\t\t$this->response_type = $response_type;\n\t}",
"public function setType(){\n switch($this->security){\n case 'H':\n case 'L':\n case '0.0':\n $typeId = 2; // k-space\n break;\n case 'A':\n $typeId = 3; // a-space\n break;\n default:\n $typeId = 1; // w-space\n }\n\n /**\n * @var $type MapTypeModel\n */\n $type = $this->rel('typeId');\n $type->getById($typeId);\n $this->typeId = $type;\n }",
"public function mode($mode = null)\n {\n if (func_num_args() === 0) {\n return $this->_mode;\n }\n $this->_mode = $mode;\n return $this;\n }",
"public function setTypeID($value) {\n\t\t$this->_type_id = $value;\n\t}",
"public function setType(EntityType $type);",
"public function setprescribedTypeId($v)\n {\n if ($v !== null && is_numeric($v)) {\n $v = (int) $v;\n }\n\n if ($this->prescribedtype_id !== $v) {\n $this->prescribedtype_id = $v;\n $this->modifiedColumns[] = ActionTypePeer::PRESCRIBEDTYPE_ID;\n }\n\n\n return $this;\n }",
"public function getRateSetId();",
"public function set_typeNum()\n {\n // init the map\n $this->initVarTypeNum();\n }",
"function setMode($value) {\r\n\t\t$this->mode = $value;\r\n\t}",
"function setMode($mode)\n {\n $this->mode = $mode;\n $this->determineRequiredPermission();\n }",
"public function declineMentorshipSession($mentorshipSessionId, $role, $id, $email) {\n $statusToSet = -1;\n $invitedPerson = null;\n $mentorshipSession = $this->getMentorshipSession($mentorshipSessionId);\n if($role === 'mentee') {\n $invitedPerson = $mentorshipSession->mentee;\n // set to cancelled by mentee if mentor has accepted or not responded yet\n if(in_array($mentorshipSession->status_id, [2, 4]) !== false)\n $statusToSet = 12;\n } else if($role === 'mentor') {\n $invitedPerson = $mentorshipSession->mentor;\n // set to cancelled by mentor if mentee has accepted or not responded yet\n if(in_array($mentorshipSession->status_id, [2, 3]) !== false)\n $statusToSet = 13;\n }\n if($statusToSet !== -1 && $invitedPerson->id == $id && $invitedPerson->email === $email) {\n $this->editMentorshipSession([\n 'status_id' => $statusToSet, 'mentorship_session_id' => $mentorshipSessionId\n ]);\n // if session is cancelled by mentee make available only the mentor and set the mentee's status to rejected,\n // else if session is cancelled by mentor make the mentor unavailable\n // else make both available\n if($statusToSet === 12) {\n $this->setMentorshipSessionMentorStatusToAvailable($mentorshipSession->mentor->id);\n $this->setMentorshipSessionMenteeStatusToRejected($mentorshipSession->mentee->id);\n } else if($statusToSet === 13) {\n $this->setMentorshipSessionMentorStatusToNotAvailable($mentorshipSession->mentor->id);\n $this->setMentorshipSessionMenteeStatusToAvailable($mentorshipSession->mentee->id);\n } else { // TODO: this was created when the account manager could decline to manage a match (maybe we do not need it anymore)\n $this->setMentorshipSessionMentorAndMenteeStatusesToAvailable(\n $mentorshipSession->mentor->id, $mentorshipSession->mentee->id\n );\n }\n return true;\n } else {\n return false;\n }\n }",
"public function setRole_type($role_type)\r\n {\r\n $this->role_type = $role_type;\r\n\r\n return $this;\r\n }",
"public function saveMode(string $mode)\n {\n //Change config options\n $this->configWriter->saveConfig(self::XML_PATH_PRICE_DIMENSIONS_MODE, $mode);\n $this->cacheTypeList->cleanType('config');\n $this->indexer->load(\\Magento\\Catalog\\Model\\Indexer\\Product\\Price\\Processor::INDEXER_ID);\n $this->indexer->invalidate();\n }",
"public function setMode($mode)\n {\n if (in_array($mode, $this->modeList)) {\n $this->mode = $mode;\n }\n\n return $this;\n }"
] | [
"0.7443806",
"0.73403597",
"0.6827839",
"0.54008335",
"0.51500875",
"0.5070538",
"0.494101",
"0.47648963",
"0.46209627",
"0.46025646",
"0.46007937",
"0.45334876",
"0.4498359",
"0.4497985",
"0.449111",
"0.44662094",
"0.4437562",
"0.44025066",
"0.4369907",
"0.43668762",
"0.4356698",
"0.43411896",
"0.42914456",
"0.42767626",
"0.42767626",
"0.42683855",
"0.42669663",
"0.42437756",
"0.42273664",
"0.4225402",
"0.42103425",
"0.41998446",
"0.41988915",
"0.41913038",
"0.418185",
"0.41765144",
"0.41719028",
"0.41686714",
"0.41663638",
"0.4158809",
"0.4152947",
"0.41453812",
"0.41262498",
"0.4126191",
"0.41225398",
"0.41182134",
"0.4096259",
"0.4096158",
"0.40892604",
"0.40881392",
"0.40874428",
"0.40826848",
"0.40782684",
"0.40608752",
"0.40456533",
"0.4034074",
"0.40256393",
"0.40235448",
"0.40226826",
"0.40208378",
"0.4018202",
"0.40146774",
"0.40059817",
"0.4002349",
"0.39931715",
"0.3973601",
"0.39717725",
"0.39668337",
"0.39641443",
"0.39501205",
"0.39500126",
"0.39460164",
"0.39457366",
"0.39456356",
"0.39351135",
"0.39334214",
"0.39308676",
"0.39287814",
"0.39284602",
"0.39276206",
"0.3925537",
"0.39239603",
"0.39194444",
"0.391818",
"0.39092085",
"0.39076906",
"0.39076906",
"0.39074472",
"0.39070025",
"0.38883483",
"0.38865322",
"0.38801888",
"0.38774136",
"0.38752466",
"0.38727742",
"0.38663656",
"0.38633755",
"0.38622573",
"0.385698",
"0.38409913"
] | 0.6797375 | 3 |
setOperationPrimeRRewardExpeditionModeId() Set the value of [operation_prime_r_reward_transporter_id] column. | public function setOperationPrimeRRewardTransporterId($v)
{
if ($v === ''){
$v = null;
}
elseif ($v !== null){
if(is_numeric($v)) {
$v = (int) $v;
}
}
if ($this->operation_prime_r_reward_transporter_id !== $v) {
$this->operation_prime_r_reward_transporter_id = $v;
$this->modifiedColumns[] = OperationPrimesPeer::OPERATION_PRIME_R_REWARD_TRANSPORTER_ID;
}
if ($this->aRRewardTransporters !== null && $this->aRRewardTransporters->getRRewardTransporterId() !== $v) {
$this->aRRewardTransporters = null;
}
return $this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getOperationPrimeRRewardExpeditionModeId()\n {\n\n return $this->operation_prime_r_reward_expedition_mode_id;\n }",
"public function setOperationPrimeRRewardExpeditionModeId($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_numeric($v)) {\n $v = (int) $v;\n }\n }\n if ($this->operation_prime_r_reward_expedition_mode_id !== $v) {\n $this->operation_prime_r_reward_expedition_mode_id = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OPERATION_PRIME_R_REWARD_EXPEDITION_MODE_ID;\n }\n\n if ($this->aRRewardExpeditionModes !== null && $this->aRRewardExpeditionModes->getRRewardExpeditionModeId() !== $v) {\n $this->aRRewardExpeditionModes = null;\n }\n\n\n return $this;\n }",
"public function getOperationPrimeRRewardTransporterId()\n {\n\n return $this->operation_prime_r_reward_transporter_id;\n }",
"public function getOperationPrimeRRewardTypeId()\n {\n\n return $this->operation_prime_r_reward_type_id;\n }",
"public function getEditionId()\n {\n return $this->edition_id;\n }",
"public function setEditionId($var)\n {\n GPBUtil::checkString($var, True);\n $this->edition_id = $var;\n }",
"public function setRRewardExpeditionModes(RRewardExpeditionModes $v = null)\n {\n if ($v === null) {\n $this->setOperationPrimeRRewardExpeditionModeId(NULL);\n } else {\n $this->setOperationPrimeRRewardExpeditionModeId($v->getRRewardExpeditionModeId());\n }\n\n $this->aRRewardExpeditionModes = $v;\n\n // Add binding for other direction of this n:n relationship.\n // If this object has already been added to the RRewardExpeditionModes object, it will not be re-added.\n if ($v !== null) {\n $v->addOperationPrimes($this);\n }\n\n\n return $this;\n }",
"public function setOperationPrimeRRewardTypeId($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_numeric($v)) {\n $v = (int) $v;\n }\n }\n if ($this->operation_prime_r_reward_type_id !== $v) {\n $this->operation_prime_r_reward_type_id = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OPERATION_PRIME_R_REWARD_TYPE_ID;\n }\n\n if ($this->aRRewardTypes !== null && $this->aRRewardTypes->getRRewardTypeId() !== $v) {\n $this->aRRewardTypes = null;\n }\n\n\n return $this;\n }",
"public function getRecommenderId()\n {\n return $this->recommender_id;\n }",
"public function setId_recette($id_recette)\n {\n $id_recette = (int) $id_recette;\n $this->_id_recette = $id_recette;\n }",
"public function getEncuestaRecepcionid()\r\n {\r\n return $this->encuesta_recepcionId;\r\n }",
"public function getIdModerator()\n {\n return $this->idModerator;\n }",
"function setERCId($ercId) {\n\t\treturn $this->setData('ercId', $ercId);\n\t}",
"public function getReverseEngineeringDecryptorID()\n {\n return $this->reverseEngineeringDecryptorID;\n }",
"public function getExpedienteId() {\n return $this->expedienteId;\n }",
"private function getRetailerId()\n {\n $retailerId = null;\n if ($this->currentStore->getRetailer() && $this->currentStore->getRetailer()->getId()) {\n $retailerId = (int) $this->currentStore->getRetailer()->getId();\n }\n\n return $retailerId;\n }",
"public function getOfferSellerId()\n {\n return $this->offer_seller_id;\n }",
"public function getId_recette()\n {\n return $this->_id_recette;\n }",
"public function setId_recette($id) {\n\n\t\t$id = (int) $id;\n\n \tif ($id>0) {\n\n \t\t$this->_id_recette = $id;\n\n \t}\n\n\t}",
"function setInvitationMode($invitation_mode = 0) \n\t{\n\t\t$this->invitation_mode = $invitation_mode;\n }",
"function setEditableManufacturerID($epmid)\n {\n// if ($this->isCorrectManufacturerId($epmid))\n// {\n $this->editableManufacturerID = $epmid;\n// }\n }",
"public function getEvenementId()\n {\n return $this->evenement_id;\n }",
"public function getRewardId()\n {\n return $this->reward_id;\n }",
"public function getPartnerId()\n {\n return $this->partner_id;\n }",
"public function getPartnerId()\n {\n return $this->partner_id;\n }",
"public function get_peducator_id() {\n\t\treturn $this->peducator_id;\n\t}",
"public function getPartnerHotelId()\n {\n return $this->partner_hotel_id;\n }",
"public function getIdFornecedor() {\n return $this->IdFornecedor;\n }",
"public function getRelaterId()\n {\n $value = $this->get(self::RELATER_ID);\n return $value === null ? (integer)$value : $value;\n }",
"public function editionMode() {\n\t\tif (isset($_SESSION[\"FINE_MESSAGE_EDITION_MODE\"])) {\n\t\t\t$this->isMessageEditionMode = true;\n\t\t}\n\t\t$this->content->addFile('../utils.i18n.fine/src/views/enableDisableEdition.php', $this);\n\t\t$this->template->toHtml();\n\t}",
"public function setCodeEtablissement(?int $codeEtablissement): DadsuEtablissementsRectif {\n $this->codeEtablissement = $codeEtablissement;\n return $this;\n }",
"public function getId_fornecedor()\n {\n return $this->id_fornecedor;\n }",
"public function getInteresseId()\n {\n return $this->interesseId;\n }",
"public function getPartnerId()\n {\n return self::$partnerId;\n }",
"public function getERSPUserID()\n {\n return $this->eRSPUserID;\n }",
"function getERCId() {\n\t\treturn $this->getData('ercId');\n\t}",
"public function getIdFormerApprover()\n {\n return $this->idFormerApprover;\n }",
"public function setOpId($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_numeric($v)) {\n $v = (int) $v;\n }\n }\n if ($this->op_id !== $v) {\n $this->op_id = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OP_ID;\n }\n\n if ($this->aOperations !== null && $this->aOperations->getOpId() !== $v) {\n $this->aOperations = null;\n }\n\n\n return $this;\n }",
"public function getOpPrimeId()\n {\n\n return $this->op_prime_id;\n }",
"public function setRRewardTransporters(RRewardTransporters $v = null)\n {\n if ($v === null) {\n $this->setOperationPrimeRRewardTransporterId(NULL);\n } else {\n $this->setOperationPrimeRRewardTransporterId($v->getRRewardTransporterId());\n }\n\n $this->aRRewardTransporters = $v;\n\n // Add binding for other direction of this n:n relationship.\n // If this object has already been added to the RRewardTransporters object, it will not be re-added.\n if ($v !== null) {\n $v->addOperationPrimes($this);\n }\n\n\n return $this;\n }",
"public function getRequestorID()\n {\n return $this->requestorID;\n }",
"public function setTournamentmodeIdAttribute($input)\n {\n $this->attributes['tournamentmode_id'] = $input ? $input : null;\n }",
"public function declineMentorshipSession($mentorshipSessionId, $role, $id, $email) {\n $statusToSet = -1;\n $invitedPerson = null;\n $mentorshipSession = $this->getMentorshipSession($mentorshipSessionId);\n if($role === 'mentee') {\n $invitedPerson = $mentorshipSession->mentee;\n // set to cancelled by mentee if mentor has accepted or not responded yet\n if(in_array($mentorshipSession->status_id, [2, 4]) !== false)\n $statusToSet = 12;\n } else if($role === 'mentor') {\n $invitedPerson = $mentorshipSession->mentor;\n // set to cancelled by mentor if mentee has accepted or not responded yet\n if(in_array($mentorshipSession->status_id, [2, 3]) !== false)\n $statusToSet = 13;\n }\n if($statusToSet !== -1 && $invitedPerson->id == $id && $invitedPerson->email === $email) {\n $this->editMentorshipSession([\n 'status_id' => $statusToSet, 'mentorship_session_id' => $mentorshipSessionId\n ]);\n // if session is cancelled by mentee make available only the mentor and set the mentee's status to rejected,\n // else if session is cancelled by mentor make the mentor unavailable\n // else make both available\n if($statusToSet === 12) {\n $this->setMentorshipSessionMentorStatusToAvailable($mentorshipSession->mentor->id);\n $this->setMentorshipSessionMenteeStatusToRejected($mentorshipSession->mentee->id);\n } else if($statusToSet === 13) {\n $this->setMentorshipSessionMentorStatusToNotAvailable($mentorshipSession->mentor->id);\n $this->setMentorshipSessionMenteeStatusToAvailable($mentorshipSession->mentee->id);\n } else { // TODO: this was created when the account manager could decline to manage a match (maybe we do not need it anymore)\n $this->setMentorshipSessionMentorAndMenteeStatusesToAvailable(\n $mentorshipSession->mentor->id, $mentorshipSession->mentee->id\n );\n }\n return true;\n } else {\n return false;\n }\n }",
"protected function setFundraiserId()\n {\n if ( ! isset( $_POST['fundraiser'] ) ) {\n $this->error = true;\n $this->data['error']['fundraiser'] = 'Please select a fundraiser.';\n return false;\n }\n \n $id = trim( $_POST['fundraiser'] );\n \n if ( ! $this->users->isUser( $id ) ) {\n $this->error = true;\n $this->data['error']['fundraiser'] = 'Please select an existing fundraiser.';\n return false;\n }\n \n $this->data['fundraiser'] = $id;\n return true;\n }",
"public function getIdExchange()\n {\n return $this->id_exchange;\n }",
"public function setIdModerator($idModerator)\n {\n $this->idModerator = $idModerator;\n\n return $this;\n }",
"public function setDiscoveryMode(\n $discovererId,\n $mode,\n array $body = null\n )\n {\n return $this->_SetDiscoveryMode_operation->call([\n 'discovererId' => $discovererId,\n 'mode' => $mode,\n 'body' => $body\n ]);\n }",
"public function getIdEspece()\n {\n return $this->idEspece;\n }",
"public function getIdEspece()\n {\n return $this->idEspece;\n }",
"public function setIdFornecedor($IdFornecedor) {\n $this->IdFornecedor = $IdFornecedor;\n }",
"public function setRelaterId($value)\n {\n return $this->set(self::RELATER_ID, $value);\n }",
"public function getEdition(): int\n {\n /** @var WebApplication|ConsoleApplication $this */\n $handle = $this->getProjectConfig()->get('system.edition') ?? 'solo';\n return App::editionIdByHandle($handle);\n }",
"public function setOpPrimeId($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_numeric($v)) {\n $v = (int) $v;\n }\n }\n if ($this->op_prime_id !== $v) {\n $this->op_prime_id = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OP_PRIME_ID;\n }\n\n\n return $this;\n }",
"public function setId_fornecedor($id_fornecedor)\n {\n $this->id_fornecedor = $id_fornecedor;\n\n return $this;\n }",
"function setReviewerId($reviewerId) {\n\t\t$this->setData('reviewerId', $reviewerId);\n\t}",
"public function setPartnerId($var)\n {\n GPBUtil::checkString($var, True);\n $this->partner_id = $var;\n }",
"public function setPartnerId($var)\n {\n GPBUtil::checkString($var, True);\n $this->partner_id = $var;\n }",
"public function setMode($mode) {\n\t\t$editMode = ($mode==\"on\")?true:false;\n\t\t//SessionUtils::setMessageEditionMode($editMode);\n\t\tif ($editMode) {\n\t\t\t$_SESSION[\"FINE_MESSAGE_EDITION_MODE\"] = true;\n\t\t\t$this->isMessageEditionMode = true;\n\t\t} else {\n\t\t\tunset($_SESSION[\"FINE_MESSAGE_EDITION_MODE\"]);\n\t\t}\n\n\t\t$this->content->addFile('../utils.i18n.fine/src/views/enableDisableEdition.php', $this);\n\t\t$this->template->toHtml();\n\t}",
"public function getId() {\n return($this->{Foomy_Model_Role_Peer::F_ID});\n }",
"public function setExcavateId($value)\n {\n return $this->set(self::_EXCAVATE_ID, $value);\n }",
"public function setRequestorId(?string $value): void {\n $this->getBackingStore()->set('requestorId', $value);\n }",
"public function getModeReglement() {\n return $this->modeReglement;\n }",
"public function modifierModePaiement($nomModeFR, $nomModeEN, $idModePaiement) {\n $requete = \"UPDATE modePaiement SET nomModeFR = :nFR, nomModeEN = :nEN WHERE idModePaiement = :idM\";\n\t\t\t$requetePreparee = $this -> connexion -> prepare($requete);\n $requetePreparee -> bindParam(\":nFR\", $nomModeFR);\n $requetePreparee -> bindParam(\":nEN\", $nomModeEN);\n $requetePreparee -> bindParam(\":idM\", $idModePaiement);\n $requetePreparee -> execute();\n }",
"public function setModeReglement($modeReglement) {\n $this->modeReglement = $modeReglement;\n return $this;\n }",
"public function setIdFormerApprover($idFormerApprover)\n {\n $this->idFormerApprover = $idFormerApprover;\n return $this;\n }",
"function setInvitationAndMode($invitation = 0, $invitation_mode = 0)\n\t{\n\t\t$this->invitation_mode = $invitation_mode;\n\t\t$this->setInvitation($invitation);\n\t}",
"function getIdEquipe() {\r\n return $this->IdEquipe;\r\n }",
"public function declineMentorshipSession($mentorshipSessionId, $role, $id, $email) {\n $statusToSet = -1;\n $invitedPerson = null;\n $mentorshipSession = $this->getMentorshipSession($mentorshipSessionId);\n if($role === 'mentee') {\n $invitedPerson = $mentorshipSession->mentee;\n // set to cancelled by mentee if mentor has accepted or not responded yet\n if(in_array($mentorshipSession->status_id, [2, 4]) !== false)\n $statusToSet = 12;\n } else if($role === 'mentor') {\n $invitedPerson = $mentorshipSession->mentor;\n // set to cancelled by mentor if mentee has accepted or not responded yet\n if(in_array($mentorshipSession->status_id, [2, 3]) !== false)\n $statusToSet = 13;\n }\n if($statusToSet !== -1 && $invitedPerson->id == $id && $invitedPerson->email === $email) {\n $this->editMentorshipSession([\n 'status_id' => $statusToSet, 'mentorship_session_id' => $mentorshipSessionId\n ]);\n //mentor and mentee should become available again\n $this->setMentorshipSessionMentorAndMenteeStatusesToAvailable($mentorshipSession->mentor->id, $mentorshipSession->mentee->id);\n return true;\n } else {\n return false;\n }\n }",
"public function setChallongeParticipantId()\n {\n $challonge = new Challonge(env('CHALLONGE_API_KEY'));\n $tournament = $challonge->getTournament($this->eventTournament->challonge_tournament_id);\n if (!$response = $tournament->addParticipant(['participant[name]' => $this->name])) {\n return false;\n }\n $this->challonge_participant_id = $response->id;\n $this->save();\n return true;\n }",
"public function getProductOptionId();",
"public function setPartieId($v)\n\t{\n\t\tif ($v !== null) {\n\t\t\t$v = (int) $v;\n\t\t}\n\n\t\tif ($this->partie_id !== $v) {\n\t\t\t$this->partie_id = $v;\n\t\t\t$this->modifiedColumns[] = PostPeer::PARTIE_ID;\n\t\t}\n\n\t\tif ($this->aPartie !== null && $this->aPartie->getId() !== $v) {\n\t\t\t$this->aPartie = null;\n\t\t}\n\n\t\treturn $this;\n\t}",
"function _set_treated_expedition_extrafield($idexpe, $shipmentEntity) {\n\tglobal $db, $user, $conf;\n\n\t$sql = \"select entity from \".MAIN_DB_PREFIX.\"expedition where rowid =\".$idexpe;\n\t$re = $db->query($sql);\n $obj = $db->fetch_object($re);\n\n // var_dump($obj->entity);\n\n // var_dump($conf->entity,$shipmentEntity);\n\t$backEntity = $conf->entity;\n\n\t$conf->entity = $obj->entity;\n\n\n\t$currentExp = new Expedition($db);\n\t$res = $currentExp->fetch(intval($idexpe));\n\n\n\n // var_dump($conf->entity, $res, $idexpe);exit();\n\n\t$extra = new ExtraFields($db);\n\t$resultExtra = $extra->fetch_name_optionals_label($currentExp->table_element);\n\t//var_dump($resultExtra);exit();\n\tif($resultExtra) {\n\t\t$currentExp->array_options['options_customer_treated_shipment'] = 1;\n\t\t$currentExp->updateExtraField('customer_treated_shipment');\n\t}else {\n\t\tdol_syslog(__METHOD__.' $resultExtra='.var_export($resultExtra,true), LOG_ERR);\n\t}\n\n\t$conf->entity = $backEntity;\n //var_dump($conf->entity);exit();\n}",
"function initialiserId()\n {\n if(empty($this->m_idOption))\n {\n $requete = 'SELECT idOption FROM optionHotel WHERE libelleOption=? AND prixOption=?';\n $tabParametres = array($this->m_libelleOption, $this->m_prixOption);\n $tabResultat = $this->m_bdd->selection($requete, $tabParametres);\n $this->m_idOption = $tabResultat[0]['idOption']; \n }\n }",
"public function getEdition() {\n return $this->edition;\n }",
"public function getParcelId()\n {\n return $this->parcelId;\n }",
"public function getParcelId()\n {\n return $this->parcelId;\n }",
"public function getRepairId()\n {\n return $this->repair_id;\n }",
"public function getOperationPrimeCurrencyId()\n {\n\n return $this->operation_prime_currency_id;\n }",
"public function setEdition($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->edition !== $v) {\n $this->edition = $v;\n $this->modifiedColumns[BiblioTableMap::COL_EDITION] = true;\n }\n\n return $this;\n }",
"public function setRoleId($u_r_id) {\n\n $this->u_r_id = $u_r_id;\n\n }",
"public function getEdition()\n {\n return $this->edition;\n }",
"public function getReviewId() {\n\t\t\t\treturn ($this->reviewId);\n\t\t\t}",
"public function getRoleIdFk()\n {\n return $this->roleIdFk;\n }",
"public function getEid() {\n return $this->eid;\n }",
"public function getTMode()\n {\n return $this->transport_fk;\n }",
"public function getEdition() {\n\t\tif ($this->_edition === null) {\n\t\t\t$this->analyzeURL();\n\t\t}\n\t\treturn $this->_edition;\n\t}",
"public function getReviewId() : ?int {\n\t\treturn ($this->reviewId);\n\t}",
"public function getResourceAgentId()\n\t{\n\t\treturn 4;\n\t}",
"function getId_preceptor()\n {\n if (!isset($this->iid_preceptor) && !$this->bLoaded) {\n $this->DBCarregar();\n }\n return $this->iid_preceptor;\n }",
"function getId_preceptor()\n {\n if (!isset($this->iid_preceptor) && !$this->bLoaded) {\n $this->DBCarregar();\n }\n return $this->iid_preceptor;\n }",
"public function getEmployeeId()\n {\n return $this->employee_id;\n }",
"public function recupereMaxId()\n {\n return $this->getGreaterId('membre_jury');\n }",
"public function setERSPUserID($eRSPUserID)\n {\n $this->eRSPUserID = $eRSPUserID;\n return $this;\n }",
"public function edit(Marketer $marketer)\n {\n //\n }",
"public function setIdPROVEEDORES($idPROVEEDORES){\n $this->idPROVEEDORES = $idPROVEEDORES;\n }",
"public function getCodeEtablissement(): ?int {\n return $this->codeEtablissement;\n }",
"public function getCodeEtablissement(): ?int {\n return $this->codeEtablissement;\n }",
"public function testSetIdRecap() {\n\n $obj = new EmpRecapCodePenibilite();\n\n $obj->setIdRecap(10);\n $this->assertEquals(10, $obj->getIdRecap());\n }",
"public function setOperationPrimeCurrencyId($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_numeric($v)) {\n $v = (int) $v;\n }\n }\n if ($this->operation_prime_currency_id !== $v) {\n $this->operation_prime_currency_id = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OPERATION_PRIME_CURRENCY_ID;\n }\n\n if ($this->aRCurrencies !== null && $this->aRCurrencies->getRCurrencyId() !== $v) {\n $this->aRCurrencies = null;\n }\n\n\n return $this;\n }",
"function setId_preceptor($iid_preceptor = '')\n {\n $this->iid_preceptor = $iid_preceptor;\n }"
] | [
"0.7788256",
"0.75836563",
"0.7024306",
"0.59151316",
"0.5479928",
"0.5470532",
"0.5389668",
"0.5373614",
"0.5147292",
"0.51454777",
"0.50552523",
"0.49473423",
"0.49300325",
"0.48653862",
"0.4738897",
"0.47036326",
"0.47002405",
"0.4698784",
"0.4697309",
"0.46407264",
"0.4638103",
"0.46350476",
"0.46173945",
"0.45872724",
"0.45872724",
"0.45692438",
"0.45562708",
"0.45532617",
"0.45525205",
"0.45501587",
"0.4537692",
"0.45313346",
"0.45087385",
"0.45086506",
"0.45054796",
"0.4497129",
"0.44857207",
"0.4476024",
"0.44489482",
"0.44459826",
"0.44428024",
"0.44339538",
"0.4432215",
"0.44232875",
"0.44105747",
"0.44075623",
"0.43824443",
"0.43773407",
"0.43773407",
"0.4361858",
"0.43551308",
"0.43426338",
"0.43294555",
"0.43097538",
"0.4304507",
"0.42977327",
"0.42977327",
"0.4274381",
"0.426078",
"0.42547905",
"0.42255244",
"0.42174706",
"0.42082733",
"0.42049748",
"0.41998258",
"0.41984367",
"0.41972074",
"0.41878954",
"0.41872168",
"0.4182968",
"0.4181785",
"0.41805533",
"0.41739506",
"0.41618592",
"0.4160957",
"0.4160957",
"0.41607037",
"0.41583288",
"0.41582566",
"0.41548115",
"0.41475046",
"0.41463995",
"0.41452414",
"0.41391647",
"0.41371205",
"0.4136067",
"0.4134184",
"0.4132235",
"0.41283432",
"0.41283432",
"0.41217625",
"0.41168404",
"0.4116674",
"0.4115567",
"0.4100564",
"0.40996677",
"0.40996677",
"0.40935743",
"0.40888226",
"0.4087418"
] | 0.6984577 | 3 |
setOperationPrimeRRewardTransporterId() Set the value of [operation_prime_fixed_amount] column. | public function setOperationPrimeFixedAmount($v)
{
if ($v === ''){
$v = null;
}
elseif ($v !== null){
if(is_string($v)){
$v = str_replace(
array(' ',','),
array('','.'),
$v
);
}
if(is_numeric($v)) {
$v = (float) $v;
}
}
if ($this->operation_prime_fixed_amount !== $v) {
$this->operation_prime_fixed_amount = $v;
$this->modifiedColumns[] = OperationPrimesPeer::OPERATION_PRIME_FIXED_AMOUNT;
}
return $this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function setOperationPrimeRRewardTransporterId($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_numeric($v)) {\n $v = (int) $v;\n }\n }\n if ($this->operation_prime_r_reward_transporter_id !== $v) {\n $this->operation_prime_r_reward_transporter_id = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OPERATION_PRIME_R_REWARD_TRANSPORTER_ID;\n }\n\n if ($this->aRRewardTransporters !== null && $this->aRRewardTransporters->getRRewardTransporterId() !== $v) {\n $this->aRRewardTransporters = null;\n }\n\n\n return $this;\n }",
"public function getOperationPrimeRRewardTransporterId()\n {\n\n return $this->operation_prime_r_reward_transporter_id;\n }",
"public function setId_recette($id_recette)\n {\n $id_recette = (int) $id_recette;\n $this->_id_recette = $id_recette;\n }",
"public function setId_recette($id) {\n\n\t\t$id = (int) $id;\n\n \tif ($id>0) {\n\n \t\t$this->_id_recette = $id;\n\n \t}\n\n\t}",
"public function setOperationPrimeCurrencyId($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_numeric($v)) {\n $v = (int) $v;\n }\n }\n if ($this->operation_prime_currency_id !== $v) {\n $this->operation_prime_currency_id = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OPERATION_PRIME_CURRENCY_ID;\n }\n\n if ($this->aRCurrencies !== null && $this->aRCurrencies->getRCurrencyId() !== $v) {\n $this->aRCurrencies = null;\n }\n\n\n return $this;\n }",
"public function getOperationPrimeRRewardTypeId()\n {\n\n return $this->operation_prime_r_reward_type_id;\n }",
"public function setOperationPrimeRRewardTypeId($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_numeric($v)) {\n $v = (int) $v;\n }\n }\n if ($this->operation_prime_r_reward_type_id !== $v) {\n $this->operation_prime_r_reward_type_id = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OPERATION_PRIME_R_REWARD_TYPE_ID;\n }\n\n if ($this->aRRewardTypes !== null && $this->aRRewardTypes->getRRewardTypeId() !== $v) {\n $this->aRRewardTypes = null;\n }\n\n\n return $this;\n }",
"public function setIdFormerApprover($idFormerApprover)\n {\n $this->idFormerApprover = $idFormerApprover;\n return $this;\n }",
"public function setOpPrimeId($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_numeric($v)) {\n $v = (int) $v;\n }\n }\n if ($this->op_prime_id !== $v) {\n $this->op_prime_id = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OP_PRIME_ID;\n }\n\n\n return $this;\n }",
"public function setOpId($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_numeric($v)) {\n $v = (int) $v;\n }\n }\n if ($this->op_id !== $v) {\n $this->op_id = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OP_ID;\n }\n\n if ($this->aOperations !== null && $this->aOperations->getOpId() !== $v) {\n $this->aOperations = null;\n }\n\n\n return $this;\n }",
"public function setRequestorId(?string $value): void {\n $this->getBackingStore()->set('requestorId', $value);\n }",
"public function setOperationPrimeRRewardExpeditionModeId($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_numeric($v)) {\n $v = (int) $v;\n }\n }\n if ($this->operation_prime_r_reward_expedition_mode_id !== $v) {\n $this->operation_prime_r_reward_expedition_mode_id = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OPERATION_PRIME_R_REWARD_EXPEDITION_MODE_ID;\n }\n\n if ($this->aRRewardExpeditionModes !== null && $this->aRRewardExpeditionModes->getRRewardExpeditionModeId() !== $v) {\n $this->aRRewardExpeditionModes = null;\n }\n\n\n return $this;\n }",
"public function getOperationPrimeRRewardExpeditionModeId()\n {\n\n return $this->operation_prime_r_reward_expedition_mode_id;\n }",
"public function setId_fornecedor($id_fornecedor)\n {\n $this->id_fornecedor = $id_fornecedor;\n\n return $this;\n }",
"public function getOperationPrimeFixedAmount()\n {\n\n return $this->operation_prime_fixed_amount;\n }",
"public function gETFixedAmountPromotionIdMarketRequest($fixed_amount_promotion_id)\n {\n // verify the required parameter 'fixed_amount_promotion_id' is set\n if ($fixed_amount_promotion_id === null || (is_array($fixed_amount_promotion_id) && count($fixed_amount_promotion_id) === 0)) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $fixed_amount_promotion_id when calling gETFixedAmountPromotionIdMarket'\n );\n }\n\n $resourcePath = '/fixed_amount_promotions/{fixedAmountPromotionId}/market';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n\n // path params\n if ($fixed_amount_promotion_id !== null) {\n $resourcePath = str_replace(\n '{' . 'fixedAmountPromotionId' . '}',\n ObjectSerializer::toPathValue($fixed_amount_promotion_id),\n $resourcePath\n );\n }\n\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n []\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n [],\n []\n );\n }\n\n // for model (json/xml)\n if (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue];\n foreach ($formParamValueItems as $formParamValueItem) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValueItem\n ];\n }\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'GET',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }",
"public function setPuntosRecogidaId($data)\n {\n\n if ($this->_puntosRecogidaId != $data) {\n $this->_logChange('puntosRecogidaId');\n }\n\n if ($data instanceof \\Zend_Db_Expr) {\n $this->_puntosRecogidaId = $data;\n } else if (!is_null($data)) {\n $this->_puntosRecogidaId = (int) $data;\n } else {\n $this->_puntosRecogidaId = $data;\n }\n return $this;\n }",
"public function getOperationPrimeCurrencyId()\n {\n\n return $this->operation_prime_currency_id;\n }",
"protected function setFundraiserId()\n {\n if ( ! isset( $_POST['fundraiser'] ) ) {\n $this->error = true;\n $this->data['error']['fundraiser'] = 'Please select a fundraiser.';\n return false;\n }\n \n $id = trim( $_POST['fundraiser'] );\n \n if ( ! $this->users->isUser( $id ) ) {\n $this->error = true;\n $this->data['error']['fundraiser'] = 'Please select an existing fundraiser.';\n return false;\n }\n \n $this->data['fundraiser'] = $id;\n return true;\n }",
"public function setLafiliere_idlafiliere(int $lafiliere_idlafiliere):void\n {\n $lafiliere_idlafiliere = (int)$lafiliere_idlafiliere;\n //checking is empty\n if(empty($lafiliere_idlafiliere)){\n trigger_error(\"The foreign key session is not valid\",E_USER_NOTICE);\n }else{\n $this->lafiliere_idlafiliere = $lafiliere_idlafiliere;\n }\n }",
"public function setRRewardTransporters(RRewardTransporters $v = null)\n {\n if ($v === null) {\n $this->setOperationPrimeRRewardTransporterId(NULL);\n } else {\n $this->setOperationPrimeRRewardTransporterId($v->getRRewardTransporterId());\n }\n\n $this->aRRewardTransporters = $v;\n\n // Add binding for other direction of this n:n relationship.\n // If this object has already been added to the RRewardTransporters object, it will not be re-added.\n if ($v !== null) {\n $v->addOperationPrimes($this);\n }\n\n\n return $this;\n }",
"public function getRepairId()\n {\n return $this->repair_id;\n }",
"public function setOpPrimeNumero($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_numeric($v)) {\n $v = (int) $v;\n }\n }\n if ($this->op_prime_numero !== $v) {\n $this->op_prime_numero = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OP_PRIME_NUMERO;\n }\n\n\n return $this;\n }",
"public function setIdFornecedor($IdFornecedor) {\n $this->IdFornecedor = $IdFornecedor;\n }",
"public function setRelaterId($value)\n {\n return $this->set(self::RELATER_ID, $value);\n }",
"function\tassignERPNos( $_key=\"\", $_id=-1, $_val=\"\") {\n\t\ttry {\n\t\t\tif ( $this->SupplierPrefix == \"\") {\n\t\t\t\t$e\t=\t\"Supplier.php::Supplier::assignERPNos(...): supplier does not have prefix assigned\" ;\n\t\t\t\terror_log( $e) ;\n\t\t\t\tthrow new Exception( $e) ;\n\t\t\t}\n\t\t\tif ( $this->ERPNoStart == \"\") {\n\t\t\t\t$e\t=\t\"Supplier.php::Supplier::assignERPNos(...): supplier does not have vallid ERP no. range\" ;\n\t\t\t\terror_log( $e) ;\n\t\t\t\tthrow new Exception( $e) ;\n\t\t\t}\n\t\t\t$myArticle\t=\tnew Article() ;\n\t\t\tfor ( $myArticle->_firstFromDb( \"ArticleNr like '\" . $this->SupplierPrefix . \".%' AND ERPNo = '' \") ;\n\t\t\t\t\t$myArticle->_valid ;\n\t\t\t\t\t$myArticle->_firstFromDb( \"ArticleNr like '\" . $this->SupplierPrefix . \".%' AND ERPNo = '' \")) {\n\t\t\t\tFDbg::dumpL( \"0x00000002\", \"Supplier.php::Supplier::assignERPNo(...): current article no. '$myArticle->ArticleNr'\") ;\n\t\t\t\ttry {\n\t\t\t\t\t$erpNoStart\t=\t$this->ERPNoStart ;\n\t\t\t\t\t$erpNoEnd\t=\t$this->ERPNoEnd ;\n\t\t\t\t\t$myQuery\t=\t\"SELECT IFNULL(( SELECT ERPNo + 1 FROM Article \" .\n\t\t\t\t\t\t\t\t\t\"WHERE ArticleNr LIKE '\".$this->SupplierPrefix.\".%' AND ERPNo >= '$erpNoStart' AND ERPNo <= '$erpNoEnd' \" .\n\t\t\t\t\t\t\t\t\t\"ORDER BY ERPNo DESC LIMIT 1 ), \" . ( $erpNoStart + 1) . \" ) AS newKey\" ;\n\t\t\t\t\t$myRow\t=\tFDb::queryRow( $myQuery) ;\n\t\t\t\t\t$myArticle->ERPNo\t=\tsprintf( \"%08s\", $myRow['newKey']) ;\n\t\t\t\t\t$myArticle->updateColInDb( \"ERPNo\") ;\n\t\t\t\t} catch (Exception $e) {\n\t\t\t\t\tthrow $e ;\n\t\t\t\t}\n\t\t\t}\n\t\t} catch( Exception $e) {\n\t\t\tthrow $e ;\n\t\t}\n\t\treturn true ;\n\t}",
"public function setIdModerator($idModerator)\n {\n $this->idModerator = $idModerator;\n\n return $this;\n }",
"function setEditableManufacturerID($epmid)\n {\n// if ($this->isCorrectManufacturerId($epmid))\n// {\n $this->editableManufacturerID = $epmid;\n// }\n }",
"public function setRequesterVpoUserId($v)\n\t{\n\t\tif ($v !== null) {\n\t\t\t$v = (string) $v;\n\t\t}\n\n\t\tif ($this->requester_vpo_user_id !== $v) {\n\t\t\t$this->requester_vpo_user_id = $v;\n\t\t\t$this->modifiedColumns[] = VpoRequestPeer::REQUESTER_VPO_USER_ID;\n\t\t}\n\n\t\treturn $this;\n\t}",
"public function setOperationPrimeMaximumAmount($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_string($v)){\n $v = str_replace(\n array(' ',','),\n array('','.'),\n $v\n );\n }\n \n if(is_numeric($v)) {\n $v = (float) $v;\n }\n }\n if ($this->operation_prime_maximum_amount !== $v) {\n $this->operation_prime_maximum_amount = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OPERATION_PRIME_MAXIMUM_AMOUNT;\n }\n\n\n return $this;\n }",
"public function addMercenaryFee($employer, $employee, $fee) {\n $ts = time();\n syslog(LOG_DEBUG, \"addMercenaryFee($employer, $employee, $fee)\");\n $rds = $this->_di->getShared('redis');\n $employee_key = sprintf(self::$USER_PROF_KEY, $employee);\n $employer_rec_key = sprintf(self::$MERCENARY_RECORDS_KEY, $employer);\n $employee_rec_key = sprintf(self::$MERCENARY_RECORDS_KEY, $employee);\n\n $data_employ = json_encode(array(\n \"employer\" => $employer,\n \"employee\" => $employee,\n \"time\" => $ts,\n \"fee\" => $fee\n ));\n\n $rds->hincrBy($employee_key, self::$USER_PROF_FIELD_FEE, $fee);\n // record\n $rds->multi();\n $rds->lpush($employer_rec_key, $data_employ);\n $rds->lpush($employee_rec_key, $data_employ);\n $rds->expireAt($employer_rec_key, self::getDefaultExpire());\n $rds->expireAt($employee_rec_key, self::getDefaultExpire());\n $r = $rds->exec();\n }",
"public function getIdFormerApprover()\n {\n return $this->idFormerApprover;\n }",
"function setFieldID($iNewVale) {\n\t\t$this->iFieldID = $iNewValue;\n\t}",
"public function setRequestor($requestor) {\n\t\t$this -> _rpc = new OKCoin_Rpc($requestor, $this -> _authentication);\n\t\treturn $this;\n\t}",
"public function setCancelbyseller($id){\n $rma = Mage::getModel(\"mprmasystem/rmarequest\")->load($id);\n $rma->setStatus(\"Cancelled\")->save();\n Mage::getModel(\"mprmasystem/rmamail\")->CancelRMAMailbyseller($id);\n }",
"public function getId_recette()\n {\n return $this->_id_recette;\n }",
"public function getIdModerator()\n {\n return $this->idModerator;\n }",
"public function updateOffensiveMethod($offensiveMethodId,$teamId,$action)\n {\n if($action==corruption_rules::ADD_ACTION)\n {\n $queryString=\"UPDATE team_offensive_methods\n SET qt=qt+1\n WHERE team_id=$teamId\n AND offensive_method_id=$offensiveMethodId\";\n }else{\n $queryString=\"UPDATE team_offensive_methods\n SET qt=qt-1\n WHERE team_id=$teamId\n AND offensive_method_id=$offensiveMethodId\";\n }\n\n $query = $this->db->query($queryString);\n }",
"function setReviewerId($reviewerId) {\n\t\t$this->setData('reviewerId', $reviewerId);\n\t}",
"public function setUpdaterId($v)\n {\n if ($v !== null && is_numeric($v)) {\n $v = (string) $v;\n }\n\n if ($this->updater_id !== $v) {\n $this->updater_id = $v;\n $this->modifiedColumns[] = SekolahPaudPeer::UPDATER_ID;\n }\n\n\n return $this;\n }",
"public function setIdadeFilho5 ($iIdadeFilho5) {\n $this->iIdadeFilho5 = $iIdadeFilho5;\n }",
"public function setPosteId($data)\n {\n\n if ($this->_posteId != $data) {\n $this->_logChange('posteId');\n }\n\n if ($data instanceof \\Zend_Db_Expr) {\n $this->_posteId = $data;\n } else if (!is_null($data)) {\n $this->_posteId = (int) $data;\n } else {\n $this->_posteId = $data;\n }\n return $this;\n }",
"public function setSemillero_id($semillero_id){\n $this->semillero_id = $semillero_id;\n }",
"public function _setCodigoCliente($entregableid, $codigo_cliente)\n {\n $id = (int)$entregableid;\n $row = $this->fetchRow('cod_le = ' . $id);\n if (!$row) {\n throw new Exception(\"No hay resultados para ese transmittal\");\n }\n $row->codigo_cliente = $codigo_cliente;\n $row->save();\n if ($row->codigo_anddes != null && $row->codigo_anddes != '' &&\n $row->codigo_cliente != null && $row->codigo_cliente != '' &&\n $row->estado_entregable != 7) {\n $row->estado_entregable = 7;\n }\n $row->save();\n }",
"function procesSetFixed()\t{\n\t\tif ($this->conf['setfixed'])\t{\n\t\t\t$theUid = intval($this->recUid);\n\t\t\t$origArr = $GLOBALS['TSFE']->sys_page->getRawRecord($this->theTable, $theUid);\n\t\t\tif ($this->conf['evalFunc'])\t{\n\t\t\t\t$origArr = $this->userProcess('evalFunc',$origArr);\n\t\t\t}\n\t\t\t$fD = t3lib_div::_GP('fD');\n\t\t\t$sFK = t3lib_div::_GP('sFK');\n\t\t\t$fieldArr=array();\n\n\t\t\tif (is_array($fD) || $sFK=='DELETE')\t{\n\t\t\t\tif (is_array($fD))\t{\n\t\t\t\t\t$theCode = $this->setfixedHash($origArr,$fD['_FIELDLIST']);\n\n\t\t\t\t\treset($fD);\n\t\t\t\t\twhile(list($field,$value)=each($fD))\t{\n\t\t\t\t\t\t//@todo we have two arrays : one before update and one after update (before is used to calculate hash, after should be transferred to mails)\n\t\t\t\t\t\t$origArr[$field]=$value;\n\t\t\t\t\t\t$fieldArr[]=$field;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t$theCode = $this->setfixedHash($origArr,array());\n\t\t\t\t}\n\t\t\t\tif (!strcmp($this->authCode,$theCode))\t{\n\t\t\t\t\tif ($sFK=='DELETE')\t{\n\t\t\t\t\t\t$this->cObj->DBgetDelete($this->theTable, $theUid, TRUE);\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$newFieldList = implode(',',array_intersect(t3lib_div::trimExplode(',',$this->conf['fieldList']),t3lib_div::trimExplode(',',implode($fieldArr,','),1)));\n\t\t\t\t\t\t$this->cObj->DBgetUpdate($this->theTable, $theUid, $fD, $newFieldList, TRUE);\n\t\t\t\t\t\t$this->currentArr = $GLOBALS['TSFE']->sys_page->getRawRecord($this->theTable,$theUid);\n\t\t\t\t\t\t$this->userProcess_alt($this->conf['setfixed.']['userFunc_afterSave'],$this->conf['setfixed.']['userFunc_afterSave.'],array('rec'=>$this->currentArr, 'origRec'=>$origArr));\n\t\t\t\t\t}\n\n\t\t\t\t\t// Outputting template\n\n\t\t\t\t\t$content = $this->metafeeditlib->getPlainTemplate($this->conf,$this->markerArray,'###TEMPLATE_SETFIXED_OK_'.$sFK.'###',$origArr);\n\t\t\t\t\tif (!$content)\t{$content = $this->metafeeditlib->getPlainTemplate($this->conf,$this->markerArray,'###TEMPLATE_SETFIXED_OK###',$origArr);}\n\n\t\t\t\t\t// Compiling email\n\n\t\t\t\t\t$this->compileMail(\n\t\t\t\t\t\t'SETFIXED_'.$sFK,\n\t\t\t\t\t\tarray($origArr),\n\t\t\t\t\t\t$this->getFeuserMail($origArr,$this->conf),\n\t\t\t\t\t\t$this->conf['setfixed.']\n\t\t\t\t\t);\n\t\t\t\t\t\n\t\t\t\t\t// Clearing cache if set:\n\t\t\t\t\t$this->clearCacheIfSet(); \n\t\t\t\t\t\n\t\t\t\t} else $content = $this->metafeeditlib->getPlainTemplate($this->conf,$this->markerArray,'###TEMPLATE_SETFIXED_FAILED###',$origArr);\n\t\t\t} else $content = $this->metafeeditlib->getPlainTemplate($this->conf,$this->markerArray,'###TEMPLATE_SETFIXED_FAILED###',$origArr);\n\t\t}\n\t\treturn $content;\n\t}",
"public function updateStockId();",
"function setId_preceptor($iid_preceptor = '')\n {\n $this->iid_preceptor = $iid_preceptor;\n }",
"function setId_preceptor($iid_preceptor = '')\n {\n $this->iid_preceptor = $iid_preceptor;\n }",
"public function editPricing($id_ressource, $id_pricing, $price_day, $price_night, $price_we){\n\t\t\t\n\t\t$sql = \"update sy_j_resource_pricing set price_day=?, price_night=?, price_we=? \n\t\t where id_resource=? AND id_pricing=?\";\n\t\t$this->runRequest($sql, array($price_day, $price_night, $price_we, $id_ressource, $id_pricing));\n\t}",
"public function setPayerRefPackingsId($payerRefPackingsId) {\n \t$this->_payerRefPackingsId = $payerRefPackingsId;\n }",
"public function setCentrosEmergenciaId($data)\n {\n\n if ($this->_centrosEmergenciaId != $data) {\n $this->_logChange('centrosEmergenciaId');\n }\n\n if ($data instanceof \\Zend_Db_Expr) {\n $this->_centrosEmergenciaId = $data;\n } else if (!is_null($data)) {\n $this->_centrosEmergenciaId = (int) $data;\n } else {\n $this->_centrosEmergenciaId = $data;\n }\n return $this;\n }",
"public function updateDefensiveMethod($defensiveMethodId,$teamId,$action)\n {\n if($action==corruption_rules::ADD_ACTION)\n {\n $queryString=\"UPDATE team_defensive_methods\n SET qt=qt+1\n WHERE team_id=$teamId\n AND defensive_method_id=$defensiveMethodId\";\n }else{\n $queryString=\"UPDATE team_defensive_methods\n SET qt=qt-1\n WHERE team_id=$teamId\n AND defensive_method_id=$defensiveMethodId\";\n }\n\n $query = $this->db->query($queryString);\n }",
"public function setIdadeFilho4 ($iIdadeFilho4) {\n $this->iIdadeFilho4 = $iIdadeFilho4;\n }",
"public function setSumberAirMinumId($v)\n {\n if ($v !== null && is_numeric($v)) {\n $v = (string) $v;\n }\n\n if ($this->sumber_air_minum_id !== $v) {\n $this->sumber_air_minum_id = $v;\n $this->modifiedColumns[] = SanitasiPeer::SUMBER_AIR_MINUM_ID;\n }\n\n if ($this->aSumberAirRelatedBySumberAirMinumId !== null && $this->aSumberAirRelatedBySumberAirMinumId->getSumberAirId() !== $v) {\n $this->aSumberAirRelatedBySumberAirMinumId = null;\n }\n\n\n return $this;\n }",
"function setId_tarifa($iid_tarifa)\n {\n $this->iid_tarifa = $iid_tarifa;\n }",
"public function setPR($r) {}",
"public function update_tutor_fee($tid,$fee) {\n\t\t$sql = \"UPDATE profile SET money = money + {$fee} WHERE uid = {$tid} \";\n\t\t$query = $this->db->query($sql);\n\t}",
"public function getRequesterVpoUserId()\n\t{\n\t\treturn $this->requester_vpo_user_id;\n\t}",
"function set_id( $id ){\n\t\t$this->id = $id;\n\t\t// this is add request. so number is 0\n\t\tif( $this->id == $this->id_base ){\n\t\t\t$this->number = 0;\n\t\t\t$this->is_new = true;\n\t\t}\n\t\t// parse number\n\t\telse{\n\t\t\t$this->number = str_replace($this->id_base.'-', '', $this->id);\n\n\t\t\t// load instance data\n\t\t\t$this->instance = jcf_field_settings_get( $this->id );\n\t\t\tif( !empty($this->instance) ){\n\t\t\t\t$this->slug = $this->instance['slug'];\n\t\t\t}\n\t\t}\n\t}",
"public function setmodifyPersonId($v)\n {\n if ($v !== null && is_numeric($v)) {\n $v = (int) $v;\n }\n\n if ($this->modifyperson_id !== $v) {\n $this->modifyperson_id = $v;\n $this->modifiedColumns[] = ActionTypePeer::MODIFYPERSON_ID;\n }\n\n\n return $this;\n }",
"public function getOpPrimeId()\n {\n\n return $this->op_prime_id;\n }",
"static public function mdlActualizarTalonario(){\n\n\t\t$sql=\"UPDATE talonariosjf SET pedido = pedido+1 WHERE id = 2\";\n\n\t\t$stmt=Conexion::conectar()->prepare($sql);\n\n\t\t$stmt->execute();\n\n\t\t$stmt=null;\n\n\t}",
"public function setEntityRelatedPk($pk) {\n\t\t$this->_entityRelatedPk = $pk;\n\t}",
"public function set_player_fk(INT $_player_fk)\n {\n $this->_player_fk = $_player_fk;\n \n return $this;\n }",
"public function setSellerOrderIdFilter($filter)\n {\n if (is_string($filter)) {\n $this->options['SellerOrderId'] = $filter;\n //these fields must be disabled\n unset($this->options['BuyerEmail']);\n $this->resetOrderStatusFilter();\n $this->resetPaymentMethodFilter();\n $this->setFulfillmentChannelFilter(null);\n unset($this->options['LastUpdatedAfter']);\n unset($this->options['LastUpdatedBefore']);\n } else if (is_null($filter)) {\n unset($this->options['SellerOrderId']);\n } else {\n return false;\n }\n }",
"public function set_bonus($bonus) {\n\t\t$this->_bonus = $bonus;\n\t}",
"public function getPayerId() {\n\t\treturn $this->_getField(self::$PAYER_ID);\n\t}",
"public function setScriptTransportId($id)\n {\n $this->scriptTransportId = $id;\n }",
"public function setWholesalerId($value)\n {\n return $this->set(self::wholesaler_id, $value);\n }",
"public function setRequestorID(\\Devlabs91\\TravelgateNotify\\Models\\Ota\\SourceType\\RequestorIDAType $requestorID)\n {\n $this->requestorID = $requestorID;\n return $this;\n }",
"function editar_pr_factura(){\n\n\t\t $u = new entrada();\n $u->usuario_id = $GLOBALS['usuarioid'];\n $u->empresas_id = $GLOBALS['empresaid'];\n\t$precio=$_POST['costo_unitario'];\n\t$producto_id=$_POST['cproductos_id'];\n $u->fecha = date(\"Y-m-d H:i:s\");\n $related = $u->from_array($_POST);\n if ($u->id == 0)\n unset($u->id);\n if ($u->save($related)) {\n$this->db->query(\"update cproductos set precio_compra='$precio' where id=$producto_id\");\n echo $u->id;\n } else\n echo 0; \n \n\t}",
"public function setdefaultExecPersonId($v)\n {\n if ($v !== null && is_numeric($v)) {\n $v = (int) $v;\n }\n\n if ($this->defaultexecperson_id !== $v) {\n $this->defaultexecperson_id = $v;\n $this->modifiedColumns[] = ActionTypePeer::DEFAULTEXECPERSON_ID;\n }\n\n\n return $this;\n }",
"public function setIdPROVEEDORES($idPROVEEDORES){\n $this->idPROVEEDORES = $idPROVEEDORES;\n }",
"function editar_pr_factura_inventario(){\n\n\t\t $u = new entrada();\n $u->usuario_id = $GLOBALS['usuarioid'];\n $u->empresas_id = $GLOBALS['empresaid'];\n\t$precio=$_POST['costo_unitario'];\n\t$producto_id=$_POST['cproductos_id'];\n $u->fecha = date(\"Y-m-d H:i:s\");\n $related = $u->from_array($_POST);\n\t $f = new Pr_factura();\n $f->get_by_id($u->pr_facturas_id);\n $u->espacios_fisicos_id = $f->espacios_fisicos_id;\n $u->lote_id = $f->lote_id;\n $u->costo_total = ($u->cantidad * $u->costo_unitario);\n\t$u->existencia = $u->cantidad;\n $u->cproveedores_id = $f->cproveedores_id;\n $u->fecha = date(\"Y-m-d H:i:s\");\n if ($u->id == 0)\n unset($u->id);\n if ($u->save($related)) {\n$this->db->query(\"update cproductos set precio_compra='$precio' where id=$producto_id\");\n echo $u->id;\n } else\n echo 0; \n \n\t}",
"function renumber($node_id = 1, $i = 1)\n\t{\n\t\tglobal $ilDB;\n\t\t\n\t\t// LOCKED ###################################\n\t\tif($this->__isMainTree())\n\t\t{\n\t\t\t/*\n\t\t\tilDB::_lockTables(array($this->table_tree => 'WRITE',\n\t\t\t\t\t\t\t\t\t $this->table_obj_data => 'WRITE',\n\t\t\t\t\t\t\t\t\t $this->table_obj_reference => 'WRITE',\n\t\t\t\t\t\t\t\t\t 'object_translation' => 'WRITE',\n\t\t\t\t\t\t\t\t\t 'object_data od' => 'WRITE',\n\t\t\t\t\t\t\t\t\t 'container_reference cr' => 'WRITE'));\n\t\t\t*/\t\n\t\t\t$ilDB->lockTables(\n\t\t\t\tarray(\t\t\t\n\t\t\t\t\t0 => array('name' => $this->table_tree, 'type' => ilDB::LOCK_WRITE),\n\t\t\t\t\t1 => array('name' => $this->table_obj_data, 'type' => ilDB::LOCK_WRITE),\n\t\t\t\t\t2 => array('name' => $this->table_obj_reference, 'type' => ilDB::LOCK_WRITE),\n\t\t\t\t\t3 => array('name' => 'object_translation', 'type' => ilDB::LOCK_WRITE),\n\t\t\t\t\t4 => array('name' => 'object_data', 'type' => ilDB::LOCK_WRITE, 'alias' => 'od'),\n\t\t\t\t\t5 => array('name' => 'container_reference', 'type' => ilDB::LOCK_WRITE, 'alias' => 'cr')\n\t\t\t\t));\n\t\t}\n\t\t$return = $this->__renumber($node_id,$i);\n\t\tif($this->__isMainTree())\n\t\t{\n\t\t\t$ilDB->unlockTables();\n\t\t}\n\t\t// LOCKED ###################################\n\t\treturn $return;\n\t}",
"public function setWebMoneyId($value)\n {\n return $this->setParameter('webMoneyId', $value);\n }",
"public function updateInteger( Inx_Api_Recipient_Attribute $attr, $iValue );",
"public function setnomenclativeServiceId($v)\n {\n if ($v !== null && is_numeric($v)) {\n $v = (int) $v;\n }\n\n if ($this->nomenclativeservice_id !== $v) {\n $this->nomenclativeservice_id = $v;\n $this->modifiedColumns[] = ActionTypePeer::NOMENCLATIVESERVICE_ID;\n }\n\n\n return $this;\n }",
"public function update_deal_team_members_adjusted_value($deal_id,$deal_partner_id){\n require_once(\"classes/class.transaction_member.php\");\n\t\t$trans_mem = new transaction_member();\n\t\treturn $trans_mem->update_deal_team_members_adjusted_value($deal_id,$deal_partner_id);\n }",
"public function setIteneraryEquivFareAmount(float $value): self\n {\n $this->IteneraryEquivFareAmount = $value;\n\n return $this;\n }",
"public function getId_fornecedor()\n {\n return $this->id_fornecedor;\n }",
"public function getRequestorID()\n {\n return $this->requestorID;\n }",
"public function test_squad_server_admin_force_team_change_by_id()\n {\n $this->assertTrue($this->postScriptumServer->adminForceTeamChange(0));\n }",
"public function setUpdaterId($v)\n {\n if ($v !== null && is_numeric($v)) {\n $v = (string) $v;\n }\n\n if ($this->updater_id !== $v) {\n $this->updater_id = $v;\n $this->modifiedColumns[] = SanitasiPeer::UPDATER_ID;\n }\n\n\n return $this;\n }",
"public function edit_tra_carga_mercaderia_transito ($valores=NULL){\n return \"\n UPDATE tra_carga_mercaderia_transito\n SET id_tra_carga_mercaderia_transito_proc = -2\n WHERE id_tra_carga_mercaderia_transito = $valores[0]\n ;\n \";\n }",
"protected function setMesto_id($value)\n\t{\n\t\tif (isInt($value) || is_null($value)) { $this->mesto_id = $value; }\n\t}",
"public function update_adjusted_values_for_deal($deal_id){\n //for that we need the value of the deal and number of partners for this type\n $deal_q = \"select value_in_billion from \".TP.\"transaction where id='\".$deal_id.\"'\";\n $deal_q_res = mysql_query($deal_q);\n if(!$deal_q_res){\n return false;\n }\n $deal_q_res_row = mysql_fetch_assoc($deal_q_res);\n $value_in_billion = $deal_q_res_row['value_in_billion'];\n //now we need the partners of this type for this deal\n $partner_q = \"select partner_id from \".TP.\"transaction_partners where transaction_id='\".$deal_id.\"' and partner_type='bank'\";\n $partner_q_res = mysql_query($partner_q);\n if(!$partner_q_res){\n return false;\n }\n $num_partners = mysql_num_rows($partner_q_res);\n if($num_partners > 0){\n $partner_adjusted_value_in_billion = $value_in_billion/$num_partners;\n //update all the partners for this deal for this type\n $partner_update_q = \"update \".TP.\"transaction_partners set adjusted_value_in_billion='\".$partner_adjusted_value_in_billion.\"' where transaction_id='\".$deal_id.\"' and partner_type='bank'\";\n $result = mysql_query($partner_update_q);\n if(!$result){\n return false;\n }\n //now that the partners are updated, we need to update the team members for these partners for this deal\n while($partner_q_res_row = mysql_fetch_assoc($partner_q_res)){\n $deal_partner_id = $partner_q_res_row['partner_id'];\n $success = $this->update_deal_team_members_adjusted_value($deal_id,$deal_partner_id);\n if(!$success){\n return false;\n }\n }\n }\n /////////now law firm\n $partner_q = \"select partner_id from \".TP.\"transaction_partners where transaction_id='\".$deal_id.\"' and partner_type='law firm'\";\n $partner_q_res = mysql_query($partner_q);\n if(!$partner_q_res){\n return false;\n }\n $num_partners = mysql_num_rows($partner_q_res);\n if($num_partners > 0){\n $partner_adjusted_value_in_billion = $value_in_billion/$num_partners;\n //update all the partners for this deal for this type\n $partner_update_q = \"update \".TP.\"transaction_partners set adjusted_value_in_billion='\".$partner_adjusted_value_in_billion.\"' where transaction_id='\".$deal_id.\"' and partner_type='law firm'\";\n $result = mysql_query($partner_update_q);\n if(!$result){\n return false;\n }\n //now that the partners are updated, we need to update the team members for these partners for this deal\n while($partner_q_res_row = mysql_fetch_assoc($partner_q_res)){\n $deal_partner_id = $partner_q_res_row['partner_id'];\n $success = $this->update_deal_team_members_adjusted_value($deal_id,$deal_partner_id);\n if(!$success){\n return false;\n }\n }\n }\n //////////////////////\n return true;\n }",
"public function setReflector(int $selectedReflector): self\n {\n if (!in_array($selectedReflector, Reflector::availableReflectors())) {\n throw new EnigmaException('Unknown reflector');\n }\n $this->selectedReflector = $selectedReflector;\n return $this;\n }",
"public function setPayerId($payer_id)\n {\n $this->payer_id = $payer_id;\n return $this;\n }",
"public function edit(Marketer $marketer)\n {\n //\n }",
"public function setContrato_id($contrato_id) {\n $this->contrato_id = $contrato_id;\n }",
"public function updateQuotationNumber($companyId)\n\t{\n\t\t//get constants from constant class\n\t\t$constantClass = new ConstantClass();\n\t\t$constantArray = $constantClass->constantVariable();\n\t\t//get exception message\n\t\t$exception = new ExceptionMessage();\n\t\t$exceptionArray = $exception->messageArrays();\n\t\t$quotationService = new QuotationService();\t\n\t\t$quotationData = $quotationService->getLatestQuotationData($companyId);\n\t\tif(strcmp($exceptionArray['204'],$quotationData)==0)\n\t\t{\n\t\t\treturn $quotationData;\n\t\t}\n\t\t$endAt = json_decode($quotationData)[0]->endAt;\n\t\t$quotationController = new QuotationController(new Container());\n\t\t$quotationMethod=$constantArray['postMethod'];\n\t\t$quotationPath=$constantArray['quotationUrl'];\n\t\t$quotationDataArray = array();\n\t\t$quotationDataArray['endAt'] = $endAt+1;\n\t\t$quotationRequest = Request::create($quotationPath,$quotationMethod,$quotationDataArray);\n\t\t$updateResult = $quotationController->update($quotationRequest,json_decode($quotationData)[0]->quotationId);\n\t\treturn $updateResult;\n\t}",
"public function setserviceId($v)\n {\n if ($v !== null && is_numeric($v)) {\n $v = (int) $v;\n }\n\n if ($this->service_id !== $v) {\n $this->service_id = $v;\n $this->modifiedColumns[] = ActionTypePeer::SERVICE_ID;\n }\n\n\n return $this;\n }",
"private function claimPromotioByReferidor(EmployerHasEmployee $eHE)\n\t\t{\n\t\t\t$person = $eHE->getEmployerEmployer()->getPersonPerson();\n\t\t\t/** @var User $user */\n\t\t\t$user = $this->getDoctrine()->getRepository(\"RocketSellerTwoPickBundle:User\")\n\t\t\t\t->findOneBy(array('personPerson' => $person));\n\t\t\t$em = $this->getDoctrine()->getManager();\n\t\t\t$promoTypeRef = $this->getDoctrine()->getRepository(\"RocketSellerTwoPickBundle:PromotionCodeType\")\n\t\t\t\t->findOneBy(array('shortName' => 'RF'));\n\t\t\t/** @var Campaign $campaing */\n\t\t\t$campaing = $this->getDoctrine()->getRepository(\"RocketSellerTwoPickBundle:Campaign\")\n\t\t\t\t->findOneBy(array('description' => 'RefCamp'));\n\t\t\tif (!$user->getPromoCodeClaimedByReferidor()) {\n\t\t\t\t/** @var PromotionCode $promoCode */\n\t\t\t\tforeach ($user->getPromoCodes() as $promoCode) {\n\t\t\t\t\tif ($promoCode->getPromotionCodeTypePromotionCodeType() == $promoTypeRef) {\n\t\t\t\t\t\t/** @var User $userReferidor */\n\t\t\t\t\t\t$userReferidor = $promoCode->getUserUser();\n\t\t\t\t\t\tif ($campaing->getEnabled() == 1) {\n\t\t\t\t\t\t\t//stock in this campaing is used to have a database value of the campaing\n\t\t\t\t\t\t\t$userReferidor->setMoney($userReferidor->getMoney() + $campaing->getStock());\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$userReferidor->setIsFree($userReferidor->getIsFree() + 1);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$em->persist($userReferidor);\n\t\t\t\t\t\t$user->setPromoCodeClaimedByReferidor(true);\n\t\t\t\t\t\t$em->persist($user);\n\t\t\t\t\t\t$em->flush();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"public function editar($idresponsable,$primer_apellido,$segundo_apellido,$primer_nombre,$segundo_nombre,$identificacion,$telefono,$cargo,$e_mail,$usuario,$contraseña)\n\t{\n\t\t$sql = \"UPDATE responsable SET primer_apellido='$primer_apellido',segundo_apellido='$segundo_apellido',primer_nombre='$primer_nombre',segundo_nombre='$segundo_nombre',identificacion='$identificacion',telefono='$telefono',cargo='$cargo',e_mail='$e_mail',usuario='$usuario',contraseña='$contraseña'\n\t\tWHERE idresponsable='$idresponsable'\";\n\t\treturn ejecutarConsulta($sql);\n\t}",
"public function SetIdConvocatoria($valor){\n\t\t $this->id_convocatoria= $valor;\n\t }",
"public function setPosteRent(?string $posteRent): PostesCharge {\n $this->posteRent = $posteRent;\n return $this;\n }",
"public function equipementModifierUn($id,$equipement)\n\t{\n\t\tGestion::modifier($equipement);// votre code ici\n\t}",
"public function setTicketId($newTicketId) {\n\t\t// zeroth, set allow the ticket id to be null if a new object\n\t\tif($newTicketId === null) {\n\t\t\t$this->ticketId = null;\n\t\t\treturn;\n\t\t}\n\n\t\t// first, ensure the ticket id is an integer\n\t\tif(filter_var($newTicketId, FILTER_VALIDATE_INT) === false) {\n\t\t\tthrow(new UnexpectedValueException(\"ticket id $newTicketId is not numeric\"));\n\t\t}\n\n\t\t// second, convert the ticket id to an integer and enforce it's positive\n\t\t$newTicketId = intval($newTicketId);\n\t\tif($newTicketId <= 0) {\n\t\t\tthrow(new RangeException(\"ticket id $newTicketId is not positive\"));\n\t\t}\n\n\t\t// finally, take the ticket id out of quarantine and assign it\n\t\t$this->ticketId = $newTicketId;\n\t}",
"public function setPricing($id_ressource, $id_pricing, $price_day, $price_night, $price_we){\n\t\t\n\t\tif ($this->isPricing($id_ressource, $id_pricing)){\n\t\t\t$this->editPricing($id_ressource, $id_pricing, $price_day, $price_night, $price_we);\n\t\t}\n\t\telse{\n\t\t\t$this->addPricing($id_ressource, $id_pricing, $price_day, $price_night, $price_we);\n\t\t}\n\t}"
] | [
"0.7105452",
"0.64498425",
"0.52678865",
"0.50417507",
"0.4823204",
"0.47969586",
"0.47777164",
"0.4657533",
"0.45973375",
"0.45968735",
"0.45928428",
"0.45900208",
"0.4533355",
"0.4480878",
"0.44584432",
"0.44464672",
"0.44193065",
"0.4341181",
"0.43031004",
"0.42880782",
"0.42344686",
"0.42334655",
"0.42194986",
"0.42193463",
"0.42094862",
"0.4206669",
"0.41680506",
"0.41538116",
"0.41437623",
"0.4091605",
"0.40889668",
"0.40848967",
"0.4084429",
"0.4080586",
"0.40779698",
"0.40539888",
"0.4050022",
"0.40390325",
"0.40332094",
"0.3998548",
"0.3997947",
"0.39929244",
"0.3984095",
"0.39814174",
"0.39806247",
"0.39567477",
"0.39546785",
"0.39546785",
"0.39529344",
"0.39385095",
"0.393488",
"0.39341065",
"0.39340463",
"0.39315686",
"0.39308685",
"0.3929763",
"0.3919819",
"0.39187974",
"0.39162543",
"0.39159557",
"0.39119354",
"0.39094087",
"0.39034402",
"0.39030486",
"0.3896809",
"0.3895656",
"0.38920388",
"0.38903087",
"0.38873434",
"0.38861862",
"0.38850188",
"0.38833258",
"0.38799092",
"0.38731936",
"0.3872528",
"0.3871819",
"0.38636267",
"0.38628516",
"0.38625368",
"0.38589722",
"0.38578036",
"0.3854812",
"0.38536277",
"0.38527018",
"0.38482556",
"0.3841998",
"0.3839764",
"0.38304",
"0.38247353",
"0.3823456",
"0.38210902",
"0.38099626",
"0.38081473",
"0.37969854",
"0.37964118",
"0.37939572",
"0.37935305",
"0.3787959",
"0.37860876",
"0.37809065"
] | 0.51706994 | 3 |
setOperationPrimeFixedAmount() Set the value of [operation_prime_product_price_pourcentage] column. | public function setOperationPrimeProductPricePourcentage($v)
{
if ($v === ''){
$v = null;
}
elseif ($v !== null){
if(is_numeric($v)) {
$v = (int) $v;
}
}
if ($this->operation_prime_product_price_pourcentage !== $v) {
$this->operation_prime_product_price_pourcentage = $v;
$this->modifiedColumns[] = OperationPrimesPeer::OPERATION_PRIME_PRODUCT_PRICE_POURCENTAGE;
}
return $this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function setOperationPrimeFixedAmount($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_string($v)){\n $v = str_replace(\n array(' ',','),\n array('','.'),\n $v\n );\n }\n \n if(is_numeric($v)) {\n $v = (float) $v;\n }\n }\n if ($this->operation_prime_fixed_amount !== $v) {\n $this->operation_prime_fixed_amount = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OPERATION_PRIME_FIXED_AMOUNT;\n }\n\n\n return $this;\n }",
"public function getOperationPrimeFixedAmount()\n {\n\n return $this->operation_prime_fixed_amount;\n }",
"public function getOperationPrimeProductPricePourcentage()\n {\n\n return $this->operation_prime_product_price_pourcentage;\n }",
"public function setOperationPrimeMaximumAmount($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_string($v)){\n $v = str_replace(\n array(' ',','),\n array('','.'),\n $v\n );\n }\n \n if(is_numeric($v)) {\n $v = (float) $v;\n }\n }\n if ($this->operation_prime_maximum_amount !== $v) {\n $this->operation_prime_maximum_amount = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OPERATION_PRIME_MAXIMUM_AMOUNT;\n }\n\n\n return $this;\n }",
"public function setPrice(float $price):void\n {\n $this->price = $price;\n }",
"public function setPrice()\n {\n $price = $this->price;\n $outFix = $this->outFix;\n $outPer = $this->outPer;\n $inPer = $this->inPer;\n $inFix = $this->inFix;\n $flag = $this->flagInOut;\n if ($price < 1) {\n $sumIn = $outFix > 0 ? 1 + $outFix : 1; //outFix\n $sumIn = $outPer > 0 ? $sumIn + ($sumIn * $outPer / 100) : $sumIn; //outPer\n $sumIn = $sumIn / $price; // price\n $sumIn = $inFix > 0 ? $sumIn + $inFix : $sumIn;// inFix\n $ss = $sumIn * $inPer / 100;\n $sumIn = $inPer > 0 ? $sumIn + $ss : $sumIn;\n $this->in = $this->format_amount($sumIn);\n $this->out = $flag ? 1 : 0;\n } else {\n $val = $inFix > 0 ? 1 - $inFix : 1;\n $val = $inPer > 0 ? $val - $val * ($inPer / 100) : $val;\n $sumOut = $price * $val;\n $sumOut = $outFix > 0 ? $sumOut - $outFix : $sumOut;\n $sumOut = $outPer > 0 ? $sumOut - $outPer / 100 * $sumOut : $sumOut;\n $this->out = $this->format_amount($sumOut);\n $this->in = $flag ? 1 : 0;\n }\n $this->price = (float)$price;\n }",
"public function setOperationPrimeCurrencyId($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_numeric($v)) {\n $v = (int) $v;\n }\n }\n if ($this->operation_prime_currency_id !== $v) {\n $this->operation_prime_currency_id = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OPERATION_PRIME_CURRENCY_ID;\n }\n\n if ($this->aRCurrencies !== null && $this->aRCurrencies->getRCurrencyId() !== $v) {\n $this->aRCurrencies = null;\n }\n\n\n return $this;\n }",
"function setPrice($new_price)\n {\n $this->price = $new_price;\n }",
"public function getOperationPrimeMaximumAmount()\n {\n\n return $this->operation_prime_maximum_amount;\n }",
"function setPrice( $value )\n {\n if ( $this->State_ == \"Dirty\" )\n $this->get( $this->ID );\n\n $this->Price = $value;\n setType( $this->Price, \"double\" );\n }",
"public function setPesoArea($peso) {\n $this->_peso = $peso; \n }",
"public function setPrice($value)\n {\n $this->price = $value;\n $this->recalculate();\n }",
"public function setProductPrice($product_price){\n $this->product_price = $product_price;\n }",
"public function setPrice(float $price) : void\n {\n $this->set('price', $price, 'products');\n }",
"public function setPrice($price)\n {\n $this->price = (double)$price;\n $this->recalculatePriceTotal();\n }",
"public function setPriceAttribute($value)\n {\n $this->attributes['price'] = $value*100;\n }",
"public function setPriceAttribute($value)\n {\n $this->attributes['price'] = $value * 100;\n }",
"function setPrice($price, $taxPercentage = 25)\n {\n $this->taxPercentage = $taxPercentage;\n $this->taxA = $price / 100 * 100;\n $this->price = $price;\n }",
"public function testSetPrime10() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setPrime10(10.092018);\n $this->assertEquals(10.092018, $obj->getPrime10());\n }",
"public function setPrice(?float $price): self\n {\n $this->initialized['price'] = true;\n $this->price = $price;\n\n return $this;\n }",
"public function setPrice(?float $price): self\n {\n $this->initialized['price'] = true;\n $this->price = $price;\n\n return $this;\n }",
"public function setPriceAttribute($price = null)\n\t{\n\t\t$this->attributes['price'] = floatval($price);\n\t}",
"public function getOperationPrimeCurrencyId()\n {\n\n return $this->operation_prime_currency_id;\n }",
"public function testSetPrimeJfNormal() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setPrimeJfNormal(10.092018);\n $this->assertEquals(10.092018, $obj->getPrimeJfNormal());\n }",
"public function setPriceAttribute($value) {\n\t\t$this->attributes['price'] = round(floatval($value), 2);\n\t}",
"function setPrice($price)\n {\n $this->price = $price;\n }",
"public function setPrice($price)\n {\n $this->price = $price;\n }",
"public function setPrice(float $price)\n {\n $this->parameters['price'] = $price;\n\n return $this;\n }",
"public function setShippingPrice() {\n if ($this->price > 200) {\n $this->shippingPrice = 0;\n }\n }",
"public function setOpPrimeNumero($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_numeric($v)) {\n $v = (int) $v;\n }\n }\n if ($this->op_prime_numero !== $v) {\n $this->op_prime_numero = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OP_PRIME_NUMERO;\n }\n\n\n return $this;\n }",
"public function setPriceCalculation($calculate = true)\n {\n $this->_calculatePrice = $calculate;\n }",
"public function testSetCumProvCp() {\n\n $obj = new Employes();\n\n $obj->setCumProvCp(10.092018);\n $this->assertEquals(10.092018, $obj->getCumProvCp());\n }",
"public function testSetPrime7() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setPrime7(10.092018);\n $this->assertEquals(10.092018, $obj->getPrime7());\n }",
"public function editPriceMoney(){\n\t\t\n\t\t\n\t\t\n\t\t\n\t}",
"public function testSetPrimeJf2Normal() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setPrimeJf2Normal(10.092018);\n $this->assertEquals(10.092018, $obj->getPrimeJf2Normal());\n }",
"public function setOptions_values_price( $options_values_price ) {\n\t\t$this->options_values_price = $options_values_price;\n\t}",
"public function setPrice($val)\n {\n $this->_propDict[\"price\"] = floatval($val);\n return $this;\n }",
"public function setTicketPrice($value) {\n return $this->set(self::TICKETPRICE, $value);\n }",
"public function setPrice(?float $price): self\n {\n $this->price = $price;\n\n return $this;\n }",
"public function setFixed() {\n }",
"public function setPrice($var)\n {\n GPBUtil::checkInt64($var);\n $this->price = $var;\n\n return $this;\n }",
"public function setOpPrimeId($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_numeric($v)) {\n $v = (int) $v;\n }\n }\n if ($this->op_prime_id !== $v) {\n $this->op_prime_id = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OP_PRIME_ID;\n }\n\n\n return $this;\n }",
"public function setPerPersonEquivFareAmount(float $value): self\n {\n $this->PerPersonEquivFareAmount = $value;\n\n return $this;\n }",
"public function setProgress($p)\r\n {\r\n // 0.0 <= $p <= 1.0\r\n $this->progress = intval( $p * 100 );\r\n }",
"public function testSetPriceProduct()\n {\n $product = new Product();\n $value = 10.99;\n $product->setPrice($value);\n $this->assertEquals($value, $product->getPrice());\n }",
"public function setPriceAttribute($value)\n {\n $this->attributes['price'] = Utils::numbersOnly($value);\n }",
"function setItem_price($price){\n $this->item_price = $price;\n }",
"public function setPrice($newPrice) {\n\t\t// verify the price is valid\n\t\t$newPrice = filter_var($newPrice, FILTER_VALIDATE_INT);\n\t\tif($newPrice === false) {\n\t\t\tthrow(new InvalidArgumentException(\"price is not a valid amount\"));\n\t\t}\n\n\t\t// verify the price is positive\n\t\tif($newPrice <= 0) {\n\t\t\tthrow(new RangeException(\"Price is not positive\"));\n\t\t}\n\n\t\t// convert and store the user id\n\t\t$this->price = intval($newPrice);\n\t}",
"public function testSetCumCpPris() {\n\n $obj = new Employes();\n\n $obj->setCumCpPris(10.092018);\n $this->assertEquals(10.092018, $obj->getCumCpPris());\n }",
"public function setValorPago(float $valorPago)\n {\n $this->valorPago = $valorPago;\n }",
"public function testSetMtPrimeForfait() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setMtPrimeForfait(10.092018);\n $this->assertEquals(10.092018, $obj->getMtPrimeForfait());\n }",
"public function setDefaultPaxPrice()\n {\n if (!$this->additionalprice) {\n $this->additionalprice = $this->transport ? 25 : $this->price;\n }\n return $this;\n }",
"public function setPerPersonEquivFareCurrency(string $value): self\n {\n $this->PerPersonEquivFareCurrency = $value;\n\n return $this;\n }",
"public function setPrice($value)\n {\n return $this->set(self::_PRICE, $value);\n }",
"function es_save_custom_quickedit_product( $product ) {\n\tif ( isset( $_REQUEST['member_price'] ) AND ! empty( $_REQUEST['member_price'] ) ) {\n\t\tupdate_post_meta( $product->id, 'member_price', wc_clean( $_REQUEST['member_price'] ) );\n\t}\n\telse \n\t\tdelete_post_meta( $product->id, 'member_price' );\n}",
"private function calculateFOBPriceAction()\n {\n // than 99, then modify shippingPrice to 0.00 \n \t$price = $this->info['productPrice'];\n if($price <= 99){\n $shippingPrice = $this->info['shippingPrice'];\n }\n else{\n $this->info['shippingPrice'] = 0.0;\n }\n $this->info['fobPrice'] = ($price + $shippingPrice) * 1.07; // It also adds US TAXes\n }",
"public function setFinalPrice($price)\n {\n $this->_data['final_price'] = $price;\n return $this;\n }",
"public function testSetPrime9() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setPrime9(10.092018);\n $this->assertEquals(10.092018, $obj->getPrime9());\n }",
"public function setOpPrimeLibelle($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->op_prime_libelle !== $v) {\n $this->op_prime_libelle = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OP_PRIME_LIBELLE;\n }\n\n\n return $this;\n }",
"public function testSetPrime() {\n\n $obj = new Employes();\n\n $obj->setPrime(true);\n $this->assertEquals(true, $obj->getPrime());\n }",
"public function setAttributes_price_factor( $attributes_price_factor ) {\n\t\t$this->attributes_price_factor = $attributes_price_factor;\n\t}",
"public function setAmount($amount = 0, $wholeAmt) {\n $amt = array(\n 'x_amount'=>$this->cleanAmt($amount, $wholeAmt),\n );\n $this->NVP = array_merge($this->NVP, $amt); \n }",
"public function setPerPersonTotalFareCurrency(string $value): self\n {\n $this->PerPersonTotalFareCurrency = $value;\n\n return $this;\n }",
"public function setPriceProduct($value)\n {\n $this->priceProduct = $value;\n }",
"public function savePrice(FipeVehiclePrice $price){\n $em = $this->getEntityManager();\n $em->persist($price);\n $em->flush();\n }",
"public function woocommerce_product_get_price_99999( $price, $product ) {\n\t\tif ( is_cart() || is_checkout() ) {\n\t\t\tif ( ! empty( $product->tc_cart_key ) ) {\n\t\t\t\t$cart_item_key = $product->tc_cart_key;\n\t\t\t\t$cart_item = WC()->cart->cart_contents[ $cart_item_key ];\n\t\t\t\tif ( ! empty( $cart_item['tmcartepo'] ) && isset( $cart_item['tm_epo_options_prices'] ) && empty( $cart_item['epo_price_override'] ) ) {\n\t\t\t\t\tWC()->cart->cart_contents[ $cart_item_key ]['tm_epo_product_after_adjustment'] = $price;\n\t\t\t\t\t$price = floatval( $price ) + floatval( $cart_item['tm_epo_options_prices'] );\n\t\t\t\t\tunset( WC()->cart->cart_contents[ $cart_item_key ]['tm_epo_doing_adjustment'] );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn $price;\n\t}",
"public function testSetPrime3() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setPrime3(10.092018);\n $this->assertEquals(10.092018, $obj->getPrime3());\n }",
"public function testSetPrime6() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setPrime6(10.092018);\n $this->assertEquals(10.092018, $obj->getPrime6());\n }",
"function SetPrice($fid, $price)\n{\n\t$price = mysql_real_escape_string($price);\n\t//TODO: Error check the price\n\tmysql_query(\"UPDATE files SET price='$price'\n\t\tWHERE id='$fid'\") or die();\n}",
"public function testSetPrime2() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setPrime2(10.092018);\n $this->assertEquals(10.092018, $obj->getPrime2());\n }",
"public function setEffectivePrice($var)\n {\n GPBUtil::checkMessage($var, \\Google\\Type\\Money::class);\n $this->effective_price = $var;\n\n return $this;\n }",
"public function testSetPrime5() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setPrime5(10.092018);\n $this->assertEquals(10.092018, $obj->getPrime5());\n }",
"public function setBasePoint($x, $y): void\n {\n switch (true) {\n case !$x instanceof BigInteger && !$x instanceof PrimeInteger:\n throw new UnexpectedValueException('Argument 1 passed to Prime::setBasePoint() must be an instance of either BigInteger or PrimeField\\Integer');\n case !$y instanceof BigInteger && !$y instanceof PrimeInteger:\n throw new UnexpectedValueException('Argument 2 passed to Prime::setBasePoint() must be an instance of either BigInteger or PrimeField\\Integer');\n }\n if (!isset($this->factory)) {\n throw new RuntimeException('setModulo needs to be called before this method');\n }\n $this->p = [\n $x instanceof BigInteger ? $this->factory->newInteger($x) : $x,\n $y instanceof BigInteger ? $this->factory->newInteger($y) : $y,\n ];\n }",
"public function setTotalPrice($price)\n {\n $this->attributes[\"valor_notafiscal\"] = (float)$price;\n\n $this->setAditionalPrice($this->getAditionalPrice());\n }",
"public function testSetPrime3() {\n\n $obj = new PointBonTrav();\n\n $obj->setPrime3(10.092018);\n $this->assertEquals(10.092018, $obj->getPrime3());\n }",
"public function setAmount()\n {\n $exact = $this->getOriginalPurgeValue('amount_exact');\n $percentage = $this->getOriginalPurgeValue('amount_percentage');\n\n $this->amount = $this->is_percentage\n ? $percentage\n : $exact;\n }",
"public function bundleWithSimpleProductPercentPrice()\n {\n //Data\n $simpleData = $this->loadData('simple_product_visible');\n $bundleData = $this->loadData('fixed_bundle_visible', null, array('general_name', 'general_sku'));\n $bundleData['bundle_items_data']['item_1'] = $this->loadData('bundle_item_2', array(\n 'bundle_items_search_sku' => $simpleData['general_sku'],\n 'selection_item_price' => '10',\n 'selection_item_price_type' => 'Percent',)\n );\n $productSearch = $this->loadData('product_search', array('product_sku' => $bundleData['general_sku']));\n //Steps\n $this->productHelper()->createProduct($simpleData);\n //Verifying\n $this->assertMessagePresent('success', 'success_saved_product');\n //Steps\n $this->productHelper()->createProduct($bundleData, 'bundle');\n //Verifying\n $this->assertMessagePresent('success', 'success_saved_product');\n //Steps\n $this->productHelper()->openProduct($productSearch);\n //Verifying\n $this->productHelper()->verifyProductInfo($bundleData);\n //Steps\n $this->logoutCustomer();\n $this->productHelper()->frontOpenProduct($bundleData['general_name']);\n try {\n $this->productHelper()->frontAddProductToCart();\n } catch (PHPUnit_Framework_AssertionFailedError $e) {\n $this->fail($e->toString());\n }\n //Verifying\n $this->validatePage();\n $this->assertFalse($this->isTextPresent('Internal server error', 'HTTP Error 500 Internal server error'));\n }",
"public function testSetPrime2() {\n\n $obj = new PointBonTrav();\n\n $obj->setPrime2(10.092018);\n $this->assertEquals(10.092018, $obj->getPrime2());\n }",
"public function setSalePriceAttribute($value)\n {\n $this->attributes['sale_price'] = Utils::numbersOnly($value);\n }",
"public function testSetCumProvCp1() {\n\n $obj = new Employes();\n\n $obj->setCumProvCp1(10.092018);\n $this->assertEquals(10.092018, $obj->getCumProvCp1());\n }",
"public function setPrice($price)\n {\n return $this->set('price', $price);\n }",
"public function calcularPresupuestoModificado(){\n $presupuesto = DB::table('tpresupuesto_tpartida')\n ->where('tPresupuesto_idPresupuesto','=', $this->idPresupuesto)\n ->sum('iPresupuestoModificado');\n $this->iPresupuestoModificado = $presupuesto;\n $this->save();\n }",
"public function testSetPrimeHNuitNormal() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setPrimeHNuitNormal(10.092018);\n $this->assertEquals(10.092018, $obj->getPrimeHNuitNormal());\n }",
"public function testSetCumMtCpPris() {\n\n $obj = new Employes();\n\n $obj->setCumMtCpPris(10.092018);\n $this->assertEquals(10.092018, $obj->getCumMtCpPris());\n }",
"function update_price($symbol = null) {\n\n $whereCondition = \"WHERE user_id = \".$this->user->user_id.\" AND symbol = '\".$symbol.\"';\";\n DB::instance(DB_NAME)->update(\"transactions\", $_POST, $whereCondition);\n\n }",
"public function setProcessFeesPercent($process_fees_percent)\r\n {\r\n $this->process_fees_percent = $process_fees_percent;\r\n return $this;\r\n }",
"public function setPrix($prix)\n {\n $prix = (float) $prix;\n // on vérifie que l id supérieur à zero\n if($prix > 0.0)\n {\n $this->_prix = $prix;\n }\n }",
"public function setBasePrice($var)\n {\n GPBUtil::checkMessage($var, \\Google\\Type\\Money::class);\n $this->base_price = $var;\n\n return $this;\n }",
"public function testHasKidsFixedPrice()\n {\n $this->assertEquals(0, $this->getObject(0)->setIsFixedPrice(true)->getValue());\n }",
"function setSyncItemsPriceStandard()\n {\n }",
"public function paid()\n {\n $this->paidAmount = $this->price;\n }",
"public function actionUpdatePrecio()\n\t{\n\t\t$model=$this->loadModel($_POST['pk']);\n\t\t$this->performAjaxValidation($model);\n\t\tif(isset($_POST['value']))\n\t\t{\n\t\t\t$model->precioWeb=$_POST['value'];\n\t\t\t$model->save();\n\t\t}\n\t}",
"public function testSetPrime8() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setPrime8(10.092018);\n $this->assertEquals(10.092018, $obj->getPrime8());\n }",
"public function setPrice ($price){\n\t\tif(!is_numeric($price)){\n\t\t\treturn;\n\t\t}\n\t\t$this->Item['price'] = $price;\n\t}",
"public function setValorParcela(float $valorParcela)\n {\n $this->valorParcela = $valorParcela;\n }",
"public function actionUpdateProductBuyBoxPrice()\n {\n $userData = User::find()->andWhere(['IS NOT', 'u_mws_seller_id', null])->all();\n\n foreach ($userData as $user) {\n $productData = FbaAllListingData::find()->andWhere(['created_by' => $user->u_id])->all();\n $skuData = AppliedRepriserRule::find()->select(['arr_sku'])->where(['arr_user_id' => $userData->u_id])->column();\n\n foreach ($productData as $product) {\n $productBuyBox = \\Yii::$app->api->getProductCompetitivePrice($product->seller_sku);\n $product->buybox_price = $productBuyBox;\n\n if(in_array($product->seller_sku, $skuData)) {\n $magicPrice = \\Yii::$app->api->getMagicRepricerPrice($product->seller_sku, $productBuyBox, $product->repricing_min_price, $product->repricing_max_price, $product->repricing_rule_id);\n if($magicPrice) {\n $product->repricing_cost_price = $magicPrice;\n }\n }\n\n if ($product->save(false)) {\n echo $product->asin1 . \" is Updated.\";\n }\n sleep(2);\n }\n sleep(1);\n }\n }",
"public function saveDecimalFactor($order,$decimalFactor){\n\t\t$finalAmount = $order->getGrandTotal() * $decimalFactor;\n\t\t$this->addData([\n\t\t\t\"order_id\" => $order->getIncrementId(),\n\t\t\t\"decimal_factor\" =>$decimalFactor,\n\t\t\t\"order_value\" => $order->getGrandTotal(),\n\t\t\t\"final_value\" => $finalAmount\n\t\t\t]);\n\t\t$saveData = $this->save(); \n\t }",
"public function testSetPrimeHComplMaj() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setPrimeHComplMaj(10.092018);\n $this->assertEquals(10.092018, $obj->getPrimeHComplMaj());\n }",
"public function setTicket_price($ticket_price)\n {\n $this->ticket_price = $ticket_price;\n\n return $this;\n }",
"public function testSetPourcentAct() {\n\n $obj = new Employes();\n\n $obj->setPourcentAct(10.092018);\n $this->assertEquals(10.092018, $obj->getPourcentAct());\n }"
] | [
"0.7382167",
"0.6767842",
"0.6492442",
"0.6071091",
"0.5446826",
"0.54002994",
"0.535681",
"0.53148055",
"0.5299469",
"0.52318156",
"0.52069175",
"0.51923376",
"0.5187999",
"0.5142954",
"0.5116386",
"0.5035392",
"0.5016725",
"0.50020295",
"0.49857175",
"0.49821573",
"0.49821573",
"0.49420187",
"0.49321407",
"0.4929507",
"0.49210835",
"0.49195197",
"0.49125627",
"0.49070683",
"0.48936573",
"0.48495933",
"0.4843868",
"0.48224533",
"0.4799016",
"0.4785594",
"0.47851384",
"0.47775012",
"0.47064394",
"0.46937197",
"0.468732",
"0.46788958",
"0.46730527",
"0.4671541",
"0.46695992",
"0.46570146",
"0.46455073",
"0.46259117",
"0.46217194",
"0.46195439",
"0.46146703",
"0.46047243",
"0.46041048",
"0.4599845",
"0.45946726",
"0.45742628",
"0.4572659",
"0.45639148",
"0.4563641",
"0.45577893",
"0.45575058",
"0.45566577",
"0.45522246",
"0.45376605",
"0.4536469",
"0.45343134",
"0.45287055",
"0.45231307",
"0.45178124",
"0.45162582",
"0.45162186",
"0.45044965",
"0.45036456",
"0.44946587",
"0.44893467",
"0.44857618",
"0.44826758",
"0.44637266",
"0.4460592",
"0.44517067",
"0.4448867",
"0.44475836",
"0.44368425",
"0.44352254",
"0.44294816",
"0.44274145",
"0.4423205",
"0.44145635",
"0.44138592",
"0.4410178",
"0.4390999",
"0.43881357",
"0.43862835",
"0.43850833",
"0.43819988",
"0.43770784",
"0.43676472",
"0.43664196",
"0.43440118",
"0.4339311",
"0.433917",
"0.4338871"
] | 0.6565606 | 2 |
setOperationPrimeProductPricePourcentage() Set the value of [operation_prime_maximum_amount] column. | public function setOperationPrimeMaximumAmount($v)
{
if ($v === ''){
$v = null;
}
elseif ($v !== null){
if(is_string($v)){
$v = str_replace(
array(' ',','),
array('','.'),
$v
);
}
if(is_numeric($v)) {
$v = (float) $v;
}
}
if ($this->operation_prime_maximum_amount !== $v) {
$this->operation_prime_maximum_amount = $v;
$this->modifiedColumns[] = OperationPrimesPeer::OPERATION_PRIME_MAXIMUM_AMOUNT;
}
return $this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getOperationPrimeProductPricePourcentage()\n {\n\n return $this->operation_prime_product_price_pourcentage;\n }",
"public function setOperationPrimeProductPricePourcentage($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_numeric($v)) {\n $v = (int) $v;\n }\n }\n if ($this->operation_prime_product_price_pourcentage !== $v) {\n $this->operation_prime_product_price_pourcentage = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OPERATION_PRIME_PRODUCT_PRICE_POURCENTAGE;\n }\n\n\n return $this;\n }",
"public function getOperationPrimeMaximumAmount()\n {\n\n return $this->operation_prime_maximum_amount;\n }",
"public function setMaxPrice($maxPrice);",
"public function setOperationPrimeFixedAmount($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_string($v)){\n $v = str_replace(\n array(' ',','),\n array('','.'),\n $v\n );\n }\n \n if(is_numeric($v)) {\n $v = (float) $v;\n }\n }\n if ($this->operation_prime_fixed_amount !== $v) {\n $this->operation_prime_fixed_amount = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OPERATION_PRIME_FIXED_AMOUNT;\n }\n\n\n return $this;\n }",
"public function getOperationPrimeFixedAmount()\n {\n\n return $this->operation_prime_fixed_amount;\n }",
"public function setMaxPrice($value)\n {\n return $this->set('MaxPrice', $value);\n }",
"public function setMaxPrice($value)\n {\n return $this->set('MaxPrice', $value);\n }",
"public function setMaxPrice($value)\n {\n return $this->set('MaxPrice', $value);\n }",
"public function setMaxPrice($value) {\n return $this->set(self::MAXPRICE, $value);\n }",
"public function setMaxPrice($maxPrice)\n\n {\n $this->maxPrice = $maxPrice;\n\n return $this;\n }",
"public function setOperationPrimeCurrencyId($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_numeric($v)) {\n $v = (int) $v;\n }\n }\n if ($this->operation_prime_currency_id !== $v) {\n $this->operation_prime_currency_id = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OPERATION_PRIME_CURRENCY_ID;\n }\n\n if ($this->aRCurrencies !== null && $this->aRCurrencies->getRCurrencyId() !== $v) {\n $this->aRCurrencies = null;\n }\n\n\n return $this;\n }",
"public function setProductPrice($product_price){\n $this->product_price = $product_price;\n }",
"public function getProductPriceX()\n {\n return $this->_scopeConfig->getValue('splitprice/split_price_config/maximum_splits', \\Magento\\Store\\Model\\ScopeInterface::SCOPE_STORE);\n }",
"public function setOpPrimeNumero($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_numeric($v)) {\n $v = (int) $v;\n }\n }\n if ($this->op_prime_numero !== $v) {\n $this->op_prime_numero = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OP_PRIME_NUMERO;\n }\n\n\n return $this;\n }",
"public function getProductPriceX()\n {\n return Mage::getStoreConfig('splitprice/split_price_config/maximum_splits');\n }",
"public function setOpPrimeLibelle($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->op_prime_libelle !== $v) {\n $this->op_prime_libelle = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OP_PRIME_LIBELLE;\n }\n\n\n return $this;\n }",
"public function getOperationPrimeCurrencyId()\n {\n\n return $this->operation_prime_currency_id;\n }",
"public function get_max_product_price()\n\t{\n\t\t$this->db->select('MAX(product_selling_price) AS price')->from('product')->where(\"product_status = 1\");\n\t\t$query = $this->db->get();\n\t\t$result = $query->row();\n\t\t\n\t\treturn $result->price;\n\t}",
"public function getOpPrimeNumero()\n {\n\n return $this->op_prime_numero;\n }",
"public function setOpPrimeId($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_numeric($v)) {\n $v = (int) $v;\n }\n }\n if ($this->op_prime_id !== $v) {\n $this->op_prime_id = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OP_PRIME_ID;\n }\n\n\n return $this;\n }",
"function setPrice($new_price)\n {\n $this->price = $new_price;\n }",
"public function setPesoArea($peso) {\n $this->_peso = $peso; \n }",
"function get_price_max_amount( $amount ) {\n\t\treturn $this->price_max;\n\t}",
"public function testSetPrime7() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setPrime7(10.092018);\n $this->assertEquals(10.092018, $obj->getPrime7());\n }",
"public function setFinalPrice($price)\n {\n $this->_data['final_price'] = $price;\n return $this;\n }",
"public function setMaximumValue(int $maximumValue): void;",
"public function getMaxPrice()\n\n {\n\n return $this->maxPrice;\n }",
"public function testSetPrime10() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setPrime10(10.092018);\n $this->assertEquals(10.092018, $obj->getPrime10());\n }",
"public function setPrice($value)\n {\n $this->price = $value;\n $this->recalculate();\n }",
"private function get_max_price() : float {\n\t\tpreg_match( '/runParams\\.maxPrice=\"(.*?)\";/s', $this->request, $matches );\n\t\tif ( empty( $matches[1] ) ) {\n\t\t\treturn 0.0;\n\t\t}\n\t\treturn floatval( $matches[1] );\n\t}",
"static function getSiteMaxPrice() {\n return self::getMetaValueRange(PostProperty::META_PRICE, false, 1000000000);\n }",
"public function setPrice($price)\n {\n $this->price = (double)$price;\n $this->recalculatePriceTotal();\n }",
"public function testFilterMaximumPrice()\n {\n $this->visit('/properties')\n ->type('450', '#maxPrice')\n ->press('Update results')\n ->see('Shack in the desert');\n $this->notSee('Five bedroom mill conversion');\n $this->notSee('Victorian townhouse');\n }",
"public function setPriceProduct($value)\n {\n $this->priceProduct = $value;\n }",
"public function getSliderMaxPrice()\n {\n if (!$this->getPriceRange()['max']) {\n return $this->getProductsMaxPrice();\n }\n return $this->getPriceRange()['max'];\n }",
"public function setShippingPrice() {\n if ($this->price > 200) {\n $this->shippingPrice = 0;\n }\n }",
"public function setMaximum($value) {\r\n $this->internalSetMaximum($value);\r\n }",
"public function setMaxPoints($value) {}",
"public function setMaxValue($maxValue);",
"public function testSetPrime6() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setPrime6(10.092018);\n $this->assertEquals(10.092018, $obj->getPrime6());\n }",
"public function getMaxPrice() {\n return $this->get(self::MAXPRICE);\n }",
"function setPrice( $value )\n {\n if ( $this->State_ == \"Dirty\" )\n $this->get( $this->ID );\n\n $this->Price = $value;\n setType( $this->Price, \"double\" );\n }",
"public function setMaximumOrderAmount()\n {\n $oBasket = $this->getBasket();\n $oRequest = $this->getPayPalRequest();\n\n $oRequest->setParameter(\"MAXAMT\", $this->_formatFloat(($oBasket->getPrice()->getBruttoPrice() + $oBasket->getDiscountSumPayPalBasket() + $this->getMaxDeliveryAmount() + 1)));\n }",
"public function setPrice(float $price):void\n {\n $this->price = $price;\n }",
"public function setPrice($price)\n {\n $this->price = $price;\n }",
"public function setPriceAttribute($value)\n {\n $this->attributes['price'] = $value*100;\n }",
"public function setOptions_values_price( $options_values_price ) {\n\t\t$this->options_values_price = $options_values_price;\n\t}",
"public function setPrice()\n {\n $price = $this->price;\n $outFix = $this->outFix;\n $outPer = $this->outPer;\n $inPer = $this->inPer;\n $inFix = $this->inFix;\n $flag = $this->flagInOut;\n if ($price < 1) {\n $sumIn = $outFix > 0 ? 1 + $outFix : 1; //outFix\n $sumIn = $outPer > 0 ? $sumIn + ($sumIn * $outPer / 100) : $sumIn; //outPer\n $sumIn = $sumIn / $price; // price\n $sumIn = $inFix > 0 ? $sumIn + $inFix : $sumIn;// inFix\n $ss = $sumIn * $inPer / 100;\n $sumIn = $inPer > 0 ? $sumIn + $ss : $sumIn;\n $this->in = $this->format_amount($sumIn);\n $this->out = $flag ? 1 : 0;\n } else {\n $val = $inFix > 0 ? 1 - $inFix : 1;\n $val = $inPer > 0 ? $val - $val * ($inPer / 100) : $val;\n $sumOut = $price * $val;\n $sumOut = $outFix > 0 ? $sumOut - $outFix : $sumOut;\n $sumOut = $outPer > 0 ? $sumOut - $outPer / 100 * $sumOut : $sumOut;\n $this->out = $this->format_amount($sumOut);\n $this->in = $flag ? 1 : 0;\n }\n $this->price = (float)$price;\n }",
"public function setMaxModerationScore($maxMod){\r\n\t\t$this->MAX_MODERATE_SCORE = $maxMod;\r\n\t}",
"public function getOpPrimeLibelle()\n {\n\n return $this->op_prime_libelle;\n }",
"private function validate_maximum_amount() {\n\t\tif ( $this->maximum_amount > 0 && wc_format_decimal( $this->maximum_amount ) < wc_format_decimal( WC()->cart->subtotal ) ) {\n\t\t\tthrow new Exception( self::E_WC_COUPON_MAX_SPEND_LIMIT_MET );\n\t\t}\n\t}",
"public function set_reward_point_multiplier($value = FALSE)\r\n\t{\t\t\r\n\t\tif (empty($value) || $value < 0)\r\n\t\t{\r\n\t\t\t// Look-up database value.\r\n\t\t\tif ($config_data = $this->get_database_config_data('reward_point_multiplier'))\r\n\t\t\t{\r\n\t\t\t\t$value = $config_data[$this->flexi->cart_database['configuration']['columns']['reward_point_multiplier']];\r\n\t\t\t}\r\n\t\t\t// Look-up config file value.\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\t$value = $this->flexi->cart_defaults['configuration']['reward_point_multiplier'];\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t$this->flexi->cart_contents['settings']['configuration']['reward_point_multiplier'] = $this->format_calculation($value, 4, TRUE);\r\n\t\t\r\n\t\treturn TRUE;\r\n\t}",
"public function setPriceAttribute($value)\n {\n $this->attributes['price'] = $value * 100;\n }",
"function getPriceMax($game_id, $round_number, $product_number, $region_number, $channel_number){\r\n\t\t\t$prices=new Model_DbTable_Decisions_Mk_Prices();\r\n\t\t\t$max=0;\r\n\t\t\t$companies=$this->getCompaniesInGame($game_id);\r\n\t\t\tforeach ($companies as $company) {\r\n\t\t\t\t$result=$prices->getDecision($game_id, $company['id'], $round_number);\r\n\t\t\t\t$result_product=$result['product_'.$product_number];\r\n\t\t\t\t$result_channel=$result_product['channel_'.$channel_number];\r\n\t\t\t\t$result_region=$result_channel['region_'.$region_number];\r\n\t\t\t\t$price=$result_region;\r\n\t\t\t\tif ($price>$max){\r\n\t\t\t\t\t$max=$price;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn $max;\r\n\t\t}",
"public function setPriceRange($value)\n {\n $this->priceRange = $value;\n }",
"public function setPrice($newPrice) {\n\t\t// verify the price is valid\n\t\t$newPrice = filter_var($newPrice, FILTER_VALIDATE_INT);\n\t\tif($newPrice === false) {\n\t\t\tthrow(new InvalidArgumentException(\"price is not a valid amount\"));\n\t\t}\n\n\t\t// verify the price is positive\n\t\tif($newPrice <= 0) {\n\t\t\tthrow(new RangeException(\"Price is not positive\"));\n\t\t}\n\n\t\t// convert and store the user id\n\t\t$this->price = intval($newPrice);\n\t}",
"public function setBestPrice($product_id) {\n $query = \"SELECT * FROM wp_pwgb_postmeta WHERE post_id=:product_id;\";\n $stm = $this->db->prepare($query);\n $stm->bindValue(\":product_id\", $product_id, PDO::PARAM_INT);\n $stm->execute();\n\n $response = $stm->fetchAll(PDO::FETCH_ASSOC);\n $tag_prices = $this->productPrice();\n $theBest = ['price' => 0];\n $otherPrices = [];\n $hasChanged = false;\n\n // Obtiene el mejor precio anterior\n foreach ($response as $metadata) {\n // Mejor precio\n if (isset($metadata['meta_key']) && $metadata['meta_key'] == 'price_best') {\n $theBest['price'] = $metadata['meta_value'];\n }\n\n // Mejor tienda\n if (isset($metadata['meta_key']) && $metadata['meta_key'] == 'best_shop') {\n $theBest['shop'] = $metadata['meta_value'];\n }\n\n // Obtiene el precio de otras tiendas\n foreach ($tag_prices as $price) {\n if (isset($metadata['meta_key']) && $metadata['meta_key'] == $price) {\n $otherPrices[$price] = (int) $metadata['meta_value'];\n }\n }\n }\n\n $oldPrice = $theBest['price'];\n // Obtiene el nuevo mejor precio\n foreach ($otherPrices as $store => $price) {\n if (($price > 0) && ($price < $theBest['price'])) {\n $theBest['price'] = $price;\n $theBest['shop'] = $store;\n $hasChanged = true;\n }\n }\n\n // Si el mejor precio cambio, lo actualiza y lo guarda en el historial\n if ($hasChanged) {\n $query = \"INSERT INTO dw_historial (product_id, price_old, price_new, created_at) VALUES \n (:product_id, :price_old, :price_new, NOW());\";\n $stm2 = $this->db->prepare($query);\n $stm2->bindValue(\":product_id\", $product_id, PDO::PARAM_INT);\n $stm2->bindValue(\":price_old\", $oldPrice, PDO::PARAM_INT);\n $stm2->bindValue(\":price_new\", $theBest['price'], PDO::PARAM_INT);\n $stm2->execute();\n\n $query = \"UPDATE wp_pwgb_postmeta SET meta_value=:price_new WHERE post_id=:product_id AND meta_key='price_best';\";\n $stm3 = $this->db->prepare($query);\n $stm3->bindValue(\":product_id\", $product_id, PDO::PARAM_INT);\n $stm3->bindValue(\":price_new\", $theBest['price'], PDO::PARAM_INT);\n $stm3->execute();\n\n $query = \"UPDATE wp_pwgb_postmeta SET meta_value=:best_shop WHERE post_id=:product_id AND meta_key='best_shop';\";\n $stm4 = $this->db->prepare($query);\n $stm4->bindValue(\":product_id\", $product_id, PDO::PARAM_INT);\n $stm4->bindValue(\":best_shop\", $theBest['shop'], PDO::PARAM_STR);\n $stm4->execute();\n }\n }",
"public function _setMaxScore($maxScore) {\n\t\t$this->_maxScore = $maxScore;\n\t}",
"public function testSetMtPrimeForfait() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setMtPrimeForfait(10.092018);\n $this->assertEquals(10.092018, $obj->getMtPrimeForfait());\n }",
"public function testSetPrimeJfNormal() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setPrimeJfNormal(10.092018);\n $this->assertEquals(10.092018, $obj->getPrimeJfNormal());\n }",
"public function getOpPrimeId()\n {\n\n return $this->op_prime_id;\n }",
"function setPrice($price)\n {\n $this->price = $price;\n }",
"public function setMax($value)\n {\n if (is_array($value)) {\n $value = array2Point($value);\n }\n\n if (!($value instanceof Point)) {\n throw new InvalidConfigException('Invalid `max` attribute value; it must be a Point object or an array that can be converted to a Point object');\n }\n\n $this->_max = $value;\n }",
"public function testSetPrime() {\n\n $obj = new Employes();\n\n $obj->setPrime(true);\n $this->assertEquals(true, $obj->getPrime());\n }",
"public function getMaximalPrice()\n {\n if (!$this->maximalPrice) {\n $maximalPrice = $this->product->getMaximalPrice();\n if ($maximalPrice === null) {\n $maximalPrice = $this->getValue();\n } else {\n $maximalPrice = $this->priceCurrency->convertAndRound($maximalPrice);\n }\n $this->maximalPrice = $this->calculator->getAmount($maximalPrice, $this->product);\n }\n return $this->maximalPrice;\n }",
"public function testSetPrimeHComplMaj() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setPrimeHComplMaj(10.092018);\n $this->assertEquals(10.092018, $obj->getPrimeHComplMaj());\n }",
"public function setNewUserPrice($value)\n {\n return $this->set(self::new_user_price, $value);\n }",
"public function testSetPrimeJf2Normal() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setPrimeJf2Normal(10.092018);\n $this->assertEquals(10.092018, $obj->getPrimeJf2Normal());\n }",
"public function testSetPrime9() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setPrime9(10.092018);\n $this->assertEquals(10.092018, $obj->getPrime9());\n }",
"public function setMaxPerIp($maxPerIp)\n {\n if ($maxPerIp != $this->maxPerIp) {\n $this->maxPerIp = $maxPerIp;\n }\n }",
"public function testSetPrime2() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setPrime2(10.092018);\n $this->assertEquals(10.092018, $obj->getPrime2());\n }",
"public function testSetTpPourcentageNonOperationnel() {\n\n $obj = new Collaborateurs();\n\n $obj->setTpPourcentageNonOperationnel(10.092018);\n $this->assertEquals(10.092018, $obj->getTpPourcentageNonOperationnel());\n }",
"public function setPrice(float $price) : void\n {\n $this->set('price', $price, 'products');\n }",
"public function setPriceAttribute($price = null)\n\t{\n\t\t$this->attributes['price'] = floatval($price);\n\t}",
"public function getProfitFinalPriceAttribute()\n {\n if ( Configuration::isTrue('ENABLE_ECOTAXES') )\n return $this->unit_final_price - $this->ecotax_amount;\n\n // Otherwise\n return $this->unit_final_price;\n }",
"function es_save_custom_quickedit_product( $product ) {\n\tif ( isset( $_REQUEST['member_price'] ) AND ! empty( $_REQUEST['member_price'] ) ) {\n\t\tupdate_post_meta( $product->id, 'member_price', wc_clean( $_REQUEST['member_price'] ) );\n\t}\n\telse \n\t\tdelete_post_meta( $product->id, 'member_price' );\n}",
"public function testSetCumProvCp() {\n\n $obj = new Employes();\n\n $obj->setCumProvCp(10.092018);\n $this->assertEquals(10.092018, $obj->getCumProvCp());\n }",
"public function setProgressMax(int $value)\n {\n $this->update(['progress_max' => $value]);\n }",
"public function getPricePerMonth($_product) {\n $price = $_product->getResource()->getAttribute('santanderpricemonth')->getFrontend()->getValue($_product);\n return Mage::helper('core')->currency(round($price, 2));\n }",
"function setPrice($price, $taxPercentage = 25)\n {\n $this->taxPercentage = $taxPercentage;\n $this->taxA = $price / 100 * 100;\n $this->price = $price;\n }",
"public function setPriceAttribute($value) {\n\t\t$this->attributes['price'] = round(floatval($value), 2);\n\t}",
"public function setMpPerc($value)\n {\n return $this->set(self::_MP_PERC, $value);\n }",
"public function testSetPrime5() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setPrime5(10.092018);\n $this->assertEquals(10.092018, $obj->getPrime5());\n }",
"public function updatePeriodMaxCycles()\r\n {\r\n // edit period max cycles if It is greater than or equal 0 and is numeric\r\n // If period max cycles <= 0 or null, recurring profile will run forever\r\n if ($periodMaxCycles = $this->_recurringProfile->getPeriodMaxCycles()) {\r\n if ((string)(int) $periodMaxCycles === ltrim($periodMaxCycles, '0') && $periodMaxCycles > 0) {\r\n $periodMaxCycles = (int) $periodMaxCycles - 1;\r\n $this->_recurringProfile->setPeriodMaxCycles($periodMaxCycles);\r\n $this->_recurringProfile->save();\r\n }\r\n }\r\n }",
"public function set_limit($new_limit){\r\n $this->limit = $new_limit;\r\n }",
"public function setTicketPrice($value) {\n return $this->set(self::TICKETPRICE, $value);\n }",
"public function getMaxPrice();",
"public function setFinalPrice($finalPrice) {\n $this->_finalPrice = $finalPrice;\n return $this;\n }",
"public function testSetPrime8() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setPrime8(10.092018);\n $this->assertEquals(10.092018, $obj->getPrime8());\n }",
"public function setMax( int $max ): void {\n\t\t\t$this->maximum = $max;\n\t\t}",
"public function setPriceCalculation($calculate = true)\n {\n $this->_calculatePrice = $calculate;\n }",
"public function testSetPriceProduct()\n {\n $product = new Product();\n $value = 10.99;\n $product->setPrice($value);\n $this->assertEquals($value, $product->getPrice());\n }",
"public function setPrice($price) {\n return false;\n }",
"public function GetMaxAmount()\n\t {\n\t\t return $this->db->query(\"select MAX(TotalPrice) as price from tb_products\")->row_array(); \n\t }",
"public function setPrice($var)\n {\n GPBUtil::checkInt64($var);\n $this->price = $var;\n\n return $this;\n }",
"public function setPourcentage(float $pourcentage) : self\n {\n $this->pourcentage = $pourcentage;\n\n return $this;\n }",
"function set_pm_defecto($punto)\n\t{\n\t\t$db = $this->get_db();\n\t\t$id_punto = $db->quote($punto->get_id());\n\t\t$sql = \"UPDATE apex_proyecto\n\t\t\t\tSET pm_impresion = $id_punto,\n\t\t\t\t\tpm_sesion = $id_punto,\n\t\t\t\t\tpm_contexto = $id_punto,\n\t\t\t\t\tpm_usuario = $id_punto\n\t\t\t\tWHERE proyecto = \".$db->quote($this->identificador);\n\t\t$db->ejecutar($sql);\n\t}",
"public function testXEMFeeMaximum()\n {\n // sending 250000 XEM reaches the maximum fee\n $amount = new Amount([\"amount\" => 260*1000]);\n\n $expectFee = Fee::MAX_AMOUNT_FEE;\n $actualFee = Fee::calculateForXEM($amount->toMicro());\n\n $this->assertEquals(260000, $amount->toMicro());\n $this->assertEquals($expectFee, $actualFee);\n }",
"public function setMaxDaysOnMarket($maxDaysOnMarket);"
] | [
"0.70905197",
"0.6973483",
"0.65682626",
"0.5927806",
"0.5793626",
"0.5509157",
"0.54604095",
"0.54604095",
"0.54604095",
"0.5455875",
"0.5373107",
"0.52523375",
"0.52031016",
"0.51025015",
"0.5088597",
"0.5012854",
"0.5007222",
"0.4998971",
"0.49829134",
"0.4940826",
"0.4930492",
"0.49091905",
"0.4877738",
"0.48735315",
"0.48567933",
"0.4820451",
"0.48127615",
"0.4800908",
"0.4772894",
"0.47556457",
"0.47376806",
"0.47307497",
"0.47107947",
"0.47089785",
"0.47088066",
"0.47000012",
"0.46999928",
"0.46953523",
"0.46891704",
"0.46834117",
"0.46789637",
"0.46769804",
"0.4676137",
"0.46759865",
"0.46590507",
"0.4655696",
"0.46506417",
"0.46467474",
"0.46456733",
"0.46317542",
"0.46295434",
"0.46267456",
"0.46259925",
"0.46190083",
"0.46111426",
"0.46049327",
"0.4602658",
"0.45914593",
"0.45677614",
"0.45558968",
"0.45300987",
"0.45280525",
"0.45231882",
"0.45171416",
"0.45106122",
"0.44961298",
"0.44914788",
"0.44885132",
"0.44868478",
"0.44665682",
"0.44612846",
"0.4456898",
"0.4451045",
"0.44458336",
"0.4441304",
"0.44373313",
"0.44250104",
"0.44159096",
"0.4409049",
"0.4407977",
"0.44057697",
"0.44039342",
"0.43977714",
"0.43972775",
"0.43958446",
"0.43816262",
"0.43723106",
"0.43681902",
"0.4367522",
"0.436623",
"0.43532693",
"0.4336462",
"0.43226275",
"0.4311743",
"0.42958218",
"0.42908508",
"0.42876235",
"0.42801717",
"0.4278928",
"0.42762566"
] | 0.70858216 | 1 |
setOperationPrimeMaximumAmount() Indicates whether the columns in this object are only set to default values. This method can be used in conjunction with isModified() to indicate whether an object is both modified _and_ has some values set which are nondefault. | public function hasOnlyDefaultValues()
{
// otherwise, everything was equal, so return true
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function setOperationPrimeMaximumAmount($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_string($v)){\n $v = str_replace(\n array(' ',','),\n array('','.'),\n $v\n );\n }\n \n if(is_numeric($v)) {\n $v = (float) $v;\n }\n }\n if ($this->operation_prime_maximum_amount !== $v) {\n $this->operation_prime_maximum_amount = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OPERATION_PRIME_MAXIMUM_AMOUNT;\n }\n\n\n return $this;\n }",
"public function getOperationPrimeMaximumAmount()\n {\n\n return $this->operation_prime_maximum_amount;\n }",
"public function setOperationPrimeFixedAmount($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_string($v)){\n $v = str_replace(\n array(' ',','),\n array('','.'),\n $v\n );\n }\n \n if(is_numeric($v)) {\n $v = (float) $v;\n }\n }\n if ($this->operation_prime_fixed_amount !== $v) {\n $this->operation_prime_fixed_amount = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OPERATION_PRIME_FIXED_AMOUNT;\n }\n\n\n return $this;\n }",
"public function getOperationPrimeFixedAmount()\n {\n\n return $this->operation_prime_fixed_amount;\n }",
"public function isSetMax()\n {\n return !is_null($this->_fields['Max']['FieldValue']);\n }",
"public function isSetMaxBatchSize()\n {\n return !is_null($this->_fields['MaxBatchSize']['FieldValue']);\n }",
"public function setOpPrimeNumero($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_numeric($v)) {\n $v = (int) $v;\n }\n }\n if ($this->op_prime_numero !== $v) {\n $this->op_prime_numero = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OP_PRIME_NUMERO;\n }\n\n\n return $this;\n }",
"public function setOperationPrimeProductPricePourcentage($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_numeric($v)) {\n $v = (int) $v;\n }\n }\n if ($this->operation_prime_product_price_pourcentage !== $v) {\n $this->operation_prime_product_price_pourcentage = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OPERATION_PRIME_PRODUCT_PRICE_POURCENTAGE;\n }\n\n\n return $this;\n }",
"public function getOpPrimeNumero()\n {\n\n return $this->op_prime_numero;\n }",
"public function setOperationPrimeCurrencyId($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_numeric($v)) {\n $v = (int) $v;\n }\n }\n if ($this->operation_prime_currency_id !== $v) {\n $this->operation_prime_currency_id = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OPERATION_PRIME_CURRENCY_ID;\n }\n\n if ($this->aRCurrencies !== null && $this->aRCurrencies->getRCurrencyId() !== $v) {\n $this->aRCurrencies = null;\n }\n\n\n return $this;\n }",
"public function setMaximumValue(int $maximumValue): void;",
"public function setOpPrimeId($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_numeric($v)) {\n $v = (int) $v;\n }\n }\n if ($this->op_prime_id !== $v) {\n $this->op_prime_id = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OP_PRIME_ID;\n }\n\n\n return $this;\n }",
"public function setMaxModerationScore($maxMod){\r\n\t\t$this->MAX_MODERATE_SCORE = $maxMod;\r\n\t}",
"public function getOperationPrimeProductPricePourcentage()\n {\n\n return $this->operation_prime_product_price_pourcentage;\n }",
"public function getOperationPrimeCurrencyId()\n {\n\n return $this->operation_prime_currency_id;\n }",
"public function hasMpMax(){\r\n return $this->_has(4);\r\n }",
"function get_price_max_amount( $amount ) {\n\t\treturn $this->price_max;\n\t}",
"public function hasOnlyDefaultValues()\n\t{\n\t\t\t// First, ensure that we don't have any columns that have been modified which aren't default columns.\n\t\t\tif (array_diff($this->modifiedColumns, array(UserPeer::PLATFORM,UserPeer::EXPERIENCE_SCORE,UserPeer::UP_VOTES,UserPeer::DOWN_VOTES,UserPeer::IS_GUEST,UserPeer::IS_ADMIN,UserPeer::TODAY_VOTES,UserPeer::EMAIL_ON))) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->platform !== 'pc') {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->experience_score !== 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->up_votes !== 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->down_votes !== 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->is_guest !== 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->is_admin !== 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->today_votes !== 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->email_on !== 1) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t// otherwise, everything was equal, so return TRUE\n\t\treturn true;\n\t}",
"public function setMaximumAmount($max, bool $inclusive = false, ?string $message = null) : void\n {\n $this->maximumOptions = [\n 'max' => $max,\n 'inclusive' => $inclusive,\n 'message' => $message,\n ];\n }",
"private function validate_maximum_amount() {\n\t\tif ( $this->maximum_amount > 0 && wc_format_decimal( $this->maximum_amount ) < wc_format_decimal( WC()->cart->subtotal ) ) {\n\t\t\tthrow new Exception( self::E_WC_COUPON_MAX_SPEND_LIMIT_MET );\n\t\t}\n\t}",
"function _checkMaxQuantityLimt()\r\n {\r\n if ($this->data[$this->name]['buy_max_quantity_per_user'] >= $this->data[$this->name]['buy_min_quantity_per_user']) {\r\n return true;\r\n }\r\n return false;\r\n }",
"public function hasOnlyDefaultValues()\n {\n if ($this->deleted !== false) {\n return false;\n }\n\n if ($this->amount !== 1) {\n return false;\n }\n\n if ($this->amountevaluation !== 0) {\n return false;\n }\n\n if ($this->defaultstatus !== 0) {\n return false;\n }\n\n if ($this->defaultdirectiondate !== 0) {\n return false;\n }\n\n if ($this->defaultenddate !== 0) {\n return false;\n }\n\n if ($this->defaultpersoninevent !== 0) {\n return false;\n }\n\n if ($this->defaultpersonineditor !== 0) {\n return false;\n }\n\n if ($this->maxoccursinevent !== 0) {\n return false;\n }\n\n if ($this->showtime !== false) {\n return false;\n }\n\n if ($this->ispreferable !== true) {\n return false;\n }\n\n if ($this->isrequiredcoordination !== false) {\n return false;\n }\n\n if ($this->isrequiredtissue !== false) {\n return false;\n }\n\n if ($this->mnem !== '') {\n return false;\n }\n\n // otherwise, everything was equal, so return true\n return true;\n }",
"public function testSetPrime() {\n\n $obj = new Employes();\n\n $obj->setPrime(true);\n $this->assertEquals(true, $obj->getPrime());\n }",
"public function setMaxValue($maxValue);",
"public function setMaxPrice($maxPrice);",
"public function hasMaxMp(){\r\n return $this->_has(4);\r\n }",
"protected function setHideAmount()\n {\n \tif (isset($_POST['hide_amount']) && !empty($_POST['hide_amount'])) {\n \t\t$this->data['hide_amount'] = 1;\n \t} else {\n \t\t$this->data['hide_amount'] = 0;\n \t}\n }",
"public function getOpPrimeLibelle()\n {\n\n return $this->op_prime_libelle;\n }",
"public function setMouvementGenere(?bool $mouvementGenere): MouvementsStock {\n $this->mouvementGenere = $mouvementGenere;\n return $this;\n }",
"public function getOpPrimeId()\n {\n\n return $this->op_prime_id;\n }",
"public function hasOnlyDefaultValues()\n {\n if ($this->montacargas_baja !== 0) {\n return false;\n }\n\n // otherwise, everything was equal, so return true\n return true;\n }",
"public function setOpPrimeLibelle($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->op_prime_libelle !== $v) {\n $this->op_prime_libelle = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OP_PRIME_LIBELLE;\n }\n\n\n return $this;\n }",
"function _checkMaxLimt()\r\n {\r\n if ($this->data[$this->name]['max_limit'] >= $this->data[$this->name]['min_limit']) {\r\n return true;\r\n }\r\n return false;\r\n }",
"public function hasOtherPrimesInfoParameter(): bool\n {\n return $this->has(Parameter\\JWKParameter::P_OTH);\n }",
"function setNota_max($inota_max = '')\n {\n $this->inota_max = $inota_max;\n }",
"function setNota_max($inota_max = '')\n {\n $this->inota_max = $inota_max;\n }",
"public function test_is_unlimited_stock()\n {\n $product = Product::factory()->create([\n 'stock' => null\n ]);\n\n $this->assertTrue($product->isUnlimitedStock());\n\n $product->stock = 0;\n $this->assertFalse($product->isUnlimitedStock());\n }",
"public function setMaxInstanceRequestConcurrency($var)\n {\n GPBUtil::checkInt32($var);\n $this->max_instance_request_concurrency = $var;\n\n return $this;\n }",
"public function setIndividualAnnualOOPLimitAmount(\\Healthcare\\types\\AmountDeductibleType $individualAnnualOOPLimitAmount)\n {\n $this->individualAnnualOOPLimitAmount = $individualAnnualOOPLimitAmount;\n return $this;\n }",
"function metabox_prio() {\n return 'low';\n }",
"public function getMaximumAmount()\n\t{\n\t\treturn ['amount' => 5000.00, 'currency' => 'EUR'];\n\t}",
"public function hasDiscountmax(){\n return $this->_has(33);\n }",
"public function hasOnlyDefaultValues()\n\t{\n\t\t\t// First, ensure that we don't have any columns that have been modified which aren't default columns.\n\t\t\tif (array_diff($this->modifiedColumns, array(UserPeer::POINTS,UserPeer::TYPE,UserPeer::HIDDEN,UserPeer::RELATIONSHIP_STATUS,UserPeer::SHOW_EMAIL,UserPeer::SHOW_GENDER,UserPeer::SHOW_HOMETOWN,UserPeer::SHOW_HOME_PHONE,UserPeer::SHOW_MOBILE_PHONE,UserPeer::SHOW_BIRTHDATE,UserPeer::SHOW_ADDRESS,UserPeer::SHOW_RELATIONSHIP_STATUS,UserPeer::CREDIT,UserPeer::LOGIN))) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->points !== '0') {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->type !== 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->hidden !== 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->relationship_status !== 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->show_email !== 1) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->show_gender !== 1) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->show_hometown !== 1) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->show_home_phone !== 1) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->show_mobile_phone !== 1) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->show_birthdate !== 1) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->show_address !== 1) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->show_relationship_status !== 1) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->credit !== 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->login !== 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t// otherwise, everything was equal, so return TRUE\n\t\treturn true;\n\t}",
"public function setMaxPrice($maxPrice)\n\n {\n $this->maxPrice = $maxPrice;\n\n return $this;\n }",
"function rankmath_metaboxes_priority(){\n \n return 'default';\n \n }",
"function _isEligibleMaximumQuantity()\r\n {\r\n $items_count = $this->_countUserBoughtItems();\r\n $item = $this->find('first', array(\r\n 'conditions' => array(\r\n 'Item.id' => $this->data[$this->name]['item_id'],\r\n ) ,\r\n 'fields' => array(\r\n 'Item.buy_max_quantity_per_user',\r\n ) ,\r\n 'recursive' => -1\r\n ));\r\n $newTotal = (!empty($items_count[0]['total_count']) ? $items_count[0]['total_count'] : 0) +$this->data[$this->name]['quantity'];\r\n if (empty($item['Item']['buy_max_quantity_per_user']) || $newTotal <= $item['Item']['buy_max_quantity_per_user']) {\r\n return true;\r\n }\r\n return false;\r\n }",
"public function SetDefaultCfop()\n {\n //mark all other user cfopls as not default\n $queryRemoveDefault = \"UPDATE user_cfop SET default_cfop=\".UserCfop::NON_DEFAULT_CFOP.\" WHERE user_id=:user_id\";\n $removeDefault = $this->sqlDataBase->prepare($queryRemoveDefault);\n $removeDefault->execute(array(':user_id'=>$this->userId));\n\n //mark current cfop as default\n $querySetDefault = \"UPDATE user_cfop SET default_cfop=\".UserCfop::DEFAULT_CFOP.\" WHERE id=:user_cfop_id\";\n $setDefault = $this->sqlDataBase->prepare($querySetDefault);\n $setDefault->execute(array(':user_cfop_id'=>$this->userCfopId));\n }",
"function setYAxisMaximum($max = false)\n {\n if ($max !== false) {\n $max = 1.0 * $max;\n }\n $this->yaxis_max = $max;\n }",
"function _compareItemAndBuyMaxLimt()\r\n {\r\n if (empty($this->data[$this->name]['max_limit']) || $this->data[$this->name]['max_limit'] >= $this->data[$this->name]['buy_max_quantity_per_user']) {\r\n return true;\r\n }\r\n return false;\r\n }",
"public function setMaximum($value) {\r\n $this->internalSetMaximum($value);\r\n }",
"public function setMax($value)\n {\n if (is_array($value)) {\n $value = array2Point($value);\n }\n\n if (!($value instanceof Point)) {\n throw new InvalidConfigException('Invalid `max` attribute value; it must be a Point object or an array that can be converted to a Point object');\n }\n\n $this->_max = $value;\n }",
"function MyMod_Paging_Page_No_Set()\n {\n //$this->MyMod_Paging_No=$this->PresetPage;\n if (empty($this->MyMod_Paging_No))\n {\n $this->MyMod_Paging_No=$this->GetPOST($this->ModuleName.\"_Page\");\n if (empty($this->MyMod_Paging_No))\n {\n $this->MyMod_Paging_No=$this->GetGETOrPOST(\"Page\");\n }\n }\n\n if (\n empty($this->MyMod_Paging_No)\n ||\n $this->MyMod_Paging_No>$this->MyMod_Paging_N\n )\n {\n $this->MyMod_Paging_No=1;\n }\n }",
"public function hasOnlyDefaultValues()\n\t{\n\t\t\tif ($this->ativo !== true) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->tipo_acesso !== 'M') {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->estado_civil !== 'O') {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->nivel_acesso !== '1') {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->usuario_validado !== false) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t// otherwise, everything was equal, so return TRUE\n\t\treturn true;\n\t}",
"public function getMaximumAmountPerMonth()\n {\n return $this->maximumAmountPerMonth;\n }",
"public function getFiltroPrecoMaximoMinimo()\n {\n return Query::fetchFirst('Busca/Filtros/QryBuscarPrecoMaximoMinimo');\n }",
"public function setMaxCompositePoints($value) {}",
"public function setFlexibleAmount(float $minimumAmount, ?float $maximumAmount = null): self\n\t{\n\t\tif ($minimumAmount <= 0) {\n\t\t\tthrow new PaymentGatewayException('Only positive numbers allowed.');\n\t\t}\n\n\t\tif ($maximumAmount !== null && $maximumAmount <= $minimumAmount) {\n\t\t\tthrow new PaymentGatewayException('Maximum amount must be greater than minimum amount');\n\t\t}\n\n\t\t$this->setData(null, 'amount');\n\t\t$this->setData($minimumAmount, 'minimumAmount');\n\t\t$this->setData($maximumAmount, 'maximumAmount');\n\n\t\treturn $this;\n\t}",
"function setMax($max) {\n $this->field['max'] = (int) $max;\n\n return $this;\n }",
"public function setImgMax($value)\n {\n if ($value !== null) {\n $this->_params['imgmax'] = $value;\n } else {\n unset($this->_params['imgmax']);\n }\n }",
"public function setLimitPerPage( $limit ) \n {\n \n if( !is_int( $limit ) ) {\n throw new Execption( \"<<THE LIMIT MUST BE AN INTEGER>>\" );\n }\n \n $this->_limit_per_page = $limit;\n \n \n }",
"public function getDefaultepaiement(): bool\n {\n return $this->defaultepaiement;\n }",
"public function setXMax($xMax) {}",
"public function isDisabled($operation = OperationTypes::OP_UPDATE, $ignore_op = FALSE);",
"public function setDefaultepaiement(bool $defaultepaiement)\n {\n $this->defaultepaiement = $defaultepaiement;\n\n return $this;\n }",
"public function setMaxPoints($value) {}",
"public function hasMax() {\n return $this->_has(3);\n }",
"public function hasOnlyDefaultValues()\n {\n if ($this->is_not !== false) {\n return false;\n }\n\n if ($this->rank !== 0) {\n return false;\n }\n\n // otherwise, everything was equal, so return true\n return true;\n }",
"function merchant_promos_metabox_defaults() {\n\t\treturn array(\n\t\t\t'amount' => 0,\n\t\t\t'type' => 'fixed',\n\t\t\t'max' => -1,\n\t\t\t'expiration' => '',\n\t\t\t'notify' => '',\n\t\t\t'count' => 0,\n\t\t\t'total' => 0,\n\t\t\t'valid_on' => array(),\n\t\t);\n\t}",
"public function applyDefaultValues()\n {\n $this->montacargas_baja = 0;\n }",
"public function getCargaMaxima()\n {\n return $this->cargaMaxima;\n }",
"public function valorespordefecto(){\n\t\t\t\t\t\t$matriz=VwOpcionesdocumentos::Model()->search_d('220')->getData();\n\t\t\t\t\t\t//recorreindo la matriz\n\t\t\t\t\t\t\n\t\t\t\t\t\t $i=0;\n\t\t\t\t\t\n\t\t\t\t\t\t\t for ($i=0; $i <= count($matriz)-1;$i++) {\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t if ($matriz[$i]['tipodato']==\"N\" ) {\n\t\t\t\t\t\t\t\t\t\t\t\t$this->{$matriz[$i]['campo']}=!empty($matriz[$i]['valor'])?$matriz[$i]['valor']+0:'';\n\t\t\t\t\t\t\t\t\t\t\t }ELSE {\n\t\t\t\t\t\t\t\t\t\t\t\t $this->{$matriz[$i]['campo']}=!empty($matriz[$i]['valor'])?$matriz[$i]['valor']:'';\n\t\t\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t}\t\t\n\t\t\t\t\treturn 1;\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t}",
"public function setMultiple(?bool $multiple = null): void\n {\n $this->multiple = $multiple ?? true;\n }",
"public function testSetIsProfilMessages() {\n\n $obj = new Collaborateurs();\n\n $obj->setIsProfilMessages(true);\n $this->assertEquals(true, $obj->getIsProfilMessages());\n }",
"protected function default_additional_properties_to_false($schema)\n {\n }",
"public function testXEMFeeMaximum()\n {\n // sending 250000 XEM reaches the maximum fee\n $amount = new Amount([\"amount\" => 260*1000]);\n\n $expectFee = Fee::MAX_AMOUNT_FEE;\n $actualFee = Fee::calculateForXEM($amount->toMicro());\n\n $this->assertEquals(260000, $amount->toMicro());\n $this->assertEquals($expectFee, $actualFee);\n }",
"public function setMaxValue($value)\n\t{\n\t\t$this->setViewState('MaxValue',$value,'');\n\t}",
"public function testSetPrimeJfNormal() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setPrimeJfNormal(10.092018);\n $this->assertEquals(10.092018, $obj->getPrimeJfNormal());\n }",
"function yoast_metaboxes_priority(){\n \n return 'default';\n \n }",
"public function setMax( int $max ): void {\n\t\t\t$this->maximum = $max;\n\t\t}",
"public function set_maximum_display_result_count($maximum_display_count, $pagination_serial = NULL){\n\n self::$oPaginator->set_maximum_display_result_count($maximum_display_count, $pagination_serial);\n\n }",
"public function setMaximumQuantity(\\NOKA\\PHPUBL\\UBL\\Common\\BasicComponents\\MaximumQuantity $maximumQuantity)\n {\n $this->maximumQuantity = $maximumQuantity;\n return $this;\n }",
"function getNota_max()\n {\n if (!isset($this->inota_max) && !$this->bLoaded) {\n $this->DBCarregar();\n }\n return $this->inota_max;\n }",
"function getNota_max()\n {\n if (!isset($this->inota_max) && !$this->bLoaded) {\n $this->DBCarregar();\n }\n return $this->inota_max;\n }",
"public function applyDefaultValues()\n {\n $this->deleted = false;\n $this->amount = 1;\n $this->amountevaluation = 0;\n $this->defaultstatus = 0;\n $this->defaultdirectiondate = 0;\n $this->defaultenddate = 0;\n $this->defaultpersoninevent = 0;\n $this->defaultpersonineditor = 0;\n $this->maxoccursinevent = 0;\n $this->showtime = false;\n $this->ispreferable = true;\n $this->isrequiredcoordination = false;\n $this->isrequiredtissue = false;\n $this->mnem = '';\n }",
"public function getMaxValue();",
"public function getMaxValue();",
"public function getPrimal()\n {\n return $this->primal;\n }",
"public function maxExtras(): bool\n {\n return false;\n }",
"public function testSetPrimeJf2Normal() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setPrimeJf2Normal(10.092018);\n $this->assertEquals(10.092018, $obj->getPrimeJf2Normal());\n }",
"public function setMaxJobs($maxJobs)\n\t{\n\t\t$this->maxJobs = $maxJobs;\n\t}",
"public function setAllowDefaultChildSecurityAssociationParameters($val)\n {\n $this->_propDict[\"allowDefaultChildSecurityAssociationParameters\"] = boolval($val);\n return $this;\n }",
"public function setMaximum($maximum)\n {\n $this->maximum = $maximum;\n return $this;\n }",
"public function setDefaultLimit($var)\n {\n GPBUtil::checkInt64($var);\n $this->default_limit = $var;\n\n return $this;\n }",
"public function testSetTpPourcentageNonOperationnel() {\n\n $obj = new Collaborateurs();\n\n $obj->setTpPourcentageNonOperationnel(10.092018);\n $this->assertEquals(10.092018, $obj->getTpPourcentageNonOperationnel());\n }",
"function getMaxValue() { return $this->readMaxValue(); }",
"public function hasOnlyDefaultValues()\n {\n if ($this->setregis !== 0) {\n return false;\n }\n\n // otherwise, everything was equal, so return TRUE\n return true;\n }",
"public function setMaxPodsConstraint($var)\n {\n GPBUtil::checkMessage($var, \\Google\\Cloud\\GkeMultiCloud\\V1\\MaxPodsConstraint::class);\n $this->max_pods_constraint = $var;\n\n return $this;\n }",
"public function setFamilyAnnualOOPLimitAmount(\\Healthcare\\types\\AmountDeductibleType $familyAnnualOOPLimitAmount)\n {\n $this->familyAnnualOOPLimitAmount = $familyAnnualOOPLimitAmount;\n return $this;\n }",
"public function hasMaxSave(){\n return $this->_has(16);\n }",
"public function setisMes($v)\n {\n if ($v !== null && is_numeric($v)) {\n $v = (int) $v;\n }\n\n if ($this->ismes !== $v) {\n $this->ismes = $v;\n $this->modifiedColumns[] = ActionTypePeer::ISMES;\n }\n\n\n return $this;\n }",
"function getMaxValue() { return $this->readMaxValue(); }"
] | [
"0.7019067",
"0.64775026",
"0.54271275",
"0.51301557",
"0.506715",
"0.49006757",
"0.48005328",
"0.45959958",
"0.45886317",
"0.4555497",
"0.45435023",
"0.45191792",
"0.44645458",
"0.445615",
"0.44456252",
"0.4400655",
"0.4384647",
"0.43650854",
"0.43635836",
"0.43531254",
"0.4341576",
"0.43286365",
"0.43242955",
"0.4317187",
"0.4236923",
"0.4228707",
"0.42278636",
"0.42182505",
"0.42067322",
"0.41923508",
"0.4183419",
"0.41758758",
"0.41374475",
"0.41327623",
"0.41226122",
"0.41226122",
"0.41166705",
"0.4108528",
"0.4066488",
"0.40573403",
"0.4052654",
"0.40403143",
"0.40288007",
"0.4025471",
"0.4016881",
"0.4001597",
"0.3999028",
"0.39980164",
"0.39913774",
"0.39849794",
"0.39723668",
"0.39666137",
"0.39666045",
"0.39608553",
"0.39437938",
"0.39416462",
"0.39267173",
"0.39221093",
"0.39188528",
"0.39169914",
"0.3914722",
"0.39144504",
"0.39128104",
"0.39094064",
"0.3899143",
"0.38908663",
"0.38883153",
"0.38851607",
"0.38839713",
"0.38740408",
"0.3869709",
"0.3869661",
"0.3868346",
"0.38661018",
"0.38650417",
"0.38630363",
"0.38620403",
"0.3859264",
"0.38549918",
"0.38520145",
"0.38487598",
"0.3841905",
"0.3841905",
"0.38404205",
"0.38399506",
"0.38399506",
"0.38394716",
"0.3838714",
"0.38331968",
"0.38272786",
"0.38269827",
"0.38187364",
"0.38180682",
"0.381162",
"0.38112688",
"0.38104337",
"0.3807142",
"0.38048923",
"0.37982574",
"0.3792945",
"0.3792856"
] | 0.0 | -1 |
hasOnlyDefaultValues() Hydrates (populates) the object variables with values from the database resultset. An offset (0based "start column") is specified so that objects can be hydrated with a subset of the columns in the resultset rows. This is needed, for example, for results of JOIN queries where the resultset row includes columns from two or more tables. | public function hydrate($row, $startcol = 0, $rehydrate = false)
{
try {
$this->op_prime_id = ($row[$startcol + 0] !== null) ? (int) $row[$startcol + 0] : null;
$this->op_id = ($row[$startcol + 1] !== null) ? (int) $row[$startcol + 1] : null;
$this->op_prime_libelle = ($row[$startcol + 2] !== null) ? (string) $row[$startcol + 2] : null;
$this->op_prime_numero = ($row[$startcol + 3] !== null) ? (int) $row[$startcol + 3] : null;
$this->gdl_art_id = ($row[$startcol + 4] !== null) ? (int) $row[$startcol + 4] : null;
$this->operation_prime_currency_id = ($row[$startcol + 5] !== null) ? (int) $row[$startcol + 5] : null;
$this->operation_prime_r_reward_type_id = ($row[$startcol + 6] !== null) ? (int) $row[$startcol + 6] : null;
$this->operation_prime_r_reward_expedition_mode_id = ($row[$startcol + 7] !== null) ? (int) $row[$startcol + 7] : null;
$this->operation_prime_r_reward_transporter_id = ($row[$startcol + 8] !== null) ? (int) $row[$startcol + 8] : null;
$this->operation_prime_fixed_amount = ($row[$startcol + 9] !== null) ? (float) $row[$startcol + 9] : null;
$this->operation_prime_product_price_pourcentage = ($row[$startcol + 10] !== null) ? (int) $row[$startcol + 10] : null;
$this->operation_prime_maximum_amount = ($row[$startcol + 11] !== null) ? (float) $row[$startcol + 11] : null;
$this->resetModified();
$this->setNew(false);
if ($rehydrate) {
$this->ensureConsistency();
}
$this->postHydrate($row, $startcol, $rehydrate);
return $startcol + 12; // 12 = OperationPrimesPeer::NUM_HYDRATE_COLUMNS.
} catch (Exception $e) {
throw new PropelException("Error populating OperationPrimes object", $e);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function hasOnlyDefaultValues()\n\t{\n\t\t\t// First, ensure that we don't have any columns that have been modified which aren't default columns.\n\t\t\tif (array_diff($this->modifiedColumns, array())) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t// otherwise, everything was equal, so return TRUE\n\t\treturn true;\n\t}",
"public function hasOnlyDefaultValues()\n\t{\n\t\t\t// First, ensure that we don't have any columns that have been modified which aren't default columns.\n\t\t\tif (array_diff($this->modifiedColumns, array())) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t// otherwise, everything was equal, so return TRUE\n\t\treturn true;\n\t}",
"public function hasOnlyDefaultValues()\n\t{\n\t\t\t// First, ensure that we don't have any columns that have been modified which aren't default columns.\n\t\t\tif (array_diff($this->modifiedColumns, array())) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t// otherwise, everything was equal, so return TRUE\n\t\treturn true;\n\t}",
"public function hasOnlyDefaultValues()\n {\n // otherwise, everything was equal, so return true\n return true;\n }",
"public function hasOnlyDefaultValues()\n {\n // otherwise, everything was equal, so return TRUE\n return true;\n }",
"public function hasOnlyDefaultValues()\n {\n // otherwise, everything was equal, so return TRUE\n return true;\n }",
"public function hasOnlyDefaultValues()\n {\n // otherwise, everything was equal, so return TRUE\n return true;\n }",
"public function hasOnlyDefaultValues()\n {\n // otherwise, everything was equal, so return TRUE\n return true;\n }",
"public function hasOnlyDefaultValues()\n {\n // otherwise, everything was equal, so return TRUE\n return true;\n }",
"public function hasOnlyDefaultValues()\n {\n // otherwise, everything was equal, so return TRUE\n return true;\n }",
"public function hasOnlyDefaultValues()\n {\n // otherwise, everything was equal, so return TRUE\n return true;\n }",
"protected function getDefaultRow()\n {\n $results = array();\n foreach ($this->getFields() as $name => $field) {\n $results[$name] = $field->getDefault();\n }\n return $results;\n }",
"public function hasOnlyDefaultValues()\n\t{\n\t\t// otherwise, everything was equal, so return TRUE\n\t\treturn true;\n\t}",
"public function hasOnlyDefaultValues()\n {\n if ($this->is_not !== false) {\n return false;\n }\n\n if ($this->rank !== 0) {\n return false;\n }\n\n // otherwise, everything was equal, so return true\n return true;\n }",
"protected function _addDefaultFields()\n {\n $select = $this->clause('select');\n $this->_hasFields = true;\n\n if (!count($select) || $this->_autoFields === true) {\n $this->_hasFields = false;\n $this->select($this->repository()->getSchema()->columns());\n $select = $this->clause('select');\n }\n\n $aliased = $this->aliasFields($select, $this->repository()->getAlias());\n $this->select($aliased, true);\n }",
"public static function getOffsetWithDefault($cursor, $defaultOffset)\n {\n }",
"public function hasOnlyDefaultValues()\n {\n if ($this->deleted !== false) {\n return false;\n }\n\n if ($this->amount !== 1) {\n return false;\n }\n\n if ($this->amountevaluation !== 0) {\n return false;\n }\n\n if ($this->defaultstatus !== 0) {\n return false;\n }\n\n if ($this->defaultdirectiondate !== 0) {\n return false;\n }\n\n if ($this->defaultenddate !== 0) {\n return false;\n }\n\n if ($this->defaultpersoninevent !== 0) {\n return false;\n }\n\n if ($this->defaultpersonineditor !== 0) {\n return false;\n }\n\n if ($this->maxoccursinevent !== 0) {\n return false;\n }\n\n if ($this->showtime !== false) {\n return false;\n }\n\n if ($this->ispreferable !== true) {\n return false;\n }\n\n if ($this->isrequiredcoordination !== false) {\n return false;\n }\n\n if ($this->isrequiredtissue !== false) {\n return false;\n }\n\n if ($this->mnem !== '') {\n return false;\n }\n\n // otherwise, everything was equal, so return true\n return true;\n }",
"public function testHasKidsDefaultValue()\n {\n $this->assertEquals(0, $this->getObject(0)->getValue());\n }",
"public function hasOnlyDefaultValues()\n\t{\n\t\t\tif ($this->type !== 1) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->total_index !== 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->is_published !== true) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->is_featured !== false) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->comments_count !== 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t// otherwise, everything was equal, so return TRUE\n\t\treturn true;\n\t}",
"public function hasOnlyDefaultValues()\n\t{\n\t\t\t// First, ensure that we don't have any columns that have been modified which aren't default columns.\n\t\t\tif (array_diff($this->modifiedColumns, array(UserPeer::POINTS,UserPeer::TYPE,UserPeer::HIDDEN,UserPeer::RELATIONSHIP_STATUS,UserPeer::SHOW_EMAIL,UserPeer::SHOW_GENDER,UserPeer::SHOW_HOMETOWN,UserPeer::SHOW_HOME_PHONE,UserPeer::SHOW_MOBILE_PHONE,UserPeer::SHOW_BIRTHDATE,UserPeer::SHOW_ADDRESS,UserPeer::SHOW_RELATIONSHIP_STATUS,UserPeer::CREDIT,UserPeer::LOGIN))) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->points !== '0') {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->type !== 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->hidden !== 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->relationship_status !== 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->show_email !== 1) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->show_gender !== 1) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->show_hometown !== 1) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->show_home_phone !== 1) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->show_mobile_phone !== 1) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->show_birthdate !== 1) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->show_address !== 1) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->show_relationship_status !== 1) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->credit !== 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->login !== 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t// otherwise, everything was equal, so return TRUE\n\t\treturn true;\n\t}",
"abstract public function getColDefaults();",
"public function get($offset, $default = null);",
"public function hasOnlyDefaultValues()\n\t{\n\t\t\tif ($this->st_usuario !== true) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t// otherwise, everything was equal, so return TRUE\n\t\treturn true;\n\t}",
"public function getValue($offset = null) {}",
"public function hasOnlyDefaultValues()\n {\n if ($this->setregis !== 0) {\n return false;\n }\n\n // otherwise, everything was equal, so return TRUE\n return true;\n }",
"public function fetchFieldsForPage($default = null);",
"protected function defaultValues() : array\n {\n return [\n 'limit' => 20,\n 'offset' => 0,\n 'order_by_dir' => 'DESC',\n ];\n }",
"public function hasOnlyDefaultValues()\n {\n if ($this->last_sync !== '1901-01-01 00:00:00') {\n return false;\n }\n\n // otherwise, everything was equal, so return true\n return true;\n }",
"public function applyDefaultValues()\n {\n $this->is_not = false;\n $this->rank = 0;\n }",
"public function hasOnlyDefaultValues()\n {\n if ($this->montacargas_baja !== 0) {\n return false;\n }\n\n // otherwise, everything was equal, so return true\n return true;\n }",
"public function getColumnDefaultApiValues(string $fullTable, array $options = [])\n {\n $ret = [];\n\n $omitAutoIncrement = $options['omitAutoIncrement'] ?? false;\n\n $types = $this->getColumnDataTypes($fullTable, true);\n $nullables = $this->getColumnNullabilities($fullTable);\n $ai = $this->getAutoIncrementedField($fullTable);\n\n\n foreach ($types as $k => $v) {\n\n\n if ($ai === $k && true === $omitAutoIncrement) {\n continue;\n }\n\n\n if (\n ($ai === $k) ||\n (true === array_key_exists($k, $nullables) && true === $nullables[$k])\n ) {\n $ret[$k] = null;\n } else {\n\n\n $p = explode(\"(\", $v, 2);\n $shortType = array_shift($p);\n $insideParenthesis = \"\";\n if ($p) {\n $insideParenthesis = rtrim(array_shift($p), ')');\n }\n\n switch ($shortType) {\n case \"int\":\n case \"tinyint\":\n $defaultValue = \"0\";\n break;\n case \"float\":\n case \"decimal\":\n $defaultValue = \"0.0\";\n break;\n case \"enum\":\n\n /**\n * The default value of an enum column should be (if not null),\n * the first of the listed values.\n *\n * https://dev.mysql.com/doc/refman/8.0/en/enum.html\n * (section \"Empty or NULL Enumeration Values\")\n *\n */\n $values = PsvTool::explodeProtected($insideParenthesis);\n $defaultValue = array_shift($values);\n break;\n case \"char\":\n case \"varchar\":\n case \"text\":\n case \"mediumtext\":\n case \"longtext\":\n $defaultValue = \"\";\n break;\n case \"datetime\":\n $defaultValue = date(\"Y-m-d H:i:s\");\n break;\n case \"time\":\n $defaultValue = date(\"H:i:s\");\n break;\n case \"date\":\n $defaultValue = date(\"Y-m-d\");\n break;\n default:\n throw new SqlWizardException(\"Unrecognized mysql type: $shortType.\");\n }\n\n $ret[$k] = $defaultValue;\n }\n\n\n }\n\n return $ret;\n }",
"public function applyDefaultValues()\n\t{\n\t}",
"public function applyDefaultValues()\n\t{\n\t}",
"public function applyDefaultValues()\n\t{\n\t}",
"public function hasOnlyDefaultValues()\n\t{\n\t\t\t// First, ensure that we don't have any columns that have been modified which aren't default columns.\n\t\t\tif (array_diff($this->modifiedColumns, array(UserPeer::PLATFORM,UserPeer::EXPERIENCE_SCORE,UserPeer::UP_VOTES,UserPeer::DOWN_VOTES,UserPeer::IS_GUEST,UserPeer::IS_ADMIN,UserPeer::TODAY_VOTES,UserPeer::EMAIL_ON))) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->platform !== 'pc') {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->experience_score !== 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->up_votes !== 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->down_votes !== 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->is_guest !== 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->is_admin !== 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->today_votes !== 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->email_on !== 1) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t// otherwise, everything was equal, so return TRUE\n\t\treturn true;\n\t}",
"public function getValues($offset)\n {\n }",
"public function hasOnlyDefaultValues()\n {\n if ($this->jml_lantai !== '1') {\n return false;\n }\n\n if ($this->asal_data !== '1') {\n return false;\n }\n\n if ($this->last_sync !== '1901-01-01 00:00:00') {\n return false;\n }\n\n // otherwise, everything was equal, so return true\n return true;\n }",
"public function hasOnlyDefaultValues()\n\t{\n\t\t\tif ($this->is_archived !== 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->google_analytics_enabled !== false) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t// otherwise, everything was equal, so return TRUE\n\t\treturn true;\n\t}",
"public function hasOnlyDefaultValues()\n {\n if ($this->create_date !== '2020-04-16 09:40:03') {\n return false;\n }\n\n if ($this->last_update !== '2020-04-16 09:40:03') {\n return false;\n }\n\n if ($this->last_sync !== '1901-01-01 00:00:00') {\n return false;\n }\n\n // otherwise, everything was equal, so return true\n return true;\n }",
"public function hasOnlyDefaultValues()\n {\n if ($this->is_active !== false) {\n return false;\n }\n\n if ($this->is_closed !== false) {\n return false;\n }\n\n // otherwise, everything was equal, so return true\n return true;\n }",
"public function hasOnlyDefaultValues()\n {\n if ($this->active !== false) {\n return false;\n }\n\n // otherwise, everything was equal, so return true\n return true;\n }",
"public function fillupDefault()\n {\n\n foreach (static::$cols as $key => $col) {\n if ('' != $col[self::COL_DEFAULT]) {\n $this->data[$key] = $col[self::COL_DEFAULT];\n }\n }\n\n }",
"public function hasOnlyDefaultValues()\n {\n if ($this->phadtype !== '') {\n return false;\n }\n\n if ($this->phadid !== '') {\n return false;\n }\n\n if ($this->phadsubid !== '') {\n return false;\n }\n\n if ($this->phadsubidseq !== 0) {\n return false;\n }\n\n if ($this->phadcont !== '') {\n return false;\n }\n\n // otherwise, everything was equal, so return TRUE\n return true;\n }",
"function getDefaultValues($table = null){\n // If cTable was not passed in, return empty array:\n if ($table==null ) \n return array();\n \n // Set up blank array:\n $returnValue = array();\n \n // Get the fields:\n $result = $this->query(\"DESCRIBE `{$table}`\");\n $nbRows = $this->numRows($result);\n if (count($nbRows)==0) \n return array();\n\n // Scan through each field and assign defaults:\n for($i=0; $i < $nbRows; $i++) {\n $val = $this->fetchAssoc($result);\n if ($val['Default'] AND $val['Default']=='CURRENT_TIMESTAMP') {\n $returnValue[$val['Field']] = date('Y-m-d H:i:s'); \n }\n if ($val['Extra'] AND $val['Extra']=='auto_increment') {\n $returnValue[$val['Field']] = 0; \n }\n if ($val['Default'] AND $val['Default']!='CURRENT_TIMESTAMP') {\n $returnValue[$val['Field']] = $val['Default'];\n } else {\n if ($val['Null']=='YES') {\n $returnValue[$val['Field']] = NULL;\n } else {\n $type = $val['Type'];\n if (strpos($type,'(')!==false)\n $type = substr($type,0,strpos($type,'('));\n if (in_array($type,array('varchar','text','char','tinytext','mediumtext','longtext','set',\n 'binary','varbinary','tinyblob','blob','mediumblob','longblob'))) {\n $returnValue[$val['Field']] = '';\n } elseif ($type=='datetime') {\n $returnValue[$val['Field']] = '0000-00-00 00:00:00';\n } elseif ($type=='date') {\n $returnValue[$val['Field']] = '0000-00-00';\n } elseif ($type=='time') {\n $returnValue[$val['Field']] = '00:00:00';\n } elseif ($type=='year') {\n $returnValue[$val['Field']] = '0000';\n } elseif ($type=='timestamp') {\n $returnValue[$val['Field']] = date('Y-m-d H:i:s');\n } elseif ($type=='enum') {\n $returnValue[$val['Field']] = 1;\n } else { // Numeric:\n $returnValue[$val['Field']] = 0;\n }\n } // end NOT NULL\n } // end default check\n } // end foreach loop \n return $returnValue; \n }",
"function data_preprocessing(&$default_values){\n }",
"public function hasOnlyDefaultValues()\n\t{\n\t\t\tif ($this->closed !== 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->lastfmid !== 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->hasphotos !== 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t// otherwise, everything was equal, so return TRUE\n\t\treturn true;\n\t}",
"public function hasOnlyDefaultValues()\n {\n if ($this->sessionid !== '') {\n return false;\n }\n\n if ($this->recno !== 0) {\n return false;\n }\n\n if ($this->type !== '') {\n return false;\n }\n\n if ($this->custid !== '') {\n return false;\n }\n\n if ($this->shiptoid !== '') {\n return false;\n }\n\n if ($this->custname !== '') {\n return false;\n }\n\n if ($this->orderno !== '') {\n return false;\n }\n\n if ($this->custpo !== '') {\n return false;\n }\n\n if ($this->custref !== '') {\n return false;\n }\n\n if ($this->status !== '') {\n return false;\n }\n\n if ($this->orderdate !== '') {\n return false;\n }\n\n if ($this->careof !== '') {\n return false;\n }\n\n if ($this->quotdate !== '') {\n return false;\n }\n\n if ($this->invdate !== '') {\n return false;\n }\n\n if ($this->shipdate !== '') {\n return false;\n }\n\n if ($this->revdate !== '') {\n return false;\n }\n\n if ($this->expdate !== '') {\n return false;\n }\n\n if ($this->hasdocuments !== '') {\n return false;\n }\n\n if ($this->hastracking !== '') {\n return false;\n }\n\n if ($this->subtotal !== '0.00') {\n return false;\n }\n\n if ($this->salestax !== '0.00') {\n return false;\n }\n\n if ($this->freight !== '0.00') {\n return false;\n }\n\n if ($this->misccost !== '0.00') {\n return false;\n }\n\n if ($this->ordertotal !== '0.00') {\n return false;\n }\n\n if ($this->hasnotes !== '') {\n return false;\n }\n\n if ($this->editord !== '') {\n return false;\n }\n\n if ($this->error !== '') {\n return false;\n }\n\n if ($this->errormsg !== '') {\n return false;\n }\n\n if ($this->sconame !== '') {\n return false;\n }\n\n if ($this->shipname !== '') {\n return false;\n }\n\n if ($this->shipaddress !== '') {\n return false;\n }\n\n if ($this->shipaddress2 !== '') {\n return false;\n }\n\n if ($this->shipcity !== '') {\n return false;\n }\n\n if ($this->shipstate !== '') {\n return false;\n }\n\n if ($this->shipzip !== '') {\n return false;\n }\n\n if ($this->shipcountry !== '') {\n return false;\n }\n\n if ($this->contact !== '') {\n return false;\n }\n\n if ($this->phintl !== '') {\n return false;\n }\n\n if ($this->phone !== '') {\n return false;\n }\n\n if ($this->extension !== '') {\n return false;\n }\n\n if ($this->faxnbr !== '') {\n return false;\n }\n\n if ($this->email !== '') {\n return false;\n }\n\n if ($this->releasenbr !== '') {\n return false;\n }\n\n if ($this->shipviacd !== '') {\n return false;\n }\n\n if ($this->shipviadesc !== '') {\n return false;\n }\n\n if ($this->pricecode !== '') {\n return false;\n }\n\n if ($this->pricecodedesc !== '') {\n return false;\n }\n\n if ($this->pricedisp !== '') {\n return false;\n }\n\n if ($this->taxcode !== '') {\n return false;\n }\n\n if ($this->taxcodedesc !== '') {\n return false;\n }\n\n if ($this->taxcodedisp !== '') {\n return false;\n }\n\n if ($this->termcode !== '') {\n return false;\n }\n\n if ($this->termtype !== '') {\n return false;\n }\n\n if ($this->termcodedesc !== '') {\n return false;\n }\n\n if ($this->rqstdate !== '') {\n return false;\n }\n\n if ($this->shipcom !== '') {\n return false;\n }\n\n if ($this->sp1 !== '') {\n return false;\n }\n\n if ($this->sp1name !== '') {\n return false;\n }\n\n if ($this->sp2 !== '') {\n return false;\n }\n\n if ($this->sp2name !== '') {\n return false;\n }\n\n if ($this->sp2disp !== '') {\n return false;\n }\n\n if ($this->sp3 !== '') {\n return false;\n }\n\n if ($this->sp3name !== '') {\n return false;\n }\n\n if ($this->sp3disp !== '') {\n return false;\n }\n\n if ($this->fob !== '') {\n return false;\n }\n\n if ($this->deliverydesc !== '') {\n return false;\n }\n\n if ($this->whse !== '') {\n return false;\n }\n\n if ($this->cardnumber !== '') {\n return false;\n }\n\n if ($this->cardexpire !== '') {\n return false;\n }\n\n if ($this->cardcode !== '') {\n return false;\n }\n\n if ($this->cardapproval !== '') {\n return false;\n }\n\n if ($this->totalcost !== '') {\n return false;\n }\n\n if ($this->totaldiscount !== '') {\n return false;\n }\n\n if ($this->paymenttype !== '') {\n return false;\n }\n\n if ($this->srcdatefrom !== '') {\n return false;\n }\n\n if ($this->srcdatethru !== '') {\n return false;\n }\n\n if ($this->billname !== '') {\n return false;\n }\n\n if ($this->billaddress !== '') {\n return false;\n }\n\n if ($this->billaddress2 !== '') {\n return false;\n }\n\n if ($this->billaddress3 !== '') {\n return false;\n }\n\n if ($this->billcountry !== '') {\n return false;\n }\n\n if ($this->billcity !== '') {\n return false;\n }\n\n if ($this->billstate !== '') {\n return false;\n }\n\n if ($this->billzip !== '') {\n return false;\n }\n\n if ($this->prntfmt !== '') {\n return false;\n }\n\n if ($this->prntfmtdisp !== '') {\n return false;\n }\n\n if ($this->dummy !== 'x') {\n return false;\n }\n\n // otherwise, everything was equal, so return TRUE\n return true;\n }",
"public function fetchMapped();",
"private function _setDefaults(): void {\n\t\t// default query options\n\t\t$options['limit'] = 50;\n\t\t$options['offset'] = false;\n\t\t$options['sort'] = false;\n\t\t$options['sortDirection'] = false;\n\t\t$this->setQueryOptions($options);\n\t}",
"public function beforeSave()\n {\n if ($this->fixResultSets)\n {\n foreach ($this->fixResultSets as $property => $__)\n {\n if (isset($this->$property) && ($value = $this->$property) instanceof \\Phalcon\\Mvc\\Model\\ResultSetInterface)\n {\n unset($this->fixResultSets[$property]);\n $this->$property = $value->filter(function($r) {\n return $r;\n });\n }\n }\n }\n }",
"public function isDefault()\n {\n return $this->column->name === 'id' && $this->column->type === 'id';\n }",
"public function setDefaultValues()\r\n {\r\n foreach ($this->defaultValues as $property => $value) {\r\n if (is_null($this->$property)) {\r\n $this->$property = $value;\r\n }\r\n }\r\n }",
"public function testUndefinedValuesQueryPart()\n {\n $method = $this->builder_reflection->getMethod('sql_values');\n $method->setAccessible(TRUE);\n\n $property = $this->builder_reflection->getProperty('values');\n $property->setAccessible(TRUE);\n\n $method->invokeArgs($this->builder, array(array()));\n\n $string = '';\n\n $this->assertEquals($string, $property->getValue($this->builder));\n }",
"private static function get_default_properties()\r\n {\r\n $content_object_alias = RepositoryDataManager :: get_instance()->get_alias(ContentObject :: get_table_name());\r\n \r\n $properties = array();\r\n $properties[] = new GalleryObjectTableProperty(ContentObject :: PROPERTY_TITLE, $content_object_alias);\r\n $properties[] = new GalleryObjectTableProperty(ContentObject :: PROPERTY_DESCRIPTION, $content_object_alias);\r\n return $properties;\r\n }",
"function defaults() {\n\t\t$ret = array();\n\t\tforeach($this->schema() as $key => $field) {\n\t\t\tif(!$field['primary'] && !is_null($field['default'])) {\n\t\t\t\t$ret[$key] = $field['default'];\n\t\t\t}\n\t\t}\n\n\t\treturn $ret;\n\t}",
"public function prepopulateRowWhenEmpty()\n {\n return $this->withMeta(['prepopulateRowWhenEmpty' => true]);\n }",
"public function testQueryFetchDefault() {\n $records = [];\n $result = $this->connection->query('SELECT [name] FROM {test} WHERE [age] = :age', [':age' => 25]);\n $this->assertInstanceOf(StatementInterface::class, $result);\n foreach ($result as $record) {\n $records[] = $record;\n $this->assertIsObject($record);\n $this->assertSame('John', $record->name);\n }\n\n $this->assertCount(1, $records, 'There is only one record.');\n }",
"public function fetch($fetchMode = null, $cursorOrientation = PDO::FETCH_ORI_NEXT, $cursorOffset = 0): mixed\n {\n if ($fetchMode === null) {\n $fetchMode = $this->fetchMode;\n }\n\n $toLowercase = ($this->connection->getAttribute(PDO::ATTR_CASE) === PDO::CASE_LOWER);\n $nullToString = ($this->connection->getAttribute(PDO::ATTR_ORACLE_NULLS) === PDO::NULL_TO_STRING);\n $nullEmptyString = ($this->connection->getAttribute(PDO::ATTR_ORACLE_NULLS) === PDO::NULL_EMPTY_STRING);\n\n switch ($fetchMode) {\n case PDO::FETCH_BOTH:\n case PDO::FETCH_ASSOC:\n $resultSet = @\\odbc_fetch_array($this->statement);\n\n if (\\odbc_error()) {\n $this->throwException();\n }\n\n if ($resultSet === false) {\n return false;\n }\n\n if ($toLowercase) {\n $resultSet = \\array_change_key_case($resultSet);\n }\n\n return $resultSet;\n\n case PDO::FETCH_OBJ:\n $resultSet = @\\odbc_fetch_array($this->statement);\n\n if (\\odbc_error()) {\n $this->throwException();\n }\n\n if ($resultSet === false) {\n return false;\n }\n\n if ($toLowercase) {\n $resultSet = \\array_change_key_case($resultSet);\n }\n\n $object = new stdClass();\n\n foreach ($resultSet as $field => $value) {\n if (\\is_null($value) && $nullToString) {\n $resultSet[$field] = '';\n }\n\n if (empty($resultSet[$field]) && $nullEmptyString) {\n $resultSet[$field] = null;\n }\n\n $object->{$field} = $value;\n }\n\n return $object;\n }\n\n return false;\n }",
"abstract protected function loadTableDefaultValues(string $tableName): array;",
"public function hasOnlyDefaultValues()\n\t{\n\t\t\tif ($this->ativo !== true) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->tipo_acesso !== 'M') {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->estado_civil !== 'O') {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->nivel_acesso !== '1') {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ($this->usuario_validado !== false) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t// otherwise, everything was equal, so return TRUE\n\t\treturn true;\n\t}",
"public function byPrimaryKeysWithoutTableAnnotation()\n {\n $mockResult = $this->getMock('stubDatabaseResult');\n $this->mockConnection->expects($this->any())->method('query')->will($this->returnValue($mockResult));\n $mockResult->expects($this->exactly(2))\n ->method('fetch')\n ->will($this->onConsecutiveCalls(false, array('id' => 'mock', 'bar' => 'Here is bar.', 'defaultValue' => 'And this is default.')));\n $this->assertNull($this->dbFinder->findByPrimaryKeys($this->mockConnection, new stubReflectionClass('MockNoTableAnnotationEntity'), array('id' => 'mock')));\n $entity = $this->dbFinder->findByPrimaryKeys($this->mockConnection, new stubReflectionClass('MockNoTableAnnotationEntity'), array('id' => 'mock'));\n $this->assertEquals('mock', $entity->getId());\n $this->assertEquals('Here is bar.', $entity->withAnnotation());\n $this->assertEquals('And this is default.', $entity->getDefaultValue());\n $this->assertEquals('MockNoTableAnnotationEntitys', $this->mockQueryBuilder->getSelect()->getBaseTableName());\n }",
"public function getDefaultFields(){\n return $this->dbFields;\n }",
"public function defaultData();",
"public function load($_criteria=NULL,$_order=NULL,$_offset=0) {\n\t\tif (method_exists($this,'beforeLoad'))\n\t\t\t// Execute beforeLoad event\n\t\t\t$this->beforeLoad();\n\t\tif (!is_null($_offset) && $_offset>-1) {\n\t\t\t$_virtual='';\n\t\t\tforeach ($this->virtual as $_field=>$_value)\n\t\t\t\t$_virtual.=',('.$_value['expr'].') AS '.$_field;\n\t\t\t// Retrieve record\n\t\t\t$_result=$this->lookup(\n\t\t\t\t'*'.$_virtual,$_criteria,NULL,$_order,'1 OFFSET '.$_offset\n\t\t\t);\n\t\t\t$this->offset=NULL;\n\t\t\tif ($_result) {\n\t\t\t\t// Hydrate Axon\n\t\t\t\tforeach ($_result[0] as $_field=>$_value) {\n\t\t\t\t\tif (array_key_exists($_field,$this->fields)) {\n\t\t\t\t\t\t$this->fields[$_field]=$_value;\n\t\t\t\t\t\tif (array_key_exists($_field,$this->keys))\n\t\t\t\t\t\t\t$this->keys[$_field]=$_value;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\t$this->virtual[$_field]['value']=$_value;\n\t\t\t\t}\n\t\t\t\t$this->empty=FALSE;\n\t\t\t\t$this->criteria=$_criteria;\n\t\t\t\t$this->order=$_order;\n\t\t\t\t$this->offset=$_offset;\n\t\t\t}\n\t\t\telse\n\t\t\t\t$this->reset();\n\t\t}\n\t\telse\n\t\t\t$this->reset();\n\t\tif (method_exists($this,'afterLoad'))\n\t\t\t// Execute afterLoad event\n\t\t\t$this->afterLoad();\n\t}",
"public function testInitialValuesQueryPart()\n {\n $method = $this->builder_reflection->getMethod('sql_values');\n $method->setAccessible(TRUE);\n\n $property = $this->builder_reflection->getProperty('values');\n $property->setAccessible(TRUE);\n\n $method->invokeArgs($this->builder, array(array('value1', 'value2', 'value3')));\n\n $string = 'VALUES (value1, value2, value3)';\n\n $this->assertEquals($string, $property->getValue($this->builder));\n }",
"public function getAddDefaultsExplicitlyOnInsert();",
"abstract protected function getEntitySetWithDefaults();",
"function &offsetGet($offset) {\n $property = defined('static::$DOMAIN_PROPERTY') ? static::$DOMAIN_PROPERTY : 'data';\n if(!isset($this->{$property})) {\n $this->{$property} = [];\n }\n\n if(is_array($this->{$property}) && isset($this->{$property}[$offset])) {\n return $this->{$property}[$offset];\n }\n\n $none = null;\n return $none;\n }",
"function setDefaultValues() {}",
"public function hasOnlyDefaultValues()\n {\n if ($this->shnttype !== '') {\n return false;\n }\n\n if ($this->shntseq !== 0) {\n return false;\n }\n\n if ($this->shntkey2 !== '') {\n return false;\n }\n\n if ($this->shntform !== '') {\n return false;\n }\n\n // otherwise, everything was equal, so return TRUE\n return true;\n }",
"function sql_fetch_field($res,$offset = 0)\n {\n $results = array();\n $obj = NULL;\n $results = $res->getColumnMeta($offset);\n foreach($results as $key=>$value) {\n $obj->$key = $value;\n }\n return $obj;\n }",
"public function hasDefaultValue(): bool;",
"public function isHydrated() {\n\t\treturn !empty($this->originalData);\t\t\n\t}",
"function data_preprocessing(&$default_values){\n parent::data_preprocessing($default_values);\n if (!empty($default_values['config'])) {\n $values = json_decode($default_values['config'], true);\n foreach ($values as $key => $value) {\n $default_values['config_' . $key] = $value;\n }\n unset($default_values['config']);\n }\n }",
"public abstract function value($offset = 0);",
"private function populateDummyTable() {}",
"public function getDefaultOrderByColumns();",
"public function getDefaultRecord()\n {\n return array(\n 'address_id' => -1,\n 'contact_id' => -1,\n 'address_type' => 'OTHER',\n 'address_identifier' => '',\n 'address_description' => '',\n 'address_street' => '',\n 'address_appendix_1' => '',\n 'address_appendix_2' => '',\n 'address_zip' => '',\n 'address_city' => '',\n 'address_area' => '',\n 'address_state' => '',\n 'address_country_code' => '',\n 'address_status' => 'ACTIVE',\n 'address_timestamp' => '0000-00-00 00:00:00'\n );\n }",
"public function setDefaultValues() {\n return [];\n }",
"public function testGetDataTableEmptyResult() {\r\n $records = [\r\n ['UUID' => 'uuid1tRMR1', 'bool' => false, 'int' => 10, 'string' => 'testReadMultipleRecords 1'],\r\n ['UUID' => 'uuid1tRMR2', 'bool' => true, 'int' => 20, 'string' => 'testReadMultipleRecords 2'],\r\n ['UUID' => 'uuid1tRMR3', 'bool' => false, 'int' => 30, 'string' => 'testReadMultipleRecords 3']\r\n ];\r\n // Write data to the database\r\n foreach ($records as $record) {\r\n $this->executeQuery('insert into POTEST (UUID, BOOLEAN_VALUE, INT_VALUE, STRING_VALUE) values (\\''.$record['UUID'].'\\','.($record['bool'] ? 1:0).','.$record['int'].', \\''.$record['string'].'\\')');\r\n }\r\n\t\t$query = 'select UUID, BOOLEAN_VALUE, INT_VALUE, STRING_VALUE from POTEST where UUID=\\'unknownuuid\\'';\r\n\t\t$datatable = $this->getPersistenceAdapter()->getDataTable($query);\r\n\t\t// Check header names\r\n\t\t$headernames = $datatable->getHeaders();\r\n\t\t$this->assertEquals(4, count($headernames), 'Datatable has unexpected header names count.');\r\n\t\t$this->assertEquals('UUID', $headernames[0], 'Header of column 0 is not as expected.');\r\n\t\t$this->assertEquals('BOOLEAN_VALUE', $headernames[1], 'Header of column 1 is not as expected.');\r\n\t\t$this->assertEquals('INT_VALUE', $headernames[2], 'Header of column 2 is not as expected.');\r\n\t\t$this->assertEquals('STRING_VALUE', $headernames[3], 'Header of column 3 is not as expected.');\r\n\t\t// Check row count\r\n\t\t$this->assertEquals(0, count($datatable->getDataMatrix()), 'Datatable has unexpected row count.');\r\n\t}",
"public function applyDefaultValues()\n\t{\n\t\t$this->type = 1;\n\t\t$this->total_index = 0;\n\t\t$this->is_published = true;\n\t\t$this->is_featured = false;\n\t\t$this->comments_count = 0;\n\t}",
"public function getDefaultValues()\n {\n return $this->defaultValues;\n }",
"public function getDefaultValues()\n {\n return $this->defaultValues;\n }",
"public function applyDefaultValues()\n {\n $this->deleted = false;\n $this->amount = 1;\n $this->amountevaluation = 0;\n $this->defaultstatus = 0;\n $this->defaultdirectiondate = 0;\n $this->defaultenddate = 0;\n $this->defaultpersoninevent = 0;\n $this->defaultpersonineditor = 0;\n $this->maxoccursinevent = 0;\n $this->showtime = false;\n $this->ispreferable = true;\n $this->isrequiredcoordination = false;\n $this->isrequiredtissue = false;\n $this->mnem = '';\n }",
"public function testBasicPopulate() {\n\t\t$class = get_class($this->entity);\n\t\t$array = $this->entity->toArray(true);\n\t\t$filled = $this->fillArray($array);\n\n\t\t$entity = new $class($filled);\n\t\t$result = $entity->toArray();\n\t\t\n\t\t$this->assertEquals($filled, $result);\n\t}",
"public function getValuesRows($includeEmptyFields=false){\n if (!$includeEmptyFields){\n return $this->valuesRows;\n }else{\n $result=[];\n if (!empty($this->valuesRows)){\n foreach ($this->valuesRows as $valuesRowId=>$valuesRow){\n $rowResult=[];\n if (!empty($this->dbFields)){\n foreach ($this->dbFields as $dbField){\n $rowResult[$dbField->id]=(!empty($valuesRow[$dbField->id])?$valuesRow[$dbField->id]:'');\n }\n }\n $result[$valuesRowId]=$rowResult;\n }\n }\n return $result;\n }\n }",
"function data_preprocessing(&$default_values){\r\n\r\n\t\t// Set up the completion checkboxes which aren't part of standard data.\r\n\t\t// We also make the default value (if you turn on the checkbox) for those\r\n\t\t// numbers to be 1, this will not apply unless checkbox is ticked.\r\n\t\t$default_values['completionlayersenabled']=\r\n\t\t\t!empty($default_values['completionlayers']) ? 1 : 0;\r\n\t\tif(empty($default_values['completionlayers'])) {\r\n\t\t\t$default_values['completionlayers']=1;\r\n\t\t}\r\n\t}",
"function populate($obj, $prop, $default = '') {\n return ($obj && isset($obj->$prop)) ? $obj->$prop : $default;\n}",
"public function testOffset()\n {\n $obj_query = new \\Search\\Query();\n $this->assertEquals(0, $obj_query->getOffset());\n $obj_query->offset(121);\n $this->assertEquals(121, $obj_query->getOffset());\n $obj_query->offset(-10);\n $this->assertEquals(0, $obj_query->getOffset());\n $obj_query2 = $obj_query->offset(2001);\n $this->assertEquals(1000, $obj_query->getOffset());\n $this->assertSame($obj_query, $obj_query2);\n }",
"public function testSingleResultQueryMissingMetadata() {\r\n $uuid = 'abcdefg';\r\n $bool = true;\r\n $int = 1234567;\r\n $string = 'avorium';\r\n // Write data to the database\r\n $this->executeQuery('insert into POTEST (UUID, BOOLEAN_VALUE, INT_VALUE, STRING_VALUE) values (\\''.$uuid.'\\','.($bool ? 1:0).','.$int.', \\''.$string.'\\')');\r\n // Read data out and cast it to persistent object with incomplete metadata\r\n // Here should come up an exception. It should not be possible to match to an class without knowing from which table to extract the date\r\n $query = 'select * from POTEST where UUID = \\''.$uuid.'\\'';\r\n $po = $this->getPersistenceAdapter()->executeSingleResultQuery($query, 'test_persistence_AbstractPersistenceAdapterTestNoPersistentObject');\r\n // Should return a result because when casting to an object the missing class metadata is irrelevant\r\n $this->assertNotNull($po, 'The result is null.');\r\n }",
"public function assignDefaultValues() {\n\t\t$this->assignByArray(self::$DEFAULT_VALUES);\n\t}",
"public function assignDefaultValues() {\n\t\t$this->assignByArray(self::$DEFAULT_VALUES);\n\t}",
"public function assignDefaultValues() {\n\t\t$this->assignByArray(self::$DEFAULT_VALUES);\n\t}",
"#[\\ReturnTypeWillChange]\n public function getDefaultValue()\n {\n return $this->getDeclaringClass()->getDefaultProperties()[$this->name];\n }",
"function dataDefatult($data, $defaultD) {\r\n if ($data)\r\n return $data;\r\n return $defaultD;\r\n}",
"protected function afterConstruct() {\n\t\tif(count($this->defaultColumns) == 0) {\n\t\t\t$this->defaultColumns[] = array(\n\t\t\t\t'header' => 'No',\n\t\t\t\t'value' => '$this->grid->dataProvider->pagination->currentPage*$this->grid->dataProvider->pagination->pageSize + $row+1'\n\t\t\t);\n\t\t\t$this->defaultColumns[] = 'id';\n\t\t\t$this->defaultColumns[] = 'complete_name';\n\t\t\t$this->defaultColumns[] = 'address';\n\t\t\t$this->defaultColumns[] = 'city_id';\n\t\t\t$this->defaultColumns[] = 'province_id';\n\t\t\t$this->defaultColumns[] = 'post_code';\n\t\t\t$this->defaultColumns[] = 'house_phone';\n\t\t\t$this->defaultColumns[] = 'mobile_phone';\n\t\t\t$this->defaultColumns[] = 'mobile_phone2';\n\t\t\t$this->defaultColumns[] = 'birth_place';\n\t\t\t$this->defaultColumns[] = 'birth_date';\n\t\t\t$this->defaultColumns[] = 'sex';\n\t\t\t$this->defaultColumns[] = 'religion';\n\t\t\t$this->defaultColumns[] = 'homepage';\n\t\t\t$this->defaultColumns[] = 'origin_status';\n\t\t\t$this->defaultColumns[] = 'origin_address';\n\t\t\t$this->defaultColumns[] = 'origin_city_id';\n\t\t\t$this->defaultColumns[] = 'origin_province_id';\n\t\t\t$this->defaultColumns[] = 'hobby';\n\t\t\t$this->defaultColumns[] = 'photo';\n\t\t\t$this->defaultColumns[] = 'status';\n\t\t\t$this->defaultColumns[] = 'child';\n\t\t\t$this->defaultColumns[] = 'is_data_changed';\n\t\t\t$this->defaultColumns[] = 'swt_users_id';\n\t\t}\n\t\tparent::afterConstruct();\n\t}",
"public function getColumnDefaultValues($fullTable)\n {\n $defaults = [];\n $info = $this->query(\"SHOW COLUMNS FROM $fullTable\")->fetchAll(\\PDO::FETCH_ASSOC);\n foreach ($info as $_info) {\n $defaults[$_info['Field']] = $_info['Default'];\n }\n return $defaults;\n }",
"protected function get_default_params() {\n\t\t$defaults = [];\n\t\t$schema = $this->get_public_item_schema();\n\t\tforeach ( $schema['properties'] as $arg => $options ) {\n\t\t\tif ( isset( $options['default'] ) ) {\n\t\t\t\t$defaults[ $arg ] = $options['default'];\n\t\t\t}\n\t\t}\n\t\treturn $defaults;\n\t}",
"public function getDefaultValues() {\n\t\treturn $this->defaultValues;\n\t}",
"public function offset($offset = null)\n {\n if(null === $offset)\n {\n return $this->property('offset');\n }\n return $this->property('offset', (int) $offset);\n }",
"protected function doDefaultGetValueList() {\n return false;\n }"
] | [
"0.5515934",
"0.5515934",
"0.5515934",
"0.54114807",
"0.53962445",
"0.53962445",
"0.53962445",
"0.53962445",
"0.53962445",
"0.53962445",
"0.53962445",
"0.53319335",
"0.5318571",
"0.52935666",
"0.52880543",
"0.52724314",
"0.52678066",
"0.52202827",
"0.5203636",
"0.51867044",
"0.5159934",
"0.5120618",
"0.50796926",
"0.49785644",
"0.49714628",
"0.4968031",
"0.4937777",
"0.4928747",
"0.49036503",
"0.488817",
"0.4882674",
"0.48812672",
"0.48812672",
"0.48812672",
"0.48770183",
"0.48745364",
"0.48625538",
"0.4851066",
"0.4847889",
"0.48426488",
"0.48413876",
"0.48360264",
"0.48333198",
"0.4830497",
"0.48194605",
"0.47915953",
"0.4785786",
"0.47687805",
"0.47640532",
"0.47470012",
"0.47415602",
"0.4725626",
"0.47148067",
"0.47014484",
"0.4697548",
"0.46743628",
"0.4669029",
"0.46578842",
"0.46428224",
"0.46345165",
"0.4630613",
"0.46108878",
"0.46097884",
"0.46050248",
"0.46018934",
"0.4600736",
"0.45976484",
"0.45952752",
"0.45798442",
"0.45745885",
"0.45668757",
"0.45655066",
"0.45621556",
"0.4549687",
"0.4528379",
"0.45272583",
"0.45232296",
"0.45226184",
"0.4510617",
"0.45104617",
"0.45067728",
"0.45031056",
"0.45031056",
"0.44986585",
"0.44918925",
"0.44906235",
"0.4486032",
"0.44818562",
"0.4458827",
"0.44481635",
"0.4448163",
"0.4448163",
"0.4448163",
"0.44470647",
"0.44442415",
"0.44404697",
"0.4436886",
"0.44354144",
"0.4434015",
"0.44287747",
"0.44280407"
] | 0.0 | -1 |
Checks and repairs the internal consistency of the object. This method is executed after an alreadyinstantiated object is rehydrated from the database. It exists to check any foreign keys to make sure that the objects related to the current object are correct based on foreign key. You can override this method in the stub class, but you should always invoke the base method from the overridden method (i.e. parent::ensureConsistency()), in case your model changes. | public function ensureConsistency()
{
if ($this->aOperations !== null && $this->op_id !== $this->aOperations->getOpId()) {
$this->aOperations = null;
}
if ($this->aRCurrencies !== null && $this->operation_prime_currency_id !== $this->aRCurrencies->getRCurrencyId()) {
$this->aRCurrencies = null;
}
if ($this->aRRewardTypes !== null && $this->operation_prime_r_reward_type_id !== $this->aRRewardTypes->getRRewardTypeId()) {
$this->aRRewardTypes = null;
}
if ($this->aRRewardExpeditionModes !== null && $this->operation_prime_r_reward_expedition_mode_id !== $this->aRRewardExpeditionModes->getRRewardExpeditionModeId()) {
$this->aRRewardExpeditionModes = null;
}
if ($this->aRRewardTransporters !== null && $this->operation_prime_r_reward_transporter_id !== $this->aRRewardTransporters->getRRewardTransporterId()) {
$this->aRRewardTransporters = null;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function ensureConsistency()\n {\n if ($this->aSociete !== null && $this->soc_id_fk !== $this->aSociete->getID()) {\n $this->aSociete = null;\n }\n if ($this->aMTransport !== null && $this->transport_fk !== $this->aMTransport->getMTransport()) {\n $this->aMTransport = null;\n }\n }",
"public function ensureConsistency()\n {\n if ($this->aBooks !== null && $this->_forbook !== $this->aBooks->getId()) {\n $this->aBooks = null;\n }\n if ($this->auserSysRef !== null && $this->__user__ !== $this->auserSysRef->getId()) {\n $this->auserSysRef = null;\n }\n }",
"public function ensureConsistency()\n\t{\n\n\t\tif ($this->aPartie !== null && $this->partie_id !== $this->aPartie->getId()) {\n\t\t\t$this->aPartie = null;\n\t\t}\n\t\tif ($this->aPostRelatedByReplicaPostId !== null && $this->replica_post_id !== $this->aPostRelatedByReplicaPostId->getId()) {\n\t\t\t$this->aPostRelatedByReplicaPostId = null;\n\t\t}\n\t}",
"public function ensureConsistency()\n {\n\n if ($this->aSekolah !== null && $this->sekolah_id !== $this->aSekolah->getSekolahId()) {\n $this->aSekolah = null;\n }\n if ($this->aSemester !== null && $this->semester_id !== $this->aSemester->getSemesterId()) {\n $this->aSemester = null;\n }\n if ($this->aSumberAirRelatedBySumberAirId !== null && $this->sumber_air_id !== $this->aSumberAirRelatedBySumberAirId->getSumberAirId()) {\n $this->aSumberAirRelatedBySumberAirId = null;\n }\n if ($this->aSumberAirRelatedBySumberAirMinumId !== null && $this->sumber_air_minum_id !== $this->aSumberAirRelatedBySumberAirMinumId->getSumberAirId()) {\n $this->aSumberAirRelatedBySumberAirMinumId = null;\n }\n }",
"public function ensureConsistency()\n {\n if ($this->aShape !== null && $this->shape_id !== $this->aShape->getShapeId()) {\n $this->aShape = null;\n }\n if ($this->aCakeType !== null && $this->cake_type_id !== $this->aCakeType->getCakeTypeId()) {\n $this->aCakeType = null;\n }\n }",
"public function ensureConsistency()\n {\n\n if ($this->aActionPropertyTypeRelatedByid !== null && $this->id !== $this->aActionPropertyTypeRelatedByid->getactionTypeId()) {\n $this->aActionPropertyTypeRelatedByid = null;\n }\n }",
"private function ensureDBConsistency(): void\n\t{\n\t\t$checkRelation = function (\n\t\t\tstring $modelName,\n\t\t\tstring $table,\n\t\t\tstring $column,\n\t\t\tstring $foreignModelName,\n\t\t\tstring $foreignTable,\n\t\t\tstring $fixMethod = '',\n\t\t): bool {\n\t\t\t$missing = DB::table($table)\n\t\t\t\t->whereNotIn($column, function (Builder $q) use ($foreignTable) {\n\t\t\t\t\t$q->from($foreignTable)->select('id');\n\t\t\t\t})\n\t\t\t\t->select('id', $column)\n\t\t\t\t->get();\n\n\t\t\tforeach ($missing as $m) {\n\t\t\t\t$msg = 'Found ' . $modelName .\n\t\t\t\t\t' with ID ' . $m->id .\n\t\t\t\t\t' which refers to non-existing ' . $foreignModelName .\n\t\t\t\t\t' with ID ' . $m->{$column};\n\t\t\t\tif (empty($fixMethod)) {\n\t\t\t\t\t$this->printError($msg);\n\t\t\t\t} else {\n\t\t\t\t\t$this->printWarning($msg);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($missing->isEmpty()) {\n\t\t\t\treturn true;\n\t\t\t}\n\n\t\t\t$fixQuery = DB::table($table)->whereIn('id', $missing->pluck('id'));\n\n\t\t\tswitch ($fixMethod) {\n\t\t\t\tcase 'nullify':\n\t\t\t\t\t$this->printInfo('Nullifying the affected relations from ' . $modelName . 's to ' . $foreignModelName . 's');\n\t\t\t\t\t$fixQuery->update([$column => null]);\n\n\t\t\t\t\treturn true;\n\t\t\t\tcase 'zeroize':\n\t\t\t\t\t$this->printInfo('Zeroizing the affected relations from ' . $modelName . 's to ' . $foreignModelName . 's');\n\t\t\t\t\t$fixQuery->update([$column => 0]);\n\n\t\t\t\t\treturn true;\n\t\t\t\tcase 'delete':\n\t\t\t\t\t$this->printInfo('Deleting the affected ' . $modelName . 's');\n\t\t\t\t\t$fixQuery->delete();\n\n\t\t\t\t\treturn true;\n\t\t\t\tdefault:\n\t\t\t\t\t$this->printInfo('Error is not automatically fixable');\n\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\t};\n\n\t\t// If the owner of an album is missing, assign it to the admin user\n\t\t$isConsistent = $checkRelation('album', 'albums', 'owner_id', 'user', 'users', 'zeroize');\n\t\t// Move orphaned albums to the top-level\n\t\t$isConsistent &= $checkRelation('album', 'albums', 'parent_id', 'parent album', 'albums', 'nullify');\n\t\t// If the cover of an album is missing, unset the cover\n\t\t$isConsistent &= $checkRelation('album', 'albums', 'cover_id', 'cover photo', 'photos', 'nullify');\n\t\t// Delete orphaned shares\n\t\t$isConsistent &= $checkRelation('share', 'user_album', 'user_id', 'user', 'users', 'delete');\n\t\t$isConsistent &= $checkRelation('share', 'user_album', 'album_id', 'album', 'albums', 'delete');\n\t\t// If the owner of a photo is missing, assign it to the admin user\n\t\t$isConsistent &= $checkRelation('photo', 'photos', 'owner_id', 'user', 'users', 'zeroize');\n\t\t// If the album of a photo is missing, assign it to root (unsorted) album\n\t\t$isConsistent &= $checkRelation('photo', 'photos', 'album_id', 'album', 'albums', 'nullify');\n\t\t// Delete orphaned WebAuthn credentials\n\t\t$isConsistent &= $checkRelation('web authentication credential', 'web_authn_credentials', 'user_id', 'user', 'users', 'delete');\n\t\t// There is no obvious fix for orphaned page content\n\t\t$isConsistent &= $checkRelation('page content', 'page_contents', 'page_id', 'page', 'pages');\n\n\t\t// As we might have moved orphaned albums to the top,\n\t\t// we need to fix the tree.\n\t\t// Even if we did not move any album, fixing the tree before\n\t\t// the migration does not harm as users might have fiddled with their\n\t\t// DB without taking care of\n\t\t// `_lft` and `_rgt`\n\t\tRefactorAlbumModel_AlbumModel::query()->fixTree();\n\n\t\tif (!$isConsistent) {\n\t\t\t$this->printError('Your database is inconsistent and not fit for migration. Please fix your DB manually first.');\n\t\t\tthrow new \\RuntimeException('Inconsistent DB');\n\t\t}\n\t}",
"public function ensureConsistency()\n\t{\n\n\t\tif ($this->aPerfil !== null && $this->perfil_id !== $this->aPerfil->getId()) {\n\t\t\t$this->aPerfil = null;\n\t\t}\n\t\tif ($this->aEndereco !== null && $this->endereco_id !== $this->aEndereco->getId()) {\n\t\t\t$this->aEndereco = null;\n\t\t}\n\t\tif ($this->aCargo !== null && $this->cargo_id !== $this->aCargo->getId()) {\n\t\t\t$this->aCargo = null;\n\t\t}\n\t\tif ($this->aDepartamento !== null && $this->departamento_id !== $this->aDepartamento->getId()) {\n\t\t\t$this->aDepartamento = null;\n\t\t}\n\t}",
"public function ensureConsistency()\n {\n\n if ($this->aSucursal !== null && $this->idsucursal !== $this->aSucursal->getIdsucursal()) {\n $this->aSucursal = null;\n }\n }",
"public function ensureConsistency()\n\t{\n\n\t\tif ($this->aUf !== null && $this->uf_id !== $this->aUf->getId()) {\n\t\t\t$this->aUf = null;\n\t\t}\n\t}",
"public function ensureConsistency()\n {\n\n if ($this->aFeature !== null && $this->feature_id !== $this->aFeature->getFeatureId()) {\n $this->aFeature = null;\n }\n if ($this->aCvterm !== null && $this->cvterm_id !== $this->aCvterm->getCvtermId()) {\n $this->aCvterm = null;\n }\n if ($this->aPub !== null && $this->pub_id !== $this->aPub->getPubId()) {\n $this->aPub = null;\n }\n }",
"public function ensureConsistency()\n {\n if ($this->aPurchaseOrder !== null && $this->pothnbr !== $this->aPurchaseOrder->getPohdnbr()) {\n $this->aPurchaseOrder = null;\n }\n if ($this->aWarehouse !== null && $this->intbwhse !== $this->aWarehouse->getIntbwhse()) {\n $this->aWarehouse = null;\n }\n }",
"public function ensureConsistency()\n\t{\n\n\t}",
"public function ensureConsistency()\n\t{\n\n\t}",
"public function ensureConsistency()\n\t{\n\n\t}",
"public function ensureConsistency()\n\t{\n\n\t}",
"public function ensureConsistency()\n {\n if ($this->aPublisher !== null && $this->publisher_id !== $this->aPublisher->getPublisherId()) {\n $this->aPublisher = null;\n }\n if ($this->aLanguage !== null && $this->language_id !== $this->aLanguage->getLanguageId()) {\n $this->aLanguage = null;\n }\n if ($this->aPlace !== null && $this->publish_place_id !== $this->aPlace->getPlaceId()) {\n $this->aPlace = null;\n }\n if ($this->aFrequency !== null && $this->frequency_id !== $this->aFrequency->getFrequencyId()) {\n $this->aFrequency = null;\n }\n if ($this->aUser !== null && $this->uid !== $this->aUser->getUserId()) {\n $this->aUser = null;\n }\n }",
"public function ensureConsistency()\n\t{\n\n\t\tif ($this->aPerfil !== null && $this->co_perfil !== $this->aPerfil->getCoPerfil()) {\n\t\t\t$this->aPerfil = null;\n\t\t}\n\t}",
"public function ensureConsistency()\n {\n }",
"public function ensureConsistency()\n {\n }",
"public function ensureConsistency()\n {\n }",
"public function ensureConsistency()\n {\n }",
"public function ensureConsistency()\n {\n }",
"public function ensureConsistency()\n\t{\n\n\t\tif ($this->aCampaignTemplate !== null && $this->template_id !== $this->aCampaignTemplate->getId()) {\n\t\t\t$this->aCampaignTemplate = null;\n\t\t}\n\t\tif ($this->asfGuardUserProfile !== null && $this->created_by !== $this->asfGuardUserProfile->getId()) {\n\t\t\t$this->asfGuardUserProfile = null;\n\t\t}\n\t}",
"public function ensureConsistency()\n {\n\n if ($this->aJenisPrasarana !== null && $this->jenis_prasarana_id !== $this->aJenisPrasarana->getJenisPrasaranaId()) {\n $this->aJenisPrasarana = null;\n }\n if ($this->aSekolah !== null && $this->sekolah_id !== $this->aSekolah->getSekolahId()) {\n $this->aSekolah = null;\n }\n if ($this->aTanah !== null && $this->id_tanah !== $this->aTanah->getIdTanah()) {\n $this->aTanah = null;\n }\n if ($this->aPtk !== null && $this->ptk_id !== $this->aPtk->getPtkId()) {\n $this->aPtk = null;\n }\n if ($this->aJenisHapusBuku !== null && $this->id_hapus_buku !== $this->aJenisHapusBuku->getIdHapusBuku()) {\n $this->aJenisHapusBuku = null;\n }\n if ($this->aStatusKepemilikanSarpras !== null && $this->kepemilikan_sarpras_id !== $this->aStatusKepemilikanSarpras->getKepemilikanSarprasId()) {\n $this->aStatusKepemilikanSarpras = null;\n }\n }",
"public function ensureConsistency()\n {\n\n }",
"public function ensureConsistency()\n {\n\n }",
"public function ensureConsistency()\n\t{\n\n\t\tif ($this->aUser !== null && $this->submittedbyuser !== $this->aUser->getUserid()) {\n\t\t\t$this->aUser = null;\n\t\t}\n\t}",
"public function ensureConsistency()\n {\n\n if ($this->aSekolahLongitudinal !== null && $this->sekolah_id !== $this->aSekolahLongitudinal->getSekolahId()) {\n $this->aSekolahLongitudinal = null;\n }\n if ($this->aSekolahLongitudinal !== null && $this->semester_id !== $this->aSekolahLongitudinal->getSemesterId()) {\n $this->aSekolahLongitudinal = null;\n }\n if ($this->aRuang !== null && $this->id_ruang !== $this->aRuang->getIdRuang()) {\n $this->aRuang = null;\n }\n if ($this->aPembelajaranRelatedByBelKe01 !== null && $this->bel_ke_01 !== $this->aPembelajaranRelatedByBelKe01->getPembelajaranId()) {\n $this->aPembelajaranRelatedByBelKe01 = null;\n }\n if ($this->aPembelajaranRelatedByBelKe02 !== null && $this->bel_ke_02 !== $this->aPembelajaranRelatedByBelKe02->getPembelajaranId()) {\n $this->aPembelajaranRelatedByBelKe02 = null;\n }\n if ($this->aPembelajaranRelatedByBelKe03 !== null && $this->bel_ke_03 !== $this->aPembelajaranRelatedByBelKe03->getPembelajaranId()) {\n $this->aPembelajaranRelatedByBelKe03 = null;\n }\n if ($this->aPembelajaranRelatedByBelKe04 !== null && $this->bel_ke_04 !== $this->aPembelajaranRelatedByBelKe04->getPembelajaranId()) {\n $this->aPembelajaranRelatedByBelKe04 = null;\n }\n if ($this->aPembelajaranRelatedByBelKe05 !== null && $this->bel_ke_05 !== $this->aPembelajaranRelatedByBelKe05->getPembelajaranId()) {\n $this->aPembelajaranRelatedByBelKe05 = null;\n }\n if ($this->aPembelajaranRelatedByBelKe06 !== null && $this->bel_ke_06 !== $this->aPembelajaranRelatedByBelKe06->getPembelajaranId()) {\n $this->aPembelajaranRelatedByBelKe06 = null;\n }\n if ($this->aPembelajaranRelatedByBelKe07 !== null && $this->bel_ke_07 !== $this->aPembelajaranRelatedByBelKe07->getPembelajaranId()) {\n $this->aPembelajaranRelatedByBelKe07 = null;\n }\n if ($this->aPembelajaranRelatedByBelKe08 !== null && $this->bel_ke_08 !== $this->aPembelajaranRelatedByBelKe08->getPembelajaranId()) {\n $this->aPembelajaranRelatedByBelKe08 = null;\n }\n if ($this->aPembelajaranRelatedByBelKe09 !== null && $this->bel_ke_09 !== $this->aPembelajaranRelatedByBelKe09->getPembelajaranId()) {\n $this->aPembelajaranRelatedByBelKe09 = null;\n }\n if ($this->aPembelajaranRelatedByBelKe10 !== null && $this->bel_ke_10 !== $this->aPembelajaranRelatedByBelKe10->getPembelajaranId()) {\n $this->aPembelajaranRelatedByBelKe10 = null;\n }\n if ($this->aPembelajaranRelatedByBelKe11 !== null && $this->bel_ke_11 !== $this->aPembelajaranRelatedByBelKe11->getPembelajaranId()) {\n $this->aPembelajaranRelatedByBelKe11 = null;\n }\n if ($this->aPembelajaranRelatedByBelKe12 !== null && $this->bel_ke_12 !== $this->aPembelajaranRelatedByBelKe12->getPembelajaranId()) {\n $this->aPembelajaranRelatedByBelKe12 = null;\n }\n if ($this->aPembelajaranRelatedByBelKe13 !== null && $this->bel_ke_13 !== $this->aPembelajaranRelatedByBelKe13->getPembelajaranId()) {\n $this->aPembelajaranRelatedByBelKe13 = null;\n }\n if ($this->aPembelajaranRelatedByBelKe14 !== null && $this->bel_ke_14 !== $this->aPembelajaranRelatedByBelKe14->getPembelajaranId()) {\n $this->aPembelajaranRelatedByBelKe14 = null;\n }\n if ($this->aPembelajaranRelatedByBelKe15 !== null && $this->bel_ke_15 !== $this->aPembelajaranRelatedByBelKe15->getPembelajaranId()) {\n $this->aPembelajaranRelatedByBelKe15 = null;\n }\n if ($this->aPembelajaranRelatedByBelKe16 !== null && $this->bel_ke_16 !== $this->aPembelajaranRelatedByBelKe16->getPembelajaranId()) {\n $this->aPembelajaranRelatedByBelKe16 = null;\n }\n if ($this->aPembelajaranRelatedByBelKe17 !== null && $this->bel_ke_17 !== $this->aPembelajaranRelatedByBelKe17->getPembelajaranId()) {\n $this->aPembelajaranRelatedByBelKe17 = null;\n }\n if ($this->aPembelajaranRelatedByBelKe18 !== null && $this->bel_ke_18 !== $this->aPembelajaranRelatedByBelKe18->getPembelajaranId()) {\n $this->aPembelajaranRelatedByBelKe18 = null;\n }\n if ($this->aPembelajaranRelatedByBelKe19 !== null && $this->bel_ke_19 !== $this->aPembelajaranRelatedByBelKe19->getPembelajaranId()) {\n $this->aPembelajaranRelatedByBelKe19 = null;\n }\n if ($this->aPembelajaranRelatedByBelKe20 !== null && $this->bel_ke_20 !== $this->aPembelajaranRelatedByBelKe20->getPembelajaranId()) {\n $this->aPembelajaranRelatedByBelKe20 = null;\n }\n }",
"public function ensureConsistency()\n {\n\n if ($this->aSekolah !== null && $this->sekolah_id !== $this->aSekolah->getSekolahId()) {\n $this->aSekolah = null;\n }\n if ($this->aKategoriTk !== null && $this->kategori_tk_id !== $this->aKategoriTk->getKategoriTkId()) {\n $this->aKategoriTk = null;\n }\n if ($this->aKlasifikasiLembaga !== null && $this->klasifikasi_lembaga_id !== $this->aKlasifikasiLembaga->getKlasifikasiLembagaId()) {\n $this->aKlasifikasiLembaga = null;\n }\n if ($this->aSumberDanaSekolah !== null && $this->sumber_dana_sekolah_id !== $this->aSumberDanaSekolah->getSumberDanaSekolahId()) {\n $this->aSumberDanaSekolah = null;\n }\n if ($this->aFasilitasLayanan !== null && $this->fasilitas_layanan_id !== $this->aFasilitasLayanan->getFasilitasLayananId()) {\n $this->aFasilitasLayanan = null;\n }\n if ($this->aJadwalPaudRelatedByJadwalPmtas !== null && $this->jadwal_pmtas !== $this->aJadwalPaudRelatedByJadwalPmtas->getJadwalId()) {\n $this->aJadwalPaudRelatedByJadwalPmtas = null;\n }\n if ($this->aLembagaPengangkat !== null && $this->lembaga_pengangkat_id !== $this->aLembagaPengangkat->getLembagaPengangkatId()) {\n $this->aLembagaPengangkat = null;\n }\n if ($this->aJadwalPaudRelatedByJadwalDdtk !== null && $this->jadwal_ddtk !== $this->aJadwalPaudRelatedByJadwalDdtk->getJadwalId()) {\n $this->aJadwalPaudRelatedByJadwalDdtk = null;\n }\n if ($this->aJadwalPaudRelatedByFreqParenting !== null && $this->freq_parenting !== $this->aJadwalPaudRelatedByFreqParenting->getJadwalId()) {\n $this->aJadwalPaudRelatedByFreqParenting = null;\n }\n if ($this->aBentukLembaga !== null && $this->bentuk_lembaga_id !== $this->aBentukLembaga->getBentukLembagaId()) {\n $this->aBentukLembaga = null;\n }\n if ($this->aJadwalPaudRelatedByJadwalKesehatan !== null && $this->jadwal_kesehatan !== $this->aJadwalPaudRelatedByJadwalKesehatan->getJadwalId()) {\n $this->aJadwalPaudRelatedByJadwalKesehatan = null;\n }\n }",
"protected function _checkForeignKeysReverseCascade() {}",
"public function ensureConsistency()\n {\n if ($this->aTblProdPhotos !== null && $this->prod_id !== $this->aTblProdPhotos->getProdId()) {\n $this->aTblProdPhotos = null;\n }\n if ($this->aTblProdPrices !== null && $this->prod_id !== $this->aTblProdPrices->getProdId()) {\n $this->aTblProdPrices = null;\n }\n if ($this->aTblProdSmaller !== null && $this->prod_id !== $this->aTblProdSmaller->getProdId()) {\n $this->aTblProdSmaller = null;\n }\n if ($this->aTblProdPricing !== null && $this->prod_price_id !== $this->aTblProdPricing->getProdPriceId()) {\n $this->aTblProdPricing = null;\n }\n if ($this->aTblMenus !== null && $this->prod_category !== $this->aTblMenus->getMenuAlias()) {\n $this->aTblMenus = null;\n }\n if ($this->aTblShippingCategories !== null && $this->prod_category_shipping !== $this->aTblShippingCategories->getProdShippingPriceId()) {\n $this->aTblShippingCategories = null;\n }\n if ($this->aTblGeneral !== null && $this->prod_general !== $this->aTblGeneral->getProdGeneral()) {\n $this->aTblGeneral = null;\n }\n if ($this->aTblEra !== null && $this->prod_era !== $this->aTblEra->getEraId()) {\n $this->aTblEra = null;\n }\n }",
"private final function ensureObjectInDb()\n {\n # WORKING_ON\n $class_reflection = new ReflectionClass(get_class($this));\n do {\n # use reflection to SKIP abstract classes\n if (!$class_reflection->isInstantiable())\n continue;\n\n if (!$this->getLoadedFromDb($class_reflection->getName())) {\n $this->insert($class_reflection->getName());\n break;\n }\n\n } while (($class_reflection = $class_reflection->getParentClass()) && # get the parent\n $class_reflection->getName() != __CLASS__); # check that we're not hitting the top\n }",
"public function ensureConsistency()\n\t{\n\n\t\tif ($this->aJ002tUsuario !== null && $this->co_usuario_elabora !== $this->aJ002tUsuario->getCoUsuario()) {\n\t\t\t$this->aJ002tUsuario = null;\n\t\t}\n\t\tif ($this->aJ016tForense !== null && $this->co_forense !== $this->aJ016tForense->getCoForense()) {\n\t\t\t$this->aJ016tForense = null;\n\t\t}\n\t\tif ($this->aJ018tInformeForense !== null && $this->co_informe_forense !== $this->aJ018tInformeForense->getCoInformeForense()) {\n\t\t\t$this->aJ018tInformeForense = null;\n\t\t}\n\t}",
"public function checkIntegrity();",
"public function ensureConsistency()\n {\n if ($this->aUserAge !== null && $this->age !== $this->aUserAge->getAge()) {\n $this->aUserAge = null;\n }\n }",
"function onCheckSchema()\n {\n // Not sure we need a new data class for ContextIO. We should be able\n // to do everything with the existing Foreign_link and Foreign_user\n // table. Maybe.\n\n return true;\n }",
"protected function _checkForeignKeysRestrict() {}",
"public function testFkChecksOnOff()\n {\n $this->assertTrue($this->connection->areForeignKeyChecksOn());\n $this->connection->turnOffForeignKeyChecks();\n $this->assertFalse($this->connection->areForeignKeyChecksOn());\n $this->connection->turnOnForeignKeyChecks();\n $this->assertTrue($this->connection->areForeignKeyChecksOn());\n }",
"public function checkIsSaved()\n {\n if (isset($this->owner->primaryKey) == false) {\n throw new ModelIsUnsaved();\n }\n }",
"protected function _checkForeignKeysReverseRestrict() {}",
"public function validate()\n {\n $schema = $this->getTable()->getSchema();\n\n // validate existing reference to target table\n if (!$schema->hasTable($this->getReference()))\n {\n throw new SyncerException(\"Connection reference from table {$this->tableName} to {$this->reference} not found\");\n }\n\n // validate existing connecting table\n if (!$schema->hasTable($this->getConnecting()))\n {\n throw new SyncerException(\"Connecting table {$this->getConnecting()} defined in {$this->tableName} table not found\");\n }\n }",
"public function check(IRepositoryContainer $model)\n\t{\n\t\tparent::check($model);\n\n\t\t$this->checkIntegrity($model, MetaData::OneToMany, true);\n\t}",
"public function test_4_3()\n {\n $out = SetupTestData::hasmany_save_4();\n \n // get all items to avoid losing them when the clean() is executed over the collection\n $addresses = $out['person']->get_addresses()->all();\n \n $out['person']->clean_addresses(); // shouldn't turn on the is_dirty because there are no objects\n \n $out['person']->save(); // shouldn't update because is not dirty\n \n \n // tests\n $this->assert($out['person']->size_addresses() === 0, 'Has many has 0 objects');\n\n $this->assert(count($addresses) === 0, 'Has many has 0 objects');\n }",
"public function beforeDelete(){\r\n //Ok he has the right to do that - remove all the ACL-objects associated with this object\r\n $class = Strategy::getClass('Aro');\r\n $aro = $class::model()->find('model = :model AND foreign_key = :key', array(':model' => get_class( $this), ':key' => $this->getPrimaryKey()));\r\n \r\n if(!$aro)\r\n throw new RuntimeException('No associated Aro-Collection!');\r\n \r\n $transaction = Yii::app()->db->beginTransaction();\r\n try{\r\n $suc =$aro->delete()&& parent::beforeDelete();\r\n $transaction->commit();\r\n return $suc;\r\n }\r\n catch(Exception $e){\r\n $transaction->rollback();\r\n throw $e;\r\n }\r\n }",
"public function refresh()\r\n {\r\n /* @var $record BaseActiveRecord */\r\n $record = static::findOne($this->getPrimaryKey(false));\r\n if ($record === null) {\r\n return false;\r\n }\r\n foreach ($this->attributes() as $name) {\r\n $this->_attributes[$name] = $record->hasAttribute($name) ? $record->getAttribute($name) : null;\r\n }\r\n $this->setOldAttributes($record->getOldAttributes());\r\n\r\n\r\n foreach ($record->getRelatedRecords() as $relationName => $records) {\r\n $this->populateRelation($relationName, $records);\r\n }\r\n $this->afterRefresh();\r\n\r\n return true;\r\n }",
"public function model_after_check(Jam_Model $model, Jam_Event_Data $data)\n\t{\n\t\tif ($model->loaded() AND $model->is_frozen() AND ! $model->is_just_frozen())\n\t\t{\n\t\t\tforeach ($this->_associations as $name)\n\t\t\t{\n\t\t\t\tif ($model->meta()->association($name) instanceof Jam_Association_Collection\n\t\t\t\t AND count($model->{$name}) !== count($model->{$name}->original()))\n\t\t\t\t{\n\t\t\t\t\t$model->errors()->add($name, 'frozen');\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tforeach ($this->_fields as $name)\n\t\t\t{\n\t\t\t\tif ($model->changed($name))\n\t\t\t\t{\n\t\t\t\t\t$model->errors()->add($name, 'frozen');\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"private function warnForThroughRelations()\n {\n $this->warn(\"| Make sure that the \\\"{$this->parent}\\\" model has the foreign key \\\"\".Str::lower($this->farParent).\"_id\\\" and the \\\"{$this->throughChild}\\\" model has the foreign key \\\"\".Str::lower($this->parent).\"_id\\\"\\n\");\n }",
"public function validate()\n {\n /* @var $model \\yii\\db\\ActiveRecord */\n $valid = true;\n\n foreach ($this->_relationsToSave as $model) {\n $model->{$this->relPrimaryKey} = ($this->owner->primaryKey) ? $this->owner->primaryKey : null;\n\n $attributes = array_diff($model->activeAttributes(), [$this->relPrimaryKey]);\n\n if (!$model->validate($attributes)) {\n $this->owner->addErrors($model->getErrors());\n\n $valid = false;\n }\n }\n\n return $valid;\n }",
"public function onAfterDeleteCleaning() {\n\t\t$classHierarchyProbe = new DataObjectOnDeleteDecorator_ClassHierarchyProbe($this->owner);\n\t\t$relatedClasses = $classHierarchyProbe->getRelatedClasses();\n\t\t\n\t\t$this->cleanRelatedRelations($relatedClasses);\n\t\t$this->cleanRelatedTables($relatedClasses);\n\t}",
"public function initialize()\n {\n \t$this->belongsTo('id_verificacion', 'CobVerificacion', 'id_verificacion', array(\n \t\t\t'reusable' => true\n \t));\n \t$this->belongsTo('id_actadocumentacion', 'CobActadocumentacionDatos', 'id_actadocumentacion', array(\n \t\t\t'reusable' => true\n \t));\n \t$this->belongsTo('id_usuario', 'IbcUsuario', 'id_usuario', array(\n \t\t\t'reusable' => true\n \t));\n \t$this->belongsTo('estado', 'IbcReferencia', 'id_referencia', array(\n \t\t\t'reusable' => true\n \t));\n \t$this->hasMany('id_actadocumentacion', 'CobActadocumentacionPersona', 'id_actadocumentacion', array(\n \t\t\t'foreignKey' => array(\n \t\t\t\t\t'message' => 'El acta no puede ser eliminada porque existen beneficiarios asociados a ésta'\n \t\t\t)\n \t));\n }",
"protected function constrain()\n {\n $this->table->where($this->foreign_key(), '=', $this->base->get_key());\n }",
"static function reset_foreignKeyChecks() {\r\n global $db;\r\n \r\n $query = \"SET FOREIGN_KEY_CHECKS=1\";\r\n\r\n $statement = $db->prepare($query);\r\n \r\n if ($statement == FALSE) {\r\n display_db_error($db->error);\r\n }\r\n \r\n $success = $statement->execute();\r\n\r\n if ($success) {\r\n $statement->close();\r\n } else {\r\n display_db_error($db->error);\r\n }\r\n }",
"function checkIntegrityDb()\r\n\t{\r\n\t\treturn true;\r\n\t}",
"public function onSetUp(): void\n {\n $this->getConnection()->executeStatement('SET foreign_key_checks = 0');\n\n parent::onSetUp();\n\n $this->getConnection()->executeStatement('SET foreign_key_checks = 1');\n }",
"public function test_1_3()\n {\n $out = SetupTestData::hasmany_save_1();\n\n // get all items to avoid losing them when the clean() is executed over the collection\n $addresses = $out['person']->get_addresses()->all();\n\n $out['person']->clean_addresses();\n\n $out['person']->save();\n\n\n // tests\n $this->assert($out['person']->size_addresses() === 0, 'Has many has 0 objects');\n\n foreach ($addresses as $i => $address)\n {\n $this->assert($address->person_addresses_back === NULL, \"Backlink of item $i object is NULL\");\n }\n }",
"function testFieldsDontRerequestChanges() {\r\n\t\t$db = DB::getConn();\r\n\t\tDB::quiet();\r\n\t\t\r\n\r\n\t\t// Table will have been initially created by the $extraDataObjects setting\r\n\t\t\r\n\t\t\r\n\t\t// Verify that it doesn't need to be recreated\r\n\t\t$db->beginSchemaUpdate();\r\n\t\t$obj = new DataObjectSchemaGenerationTest_DO();\r\n\t\t$obj->requireTable();\r\n\t\t$needsUpdating = $db->doesSchemaNeedUpdating();\r\n\t\t$db->cancelSchemaUpdate();\r\n\t\t\r\n\t\t$this->assertFalse($needsUpdating);\r\n\t}",
"protected function doInitialize()\n {\n // Has NEW objects added through add(). Remember them.\n $newObjects = [];\n if ($this->isDirty) {\n $newObjects = $this->collection->toArray();\n }\n $this->collection->clear();\n $this->manager->getUnitOfWork()->loadCollection($this);\n $this->takeSnapshot();\n // Reattach NEW objects added through add(), if any.\n if ($newObjects) {\n foreach ($newObjects as $obj) {\n $this->collection->add($obj);\n }\n $this->isDirty = true;\n }\n }",
"public function validate()\n {\n // query for validation information\n // set the validation flag\n // close database\n }",
"public function test_2_3()\n {\n $out = SetupTestData::hasmany_save_2();\n\n // get all items to avoid losing them when the clean() is executed over the collection\n $addresses = $out['person']->get_addresses()->all();\n\n $out['person']->clean_addresses();\n\n $out['person']->save();\n\n\n // tests\n $this->assert($out['person']->size_addresses() === 0, 'Has many has 0 objects');\n\n foreach ($addresses as $i => $address)\n {\n $this->assert($address->person_addresses_back === NULL, \"Backlink of item $i object is NULL\");\n }\n }",
"public function flush()\r\n {\r\n foreach ($this->_collections as $key => $coll) {\r\n $coll->takeSnapshot();\r\n }\r\n foreach ($this->_tables as $table) {\r\n $table->setAttribute(Doctrine::ATTR_LOAD_REFERENCES, true);\r\n }\r\n $this->_initializedRelations = null;\r\n $this->_collections = null;\r\n $this->_tables = null;\r\n }",
"private function checkObjectsErrorsOrConfirmations()\n\t{\n\t\tif (!empty(self::$obj_ts_common->errors))\n\t\t\t$this->errors = array_merge($this->errors, self::$obj_ts_common->errors);\n\n\t\tif (!empty(self::$obj_ts_common->confirmations))\n\t\t\t$this->confirmations = array_merge($this->confirmations, self::$obj_ts_common->confirmations);\n\t}",
"protected function validate() {\n $this->setObjects([new Guild()]);\n }",
"public function flush()\n {\n $this->entityManager->flush();\n /*\n try {\n }\n catch (UniqueConstraintViolationException $e) {\n //Skipping duplicates\n }\n */\n }",
"protected function nullifyInvalidForeignKeys()\n {\n $this->output(t('Fixing records with invalid foreign keys...'));\n // Fix orphans of Packages\n $this->nullifyInvalidForeignKey('AttributeSets', 'pkgID', 'Packages', 'pkgID');\n // Fix orphans of Files\n $this->nullifyInvalidForeignKey('atFile', 'fID', 'Files', 'fID');\n // Fix orphans of Users\n $this->nullifyInvalidForeignKey('Files', 'uID', 'Users', 'uID');\n // Fix orphans of AttributeKeyCategories\n $this->nullifyInvalidForeignKey('AttributeSets', 'akCategoryID', 'AttributeKeyCategories', 'akCategoryID');\n // Fix orphans of FileStorageLocations\n $this->nullifyInvalidForeignKey('Files', 'fslID', 'FileStorageLocations', 'fslID');\n }",
"protected function doUpdateTests()\n {\n $this->objectRepository->setClassName(TestPolicy::class);\n $policy = $this->objectRepository->find(19071974);\n $policy->policyNo = 'TESTPOLICY UPDATED';\n $policy->contact->lastName = 'ChildUpdate';\n $recordsAffected = $this->objectRepository->saveEntity($policy);\n $recordsAffected = 2;\n if ($this->getCacheSuffix()) {\n $this->assertGreaterThanOrEqual(2, $recordsAffected);\n } else {\n $this->assertEquals(2, $recordsAffected);\n }\n\n //Verify update\n $policy2 = $this->objectRepository->find(19071974);\n $this->assertEquals('TESTPOLICY UPDATED', $policy2->policyNo);\n $this->assertEquals('ChildUpdate', $policy2->contact->lastName);\n\n //If we tell it not to update children, ensure foreign keys are ignored\n $policy = $this->objectRepository->find(19071974);\n $policy->vehicle->policy = null;\n $policy->contact = null;\n $this->objectRepository->saveEntity($policy, false);\n $this->objectRepository->clearCache();\n $refreshedPolicy = $this->objectRepository->find(19071974);\n $this->assertEquals(123, $refreshedPolicy->contact->id);\n $this->assertEquals(1, $refreshedPolicy->vehicle->id);\n $this->assertEquals(19071974, $refreshedPolicy->vehicle->policy->id);\n\n //And if we tell it to update children, they are not ignored\n //(known issue: if child owns relationship, the relationship won't be deleted unless you save the child\n //directly - hence we don't check for a null vehicle or vehicle->policy here, as it will not have removed the\n //relationship)\n $this->objectRepository->saveEntity($policy, true);\n $this->objectRepository->clearCache();\n $refreshedPolicy = $this->objectRepository->find(19071974);\n $this->assertNull($refreshedPolicy->contact);\n\n //Put the contact back, ready for the next test (quicker than running $this->setUp() again)\n $refreshedPolicy->contact = $this->objectRepository->getObjectReference(TestContact::class, ['id' => 123]);\n $this->objectRepository->saveEntity($refreshedPolicy);\n }",
"private function initRestorableRelations() {\n\n\t\t$configs = $this->cascadable();\n\n\t\t$this->runCascadeRestore = $configs['restore']['enable'] ?? true;\n\n\t\t$this->relationships = Arr::wrap($configs['restore']['relations'] ?? $configs);\n\t}",
"public function testGetAssociationNotDirtyBelongsTo(): void\n {\n $table = $this->getTableLocator()->get('Articles');\n /** @var \\Cake\\ORM\\Table|\\Cake\\ORM\\Behavior\\TranslateBehavior $authors */\n $authors = $table->belongsTo('Authors')->getTarget();\n $authors->addBehavior('Translate', ['fields' => ['name']]);\n\n $authors->setLocale('eng');\n\n $entity = $table->get(1);\n $this->assertNotEmpty($entity);\n $entity = $table->loadInto($entity, ['Authors']);\n $this->assertFalse($entity->isDirty());\n $this->assertNotEmpty($entity->author);\n $this->assertFalse($entity->author->isDirty());\n\n $entity = $table->get(1, ...['contain' => ['Authors']]);\n $this->assertNotEmpty($entity);\n $this->assertFalse($entity->isDirty());\n $this->assertNotEmpty($entity->author);\n $this->assertFalse($entity->author->isDirty());\n }",
"public function afterSave(){\r\n parent::afterSave();\r\n if($this->isNewRecord){\r\n $class = Strategy::getClass('Aro');\r\n $aro = new $class();\r\n $aro->model = get_class($this);\r\n $aro->foreign_key = $this->getPrimaryKey();\r\n if(!$aro->save())\r\n throw new RuntimeError(\"Unable to save Aro-Collection\");\r\n }\r\n }",
"protected function will_change_to_db(){\n\t\t$pdo = DB::connection( $this->get_database_name() )->getPdo();\n\t\t$pdo->beginTransaction();\n\t\t//DB::beginTransaction();\n\t\t$status = false;\n\t\ttry {\n\t\t\t//! for saving\n\t\t\tforeach( $this->get_obj_save_db() as $obj){\n\t\t\t\tif($obj == null) {\n\t\t\t\t\tthrow new Exception(\"There are non object\");\n\t\t\t\t}\n\t\t\t\t$obj->save();\n\t\t\t}\n\t\t\tforeach( $this->get_obj_dele_db() as $obj){\n\t\t\t\tif($obj == null) {\n\t\t\t\t\tthrow new Exception(\"There are non object\");\n\t\t\t\t}\n\t\t\t\t$obj->delete();\n\t\t\t}\t\t \n\t\t //DB::commit();\n\t\t\t$pdo->commit();\n\t\t\t$status = true;\n\t\t // all good\n\t\t}\n\t\tcatch (\\Exception $e) {\n\t\t\t$this->set_pdo_exception($e);\n\t\t\t$this->set_error_message($e->getMessage()) ;\n\t\t //DB::rollback();\n\t\t\t$pdo->rollback();\n\t\t}\n\t\treturn $status;\n\t}",
"public function beforeValidate()\n {\n // Find relations settings once.\n if (!isset($this->_settings)) {\n $this->_settings = $this->owner->relations();\n }\n\n foreach ($this->relations as $rel) {\n // Call owners tabular method.\n $method = $rel['name'] . 'Tabular';\n $tabular = $this->owner->$method();\n\n $this->owner->$rel['name'] = $tabular;\n\n // Check for validation errors.\n $valid = true;\n if (is_array($tabular)) {\n foreach ($tabular as $m) {\n $valid = $m->validate() && $valid;\n }\n } elseif(is_object($tabular)) {\n $valid = $tabular->validate() && $valid;\n }\n if (!$valid) {\n $this->owner->addError($rel['name'], 'Неверно задано поле ' . $this->owner->getAttributeLabel($rel['name']));\n }\n }\n }",
"public function delete()\n {\n if (is_null($this->getKeyName())) {\n throw new Exception('No primary key defined on model.');\n }\n\n // If the model doesn't exist, there is nothing to delete so we'll just return\n // immediately and not do anything else. Otherwise, we will continue with a\n // deletion process on the model, firing the proper events, and so forth.\n if (!$this->exists) {\n return null;\n }\n\n if ($this->fireModelEvent('deleting') === false) {\n return false;\n }\n\n // Here, we'll touch the owning models, verifying these timestamps get updated\n // for the models. This will allow any caching to get broken on the parents\n // by the timestamp. Then we will go ahead and delete the model instance.\n $this->touchOwners();\n\n $this->performDeleteOnModel();\n\n // We'd like to remove all the versions associated with this model, but we need\n // to make sure the model wasn't soft deleted first.\n if (!$this->exists) {\n $this->versions()->delete();\n }\n\n // Once the model has been deleted, we will fire off the deleted event so that\n // the developers may hook into post-delete operations. We will then return\n // a boolean true as the delete is presumably successful on the database.\n $this->fireModelEvent('deleted', false);\n\n return true;\n }",
"private function checkExistingReferences(object $needle, $constraints): void\n {\n $needle2 = $needle->getClassName();\n $entity_id = KeyFormatter::convertParentClassToForeignKey($needle2);\n $namespaces = $this->getNamespaces();\n foreach ($namespaces as $registered_class) {\n if (\n !str_contains($registered_class, \"Entity\") ||\n ($reflector = new ReflectionClass($registered_class))->isAbstract()\n ) {\n continue;\n }\n $checked_object = new $registered_class;\n if ($checked_object->hasKey($entity_id)) {\n $current_constraints = $constraints;\n try {\n $this->updateProtection(\n $checked_object,\n [$entity_id => $current_constraints['id']],\n KeyFormatter::getTableNameByObject($checked_object),\n KeyFormatter::getTableColumnsByObject($checked_object),\n self::EXISTS\n );\n } catch (RemovingResourceThatHasReferenceException $e) {\n throw new RemovingResourceThatHasReferenceException(\"Tried to delete: $needle2, existed constraint: \" . $checked_object->getClassName());\n }\n } else if ($reflector->hasProperty(KeyFormatter::processPascalToSnake($needle2) . 's')) {\n $current_constraints = $constraints;\n $current_constraints[KeyFormatter::convertParentClassToForeignKey($checked_object->getClassName()) . \"_NOTNULL\"] = null;\n $current_constraints[KeyFormatter::convertParentClassToForeignKey($checked_object->getClassName()) . \"_>=\"] = 1;\n try {\n $this->updateProtection($needle, $current_constraints, KeyFormatter::getTableNameByObject($checked_object), KeyFormatter::getTableColumnsByObject($checked_object), self::EXISTS);\n } catch (RemovingResourceThatHasReferenceException $e) {\n throw new RemovingResourceThatHasReferenceException(\"Tried to delete: $needle2, existed constraint: \" . $checked_object->getClassName());\n }\n }\n }\n }",
"public function test_3_3()\n {\n $out = SetupTestData::hasmany_save_3();\n\n // get all items to avoid losing them when the clean() is executed over the collection\n $addresses = $out['person']->get_addresses()->all();\n\n $out['person']->clean_addresses();\n\n $out['person']->save();\n\n\n // tests\n $this->assert($out['person']->size_addresses() === 0, 'Has many has 0 objects');\n\n foreach ($addresses as $i => $address)\n {\n $this->assert($address->person_addresses_back === NULL, \"Backlink of item $i object is NULL\");\n }\n }",
"protected function validate()\r\n\t{\r\n\t\tif (!$this->isFetched())\r\n\t\t{\r\n\t\t\treturn;\r\n }\r\n \r\n\t\tif ($this->validationInfo)\r\n\t\t{\r\n\t\t\t$this->validationInfo->validate($this->normalizedValue);\r\n\t\t}\r\n\t\t$this->isValid = true;\r\n\t}",
"protected function setUpCheck()\n {\n $this->getOldTable()->createColumn('foo', Type::INTEGER);\n $this->getOldTable()->createColumn('bar', Type::INTEGER);\n $this->getOldTable()->createCheck('foo > 0', 'ck_foo');\n\n $this->createOldTable();\n }",
"public function testIsValidSuccessWithoutHasDataChanges()\n {\n $this->_object->expects($this->once())->method('hasDataChanges')->will($this->returnValue(false));\n $validator = new \\Magento\\Framework\\Validator\\Entity\\Properties();\n $validator->setReadOnlyProperties(['attr1']);\n $this->assertTrue($validator->isValid($this->_object));\n }",
"public function resetDirty()\n {\n $this->dirty = false;\n $this->dirtyOne = false;\n $this->dirtyMany = false;\n }",
"public function afterSave()\n {\n foreach ($this->relations as $rel) {\n if ($this->_settings[$rel['name']][0] === CActiveRecord::HAS_MANY ||\n $this->_settings[$rel['name']][0] === CActiveRecord::HAS_ONE\n ) {\n // If set delete option.\n if (array_key_exists('delete', $rel) && $rel['delete'] === true) {\n // Find all related models with null ID link.\n $deleteModels = call_user_func($this->_settings[$rel['name']][1] . '::model')->findAllByAttributes(array($this->_settings[$rel['name']][2] => null));\n foreach ($deleteModels as $m) {\n $m->delete();\n }\n }\n }\n }\n }",
"public function Validate()\n\t{\n\t\t//\n\t\t// Traverse object.\n\t\t//\n\t\tforeach( $this as $condition => $statements )\n\t\t\t$this->_ValidateCondition( $condition, $statements, 0 );\n\t\n\t}",
"public function clear()\n {\n self::foreignChecks(false);\n $this->model->truncate();\n self::foreignChecks(true);\n }",
"public function verifyNow(): void\n {\n if (!$this->validate()) {\n throw new ValidationException($this);\n }\n }",
"protected function performDeleteOnModel()\n {\n $this->performCascadeDelete();\n parent::performDeleteOnModel();\n }",
"public function clean()\n {\n\n $this->model = null;\n $this->value = null;\n $this->attribute = null;\n $this->data = [];\n\n $this->fkTable = null;\n\n $this->fkQuery = null;\n $this->fkAndQuery = null;\n $this->fkOrQuery = null;\n\n }",
"protected function performDeleteOnModel()\n {\n $this->getApi()->{'delete'.ucfirst($this->getEntity())}(\n $this->{$this->primaryKey},\n array_merge(...array_values($this->getGlobalScopes()))\n );\n\n $this->exists = false;\n }",
"private function _validateModifiable()\n {\n if(!($this->_getDataSource() instanceof wCrudAdapter))\n {\n throw new Exception('Object is read-only.');\n }\n }",
"public function ensure();",
"public function setForeignKeyChecks($state);",
"public function testflush()\n {\n self::assertTrue($this->object->flush());\n }",
"public function beforeSave()\n {\n foreach ($this->relations as $rel) {\n if ($this->_settings[$rel['name']][0] === CActiveRecord::MANY_MANY ||\n $this->_settings[$rel['name']][0] === CActiveRecord::HAS_MANY\n ) {\n foreach ($this->owner->$rel['name'] as $m) {\n $m->save();\n }\n } elseif ($this->_settings[$rel['name']][0] === CActiveRecord::HAS_ONE) {\n $this->owner->{$rel['name']}->save();\n } elseif ($this->_settings[$rel['name']][0] === CActiveRecord::BELONGS_TO) {\n if ($this->owner->$rel['name'] === null) {\n // Set link ID attribute of owner model as null.\n $this->owner->setAttribute($this->_settings[$rel['name']][2], null);\n } else {\n // Save related model.\n $this->owner->{$rel['name']}->save();\n // Set link ID attribute of owner model as new relation ID.\n $this->owner->setAttribute($this->_settings[$rel['name']][2], $this->owner->{$rel['name']}->id);\n }\n }\n }\n }",
"function update(){\n\n // Check the required fields to see if each required field exists.\n forEach($requiredFields as $field){\n if(!$this->bean->contains($field)){\n throw new Exception(\"Required field $field does not exists.\");\n }\n }\n\n // Check to see if there are any fields that are not specified as a possible field.\n forEach($this->bean as $key => $value){\n if(!$possibleFields->contains($key)){\n throw new Exception(\"Invalid field $key passed to model.\");\n }\n }\n \n // Validate bean. \n if(!validate($this->bean)){\n throw new Exception(\"Bean is not valid. For a more detailed message throw a custom exception in validation function.\");\n }\n }",
"public function ApplyChanges()\n {\n parent::ApplyChanges();\n\n // Update data\n $this->Update();\n }",
"protected function assertForeignKeyAlteration()\n {\n $tableDiff = $this->getComparator()->compare($this->getOldForeignKeyTable(), $this->getNewForeignKeyTable());\n $this->getSchemaManager()->alterTable($tableDiff);\n\n $this->assertEquals(\n $this->getNewForeignKeyTable(),\n $this->getSchemaManager()->getTable($this->getNewForeignKeyTable()->getName())\n );\n }",
"private function nuke()\n {\n \\lib\\Model\\ModelCache::clear($this);\n $this->__new=true;\n $this->__fields=array();\n $this->__isDirty=false;\n $this->__dirtyFields=array();\n }",
"protected function _dirty()\n {\n $this->_results = null;\n $this->_resultsCount = null;\n parent::_dirty();\n }",
"public function testGetAssociationNotDirtyHasOne(): void\n {\n $table = $this->getTableLocator()->get('Authors');\n $table->hasOne('Articles');\n $table->Articles->addBehavior('Translate', ['fields' => ['title']]);\n\n $entity = $table->get(1);\n $this->assertNotEmpty($entity);\n $entity = $table->loadInto($entity, ['Articles']);\n $this->assertFalse($entity->isDirty());\n $this->assertNotEmpty($entity->article);\n $this->assertFalse($entity->article->isDirty());\n\n $entity = $table->get(1, ...['contain' => 'Articles']);\n $this->assertNotEmpty($entity);\n $this->assertFalse($entity->isDirty());\n $this->assertNotEmpty($entity->article);\n $this->assertFalse($entity->article->isDirty());\n }",
"public function postFlush(): void\n {\n try {\n foreach ($this->createdObjects as $object) {\n $this->publishUpdate($object, $this->createdObjects[$object], 'create');\n }\n\n foreach ($this->updatedObjects as $object) {\n $this->publishUpdate($object, $this->updatedObjects[$object], 'update');\n }\n\n foreach ($this->deletedObjects as $object) {\n $this->publishUpdate($object, $this->deletedObjects[$object], 'delete');\n }\n } finally {\n $this->reset();\n }\n }",
"protected function persistObjects() {}",
"public function clean()\n\t{\n\t\tforeach ($this->dirtyFields AS $field)\n\t\t\t$this->cleanField($field);\n\t}",
"public function delete()\n\t{\n\t\tif ( !is_array( $this->_id ) )\n\t\t\tthrow new \\RuntimeException( 'item does not exist (anymore)' );\n\n\n\t\t/*\n\t\t * wrap deletion of item and its tight relations in a transaction\n\t\t */\n\n\t\t$item = $this;\n\t\t$set = static::set();\n\t\t$relations = static::$relations;\n\t\t$class = get_called_class();\n\n\t\tif ( !$this->_source->transaction()->wrap( function( connection $connection ) use ( $item, $set, $relations, $class )\n\t\t{\n\t\t\t// cache information on item to delete\n\t\t\t$idValues = array_values( $item->id() );\n\t\t\t$record = count( $relations ) ? $item->load() : array();\n\n\n\t\t\t/*\n\t\t\t * step 1) actually delete current item\n\t\t\t */\n\n\t\t\t$qSet = $connection->qualifyDatasetName( $set );\n\t\t\tif ( $connection->test( sprintf( 'DELETE FROM %s WHERE %s', $qSet, $item->filter() ), $idValues ) === false )\n\t\t\t\tthrow new datasource_exception( $connection, 'failed to delete requested model instance' );\n\n\n\t\t\t/*\n\t\t\t * step 2) update all related items\n\t\t\t */\n\n\t\t\t// on deleting item relations have to be updated\n\t\t\t// - always null references on current item to be deleted\n\t\t\tforeach ( $relations as $relationName => $relationSpec ) {\n\t\t\t\t// detect if relation is \"tight\"\n\t\t\t\t$isTightlyBound = in_array( 'tight', (array) @$relationSpec['options'] ) ||\n\t\t\t\t @$relationSpec['options']['tight'];\n\n\t\t\t\t// get first reference in relation\n\t\t\t\t/** @var model_relation $relation */\n\t\t\t\t$relation = call_user_func( array( $class, \"relation\" ), $relationName );\n\t\t\t\t$firstNode = $relation->nodeAtIndex( 0 );\n\t\t\t\t$secondNode = $relation->nodeAtIndex( 1 );\n\t\t\t\t$secondNodeSet = $secondNode->getName( true );\n\n\t\t\t\t// prepare collection of information on second node\n\t\t\t\t$onSecond = array(\n\t\t\t\t\t'null' => array(),\n\t\t\t\t 'filter' => array(\n\t\t\t\t\t 'properties' => array(),\n\t\t\t\t 'values' => array(),\n\t\t\t\t )\n\t\t\t\t);\n\n\t\t\t\t// extract reusable code to prepare filter for selecting record\n\t\t\t\t// of second node actually related to deleted item\n\t\t\t\t$getFilter = function() use ( &$onSecond, $connection, $firstNode, $secondNode, $record ) {\n\t\t\t\t\t// retrieve _qualified and quoted_ names of predecessor's properties\n\t\t\t\t\t$onSecond['filter']['properties'] = $secondNode->getPredecessorNames( $connection );\n\t\t\t\t\tforeach ( $firstNode->getSuccessorNames() as $property )\n\t\t\t\t\t\t$onSecond['filter']['values'][] = @$record[$property];\n\t\t\t\t};\n\n\t\t\t\t// inspect type of relationship between first and second node of\n\t\t\t\t// current relation\n\t\t\t\tif ( $secondNode->canBindOnPredecessor() ) {\n\t\t\t\t\t// second node in relation is referencing first one\n\t\t\t\t\t// -> there are items of second node's model referring to\n\t\t\t\t\t// item removed above\n\n\t\t\t\t\t// -> find records of all those items ...\n\t\t\t\t\t$getFilter();\n\n\t\t\t\t\t// ... at least for nulling their references on deleted item\n\t\t\t\t\t$onSecond['null'] = $onSecond['filter']['properties'];\n\t\t\t\t} else {\n\t\t\t\t\t// first node in relation is referencing second one\n\t\t\t\t\t// -> deleted item was referencing item of second node's model\n\t\t\t\t\t// -> there is basically no need to update any foreign\n\t\t\t\t\t// references on deleted item\n\n\t\t\t\t\tif ( $isTightlyBound )\n\t\t\t\t\t\t// relation is marked as \"tight\"\n\t\t\t\t\t\t// -> need to delete item referenced by deleted item\n\t\t\t\t\t\t$getFilter();\n\t\t\t\t}\n\n\n\t\t\t\t// convert filtering properties of second node into set of assignments\n\t\t\t\t$filter = array_map( function( $name ) { return \"$name=?\"; }, $onSecond['filter']['properties'] );\n\n\t\t\t\tif ( $isTightlyBound ) {\n\t\t\t\t\t// in tight relation immediately related elements are\n\t\t\t\t\t// deleted as well\n\n\t\t\t\t\t$secondModel = $secondNode->getModel();\n\n\t\t\t\t\tif ( $secondModel->isVirtual() ) {\n\t\t\t\t\t\t// second model is virtual, only\n\t\t\t\t\t\t// -> it's okay to simply delete matching records in datasource\n\t\t\t\t\t\t$qSet = $connection->qualifyDatasetName( $secondNodeSet );\n\t\t\t\t\t\t$term = implode( ' AND ', $filter );\n\n\t\t\t\t\t\tif ( !$connection->test( \"DELETE FROM $qSet WHERE $term\", $onSecond['filter']['values'] ) )\n\t\t\t\t\t\t\tthrow new datasource_exception( $connection, 'failed to delete instances of tightly related items in relation ' . $relationName );\n\n\t\t\t\t\t\t// TODO: add support for tightly bound relation in opposite reference of this virtual node\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// query data source for IDs of all tightly related items\n\t\t\t\t\t\t$query = $connection->createQuery( $secondNodeSet );\n\n\t\t\t\t\t\t// - select related items using properties involved in relation\n\t\t\t\t\t\tforeach ( $onSecond['filter']['properties'] as $index => $name )\n\t\t\t\t\t\t\t$query->addFilter( \"$name=?\", true, $onSecond['filter']['values'][$index] );\n\n\t\t\t\t\t\t// - fetch all properties used to identify items\n\t\t\t\t\t\t$ids = $secondModel->getIdProperties();\n\t\t\t\t\t\tforeach ( $ids as $index => $name )\n\t\t\t\t\t\t\t$query->addProperty( $connection->quoteName( $name ), \"i$index\" );\n\n\t\t\t\t\t\t// iterate over all matches for deleting every one\n\t\t\t\t\t\t$matches = $query->execute();\n\t\t\t\t\t\t$iCount = count( $ids );\n\n\t\t\t\t\t\twhile ( $match = $matches->row() ) {\n\t\t\t\t\t\t\t// extract properly sorted ID from matching record\n\t\t\t\t\t\t\t$id = array();\n\t\t\t\t\t\t\tfor ( $i = 0; $i < $iCount; $i++ )\n\t\t\t\t\t\t\t\t$id[$ids[$i]] = $match[\"i$i\"];\n\n\t\t\t\t\t\t\t// select item of model and delete it\n\t\t\t\t\t\t\t$secondModel\n\t\t\t\t\t\t\t\t->selectInstance( $connection, $id )\n\t\t\t\t\t\t\t\t->delete();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else if ( count( $onSecond['null'] ) ) {\n\t\t\t\t\t// need to null foreign references on deleted item\n\t\t\t\t\t$values = array_merge(\n\t\t\t\t\t\t\t\t\tarray_pad( array(), count( $onSecond['filter']['values'] ), null ),\n\t\t\t\t\t\t\t\t\t$onSecond['filter']['values']\n\t\t\t\t\t\t\t\t);\n\n\t\t\t\t\t$qSet = $connection->qualifyDatasetName( $secondNodeSet );\n\t\t\t\t\t$matching = implode( ' AND ', $filter );\n\t\t\t\t\t$setting = implode( ',', $filter );\n\n\t\t\t\t\tif ( !$connection->test( \"UPDATE $qSet SET $setting WHERE $matching\", $values ) )\n\t\t\t\t\t\tthrow new datasource_exception( $connection, 'failed to null references on deleted item in relation ' . $relationName );\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn true;\n\t\t} ) )\n\t\t\tthrow new datasource_exception( $this->_source, 'failed to completely delete item and its tightly bound relations' );\n\n\n\t\t// drop that item now ...\n\t\t$this->_id = null;\n\t}"
] | [
"0.75610495",
"0.72721386",
"0.71245176",
"0.70600545",
"0.7055432",
"0.6995465",
"0.69662577",
"0.6878698",
"0.68757457",
"0.68340486",
"0.68136984",
"0.6717761",
"0.66962105",
"0.66962105",
"0.66962105",
"0.66962105",
"0.6691581",
"0.66754556",
"0.66677",
"0.66677",
"0.66677",
"0.66677",
"0.66677",
"0.6575649",
"0.6572838",
"0.65173376",
"0.65173376",
"0.65132755",
"0.64646846",
"0.6427127",
"0.6419468",
"0.6418286",
"0.6170201",
"0.6164267",
"0.6000974",
"0.5938942",
"0.59028494",
"0.5847231",
"0.58280027",
"0.581743",
"0.5712032",
"0.56733847",
"0.56553775",
"0.56470793",
"0.563056",
"0.5591786",
"0.5534912",
"0.54915214",
"0.5465913",
"0.53841716",
"0.5358286",
"0.5346021",
"0.5326731",
"0.5290504",
"0.52729446",
"0.5230596",
"0.5223077",
"0.52186894",
"0.5207501",
"0.51861894",
"0.51716155",
"0.5167044",
"0.514254",
"0.51191425",
"0.5114929",
"0.51138675",
"0.5095955",
"0.50891995",
"0.50749725",
"0.5059274",
"0.5054891",
"0.50496626",
"0.50482357",
"0.50470275",
"0.50439644",
"0.5037411",
"0.50352603",
"0.5029581",
"0.50244975",
"0.5023556",
"0.5022332",
"0.5011356",
"0.50056815",
"0.49872118",
"0.49865994",
"0.49856904",
"0.4984509",
"0.4982582",
"0.4979703",
"0.49757838",
"0.4972886",
"0.49700144",
"0.49697402",
"0.49680746",
"0.49633083",
"0.4962865",
"0.49574387",
"0.49565798",
"0.49538377",
"0.49388063"
] | 0.6753883 | 11 |
ensureConsistency Reloads this object from datastore based on primary key and (optionally) resets all associated objects. This will only work if the object has been saved and has a valid primary key set. | public function reload($deep = false, PropelPDO $con = null)
{
if ($this->isDeleted()) {
throw new PropelException("Cannot reload a deleted object.");
}
if ($this->isNew()) {
throw new PropelException("Cannot reload an unsaved object.");
}
if ($con === null) {
$con = Propel::getConnection(OperationPrimesPeer::DATABASE_NAME, Propel::CONNECTION_READ);
}
// We don't need to alter the object instance pool; we're just modifying this instance
// already in the pool.
$stmt = OperationPrimesPeer::doSelectStmt($this->buildPkeyCriteria(), $con);
$row = $stmt->fetch(PDO::FETCH_NUM);
$stmt->closeCursor();
if (!$row) {
throw new PropelException('Cannot find matching row in the database to reload object values.');
}
$this->hydrate($row, 0, true); // rehydrate
if ($deep) { // also de-associate any related objects?
$this->aOperations = null;
$this->aRCurrencies = null;
$this->aRRewardTypes = null;
$this->aRRewardExpeditionModes = null;
$this->aRRewardTransporters = null;
$this->collOperationPrestationss = null;
$this->collOperationScenariis = null;
$this->collLnkOperationPrimeRCountriess = null;
} // if (deep)
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function ensureConsistency()\n\t{\n\n\t\tif ($this->aPartie !== null && $this->partie_id !== $this->aPartie->getId()) {\n\t\t\t$this->aPartie = null;\n\t\t}\n\t\tif ($this->aPostRelatedByReplicaPostId !== null && $this->replica_post_id !== $this->aPostRelatedByReplicaPostId->getId()) {\n\t\t\t$this->aPostRelatedByReplicaPostId = null;\n\t\t}\n\t}",
"public function ensureConsistency()\n {\n if ($this->aBooks !== null && $this->_forbook !== $this->aBooks->getId()) {\n $this->aBooks = null;\n }\n if ($this->auserSysRef !== null && $this->__user__ !== $this->auserSysRef->getId()) {\n $this->auserSysRef = null;\n }\n }",
"public function ensureConsistency()\n {\n if ($this->aSociete !== null && $this->soc_id_fk !== $this->aSociete->getID()) {\n $this->aSociete = null;\n }\n if ($this->aMTransport !== null && $this->transport_fk !== $this->aMTransport->getMTransport()) {\n $this->aMTransport = null;\n }\n }",
"public function ensureConsistency()\n {\n\n if ($this->aSekolah !== null && $this->sekolah_id !== $this->aSekolah->getSekolahId()) {\n $this->aSekolah = null;\n }\n if ($this->aSemester !== null && $this->semester_id !== $this->aSemester->getSemesterId()) {\n $this->aSemester = null;\n }\n if ($this->aSumberAirRelatedBySumberAirId !== null && $this->sumber_air_id !== $this->aSumberAirRelatedBySumberAirId->getSumberAirId()) {\n $this->aSumberAirRelatedBySumberAirId = null;\n }\n if ($this->aSumberAirRelatedBySumberAirMinumId !== null && $this->sumber_air_minum_id !== $this->aSumberAirRelatedBySumberAirMinumId->getSumberAirId()) {\n $this->aSumberAirRelatedBySumberAirMinumId = null;\n }\n }",
"public function ensureConsistency()\n {\n\n if ($this->aActionPropertyTypeRelatedByid !== null && $this->id !== $this->aActionPropertyTypeRelatedByid->getactionTypeId()) {\n $this->aActionPropertyTypeRelatedByid = null;\n }\n }",
"public function ensureConsistency()\n {\n\n if ($this->aSucursal !== null && $this->idsucursal !== $this->aSucursal->getIdsucursal()) {\n $this->aSucursal = null;\n }\n }",
"public function ensureConsistency()\n {\n if ($this->aShape !== null && $this->shape_id !== $this->aShape->getShapeId()) {\n $this->aShape = null;\n }\n if ($this->aCakeType !== null && $this->cake_type_id !== $this->aCakeType->getCakeTypeId()) {\n $this->aCakeType = null;\n }\n }",
"public function ensureConsistency()\n\t{\n\n\t\tif ($this->aPerfil !== null && $this->perfil_id !== $this->aPerfil->getId()) {\n\t\t\t$this->aPerfil = null;\n\t\t}\n\t\tif ($this->aEndereco !== null && $this->endereco_id !== $this->aEndereco->getId()) {\n\t\t\t$this->aEndereco = null;\n\t\t}\n\t\tif ($this->aCargo !== null && $this->cargo_id !== $this->aCargo->getId()) {\n\t\t\t$this->aCargo = null;\n\t\t}\n\t\tif ($this->aDepartamento !== null && $this->departamento_id !== $this->aDepartamento->getId()) {\n\t\t\t$this->aDepartamento = null;\n\t\t}\n\t}",
"public function ensureConsistency()\n\t{\n\n\t\tif ($this->aPerfil !== null && $this->co_perfil !== $this->aPerfil->getCoPerfil()) {\n\t\t\t$this->aPerfil = null;\n\t\t}\n\t}",
"public function ensureConsistency()\n {\n\n if ($this->aFeature !== null && $this->feature_id !== $this->aFeature->getFeatureId()) {\n $this->aFeature = null;\n }\n if ($this->aCvterm !== null && $this->cvterm_id !== $this->aCvterm->getCvtermId()) {\n $this->aCvterm = null;\n }\n if ($this->aPub !== null && $this->pub_id !== $this->aPub->getPubId()) {\n $this->aPub = null;\n }\n }",
"public function ensureConsistency()\n\t{\n\n\t\tif ($this->aUf !== null && $this->uf_id !== $this->aUf->getId()) {\n\t\t\t$this->aUf = null;\n\t\t}\n\t}",
"public function ensureConsistency()\n\t{\n\n\t\tif ($this->aUser !== null && $this->submittedbyuser !== $this->aUser->getUserid()) {\n\t\t\t$this->aUser = null;\n\t\t}\n\t}",
"public function ensureConsistency()\n {\n\n if ($this->aOperations !== null && $this->op_id !== $this->aOperations->getOpId()) {\n $this->aOperations = null;\n }\n if ($this->aRCurrencies !== null && $this->operation_prime_currency_id !== $this->aRCurrencies->getRCurrencyId()) {\n $this->aRCurrencies = null;\n }\n if ($this->aRRewardTypes !== null && $this->operation_prime_r_reward_type_id !== $this->aRRewardTypes->getRRewardTypeId()) {\n $this->aRRewardTypes = null;\n }\n if ($this->aRRewardExpeditionModes !== null && $this->operation_prime_r_reward_expedition_mode_id !== $this->aRRewardExpeditionModes->getRRewardExpeditionModeId()) {\n $this->aRRewardExpeditionModes = null;\n }\n if ($this->aRRewardTransporters !== null && $this->operation_prime_r_reward_transporter_id !== $this->aRRewardTransporters->getRRewardTransporterId()) {\n $this->aRRewardTransporters = null;\n }\n }",
"public function ensureConsistency()\n\t{\n\n\t\tif ($this->aCampaignTemplate !== null && $this->template_id !== $this->aCampaignTemplate->getId()) {\n\t\t\t$this->aCampaignTemplate = null;\n\t\t}\n\t\tif ($this->asfGuardUserProfile !== null && $this->created_by !== $this->asfGuardUserProfile->getId()) {\n\t\t\t$this->asfGuardUserProfile = null;\n\t\t}\n\t}",
"protected function clearAllPersistentData()\r\n {\r\n }",
"public function ensureConsistency()\n {\n if ($this->aPurchaseOrder !== null && $this->pothnbr !== $this->aPurchaseOrder->getPohdnbr()) {\n $this->aPurchaseOrder = null;\n }\n if ($this->aWarehouse !== null && $this->intbwhse !== $this->aWarehouse->getIntbwhse()) {\n $this->aWarehouse = null;\n }\n }",
"public function Reload() {\n\t\t\t// Make sure we are actually Restored from the database\n\t\t\tif (!$this->__blnRestored)\n\t\t\t\tthrow new QCallerException('Cannot call Reload() on a new, unsaved PersonWithLock object.');\n\n\t\t\t$this->DeleteFromCache();\n\n\t\t\t// Reload the Object\n\t\t\t$objReloaded = PersonWithLock::Load($this->intId);\n\n\t\t\t// Update $this's local variables to match\n\t\t\t$this->strFirstName = $objReloaded->strFirstName;\n\t\t\t$this->strLastName = $objReloaded->strLastName;\n\t\t\t$this->strSysTimestamp = $objReloaded->strSysTimestamp;\n\t\t}",
"public function reset()\n\t{\n\t\tparent::reset();\n\n\t\t// Reset the primary key\n\t\t$this->id = null;\n\t}",
"public function reset()\n\t{\n\t\tparent::reset();\n\n\t\t// Reset the primary key\n\t\t$this->id = null;\n\t}",
"public function ensureConsistency()\n {\n if ($this->aPublisher !== null && $this->publisher_id !== $this->aPublisher->getPublisherId()) {\n $this->aPublisher = null;\n }\n if ($this->aLanguage !== null && $this->language_id !== $this->aLanguage->getLanguageId()) {\n $this->aLanguage = null;\n }\n if ($this->aPlace !== null && $this->publish_place_id !== $this->aPlace->getPlaceId()) {\n $this->aPlace = null;\n }\n if ($this->aFrequency !== null && $this->frequency_id !== $this->aFrequency->getFrequencyId()) {\n $this->aFrequency = null;\n }\n if ($this->aUser !== null && $this->uid !== $this->aUser->getUserId()) {\n $this->aUser = null;\n }\n }",
"public function beforeDelete(){\r\n //Ok he has the right to do that - remove all the ACL-objects associated with this object\r\n $class = Strategy::getClass('Aro');\r\n $aro = $class::model()->find('model = :model AND foreign_key = :key', array(':model' => get_class( $this), ':key' => $this->getPrimaryKey()));\r\n \r\n if(!$aro)\r\n throw new RuntimeException('No associated Aro-Collection!');\r\n \r\n $transaction = Yii::app()->db->beginTransaction();\r\n try{\r\n $suc =$aro->delete()&& parent::beforeDelete();\r\n $transaction->commit();\r\n return $suc;\r\n }\r\n catch(Exception $e){\r\n $transaction->rollback();\r\n throw $e;\r\n }\r\n }",
"public function unload()\n {\n\n $this->synchronized = true;\n $this->id = null;\n $this->newId = null;\n $this->data = [];\n $this->savedData = [];\n $this->orm = null;\n\n $this->multiRef = [];\n $this->i18n = null;\n\n }",
"public function ensureConsistency()\n {\n\n if ($this->aJenisPrasarana !== null && $this->jenis_prasarana_id !== $this->aJenisPrasarana->getJenisPrasaranaId()) {\n $this->aJenisPrasarana = null;\n }\n if ($this->aSekolah !== null && $this->sekolah_id !== $this->aSekolah->getSekolahId()) {\n $this->aSekolah = null;\n }\n if ($this->aTanah !== null && $this->id_tanah !== $this->aTanah->getIdTanah()) {\n $this->aTanah = null;\n }\n if ($this->aPtk !== null && $this->ptk_id !== $this->aPtk->getPtkId()) {\n $this->aPtk = null;\n }\n if ($this->aJenisHapusBuku !== null && $this->id_hapus_buku !== $this->aJenisHapusBuku->getIdHapusBuku()) {\n $this->aJenisHapusBuku = null;\n }\n if ($this->aStatusKepemilikanSarpras !== null && $this->kepemilikan_sarpras_id !== $this->aStatusKepemilikanSarpras->getKepemilikanSarprasId()) {\n $this->aStatusKepemilikanSarpras = null;\n }\n }",
"public function setPrimaryKey()\n {\n\tif ( $this->isFrozen()) throw new FreezeException();\n\t$this->primaryKey= true;\n }",
"public function ensureConsistency()\n\t{\n\n\t}",
"public function ensureConsistency()\n\t{\n\n\t}",
"public function ensureConsistency()\n\t{\n\n\t}",
"public function ensureConsistency()\n\t{\n\n\t}",
"private function nuke()\n {\n \\lib\\Model\\ModelCache::clear($this);\n $this->__new=true;\n $this->__fields=array();\n $this->__isDirty=false;\n $this->__dirtyFields=array();\n }",
"public function reload( $obj_id )\r\n\t{\r\n\t\tif (isset( $this->relations[ $obj_id ] ))\r\n\t\t\tunset( $this->relations[ $obj_id ] );\r\n\t}",
"public function restore()\n {\n $this->restoreEntrustUserTrait();\n $this->restoreSoftDeletes();\n }",
"public function clear()\n {\n self::foreignChecks(false);\n $this->model->truncate();\n self::foreignChecks(true);\n }",
"public function ensureConsistency()\n {\n }",
"public function ensureConsistency()\n {\n }",
"public function ensureConsistency()\n {\n }",
"public function ensureConsistency()\n {\n }",
"public function ensureConsistency()\n {\n }",
"public function refresh()\r\n {\r\n /* @var $record BaseActiveRecord */\r\n $record = static::findOne($this->getPrimaryKey(false));\r\n if ($record === null) {\r\n return false;\r\n }\r\n foreach ($this->attributes() as $name) {\r\n $this->_attributes[$name] = $record->hasAttribute($name) ? $record->getAttribute($name) : null;\r\n }\r\n $this->setOldAttributes($record->getOldAttributes());\r\n\r\n\r\n foreach ($record->getRelatedRecords() as $relationName => $records) {\r\n $this->populateRelation($relationName, $records);\r\n }\r\n $this->afterRefresh();\r\n\r\n return true;\r\n }",
"public function ensureConsistency()\n {\n if ($this->aUserAge !== null && $this->age !== $this->aUserAge->getAge()) {\n $this->aUserAge = null;\n }\n }",
"public function byPrimaryKeysNonEntityClass()\n {\n $this->dbEraser->deleteByPrimaryKeys($this->mockConnection, new MockNoEntityAnnotationEntity());\n }",
"public function ensureConsistency()\n {\n if ($this->aTblProdPhotos !== null && $this->prod_id !== $this->aTblProdPhotos->getProdId()) {\n $this->aTblProdPhotos = null;\n }\n if ($this->aTblProdPrices !== null && $this->prod_id !== $this->aTblProdPrices->getProdId()) {\n $this->aTblProdPrices = null;\n }\n if ($this->aTblProdSmaller !== null && $this->prod_id !== $this->aTblProdSmaller->getProdId()) {\n $this->aTblProdSmaller = null;\n }\n if ($this->aTblProdPricing !== null && $this->prod_price_id !== $this->aTblProdPricing->getProdPriceId()) {\n $this->aTblProdPricing = null;\n }\n if ($this->aTblMenus !== null && $this->prod_category !== $this->aTblMenus->getMenuAlias()) {\n $this->aTblMenus = null;\n }\n if ($this->aTblShippingCategories !== null && $this->prod_category_shipping !== $this->aTblShippingCategories->getProdShippingPriceId()) {\n $this->aTblShippingCategories = null;\n }\n if ($this->aTblGeneral !== null && $this->prod_general !== $this->aTblGeneral->getProdGeneral()) {\n $this->aTblGeneral = null;\n }\n if ($this->aTblEra !== null && $this->prod_era !== $this->aTblEra->getEraId()) {\n $this->aTblEra = null;\n }\n }",
"public function ensureConsistency()\n {\n\n if ($this->aSekolahLongitudinal !== null && $this->sekolah_id !== $this->aSekolahLongitudinal->getSekolahId()) {\n $this->aSekolahLongitudinal = null;\n }\n if ($this->aSekolahLongitudinal !== null && $this->semester_id !== $this->aSekolahLongitudinal->getSemesterId()) {\n $this->aSekolahLongitudinal = null;\n }\n if ($this->aRuang !== null && $this->id_ruang !== $this->aRuang->getIdRuang()) {\n $this->aRuang = null;\n }\n if ($this->aPembelajaranRelatedByBelKe01 !== null && $this->bel_ke_01 !== $this->aPembelajaranRelatedByBelKe01->getPembelajaranId()) {\n $this->aPembelajaranRelatedByBelKe01 = null;\n }\n if ($this->aPembelajaranRelatedByBelKe02 !== null && $this->bel_ke_02 !== $this->aPembelajaranRelatedByBelKe02->getPembelajaranId()) {\n $this->aPembelajaranRelatedByBelKe02 = null;\n }\n if ($this->aPembelajaranRelatedByBelKe03 !== null && $this->bel_ke_03 !== $this->aPembelajaranRelatedByBelKe03->getPembelajaranId()) {\n $this->aPembelajaranRelatedByBelKe03 = null;\n }\n if ($this->aPembelajaranRelatedByBelKe04 !== null && $this->bel_ke_04 !== $this->aPembelajaranRelatedByBelKe04->getPembelajaranId()) {\n $this->aPembelajaranRelatedByBelKe04 = null;\n }\n if ($this->aPembelajaranRelatedByBelKe05 !== null && $this->bel_ke_05 !== $this->aPembelajaranRelatedByBelKe05->getPembelajaranId()) {\n $this->aPembelajaranRelatedByBelKe05 = null;\n }\n if ($this->aPembelajaranRelatedByBelKe06 !== null && $this->bel_ke_06 !== $this->aPembelajaranRelatedByBelKe06->getPembelajaranId()) {\n $this->aPembelajaranRelatedByBelKe06 = null;\n }\n if ($this->aPembelajaranRelatedByBelKe07 !== null && $this->bel_ke_07 !== $this->aPembelajaranRelatedByBelKe07->getPembelajaranId()) {\n $this->aPembelajaranRelatedByBelKe07 = null;\n }\n if ($this->aPembelajaranRelatedByBelKe08 !== null && $this->bel_ke_08 !== $this->aPembelajaranRelatedByBelKe08->getPembelajaranId()) {\n $this->aPembelajaranRelatedByBelKe08 = null;\n }\n if ($this->aPembelajaranRelatedByBelKe09 !== null && $this->bel_ke_09 !== $this->aPembelajaranRelatedByBelKe09->getPembelajaranId()) {\n $this->aPembelajaranRelatedByBelKe09 = null;\n }\n if ($this->aPembelajaranRelatedByBelKe10 !== null && $this->bel_ke_10 !== $this->aPembelajaranRelatedByBelKe10->getPembelajaranId()) {\n $this->aPembelajaranRelatedByBelKe10 = null;\n }\n if ($this->aPembelajaranRelatedByBelKe11 !== null && $this->bel_ke_11 !== $this->aPembelajaranRelatedByBelKe11->getPembelajaranId()) {\n $this->aPembelajaranRelatedByBelKe11 = null;\n }\n if ($this->aPembelajaranRelatedByBelKe12 !== null && $this->bel_ke_12 !== $this->aPembelajaranRelatedByBelKe12->getPembelajaranId()) {\n $this->aPembelajaranRelatedByBelKe12 = null;\n }\n if ($this->aPembelajaranRelatedByBelKe13 !== null && $this->bel_ke_13 !== $this->aPembelajaranRelatedByBelKe13->getPembelajaranId()) {\n $this->aPembelajaranRelatedByBelKe13 = null;\n }\n if ($this->aPembelajaranRelatedByBelKe14 !== null && $this->bel_ke_14 !== $this->aPembelajaranRelatedByBelKe14->getPembelajaranId()) {\n $this->aPembelajaranRelatedByBelKe14 = null;\n }\n if ($this->aPembelajaranRelatedByBelKe15 !== null && $this->bel_ke_15 !== $this->aPembelajaranRelatedByBelKe15->getPembelajaranId()) {\n $this->aPembelajaranRelatedByBelKe15 = null;\n }\n if ($this->aPembelajaranRelatedByBelKe16 !== null && $this->bel_ke_16 !== $this->aPembelajaranRelatedByBelKe16->getPembelajaranId()) {\n $this->aPembelajaranRelatedByBelKe16 = null;\n }\n if ($this->aPembelajaranRelatedByBelKe17 !== null && $this->bel_ke_17 !== $this->aPembelajaranRelatedByBelKe17->getPembelajaranId()) {\n $this->aPembelajaranRelatedByBelKe17 = null;\n }\n if ($this->aPembelajaranRelatedByBelKe18 !== null && $this->bel_ke_18 !== $this->aPembelajaranRelatedByBelKe18->getPembelajaranId()) {\n $this->aPembelajaranRelatedByBelKe18 = null;\n }\n if ($this->aPembelajaranRelatedByBelKe19 !== null && $this->bel_ke_19 !== $this->aPembelajaranRelatedByBelKe19->getPembelajaranId()) {\n $this->aPembelajaranRelatedByBelKe19 = null;\n }\n if ($this->aPembelajaranRelatedByBelKe20 !== null && $this->bel_ke_20 !== $this->aPembelajaranRelatedByBelKe20->getPembelajaranId()) {\n $this->aPembelajaranRelatedByBelKe20 = null;\n }\n }",
"public function flush()\r\n {\r\n foreach ($this->_collections as $key => $coll) {\r\n $coll->takeSnapshot();\r\n }\r\n foreach ($this->_tables as $table) {\r\n $table->setAttribute(Doctrine::ATTR_LOAD_REFERENCES, true);\r\n }\r\n $this->_initializedRelations = null;\r\n $this->_collections = null;\r\n $this->_tables = null;\r\n }",
"public function Reload() {\n\t\t\t// Make sure we are actually Restored from the database\n\t\t\tif (!$this->__blnRestored)\n\t\t\t\tthrow new QCallerException('Cannot call Reload() on a new, unsaved Person object.');\n\n\t\t\t$this->DeleteFromCache();\n\n\t\t\t// Reload the Object\n\t\t\t$objReloaded = Person::Load($this->intId);\n\n\t\t\t// Update $this's local variables to match\n\t\t\t$this->strFirstName = $objReloaded->strFirstName;\n\t\t\t$this->strLastName = $objReloaded->strLastName;\n\t\t}",
"public function deleteAllPersistentData()\n {\n foreach ($this->persistantMap as $key) {\n $this->store->delete($key);\n }\n }",
"protected function clearPersistentData($key)\r\n {\r\n }",
"public function Reload() {\n\t\t\t// Make sure we are actually Restored from the database\n\t\t\tif (!$this->__blnRestored)\n\t\t\t\tthrow new QCallerException('Cannot call Reload() on a new, unsaved StewardshipPledge object.');\n\n\t\t\t// Reload the Object\n\t\t\t$objReloaded = StewardshipPledge::Load($this->intId);\n\n\t\t\t// Update $this's local variables to match\n\t\t\t$this->PersonId = $objReloaded->PersonId;\n\t\t\t$this->StewardshipFundId = $objReloaded->StewardshipFundId;\n\t\t\t$this->dttDateStarted = $objReloaded->dttDateStarted;\n\t\t\t$this->dttDateEnded = $objReloaded->dttDateEnded;\n\t\t\t$this->fltPledgeAmount = $objReloaded->fltPledgeAmount;\n\t\t\t$this->fltContributedAmount = $objReloaded->fltContributedAmount;\n\t\t\t$this->fltRemainingAmount = $objReloaded->fltRemainingAmount;\n\t\t\t$this->blnFulfilledFlag = $objReloaded->blnFulfilledFlag;\n\t\t\t$this->blnActiveFlag = $objReloaded->blnActiveFlag;\n\t\t}",
"private final function ensureObjectInDb()\n {\n # WORKING_ON\n $class_reflection = new ReflectionClass(get_class($this));\n do {\n # use reflection to SKIP abstract classes\n if (!$class_reflection->isInstantiable())\n continue;\n\n if (!$this->getLoadedFromDb($class_reflection->getName())) {\n $this->insert($class_reflection->getName());\n break;\n }\n\n } while (($class_reflection = $class_reflection->getParentClass()) && # get the parent\n $class_reflection->getName() != __CLASS__); # check that we're not hitting the top\n }",
"public function ensureConsistency()\n {\n\n if ($this->aSekolah !== null && $this->sekolah_id !== $this->aSekolah->getSekolahId()) {\n $this->aSekolah = null;\n }\n if ($this->aKategoriTk !== null && $this->kategori_tk_id !== $this->aKategoriTk->getKategoriTkId()) {\n $this->aKategoriTk = null;\n }\n if ($this->aKlasifikasiLembaga !== null && $this->klasifikasi_lembaga_id !== $this->aKlasifikasiLembaga->getKlasifikasiLembagaId()) {\n $this->aKlasifikasiLembaga = null;\n }\n if ($this->aSumberDanaSekolah !== null && $this->sumber_dana_sekolah_id !== $this->aSumberDanaSekolah->getSumberDanaSekolahId()) {\n $this->aSumberDanaSekolah = null;\n }\n if ($this->aFasilitasLayanan !== null && $this->fasilitas_layanan_id !== $this->aFasilitasLayanan->getFasilitasLayananId()) {\n $this->aFasilitasLayanan = null;\n }\n if ($this->aJadwalPaudRelatedByJadwalPmtas !== null && $this->jadwal_pmtas !== $this->aJadwalPaudRelatedByJadwalPmtas->getJadwalId()) {\n $this->aJadwalPaudRelatedByJadwalPmtas = null;\n }\n if ($this->aLembagaPengangkat !== null && $this->lembaga_pengangkat_id !== $this->aLembagaPengangkat->getLembagaPengangkatId()) {\n $this->aLembagaPengangkat = null;\n }\n if ($this->aJadwalPaudRelatedByJadwalDdtk !== null && $this->jadwal_ddtk !== $this->aJadwalPaudRelatedByJadwalDdtk->getJadwalId()) {\n $this->aJadwalPaudRelatedByJadwalDdtk = null;\n }\n if ($this->aJadwalPaudRelatedByFreqParenting !== null && $this->freq_parenting !== $this->aJadwalPaudRelatedByFreqParenting->getJadwalId()) {\n $this->aJadwalPaudRelatedByFreqParenting = null;\n }\n if ($this->aBentukLembaga !== null && $this->bentuk_lembaga_id !== $this->aBentukLembaga->getBentukLembagaId()) {\n $this->aBentukLembaga = null;\n }\n if ($this->aJadwalPaudRelatedByJadwalKesehatan !== null && $this->jadwal_kesehatan !== $this->aJadwalPaudRelatedByJadwalKesehatan->getJadwalId()) {\n $this->aJadwalPaudRelatedByJadwalKesehatan = null;\n }\n }",
"protected function _flushVars() {\n if (isset($this->LdapObject->id)) {\n $this->LdapObject->id = null;\n }\n if (isset($this->LdapObject->primaryKey)) {\n $this->LdapObject->primaryKey = 'uid';\n }\n \n $this->sforceData = array();\n $this->stagingData = array();\n $this->ldapData = array();\n $this->syncOperation = 'nothing';\n \n }",
"public function Reload() {\n\t\t\t// Make sure we are actually Restored from the database\n\t\t\tif (!$this->__blnRestored)\n\t\t\t\tthrow new QCallerException('Cannot call Reload() on a new, unsaved ComandoRisco object.');\n\n\t\t\t// Reload the Object\n\t\t\t$objReloaded = ComandoRisco::Load($this->intId);\n\n\t\t\t// Update $this's local variables to match\n\t\t\t$this->ComandoItemId = $objReloaded->ComandoItemId;\n\t\t\t$this->ComandoId = $objReloaded->ComandoId;\n\t\t\t$this->strReferencia = $objReloaded->strReferencia;\n\t\t\t$this->MoldeId = $objReloaded->MoldeId;\n\t\t\t$this->TamanhoId = $objReloaded->TamanhoId;\n\t\t\t$this->intQuantidadeRisco = $objReloaded->intQuantidadeRisco;\n\t\t}",
"public function delete()\n {\n persistableCollection::getInstance($this->resourceName)->deleteObject($this);\n }",
"public function reset() {\r\n\t\tforeach ($this->_metadata->getNames() as $name){\r\n\t\t\tif($this->isPrimaryKey($name)){\r\n\t\t\t\t$this->_record[$name] = $this->getPrimaryKey() ;\r\n\t\t\t}else{\r\n\t\t\t\t$this->_record[$name] = $this->{$name} ;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn $this->_record ;\r\n\t}",
"public function ensureConsistency()\n {\n\n }",
"public function ensureConsistency()\n {\n\n }",
"public function flush()\n {\n $this->saveKeys([]);\n return parent::flush();\n }",
"public function ensureConsistency()\n\t{\n\n\t\tif ($this->aJ002tUsuario !== null && $this->co_usuario_elabora !== $this->aJ002tUsuario->getCoUsuario()) {\n\t\t\t$this->aJ002tUsuario = null;\n\t\t}\n\t\tif ($this->aJ016tForense !== null && $this->co_forense !== $this->aJ016tForense->getCoForense()) {\n\t\t\t$this->aJ016tForense = null;\n\t\t}\n\t\tif ($this->aJ018tInformeForense !== null && $this->co_informe_forense !== $this->aJ018tInformeForense->getCoInformeForense()) {\n\t\t\t$this->aJ018tInformeForense = null;\n\t\t}\n\t}",
"public function delete(){\n\t\t$kiwi_class = Model_Kiwi::get_classname( get_class($this) ); //returns User for Model_User\n\t\t$pcol = $this->kiwi_primary_key();\n\t\t$pk = $this->$pcol;\n\t\t$mc_key = static::kiwi_mc_key($kiwi_class, $pk);\n\t\tif (empty($pk))\n\t\tthrow new ActiveRecordException(\"Cannot delete, no primary key defined for: \" . $kiwi_class);\n\t\t//FIRST delete the key from memcache\n\t\tstatic::delete_from_memcache($mc_key, $kiwi_class);\n\t\t$return_status = false;\n\t\t//DO NOT DELETE - just soft delete\n\t\tif( Kohana::$config->load('gameconfig.mysql_hard_delete_disabled') &&\n\t\t\t\tin_array( Model_Kiwi::get_table_name($kiwi_class), ActiveRecord\\Model::$soft_delete_enabled_tables)\t){\n\t\t\tKohana::$log->add(Log::DEBUG, \"Mysql Deletes are disabled - using soft delete\");\n\t\t\t$return_status = $this->update_attribute(ActiveRecord\\Model::$soft_deleted_column, 1);\n\t\t}else{\n\t\t\t$return_status = static::table()->delete(array($pcol => $pk));\n\t\t}\n\t\treturn $return_status ;\n\t}",
"protected function performDeleteOnModel()\n {\n $this->getApi()->{'delete'.ucfirst($this->getEntity())}(\n $this->{$this->primaryKey},\n array_merge(...array_values($this->getGlobalScopes()))\n );\n\n $this->exists = false;\n }",
"public function refresh()\n {\n if ($this->_id === false) {\n return $this;\n }\n\n $values = self::$driver->loadModel($this);\n\n if (!is_array($values)) {\n return $this;\n }\n\n // clear any relations\n $this->_relationships = [];\n\n return $this->refreshWith($values);\n }",
"private function ensureDBConsistency(): void\n\t{\n\t\t$checkRelation = function (\n\t\t\tstring $modelName,\n\t\t\tstring $table,\n\t\t\tstring $column,\n\t\t\tstring $foreignModelName,\n\t\t\tstring $foreignTable,\n\t\t\tstring $fixMethod = '',\n\t\t): bool {\n\t\t\t$missing = DB::table($table)\n\t\t\t\t->whereNotIn($column, function (Builder $q) use ($foreignTable) {\n\t\t\t\t\t$q->from($foreignTable)->select('id');\n\t\t\t\t})\n\t\t\t\t->select('id', $column)\n\t\t\t\t->get();\n\n\t\t\tforeach ($missing as $m) {\n\t\t\t\t$msg = 'Found ' . $modelName .\n\t\t\t\t\t' with ID ' . $m->id .\n\t\t\t\t\t' which refers to non-existing ' . $foreignModelName .\n\t\t\t\t\t' with ID ' . $m->{$column};\n\t\t\t\tif (empty($fixMethod)) {\n\t\t\t\t\t$this->printError($msg);\n\t\t\t\t} else {\n\t\t\t\t\t$this->printWarning($msg);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($missing->isEmpty()) {\n\t\t\t\treturn true;\n\t\t\t}\n\n\t\t\t$fixQuery = DB::table($table)->whereIn('id', $missing->pluck('id'));\n\n\t\t\tswitch ($fixMethod) {\n\t\t\t\tcase 'nullify':\n\t\t\t\t\t$this->printInfo('Nullifying the affected relations from ' . $modelName . 's to ' . $foreignModelName . 's');\n\t\t\t\t\t$fixQuery->update([$column => null]);\n\n\t\t\t\t\treturn true;\n\t\t\t\tcase 'zeroize':\n\t\t\t\t\t$this->printInfo('Zeroizing the affected relations from ' . $modelName . 's to ' . $foreignModelName . 's');\n\t\t\t\t\t$fixQuery->update([$column => 0]);\n\n\t\t\t\t\treturn true;\n\t\t\t\tcase 'delete':\n\t\t\t\t\t$this->printInfo('Deleting the affected ' . $modelName . 's');\n\t\t\t\t\t$fixQuery->delete();\n\n\t\t\t\t\treturn true;\n\t\t\t\tdefault:\n\t\t\t\t\t$this->printInfo('Error is not automatically fixable');\n\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\t};\n\n\t\t// If the owner of an album is missing, assign it to the admin user\n\t\t$isConsistent = $checkRelation('album', 'albums', 'owner_id', 'user', 'users', 'zeroize');\n\t\t// Move orphaned albums to the top-level\n\t\t$isConsistent &= $checkRelation('album', 'albums', 'parent_id', 'parent album', 'albums', 'nullify');\n\t\t// If the cover of an album is missing, unset the cover\n\t\t$isConsistent &= $checkRelation('album', 'albums', 'cover_id', 'cover photo', 'photos', 'nullify');\n\t\t// Delete orphaned shares\n\t\t$isConsistent &= $checkRelation('share', 'user_album', 'user_id', 'user', 'users', 'delete');\n\t\t$isConsistent &= $checkRelation('share', 'user_album', 'album_id', 'album', 'albums', 'delete');\n\t\t// If the owner of a photo is missing, assign it to the admin user\n\t\t$isConsistent &= $checkRelation('photo', 'photos', 'owner_id', 'user', 'users', 'zeroize');\n\t\t// If the album of a photo is missing, assign it to root (unsorted) album\n\t\t$isConsistent &= $checkRelation('photo', 'photos', 'album_id', 'album', 'albums', 'nullify');\n\t\t// Delete orphaned WebAuthn credentials\n\t\t$isConsistent &= $checkRelation('web authentication credential', 'web_authn_credentials', 'user_id', 'user', 'users', 'delete');\n\t\t// There is no obvious fix for orphaned page content\n\t\t$isConsistent &= $checkRelation('page content', 'page_contents', 'page_id', 'page', 'pages');\n\n\t\t// As we might have moved orphaned albums to the top,\n\t\t// we need to fix the tree.\n\t\t// Even if we did not move any album, fixing the tree before\n\t\t// the migration does not harm as users might have fiddled with their\n\t\t// DB without taking care of\n\t\t// `_lft` and `_rgt`\n\t\tRefactorAlbumModel_AlbumModel::query()->fixTree();\n\n\t\tif (!$isConsistent) {\n\t\t\t$this->printError('Your database is inconsistent and not fit for migration. Please fix your DB manually first.');\n\t\t\tthrow new \\RuntimeException('Inconsistent DB');\n\t\t}\n\t}",
"function reload($conditions = null) {\n\t\t\tif(is_null($conditions)) {\n\t\t\t\t$conditions = $this->get_primary_key_conditions();\n\t\t\t}\n\t\t\t$object = $this->find($conditions);\n\t\t\tif(is_object($object)) {\n\t\t\t\tforeach($object as $key => $value) {\n\t\t\t\t\t$this->$key = $value;\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\treturn false;\n\t\t}",
"public function byPrimaryKeysClassWithoutIdAnnotation()\n {\n $this->dbEraser->deleteByPrimaryKeys($this->mockConnection, new MockNoPrimaryKeyEntity());\n }",
"public function restore(){\n $this->update(['deleted_by', NULL]);\n return $this->baseRestore();\n }",
"public function refresh()\n {\n $this->_totalCount = null;\n $this->_models = null;\n $this->_keys = null;\n }",
"public function re()\n {\n $this->bean->deleted = false;\n try {\n R::store($this->bean);\n return true;\n } catch (Exception $e) {\n Cinnebar_Logger::instance()->log($e, 'exceptions');\n return false;\n }\n }",
"protected function clearAllPersistentData()\n {\n foreach ($this->_sessionNamespace as $key => $value) {\n unset($this->_sessionNamespace->{$key});\n }\n }",
"protected function load()\n\t{\n\t\t//---------------------\n\t\t// Your code goes here\n\t\t// --------------------\n\t\t// rebuild the keys table\n\t\t$this->reindex();\n\t}",
"public function refresh()\n {\n $this->entityManager->refresh($this);\n }",
"public function soft_delete(){\n\t\tif($this->data[$this->primary_key]){\n\t\t\t$this->data['deleted'] = 1;\n\t\t\treturn $this->save();\n\t\t}else{\n\t\t\treturn false;\n\t\t}\n\t}",
"public function resetDirty()\n {\n $this->dirty = false;\n $this->dirtyOne = false;\n $this->dirtyMany = false;\n }",
"public function update_simple_assocs()\n {\n Logger::getInstance()->po_log(\"PO:update_simple_assocs\");\n\n foreach( $this->hasOne as $attr => $type )\n {\n $obj = $this->attributeValues[ $attr ]; // Valor es un objeto (puede ser null!)\n\n // El objeto debe estar cargado para poder pedirle el id\n if ( $obj !== PersistentObject::NOT_LOADED_ASSOC )\n {\n $refAttrName = DatabaseNormalization::simpleAssoc( $attr );\n if ($obj)\n {\n // Si es MTI, el id de cualquier clase parcial será el mismo.\n $this->attributeValues[ $refAttrName ] = $obj->getId(); // seteo ref_id, ej. \"email_id\"\n }\n else\n {\n $this->attributeValues[ $refAttrName ] = NULL; // Si no hay objeto, la referencia es NULL.\n }\n }\n }\n }",
"public function flushDataStore()\n {\n $this->database->flushAll(); \n }",
"public function flush()\n {\n $this->table()->delete();\n }",
"public function restoreAllTrashed()\n {\n return $this->model->withTrashed()->restore();\n }",
"private function purgeKeyIds(GenericCrud $currentObject){\n\t\t$keys = get_class_methods($currentObject);\n\t\tif(count($keys) > 0){\n\t\t\tif(method_exists($currentObject, \"getKey_id\") && $currentObject->hasPrimaryKeyValue()){\n\t\t\t\t$currentObject->setKey_id(null);\n\t\t\t}\n\n\t\t\tforeach($keys as $method){\n\t\t\t\t//only call getters\n\t\t\t\tif(stristr($method,\"get\")){\n\t\t\t\t\tif(is_array($currentObject->$method())){\n\t\t\t\t\t\tforeach($currentObject->$method() as $sub){\n\t\t\t\t\t\t\t$this->purgeKeyIds($sub);\n\t\t\t\t\t\t}\n\t\t\t\t\t}else{\n\t\t\t\t\t\t$this->purgeKeyIds($currentObject->$method());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}",
"public function reload(BaseObject $node)\n {\n return call_user_func(array($node->getPeer(), 'retrieveByPk'), $node->getPrimaryKey());\n }",
"public function ensureAllPageObjects() {}",
"public function flushAll() {\n\t\t$this->removeKeys();\n\t}",
"public function clear()\n {\n\n $this->synchronized = true;\n $this->id = null;\n $this->newId = null;\n $this->data = [];\n $this->savedData = [];\n $this->multiRef = [];\n\n }",
"function flushCache() {\n\t\t// monograph ID, flush both caches on update.\n\t\t$cache =& $this->_getCache();\n\t\t$cache->flush();\n\t\tunset($cache);\n\n\t\t//TODO: flush cache of publishedMonographDAO once created\n\t}",
"public function reset() {\n foreach ($this->syncedProperties as $property) {\n unset($this->data[$property]);\n }\n\n if (session_id()) {\n unset($_SESSION[self::SESSION_KEY]);\n }\n }",
"private function eraseObject() {\n $this->tripId = \"\";\n $this->journalId = \"\";\n $this->created = null;\n $this->updated = null;\n $this->latestUpdated = null;\n $this->userId = \"\";\n $this->journalDate = \"\";\n $this->journalTitle = \"\";\n $this->journalText = \"\";\n $this->deleted = \"N\";\n $this->hash = \"\";\n $this->latestHash = \"\";\n }",
"public function reset()\n {\n $this->values[self::_ID] = null;\n $this->values[self::_EXPIRE_TIME] = null;\n $this->values[self::_STAR_GOODS] = array();\n }",
"protected function reindex()\n\t{\n\t\t// rebuild the ordered collection\n\t\t$results = array();\n\t\tforeach ($this->_data as $old => $record)\n\t\t{\n\t\t\t$key = $record->{$this->_keyfield};\n\t\t\t$results[$key] = $record;\n\t\t}\n\t\t// sort the collection\n\t\tksort($results);\n\t\t// remember the new collection\n\t\t$this->_data = $results;\n\t\t// reset the cursor\n\t\treset($this->_data);\n\t}",
"public function flush_transients()\n {\n delete_transient('sm::is_connected_to_gs');\n }",
"public function resetDataModel() {\r\n $this->arrModel = array();\r\n $intPackageId = NULL;\r\n }",
"protected function resetOriginalReadPreference(){\n\n /** @var ReadPreference $dbReadPref */\n $dbReadPref = $this->db->__debugInfo()['readPreference'];\n if($this->originalDbReadPreference !== $dbReadPref->getMode())\n {\n $pref = (isset($this->originalDbReadPreference)\n ? $this->originalDbReadPreference\n : $this->readPreference\n );\n $dbTagsets = $dbReadPref->getTagsets();\n\n $this->db = $this->db->withOptions(array(\n 'readPreference' => new ReadPreference($pref, $dbTagsets)\n ));\n }\n\n // Reset collection object\n /** @var ReadPreference $collReadPref */\n $collReadPref = $this->getCollection()->__debugInfo()['readPreference'];\n if($this->originalCollectionReadPreference !== $collReadPref->getMode()){\n $pref = (isset($this->originalCollectionReadPreference)\n ? $this->originalCollectionReadPreference\n : $this->readPreference\n );\n $collTagsets = $collReadPref->getTagsets();\n $this->collection = $this->collection->withOptions(array(\n 'readPreference' => new ReadPreference($pref, $collTagsets)\n ));\n }\n }",
"public function flush($model)\n {\n $class = \\is_object($model) ? \\get_class($model) : false;\n if ($class) {\n $query = $this->client->createUpdate();\n $query->addDeleteQuery(\"_class:{$class}\");\n $query->addCommit();\n $this->client->update($query);\n }\n }",
"private function initRestorableRelations() {\n\n\t\t$configs = $this->cascadable();\n\n\t\t$this->runCascadeRestore = $configs['restore']['enable'] ?? true;\n\n\t\t$this->relationships = Arr::wrap($configs['restore']['relations'] ?? $configs);\n\t}",
"protected function persistObjects() {}",
"public function flushChanges()\n {\n $this->om->flush();\n }",
"public function clearRelationCache();",
"public function refresh() {\n $data = self::getWhere($this->_getPKValue(), TRUE, FALSE);\n if (!empty($data) && is_array($data)) {\n $this->_setData($data);\n return TRUE;\n }\n \n return FALSE;\n \n }",
"public function initialize()\n {\n \t$this->belongsTo('id_verificacion', 'CobVerificacion', 'id_verificacion', array(\n \t\t\t'reusable' => true\n \t));\n \t$this->belongsTo('id_actadocumentacion', 'CobActadocumentacionDatos', 'id_actadocumentacion', array(\n \t\t\t'reusable' => true\n \t));\n \t$this->belongsTo('id_usuario', 'IbcUsuario', 'id_usuario', array(\n \t\t\t'reusable' => true\n \t));\n \t$this->belongsTo('estado', 'IbcReferencia', 'id_referencia', array(\n \t\t\t'reusable' => true\n \t));\n \t$this->hasMany('id_actadocumentacion', 'CobActadocumentacionPersona', 'id_actadocumentacion', array(\n \t\t\t'foreignKey' => array(\n \t\t\t\t\t'message' => 'El acta no puede ser eliminada porque existen beneficiarios asociados a ésta'\n \t\t\t)\n \t));\n }",
"public function Reload() {\n\t\t\t// Make sure we are actually Restored from the database\n\t\t\tif (!$this->__blnRestored)\n\t\t\t\tthrow new QCallerException('Cannot call Reload() on a new, unsaved Organization object.');\n\n\t\t\t// Reload the Object\n\t\t\t$objReloaded = Organization::Load($this->intIdOrganization);\n\n\t\t\t// Update $this's local variables to match\n\t\t\t$this->strName = $objReloaded->strName;\n\t\t\t$this->strPhone = $objReloaded->strPhone;\n\t\t\t$this->strQrCode = $objReloaded->strQrCode;\n\t\t\t$this->strOrganizationImage = $objReloaded->strOrganizationImage;\n\t\t\t$this->strLatitude = $objReloaded->strLatitude;\n\t\t\t$this->strLongitude = $objReloaded->strLongitude;\n\t\t\t$this->strCountry = $objReloaded->strCountry;\n\t\t\t$this->strCity = $objReloaded->strCity;\n\t\t\t$this->strAddress = $objReloaded->strAddress;\n\t\t\t$this->IdOrganizationType = $objReloaded->IdOrganizationType;\n\t\t\t$this->IdOwner = $objReloaded->IdOwner;\n\t\t}",
"public function flush()\n {\n $keys = $this->cache->queryKeys();\n foreach ( $keys as $key ) {\n $this->cache->delete($key);\n }\n }",
"public function rm_whole() {\n\t\t$this->rm_controller();\n\t\t$this->rm_model();\n\t\t$this->rm_entity();\n\t}",
"public function delete() {\n\t\ttry {\n\t\t\tif($this->_state == self::STATE_UNCHANGED) {\n\t\t\t\t$sql = 'DELETE FROM ' . self::sanitize($this->_table->getProperty('name')) . ' WHERE ' . self::sanitize($this->_key_primary->name) . ' = ' . self::sanitize($this->_data[$this->_key_primary->name]);\n\t\t\t\t\\Bedrock\\Common\\Logger::info('Deleting record with query: ' . $sql); echo $sql;\n\t\t\t\t$this->_connection->exec($sql);\n\t\t\t}\n\t\t\telseif($this->_state == self::STATE_CHANGED) {\n\t\t\t\tthrow new \\Bedrock\\Model\\Record\\Exception('Unsaved changes found, cannot delete record.');\n\t\t\t}\n\t\t\telse {\n\t\t\t\tthrow new \\Bedrock\\Model\\Record\\Exception('Record not found in database.');\n\t\t\t}\n\t\t}\n\t\tcatch(\\PDOException $ex) {\n\t\t\t\\Bedrock\\Common\\Logger::exception($ex);\n\t\t\tthrow new \\Bedrock\\Model\\Record\\Exception('A database error was encountered, the record could not be deleted.');\n\t\t}\n\t\tcatch(\\Exception $ex) {\n\t\t\t\\Bedrock\\Common\\Logger::exception($ex);\n\t\t\tthrow new \\Bedrock\\Model\\Record\\Exception('The record could not be deleted.');\n\t\t}\n\t}",
"function testDeleteHard() \r\n\t{\r\n\t\t$dbh = $this->dbh;\r\n\r\n\t\t$obj = new CAntObject($dbh, \"customer\");\r\n\t\t$obj->setValue(\"name\", \"my test\");\r\n\t\t$cid = $obj->save(false);\r\n\t\t$obj->remove(); // Soft delete\r\n\t\tunset($obj);\r\n\t\t$obj = new CAntObject($dbh, \"customer\", $cid);\r\n\t\t$obj->remove(); // Hard delete\r\n\r\n\t\tif (!$dbh->GetNumberRows($dbh->Query(\"select id from customers where id='$cid'\")))\r\n\t\t\t$this->assertFalse(false);\r\n\t\telse\r\n\t\t\t$this->assertFalse(true);\r\n\t}",
"public function preDelete(BaseObject $node)\n {\n $peer_name = get_class($node->getPeer());\n $node->reload(); // load the current node state\n\n $this->addPreDeleteStackEntries(self::shiftRLRange($peer_name,\n $node->getLeftValue(),\n $node->getRightValue(),\n -1,\n $node->getScopeIdValue()));\n\n $this->addPreDeleteStackEntries(self::shiftRLValues($peer_name,\n $node->getRightValue() + 1,\n -2,\n $node->getScopeIdValue()));\n\n // Take care of adjacency parameters\n if ($node->hasChildren())\n {\n $peer_name = get_class($node->getPeer());\n $node_class = get_class($node);\n $query = sprintf('UPDATE %s SET %s = %s WHERE %s = %s',\n constant(\"$peer_name::TABLE_NAME\"),\n self::getColumnConstant($node_class, 'parent', true),\n ($node->getParentIdValue() == Null)?'NULL':$node->getParentIdValue(),\n self::getColumnConstant($node_class, 'parent'),\n $node->getPrimaryKey());\n\n $con = Propel::getConnection();\n $statement = $con->prepareStatement($query);\n $statement->executeQuery();\n }\n\n $this->processPreDeleteStack();\n }"
] | [
"0.6329906",
"0.6250165",
"0.6237379",
"0.601279",
"0.5945647",
"0.59253395",
"0.59110445",
"0.59069854",
"0.5870124",
"0.58222765",
"0.5722145",
"0.57193476",
"0.5691011",
"0.5679188",
"0.5677234",
"0.5636817",
"0.5634068",
"0.55710167",
"0.55710167",
"0.5480384",
"0.5353896",
"0.531482",
"0.53062344",
"0.5280993",
"0.525093",
"0.525093",
"0.525093",
"0.525093",
"0.52103275",
"0.5195768",
"0.51817536",
"0.517639",
"0.5174907",
"0.5174907",
"0.5174907",
"0.5174907",
"0.5174907",
"0.5168505",
"0.51611507",
"0.51360697",
"0.51212823",
"0.5103291",
"0.5099997",
"0.5092395",
"0.5079219",
"0.5077869",
"0.507505",
"0.5061543",
"0.50464845",
"0.50404006",
"0.5020923",
"0.5018705",
"0.50142044",
"0.50000834",
"0.50000834",
"0.49999258",
"0.49896124",
"0.49737695",
"0.49696073",
"0.49650633",
"0.49500838",
"0.49443287",
"0.4926588",
"0.49233666",
"0.4894171",
"0.4882752",
"0.48681262",
"0.48646495",
"0.4861898",
"0.48531964",
"0.48364314",
"0.4823738",
"0.48205474",
"0.48077792",
"0.4799179",
"0.47828957",
"0.4779408",
"0.477288",
"0.4766554",
"0.4762146",
"0.4751679",
"0.47494712",
"0.47354883",
"0.47219816",
"0.47215253",
"0.47189283",
"0.47123036",
"0.47058707",
"0.470302",
"0.46896955",
"0.4682804",
"0.46824372",
"0.46800283",
"0.46789658",
"0.467646",
"0.46687508",
"0.46658763",
"0.4665193",
"0.46628696",
"0.4652356",
"0.46514076"
] | 0.0 | -1 |
Removes this object from datastore and sets delete attribute. | public function delete(PropelPDO $con = null)
{
if ($this->isDeleted()) {
throw new PropelException("This object has already been deleted.");
}
if ($con === null) {
$con = Propel::getConnection(OperationPrimesPeer::DATABASE_NAME, Propel::CONNECTION_WRITE);
}
$con->beginTransaction();
try {
$deleteQuery = OperationPrimesQuery::create()
->filterByPrimaryKey($this->getPrimaryKey());
$ret = $this->preDelete($con);
if ($ret) {
$deleteQuery->delete($con);
$this->postDelete($con);
$con->commit();
$this->setDeleted(true);
} else {
$con->commit();
}
} catch (Exception $e) {
$con->rollBack();
throw $e;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function delete()\n {\n persistableCollection::getInstance($this->resourceName)->deleteObject($this);\n }",
"public function delete() {\r\n\t\t$this->getMapper()->delete($this);\r\n\t}",
"public function deleteObject(){\n $qry = new DeleteEntityQuery($this);\n $this->getContext()->addQuery($qry);\n //$this->removeFromParentCollection();\n }",
"public function delete() {\n\t\t$this->getConnection()->delete( $this );\n\t\t$this->clear();\n\t}",
"function delete() {\n $this->that->delete($this->id, $this->name);\n $this->put_id();\n }",
"public function delete()\n {\n $this->repository->delete($this->id);\n }",
"function delete() {\n\t\n\t\t$this->getMapper()->delete($this);\n\t\t\n\t}",
"public function delete() {\n\t\t$this->deleted = true;\n\t}",
"public function delete() \n {\n DomainWatcher::addDeletedObject($this);\n }",
"public function delete($logical = false)\n {\n Logger::getInstance()->po_log(\"delete $logical\");\n \n // FIXME: devolver algo que indique si se pudo o no eliminar.\n // FIXME: si no esta salvado (no tiene id), no se puede hacer delete.\n\n PersistentManager::getInstance()->delete( $this, $this->getId(), $logical ); // FIXME: no necesita pasarle el id, el objeto ya lo tiene...\n \n // http://code.google.com/p/yupp/issues/detail?id=127\n if ($logical) $this->setDeleted(true);\n }",
"public function delete()\n {\n Db::getInstance()->delete($this->getTableName(), ['id' => $this->getId()]);\n }",
"public function remove()\n {\n database()->run('DELETE FROM ' . $this->table . ' WHERE ' . $this->primaryKey . ' = ?', [ $this->{$this->primaryKey} ]);\n $this->__destruct();\n }",
"public function delete()\n {\n $this->execute(\n $this->syntax->deleteSyntax(get_object_vars($this))\n );\n }",
"public function remove()\n {\n $this->_getBackend()->remove($this->_id);\n }",
"function delete()\n {\n // Create a fresh slate\n $this->object->_init();\n $this->object->_delete_clause = \"DELETE\";\n return $this->object;\n }",
"public function delete() {\n global $DB;\n $DB->delete_records($this->get_table_name(), array('id' => $this->id));\n }",
"public function delete()\n {\n $this->_validateModifiable();\n\n $this->_getDataSource()->delete($this);\n }",
"public function delete()\n {\n if($this->exists())\n unlink($this->getPath());\n }",
"public function delete()\n {\n $this->db->delete($this->table, $this->data['id'], $this->key);\n }",
"protected function entityDelete(){\n // TODO: deal with errors\n // delete from api\n $deleted = $this->resourceService()->delete($this->getId());\n }",
"public function delete()\n {\n $this->invalidateCache();\n parent::delete();\n }",
"public function delete()\n {\n $this->invalidateCache();\n parent::delete();\n }",
"public function delete() \r\n {\r\n if($this->exists())\r\n {\r\n unlink($this->fullName());\r\n }\r\n }",
"public function delete()\n\t{\n\t\t$this->hard_delete();\n\t}",
"public function delete()\n {\n $database = cbSQLConnect::adminConnect('object');\n if (isset($database))\n {\n return ($database->SQLDelete(self::$table_name, 'id', $this->id));\n }\n }",
"public function delete()\n {\n self::deleteById( $this->db, $this->id, $this->prefix );\n\n if( $this->inTransaction )\n {\n //$this->db->commit();\n $this->inTransaction = false;\n }\n }",
"function delete() {\n $this->db->delete(self::table_name, array('id' => $this->id));\n // need to delete from tag maps too\n // tbd\n }",
"public function delete() {\r\n\r\n\t\ttry {\r\n\t\t\tglobal $ks_db;\r\n\t\t\tglobal $ks_log;\r\n\r\n\t\t\tif (! isset ( $this->id )) {\r\n\t\t\t\techo \"Fatal Error: Id is not set for the object! Please do \\$objA->setId(\\$dsh_id); in: \" . __METHOD__;\r\n\t\t\t\texit ();\r\n\t\t\t}\r\n\r\n\t\t\t//check if record exists\r\n\t\t\tif(! $this->exists ()) {\r\n\t\t\t\techo \"Fatal Error: No record found with primary key of ($this->id)\";\r\n\t\t\t\texit ();\r\n\t\t\t}\r\n\r\n\t\t\t$ks_db->beginTransaction ();\r\n\r\n\t\t\t$sql = \"DELETE FROM $this->sqlTable \";\r\n\t\t\t$sql .= \" WHERE dsh_id = ?\";\r\n\r\n\t\t\t$ks_db->query ( $sql, $this->id );\r\n\r\n\t\t\t$ks_db->commit ();\r\n\r\n\t\t} catch(Exception $e) {\r\n\t\t\t$ks_db->rollBack ();\r\n\t\t\t$ks_log->info ( 'Fatal Error: ' . __METHOD__ . '. ' . $e->getMessage () );\r\n\t\t\t$ks_log->info ( '<br>SQL Statement: ' . $sql );\r\n\t\t\techo \"Fatal Error: \" . __METHOD__ . '. ' . $e->getMessage ();\r\n\t\t\techo \"SQL Statement: \" . $sql;\r\n\t\t}\r\n\t}",
"public function delete(): void\n {\n unlink($this->getPath());\n }",
"function destroy(){\n\t\tif(!$this->id)\n\t\t\tthrow new APortalException(\"Can't destroy object does not exist in database\",$this);\n\n\t\t$this->hook('destroy'); // can be used for access control or cache deletion\n\n\t\t// STEP1 - destroy relations\n\t\t$this->api->deleteRel($this,null);\n\t\t$this->api->deleteRel(null,$this);\n\n\t\t// STEP2 - destroy supplimentary table entry\n\t\t$this->api->db->dsql()\n\t\t\t->table($this->table_name)\n\t\t\t->where('id',$this->id)\n\t\t\t->do_delete();\n\n\t\t// STEP3 - delete obj table entry\n\t\t$this->api->db->dsql()\n\t\t\t->table('obj')\n\t\t\t->where('id',$this->id)\n\t\t\t->do_delete();\n\t}",
"public function delete() {\r\n\r\n\t\ttry {\r\n\t\t\tglobal $ks_db;\r\n\t\t\tglobal $ks_log;\r\n\r\n\t\t\tif (! isset ( $this->id )) { \r\n\t\t\t\techo \"Fatal Error: Id is not set for the object! Please do \\$objA->setId(\\$id); in: \" . __METHOD__;\r\n\t\t\t\texit ();\r\n\t\t\t}\r\n\r\n\t\t\t//check if record exists\r\n\t\t\tif(! $this->exists ()) {\r\n\t\t\t\techo \"Fatal Error: No record found with id of ($this->id)\";\r\n\t\t\t\texit ();\r\n\t\t\t}\r\n\r\n\t\t\t$ks_db->beginTransaction ();\r\n\r\n\t\t\t$sql = \"DELETE FROM $this->sqlTable \";\r\n\t\t\t$sql .= \" WHERE lp_id = ?\";\r\n\r\n\t\t\t$ks_db->query ( $sql, $this->id );\r\n\r\n\t\t\t$ks_db->commit ();\r\n\r\n\t\t} catch(Exception $e) {\r\n\t\t\t$ks_db->rollBack ();\r\n\t\t\t$ks_log->info ( 'Fatal Error: ' . __CLASS__ . '::' . __METHOD__ . '. ' . $e->getMessage () );\r\n\t\t\t$ks_log->info ( '<br>SQL Statement: ' . $sql );\r\n\t\t\techo \"Fatal Error: \" . __CLASS__ . '::' . __METHOD__ . '. ' . $e->getMessage ();\r\n\t\t\techo \"SQL Statement: \" . $sql;\r\n\t\t}\r\n\t}",
"public function delete(){\n\t if(!isset($this->attributes['id'])) \n\t\t\tthrow new Exception(\"Cannot delete new objects\");\n\t\t$this->do_callback(\"before_delete\");\n\t\treturn self::do_query(\"DELETE FROM \".self::table_for(get_class($this)).\n\t\t \" WHERE id=\".self::make_value($this->attributes['id']));\t\n\t}",
"public final function delete() {\n }",
"public function delete()\n {\n $entities = $this->entities;\n Database::getInstance()->doTransaction(\n function() use ($entities)\n {\n foreach ($entities as $entity)\n {\n $entity->delete();\n }\n }\n );\n }",
"public function delete()\n\t{\n\t\tDatabase::query(\"\n\t\t\tDELETE FROM\n\t\t\t\t\". $this->tableName .\"\n\t\t\tWHERE\n\t\t\t\tid = '\". $this->id .\"'\n\t\t\");\n\t}",
"public function remove() {\n\n // Updates DB (data & metadata)\n $this->attributes->removeAll($this->get(\"id\"));\n $this->db->delete(XCMS_Tables::TABLE_USERS, array(\n \"id\" => $this->get(\"id\")\n ));\n\n }",
"public function delete() {\n $this->isdeleted = 1;\n $this->deleteduser = \\Yii::$app->user->getId();\n $this->deletedtime = date(\"Y-m-d H:i:s\");\n \n return parent::update(FALSE, ['isdeleted', 'deletedtime', 'deleteduser']);\n }",
"function delete() {\n $this->db->delete(self::table_name, array('id' => $this->id));\n }",
"function do_delete(){\n\t\t// remove from fieldset:\n\t\t$fieldset = jcf_fieldsets_get( $this->fieldset_id );\n\t\tif( isset($fieldset['fields'][$this->id]) )\n\t\t\tunset($fieldset['fields'][$this->id]);\n\t\tjcf_fieldsets_update( $this->fieldset_id, $fieldset );\n\t\t\n\t\t// remove from fields array\n\t\tjcf_field_settings_update($this->id, NULL);\n\t}",
"function delete()\n {\n $this->object->select();\n $this->object->_query_args['is_select'] = FALSE;\n $this->object->_query_args['is_delete'] = TRUE;\n return $this->object;\n }",
"public function delete() {\n // Fail due to double delete\n assert(!$this->hasBeenDeleted);\n\n // Initialize delete record cache, if nonextant\n if (!isset(self::$deleteRecordPreparedStatementCache)) {\n self::$deleteRecordPreparedStatementCache = array();\n }\n \n // Initiate implicit tx, if nonextant explicit tx \n $is_implicit_tx = false;\n if (self::$numTransactions == 0) {\n $is_implicit_tx = true; \n self::beginTx();\n }\n\n // Fail due to invalid database connection\n assert(isset(self::$databaseHandle));\n\n // Delete this record and all child records \n $table_name = static::getFullyQualifiedTableName();\n \n try {\n // Fetch prepared statement from cache, if present. Otherwise, create it.\n if (isset(self::$deleteRecordPreparedStatementCache[$table_name])) {\n // Fetch delete query from cache\n $delete_record_stmt = self::$deleteRecordPreparedStatementCache[$table_name];\n } else {\n $fully_qualified_table_name = static::getFullyQualifiedTableName();\n $delete_query = \"DELETE FROM {$fully_qualified_table_name} \"\n . $this->genPrimaryKeyWhereClause();\n\n $delete_record_stmt = self::$databaseHandle->prepare($delete_query);\n self::$deleteRecordPreparedStatementCache[$table_name] = $delete_record_stmt;\n }\n \n // Delete children, schedule assets for deletion\n $this->deleteChildren();\n self::$assetDeletors = array_merge(self::$assetDeletors, $this->getAssets());\n\n // Bind record's 'id' to delete-query\n $this->bindId($delete_record_stmt);\n\n // Remove record\n $delete_record_stmt->execute();\n } catch (PDOException $e) {\n self::$databaseHandle->rollback();\n die(\"\\nERROR: \" . $e->getMessage() . \"\\n\");\n }\n\n // Close implicit transaction\n if ($is_implicit_tx) {\n self::endTx();\n }\n\n // Indicate object's deletion\n $this->hasBeenDeleted = true;\n }",
"public function destroy() {\n\t\t$sql = 'DELETE FROM ' . static::$table . ' WHERE id = ' . $this->get('id') . ';';\n\t\t$query = DBH()->prepare($sql);\n\t\t$query->execute();\n\t}",
"public function delete(): void\n {\n unlink($this->path);\n }",
"public function forceDelete()\n {\n $dao = $this->getEntityDao();\n\n $dao->delete();\n\n $this->resetDao();\n\n return $this;\n }",
"public function delete () {\n reset($this->__fields);\n $pk = key($this->__fields);\n\n $this->__db->delete(\n $this->getTableName()\n , array($pk => $this->__get($pk))\n );\n\n return $this;\n }",
"public function delete()\n {\n $this->_startTransaction();\n $error = false;\n\n try {\n foreach ($this->_objects as $object) {\n $object->delete();\n }\n } catch (Exception $e) {\n $error = $e;\n }\n\n if ($error === false) {\n try {\n $this->_runCallbacks();\n } catch (Exception $e) {\n $error = $e;\n }\n }\n\n if ($error) {\n $this->_rollbackTransaction();\n throw $error;\n } else {\n $this->_commitTransaction();\n }\n return $this;\n }",
"public function delete()\n {\n // TODO: Implement delete() method.\n }",
"public function delete() {}",
"public function delete() {}",
"public function delete() {}",
"function delete () {\n\t\t$stm = DB::$pdo->prepare(\"delete from `generated_object` where `id`=:id\");\n\t\t$stm->bindParam(':id', $this->id);\n\t\t$stm->execute();\n\t}",
"public function delete() {}",
"public function setDeleted(): void\n {\n $this->attributes['mode'] = 'delete';\n }",
"public function delete() {\n $this->_lastDelete = true;\n return $this;\n }",
"public function delete()\n\t{\n\t\t//delete our cache.\n\t\tif ($this->useObjectCaching)\n\t\t\t$this->deleteCache();\n\t\t\n\t\treturn $this->deleteDb();\n\t}",
"public function delete();",
"public function delete();",
"public function delete();",
"public function delete();",
"public function delete();",
"public function delete();",
"public function delete();",
"public function delete();",
"public function delete();",
"public function delete();",
"public function delete();",
"public function delete();",
"public function delete();",
"public function delete();",
"public function delete();",
"function delete() {\n \tglobal $mysql;\n \tif(empty($this->id)) return;\n \t$tablename = $this->class_name();\n \t$id = $this->id;\n \t$query = \"DELETE FROM $tablename WHERE id=$id\";\n \t$mysql->update($query);\n }",
"public function forceDelete();",
"public function delete()\n\t{\n\t\tsfCore::db->query(\"DELETE FROM `swoosh_file_storage` WHERE `id`='%i';\", $this->id);\n\t\t$this->fFile->delete();\n\t}",
"public function delete()\n {\n try {\n parent::delete(null, $this->data['id']);\n } catch (Exception $e) {\n die('ERROR');\n }\n }",
"public function delete($object)\n {\n $this->setObjectState($object, self::OBJ_REMOVED);\n }",
"public function delete(){\t\t\tif( is_null( $this->id ) ) trigger_error( \"User::delete(): Attempt to delete a user object that does not have its ID property set.\", E_USER_ERROR );\r\n\t\t\t\r\n\t\t\t//Delete the object\r\n\t\t\t$conn = new PDO( DB_DSN, DB_USERNAME, DB_PASSWORD );\r\n\t\t\t$st = $conn->prepare ( \"DELETE FROM \".TABLENAME_GROUPS.\" WHERE id = :id LIMIT 1\" );\r\n\t\t\t$st->bindValue( \":id\", $this->id, PDO::PARAM_INT );\r\n\t\t\t$st->execute();\r\n\t\t\t$conn = null;\t\t\r\n\t\t}",
"public function delete(){\n $this->update(['deleted_by', Auth::user()->id]);\n return parent::delete();\n }",
"public function delete() {\n if(!isset($this->id)) {\n $error = 'We need an id to delete an object with this method, if you don\\'t have any, use the static remove instead';\n $line = \"delete(\".$propname.\") => \" . $error;\n $this->writeErrorLog($line);\n throw new \\Exception($error);\n } else {\n foreach ($this->fillable as $key => $value) {\n $data[$key] = $this->$key;\n }\n $qb = $this::remove();\n $qb->where(['id' => $this->id])->make();\n return true;\n }\n }",
"public function delete() {\n\t\tif ($this->checkDependencies() == true ) {\n\t\t\t$sql = \"DELETE FROM \".$this->tablename.\" where \".$this->idcol.\" = \".$this->page->ctrl['record'];\n\t\t\t$this->dbc->exec($sql);\n\t\t}\n\t}",
"public function delete(): void\n {\n $this->instances->demo()->runHook($this->root(), 'delete:before', $this);\n\n Dir::remove($this->root());\n $this->instances->delete($this->id);\n\n $this->instances->demo()->runHook($this->root(), 'delete:after', $this);\n }",
"public function delete()\n {\n if (!$this->id) {\n throw new \\RuntimeException('You cannot delete a device without id');\n }\n\n\t\tPersistentSession::getInstance()->delete($this);\n }",
"public function delete() {\r\n\r\n\t\t// Does the Genre object have an ID?\r\n\t\tif ( is_null( $this->id ) ) trigger_error ( \"Genre::delete(): Attempt to delete an Genre object that does not have its ID property set.\", E_USER_ERROR );\r\n\r\n\t\t// Delete the Article\r\n\t\t$conn = new PDO( DB_DSN, DB_USERNAME, DB_PASSWORD );\r\n\t\t$st = $conn->prepare ( \"DELETE FROM :table WHERE id = :id LIMIT 1\" );\r\n\t\t$st->bindValue( \":table\", DB_TBL_GENRE, PDO::PARAM_STR );\r\n\t\t$st->bindValue( \":id\", $this->id, PDO::PARAM_INT );\r\n\t\t$st->execute();\r\n\t\t$conn = null;\r\n\t}",
"function _delete($key){\n $this->_set($key, null);\n }",
"function delete() {\n\t\treturn $this->destroy();\n\n\t}",
"public function delete()\n {\n // If deposit is existing, will get database ID removed.\n $this->dbID = $this->db->deleteDeposit($this);\n }",
"public abstract function delete();",
"public function __unset($key)\n {\n if (isset($this->$key)) {\n unset($this->_store[$key]);\n if (isset($this->_engine)) {\n $this->_engine->save($this->_store);\n }\n }\n }",
"public function delete($entity){ \n //TODO: Implement remove record.\n }",
"public function delete()\n { if (is_null($this->id))\n trigger_error(\"User::delete(): Attempt to delete a User object that does not have its ID property set.\", E_USER_ERROR);\n\n // Delete the User\n $conn = new PDO(DB_DSN, DB_USER, DB_PASS);\n $st = $conn->prepare(\"DELETE FROM users WHERE id = :id LIMIT 1\");\n $st->bindValue(\":id\", $this->id, PDO::PARAM_INT); \n $st->execute();\n \n $conn = null;\n }",
"protected function markAsDeleted()\n {\n $this->deleted = true;\n }",
"function delete()\n\t{\n\t\tSQL::query(\"delete from {$this->_table} where id = {$this->_data['id']}\");\n\t}",
"public function delete() {\n $this->remove_content();\n\n parent::delete();\n }",
"public function delete()\n\t{\n\t\t@unlink($this->get_filepath());\n\t\t@unlink($this->get_filepath(true));\n\t\tparent::delete();\n\t}",
"public function delete(DataObject $entity){\n }",
"public function delete()\n {\n global $_PM_;\n $api = 'handler_'.$this->handler.'_api';\n $this->api = new $api($_PM_, PHM_API_UID, $this->principalId);\n $this->api->remove_item($this->item['id']);\n }",
"public function fulldelete() {\n if ($this->id && !$this->elements) {\n $this->elements = self::get_instances(array('setid' => $this->id));\n }\n\n foreach ($this->elements as $elm) {\n $elm->delete();\n }\n\n parent::delete();\n }",
"public function undelete(EntityAccess $entity): void\n {\n $entityManager = $this->entityFactory->getEntityManager();\n \n $metadata = $entityManager->getClassMetaData(get_class($entity));\n $metadata->setIdGeneratorType(ClassMetadata::GENERATOR_TYPE_NONE);\n $metadata->setIdGenerator(new AssignedGenerator());\n \n $versionField = $metadata->versionField;\n $metadata->setVersioned(false);\n $metadata->setVersionField(null);\n \n $entityManager->persist($entity);\n $entityManager->flush();\n \n $metadata->setVersioned(true);\n $metadata->setVersionField($versionField);\n }",
"protected function performDeleteOnModel()\n {\n $this->getApi()->{'delete'.ucfirst($this->getEntity())}(\n $this->{$this->primaryKey},\n array_merge(...array_values($this->getGlobalScopes()))\n );\n\n $this->exists = false;\n }",
"public function delete($id) \r\n {\r\n $this->load(array('id=?',$id));\r\n $this->erase();\r\n }",
"public function delete() {\r\n return $this->orm->delete();\r\n }",
"public function clear()\n\t{\n\t\t$this->id = null;\n\t\t$this->uf_id = null;\n\t\t$this->nome = null;\n\t\t$this->slug = null;\n\t\t$this->longitude = null;\n\t\t$this->latitude = null;\n\t\t$this->alreadyInSave = false;\n\t\t$this->alreadyInValidation = false;\n\t\t$this->clearAllReferences();\n\t\t$this->resetModified();\n\t\t$this->setNew(true);\n\t\t$this->setDeleted(false);\n\t}"
] | [
"0.742302",
"0.7122818",
"0.70285857",
"0.6935048",
"0.6827952",
"0.6820167",
"0.6747009",
"0.67229015",
"0.6647957",
"0.6478771",
"0.64619267",
"0.6453828",
"0.6446385",
"0.6432577",
"0.64107853",
"0.6362929",
"0.63556075",
"0.63530505",
"0.6338875",
"0.632956",
"0.6320101",
"0.6320101",
"0.6260067",
"0.6257137",
"0.62336236",
"0.62137055",
"0.61859614",
"0.6158667",
"0.6141967",
"0.61328256",
"0.60981214",
"0.60935974",
"0.6071053",
"0.6068455",
"0.60328454",
"0.60132456",
"0.59934855",
"0.59728795",
"0.59646547",
"0.59598845",
"0.59532934",
"0.5947514",
"0.59430593",
"0.59372735",
"0.5921081",
"0.5916526",
"0.5914798",
"0.5911619",
"0.5911619",
"0.5911399",
"0.59110034",
"0.5910566",
"0.5909465",
"0.58986896",
"0.5885532",
"0.58774346",
"0.58774346",
"0.58774346",
"0.58774346",
"0.58774346",
"0.58774346",
"0.58774346",
"0.58774346",
"0.58774346",
"0.58774346",
"0.58774346",
"0.58774346",
"0.58774346",
"0.58774346",
"0.58774346",
"0.58726895",
"0.5869517",
"0.58636796",
"0.58517206",
"0.58434916",
"0.5843288",
"0.5837053",
"0.5814054",
"0.5804522",
"0.58040905",
"0.5798197",
"0.57911587",
"0.57833964",
"0.5781374",
"0.57805365",
"0.5778745",
"0.5738763",
"0.57301307",
"0.57265896",
"0.5725827",
"0.57200646",
"0.57110417",
"0.5708086",
"0.57080734",
"0.57048327",
"0.5695414",
"0.56949496",
"0.5688776",
"0.5688537",
"0.5682758",
"0.5678525"
] | 0.0 | -1 |
Persists this object to the database. If the object is new, it inserts it; otherwise an update is performed. All modified related objects will also be persisted in the doSave() method. This method wraps all precipitate database operations in a single transaction. | public function save(PropelPDO $con = null)
{
if ($this->isDeleted()) {
throw new PropelException("You cannot save an object that has been deleted.");
}
if ($con === null) {
$con = Propel::getConnection(OperationPrimesPeer::DATABASE_NAME, Propel::CONNECTION_WRITE);
}
$con->beginTransaction();
$isInsert = $this->isNew();
try {
$ret = $this->preSave($con);
if ($isInsert) {
$ret = $ret && $this->preInsert($con);
} else {
$ret = $ret && $this->preUpdate($con);
}
if ($ret) {
$affectedRows = $this->doSave($con);
if ($isInsert) {
$this->postInsert($con);
} else {
$this->postUpdate($con);
}
$this->postSave($con);
OperationPrimesPeer::addInstanceToPool($this);
} else {
$affectedRows = 0;
}
$con->commit();
return $affectedRows;
} catch (Exception $e) {
$con->rollBack();
throw $e;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function save()\n {\n $entities = $this->entities;\n Database::getInstance()->doTransaction(\n function() use ($entities)\n {\n foreach ($entities as $entity)\n {\n if ($entity->getMarkedAsDeleted())\n {\n $entity->delete();\n } \n else if ($entity->getMarkedAsUpdated())\n {\n $entity->saveWithDetails();\n }\n }\n }\n );\n }",
"public function store()\n {\n if( $this->isPersistent() )\n {\n $this->update();\n }\n else\n {\n $this->insert();\n }\n }",
"public function save()\n {\n $this->checkForNecessaryProperties();\n\n $this->update($this->getCurrentId(), $this->data);\n }",
"public function store()\n {\n if (!$this->id) { // Insert\n $this->insertObject();\n } else { // Update\n $this->updateObject();\n }\n }",
"public function save()\n {\n if ($this->id === null) {\n $this->insert();\n } else {\n $this->update();\n }\n }",
"public function save()\n {\n $this->persist($this->state);\n }",
"public function save()\n {\n if ($this->id) {\n $this->update();\n } else {\n $this->id = $this->insert();\n }\n }",
"function save() {\n\n\t\t// calls generic ORM save (insert or update)\n\t\tparent::save();\n\n\t}",
"public function commit(): void\n {\n $this->eventDispatcher->dispatchPreFlush();\n\n if (\n $this->objectsToPersist === [] &&\n $this->objectsToUpdate === [] &&\n $this->objectsToRemove === []\n ) {\n return; // Nothing to do.\n }\n\n $objects = array_merge(\n $this->objectsToPersist,\n $this->objectsToUpdate,\n $this->objectsToRemove,\n );\n $this->eventDispatcher->dispatchPreFlushLifecycleCallbacks($objects);\n\n $this->eventDispatcher->dispatchOnFlush();\n\n $this->persister->executePersists();\n $this->persister->executeUpdates();\n $this->persister->executeRemoves();\n\n $this->eventDispatcher->dispatchPostFlush();\n\n $this->objectsToPersist = [];\n $this->objectsToUpdate = [];\n $this->objectsToRemove = [];\n $this->objectChangeSets = new ChangeSets();\n }",
"public function save()\n\t{\n\t\t$this->copyAttributesToValues() ;\n\t\tif( $this->factory )\n\t\t{\n\t\t\tswitch( $this->todo )\n\t\t\t{\n\t\t\t\tcase 1: // Insert\n\t\t\t\t\tif( $this->factory->insertObjectIntoDB( $this ) ) $this->state = \"inserted\" ;\n\t\t\t\t\telse $this->state = \"dberror\" ;\n\t\t\t\t\tbreak ;\n\t\t\t\tcase 2: // update\n\t\t\t\t\tif( $this->factory->updateObjectIntoDB( $this ) ) $this->state = \"updated\" ;\n\t\t\t\t\telse $this->state = \"dberror\" ;\n\t\t\t\t\tbreak ;\n\t\t\t\tcase 3: // delete\n\t\t\t\t\tif( $this->factory->deleteObjectIntoDB( $this ) ) $this->state = \"deleted\" ;\n\t\t\t\t\telse $this->state = \"dberror\" ;\n\t\t\t\t\tbreak ;\n\t\t\t}\n\t\t}\n\t}",
"public function save()\n {\n $this->_startTransaction();\n $error = false;\n\n try {\n foreach ($this->_objects as $object) {\n $object->save();\n }\n } catch (Exception $e) {\n $error = $e;\n }\n\n if ($error === false) {\n try {\n $this->_runCallbacks();\n } catch (Exception $e) {\n $error = $e;\n }\n }\n\n if ($error) {\n $this->_rollbackTransaction();\n throw $error;\n } else {\n $this->_commitTransaction();\n }\n\n return $this;\n }",
"public function save()\n {\n $this->_validateModifiable();\n\n if($this->isNew())\n {\n $this->_getDataSource()->create($this);\n }\n else\n {\n $this->_getDataSource()->update($this);\n }\n\n $this->_saveRelations();\n $this->_setNew(false);\n }",
"public function persist()\n {\n persistableCollection::getInstance($this->resourceName)->persistObject($this);\n $this->loaded = true;\n $this->persisted = true;\n }",
"public function persist() {\n $this->getObjectManager()->persist($this);\n return $this;\n }",
"public function save(): void\n {\n $this->em->persist($this->model);\n $this->em->flush();\n }",
"public function persist($object);",
"public function persistEntity($obj)\n\t{\n\t\t$this->db->persistEntity($obj);\n\t}",
"public function persist()\n {\n\n $this->persistor->persist(\n $this->event,\n $this->relatedEntities,\n $this->eventRequest->getApplication(),\n $this->eventRequest->getAccount(),\n $this->eventRequest->getProduct(),\n $this->eventRequest->appendCustomer\n );\n\n }",
"public function persist();",
"public function save() {\n $db = Db::instance();\n // omit id and any timestamps\n $db_properties = array(\n 'author_id' => $this->author_id,\n 'clothingname' => $this->clothingname,\n 'clothingtype' => $this->clothingtype,\n 'tempmin' => $this->tempmin,\n 'tempmax' => $this->tempmax\n );\n $db->store($this, __CLASS__, self::DB_TABLE, $db_properties);\n }",
"public function save($object)\n {\n $this->entityManager->persist($object);\n $this->entityManager->flush();\n }",
"public function save(Mage_Core_Model_Abstract $object)\n {\n if ($object->isDeleted()) {\n return $this->delete($object);\n }\n\n $this->_serializeFields($object);\n $this->_beforeSave($object);\n $this->_checkUnique($object);\n if (!is_null($object->getId()) && (!$this->_useIsObjectNew || !$object->isObjectNew())) {\n $condition = $this->_getWriteAdapter()->quoteInto($this->getIdFieldName().'=?', $object->getId());\n /**\n * Not auto increment primary key support\n */\n if ($this->_isPkAutoIncrement) {\n $data = $this->_prepareDataForSave($object);\n unset($data[$this->getIdFieldName()]);\n $this->_getWriteAdapter()->update($this->_getTableByValue($object), $data, $condition);\n } else {\n $select = $this->_getWriteAdapter()->select()\n ->from($this->_getTableByValue($object, array($this->getIdFieldName())))\n ->where($condition);\n if ($this->_getWriteAdapter()->fetchOne($select) !== false) {\n $data = $this->_prepareDataForSave($object);\n unset($data[$this->getIdFieldName()]);\n if (!empty($data)) {\n $this->_getWriteAdapter()->update($this->_getTableByValue($object), $data, $condition);\n }\n } else {\n $this->_getWriteAdapter()->insert($this->_getTableByValue($object), $this->_prepareDataForSave($object));\n }\n }\n } else {\n $bind = $this->_prepareDataForSave($object);\n if ($this->_isPkAutoIncrement) {\n unset($bind[$this->getIdFieldName()]);\n }\n $this->_getWriteAdapter()->insert($this->_getTableByValue($object), $bind);\n\n $object->setId($this->_getWriteAdapter()->lastInsertId($this->_getTableByValue($object)));\n\n if ($this->_useIsObjectNew) {\n $object->isObjectNew(false);\n }\n }\n\n $this->unserializeFields($object);\n $this->_afterSave($object);\n\n return $this;\n }",
"public function save() {\n $db = self::getDbConnection();\n $table = static::getTable();\n $data = get_object_vars($this);\n if ($table == 'posts') {\n $data['name'] = Service::get('session')->userEmail;\n }\n\n if (isset($data['id'])) {\n $query = $db->prepare($this->getUpdateString($data, $table));\n } else {\n $query = $db->prepare($this->getInsertString($data, $table));\n }\n\n if (!$query->execute()) {\n throw new DatabaseException('Cant save object');\n }\n }",
"public function flush()\n {\n $this->unitOfWork->commit();\n }",
"public function save()\n {\n\n // generate all column's sql query\n $column_names = '';\n $column_values = '';\n foreach ($this->columns as $field_name => $column_obj)\n {\n if ($column_obj->columnName === null) {\n $column_names .= $field_name.', ';\n } else {\n $column_names .= $column_obj->columnName.', ';\n }\n $column_values .= $column_obj->generateValueForSQL().', ';\n }\n $column_names = substr($column_names, 0, -1);\n $column_values = substr($column_values, 0, -1);\n $this_table_name = $this->table_name;\n $this_id = $this->id;\n\n if ($this->id === 0) {\n // This object is not saved yet.\n $query = 'INSERT INTO $this_table_name ($column_names) VALUES ($column_values);';\n // Execute query\n } else {\n // This object is on the DB.\n $query = 'INSERT INTO $this_table_name ($column_names) VALUES ($column_values) WHERE id=$this_id;';\n // Execute query\n }\n\n mysql_run_query($query);\n\n }",
"public function save(ConnectionInterface $con = null)\n {\n if ($this->isDeleted()) {\n throw new PropelException(\"You cannot save an object that has been deleted.\");\n }\n\n if ($this->alreadyInSave) {\n return 0;\n }\n\n if ($con === null) {\n $con = Propel::getServiceContainer()->getWriteConnection(ArticleTableMap::DATABASE_NAME);\n }\n\n return $con->transaction(function () use ($con) {\n $ret = $this->preSave($con);\n $isInsert = $this->isNew();\n if ($isInsert) {\n $ret = $ret && $this->preInsert($con);\n } else {\n $ret = $ret && $this->preUpdate($con);\n }\n if ($ret) {\n $affectedRows = $this->doSave($con);\n if ($isInsert) {\n $this->postInsert($con);\n } else {\n $this->postUpdate($con);\n }\n $this->postSave($con);\n ArticleTableMap::addInstanceToPool($this);\n } else {\n $affectedRows = 0;\n }\n\n return $affectedRows;\n });\n }",
"public function save(ConnectionInterface $con = null)\n {\n if ($this->isDeleted()) {\n throw new PropelException(\"You cannot save an object that has been deleted.\");\n }\n\n if ($this->alreadyInSave) {\n return 0;\n }\n\n if ($con === null) {\n $con = Propel::getServiceContainer()->getWriteConnection(AliMemberTableMap::DATABASE_NAME);\n }\n\n return $con->transaction(function () use ($con) {\n $ret = $this->preSave($con);\n $isInsert = $this->isNew();\n if ($isInsert) {\n $ret = $ret && $this->preInsert($con);\n } else {\n $ret = $ret && $this->preUpdate($con);\n }\n if ($ret) {\n $affectedRows = $this->doSave($con);\n if ($isInsert) {\n $this->postInsert($con);\n } else {\n $this->postUpdate($con);\n }\n $this->postSave($con);\n AliMemberTableMap::addInstanceToPool($this);\n } else {\n $affectedRows = 0;\n }\n\n return $affectedRows;\n });\n }",
"public function persist($obj)\r\n {\r\n }",
"public function save($object = null) {\n if ($object != null) {\n try {\n if ($object->getId() > 0) {\n //return $this->_update($object);\n $where = $this->getAdapter()->quoteInto('objid = ?', $object->getId());\n return $this->update($this->_preparePersistData($object), $where);\n } else {\n //return $this->_insert($object);\n return $this->insert($this->_preparePersistData($object));\n }\n } catch (Exception $e) {\n throw $e;\n }\n } else {\n throw new Agana_Exception('Cannont persist a null object');\n }\n }",
"public function save()\n\t{\n\t\t$this->validate();\n\n\t\t$values = $this->_get_save_values();\n\n\t\t// Create\n\t\tif ( ! $this->loaded())\n\t\t{\n\t\t\t// Perform the data layer update.\n\t\t\t$id = DORM::create($this)\n\t\t\t\t->set($values)\n\t\t\t\t->execute();\n\n\t\t\t// @todo: _id is mongo-specific\n\t\t\t$this->set(array('_id' => $id));\n\t\t}\n\n\t\t// Update\n\t\telse\n\t\t{\n\t\t\tDORM::update($this)\n\t\t\t\t->where('_id', '=', $this->id())\n\t\t\t\t->set($values)\n\t\t\t\t->execute();\n\t\t}\n\n\t\t// Reset changed values since last save.\n\t\t$this->_changed = array();\n\t\t$this->_changes = array();\n\n\t\treturn $this;\n\t}",
"public function persist() {}",
"public function save(ConnectionInterface $con = null)\n {\n if ($this->isDeleted()) {\n throw new PropelException(\"You cannot save an object that has been deleted.\");\n }\n\n if ($this->alreadyInSave) {\n return 0;\n }\n\n if ($con === null) {\n $con = Propel::getServiceContainer()->getWriteConnection(OrdrhedTableMap::DATABASE_NAME);\n }\n\n return $con->transaction(function () use ($con) {\n $ret = $this->preSave($con);\n $isInsert = $this->isNew();\n if ($isInsert) {\n $ret = $ret && $this->preInsert($con);\n } else {\n $ret = $ret && $this->preUpdate($con);\n }\n if ($ret) {\n $affectedRows = $this->doSave($con);\n if ($isInsert) {\n $this->postInsert($con);\n } else {\n $this->postUpdate($con);\n }\n $this->postSave($con);\n OrdrhedTableMap::addInstanceToPool($this);\n } else {\n $affectedRows = 0;\n }\n\n return $affectedRows;\n });\n }",
"static protected function persist() {\n\t\t$objectManager = \\TYPO3\\CMS\\Core\\Utility\\GeneralUtility::makeInstance(\\TYPO3\\CMS\\Extbase\\Object\\ObjectManager::class);\n\t\t$persistanceManager = $objectManager->get(\\TYPO3\\CMS\\Extbase\\Persistence\\Generic\\PersistenceManager::class);\n\t\t$persistanceManager->persistAll();\n\t}",
"public function save() {\n // Fail due to attempting to save deleted record \n assert(!$this->hasBeenDeleted);\n \n // Fail if fields are invalid\n $this->validateOrThrow();\n\n // Initialize save record cache, if necessary\n if (!isset(self::$saveRecordPreparedStatementCache)) {\n self::$saveRecordPreparedStatementCache = array();\n }\n\n // Initiate implicit transaction, if needed\n $is_implicit_tx = false;\n if (self::$numTransactions == 0) {\n $is_implicit_tx = true; \n self::beginTx();\n }\n \n // Fail due to invalid database connection\n assert(isset(self::$databaseHandle));\n\n $table_name = static::getTableName();\n\n try {\n // Create save-record prepared statement if non-existant\n if (!isset(self::$saveRecordPreparedStatementCache[$table_name])) {\n $save_query_str = self::genSaveRecordQuery($this->childDbFieldTable);\n self::$saveRecordPreparedStatementCache[$table_name] = \n self::$databaseHandle->prepare($save_query_str);\n }\n\n $save_record_stmt = self::$saveRecordPreparedStatementCache[$table_name];\n\n // Bind record fields \n foreach ($this->childDbFieldTable as $field_name => $field) {\n $save_record_stmt->bindValue(\n self::transformForPreparedStatement($field_name),\n $field->getValue(),\n $field->getDataType()\n );\n }\n\n // Bind 'id' to save query\n $this->bindId($save_record_stmt);\n // Save record fields\n $save_record_stmt->execute();\n } catch (PDOException $e) {\n self::$databaseHandle->rollback();\n die(\"\\nERROR: \" . $e->getMessage() . \"\\n\");\n }\n\n // Close implicit tx\n if ($is_implicit_tx) {\n self::endTx();\n }\n }",
"public function save() {\n if ($this->id) {\n return $this->update();\n } else {\n return $this->insert();\n }\n }",
"public function save()\n {\n $DB = DB::singleton(dsn());\n\n if ( $this->update ) {\n $SQL = SQL::newUpdate('entry');\n foreach ( $this->columns as $column ) {\n $SQL->addUpdate('entry_' . $column, $this->{$column});\n }\n $SQL->addWhereOpr('entry_id', $this->id);\n $SQL->addWhereOpr('entry_blog_id', $this->blog_id);\n $DB->query($SQL->get(dsn()), 'exec');\n } else {\n $SQL = SQL::newInsert('entry');\n foreach ( $this->columns as $column ) {\n $SQL->addInsert('entry_' . $column, $this->{$column});\n }\n $DB->query($SQL->get(dsn()), 'exec');\n }\n\n EntryHelper::saveColumn($this->units, $this->id, $this->blog_id);\n Common::saveField('eid', $this->id, $this->fields);\n Common::saveFulltext('eid', $this->id, Common::loadEntryFulltext($this->id));\n }",
"public function save()\n \t{\n \t $this->getMapper()->save($this);\n \t}",
"public function save()\n {\n Logger::getInstance()->po_log(\"PO:save \" . get_class($this));\n\n if (!$this->validate(true)) return false;\n \n //Logger::getInstance()->po_log(\"PO:save post validate\");\n\n $this->executeBeforeSave();\n\n //Logger::getInstance()->on();\n try\n {\n //Logger::getInstance()->po_log(\"PO:save BEGIN\");\n $pm = PersistentManager::getInstance();\n $pm->withTransaction();\n $pm->save($this);\n $pm->commitTransaction();\n //Logger::getInstance()->po_log(\"PO:save COMMIT\");\n }\n catch(Exception $e)\n {\n // TODO: log de $e\n Logger::getInstance()->po_log(\"PO:save ROLLBACK \". $e->getMessage() .\" <pre>\". $e->getTraceAsString() .\"</pre>\");\n \n $pm->rollbackTransaction();\n return false;\n }\n //Logger::getInstance()->off();\n\n $this->executeAfterSave();\n \n // Validacion\n return true;\n }",
"public final function persist($object) {\n\t\tif(!property_exists($object, 'id')) {\n\t\t\tthrow new LogicException('In order to persist an object, it must have a unique property called \"id\"');\n\t\t}\n\t\tif(empty($object->id)) {\n\t\t\t// if the id is empty, we want to insert\n\t\t\t$this->insert($object);\n\t\t} else {\n\t\t\t// otherwise, we want to update on that id\n\t\t\t$this->update($object);\n\t\t}\n\t}",
"public function saveThis()\n {\n \t\tPersistentSession::getInstance()->saveOrUpdate($this);\n }",
"public function save() {\n $db = Db::instance();\n // omit id and any timestamps\n $db_properties = array(\n 'username' => $this->username,\n 'password_hash' => $this->password_hash,\n 'email' => $this->email,\n 'first_name' => $this->first_name,\n 'last_name' => $this->last_name,\n 'user_type' => $this->user_type,\n 'bio' => $this->bio,\n 'creation_date' => $this->creation_date,\n 'gender' => $this->gender,\n 'color' => $this->color\n );\n $db->store($this, __CLASS__, self::DB_TABLE, $db_properties);\n }",
"public function save(Entity $entity): void\n {\n $this->db->save($entity);\n }",
"public function save() {\n\t\t$args = func_get_args();\n\t\t\n\t\t// no argument, so save current object\n\t\tif (empty($args))\n\t\t\t$o = $this;\n\t\t// argument given, so save that object\n\t\telse\n\t\t\t$o = $args[0];\n\n\t\t// ID is set, so update existing object\n\t\tif (isset($o->id))\n\t\t\treturn $this->update($o->id, $o);\n\n\t\t// ID is not set, so create new object\n\t\treturn $this->add($o);\n\t}",
"protected function save()\n\t{\n\t\t$this->saveItems();\n\t\t//$this->saveAssignments();\n\t\t//$this->saveRules();\n\t}",
"public function commit()\n {\n if (self::$_transactionLevel == 1) {\n $this->getConnection()->commit();\n }\n \n if (self::$_transactionLevel > 0) {\n self::$_transactionLevel--;\n }\n }",
"public function save() \n {\n\t\t$this->setLastUpdateTime(date(MYSQL_DATETIME_FORMAT));\n\n\t\tif($this->getId() ) {\n\t\t\treturn $this->_update();\n\t\t} else {\n\t\t\treturn $this->_insert();\n\t\t}\n\t}",
"public function save()\n {\n if ($this->_checkRecordInstance())\n {\n $this->_entity->save();\n }\n return $this;\n }",
"public function persist()\n {\n $this->checkPersister();\n\n $this->persister->beginTransaction();\n foreach ($this as $entity) {\n if (!empty($entity)){\n $this->persister->persist($entity);\n }\n }\n\n $this->persister->commitTransaction();\n\n return $this;\n }",
"public function save() \r\n\t{\r\n\t\t$this->saveNewProducts();\r\n\t\t$this->saveUpdateProducts();\r\n\t\t$this->saveRemoveProducts();\t\t\t\r\n\t\t$this->destroyCache(); \r\n\t}",
"public function save(array $options = array()){\n $colums = $this->getConnection()->getSchemaBuilder()->getColumnListing($this->getTable());\n\t\tif(in_array('updated_at', $colums)){\n\t\t\t$this->updated_at = Tools::nowDateTime();\n\t\t}\n\t\tif(!$this->exists){\n\t\t\tif(in_array('created_at', $colums)){\n\t\t\t\t$this->created_at = Tools::nowDateTime();\n\t\t\t}\n\t\t\tif(self::withTrashed()->count() > 0){\n\t\t\t\t$largestIdItem = self::withTrashed()->orderBy('id', 'desc')->first();\n\t\t\t\t$this->id = $largestIdItem->id + 1;\n\t\t\t}else{\n\t\t\t\t$this->id = 1;\n\t\t\t}\n\t\t\tif(in_array('order', $colums)){\n\t\t\t\tif($this->order === 0){\n\t\t\t\t\t$largestOrderItem = self::orderBy('order', 'desc')->first();\n\t\t\t\t\tif($largestOrderItem){\n\t\t\t\t\t\t$this->order = $largestOrderItem->order + 1;\n\t\t\t\t\t}else{\n\t\t\t\t\t\t$this->order = 1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// before save code\n\t\tparent::save();\n\t\t// after save code\n\t}",
"public function save(ConnectionInterface $con = null)\n {\n if ($this->isDeleted()) {\n throw new PropelException(\"You cannot save an object that has been deleted.\");\n }\n\n if ($this->alreadyInSave) {\n return 0;\n }\n\n if ($con === null) {\n $con = Propel::getServiceContainer()->getWriteConnection(PhoneBookTableMap::DATABASE_NAME);\n }\n\n return $con->transaction(function () use ($con) {\n $ret = $this->preSave($con);\n $isInsert = $this->isNew();\n if ($isInsert) {\n $ret = $ret && $this->preInsert($con);\n } else {\n $ret = $ret && $this->preUpdate($con);\n }\n if ($ret) {\n $affectedRows = $this->doSave($con);\n if ($isInsert) {\n $this->postInsert($con);\n } else {\n $this->postUpdate($con);\n }\n $this->postSave($con);\n PhoneBookTableMap::addInstanceToPool($this);\n } else {\n $affectedRows = 0;\n }\n\n return $affectedRows;\n });\n }",
"public function save() {\n\n return isset($this->id) ? $this->update() : $this->create();\n }",
"public function save(ConnectionInterface $con = null)\n {\n if ($this->isDeleted()) {\n throw new PropelException(\"You cannot save an object that has been deleted.\");\n }\n\n if ($con === null) {\n $con = Propel::getServiceContainer()->getWriteConnection(UserTableMap::DATABASE_NAME);\n }\n\n return $con->transaction(function () use ($con) {\n $isInsert = $this->isNew();\n $ret = $this->preSave($con);\n if ($isInsert) {\n $ret = $ret && $this->preInsert($con);\n // timestampable behavior\n\n if (!$this->isColumnModified(UserTableMap::COL_CREATED_AT)) {\n $this->setCreatedAt(time());\n }\n if (!$this->isColumnModified(UserTableMap::COL_UPDATED_AT)) {\n $this->setUpdatedAt(time());\n }\n } else {\n $ret = $ret && $this->preUpdate($con);\n // timestampable behavior\n if ($this->isModified() && !$this->isColumnModified(UserTableMap::COL_UPDATED_AT)) {\n $this->setUpdatedAt(time());\n }\n }\n if ($ret) {\n $affectedRows = $this->doSave($con);\n if ($isInsert) {\n $this->postInsert($con);\n } else {\n $this->postUpdate($con);\n }\n $this->postSave($con);\n UserTableMap::addInstanceToPool($this);\n } else {\n $affectedRows = 0;\n }\n\n return $affectedRows;\n });\n }",
"public function save() {\n if ($this->loaded) {\n return $this->update();\n }else{\n return $this->create();\n }\n }",
"public function save(array $options = array()){\n $colums = $this->getConnection()->getSchemaBuilder()->getColumnListing($this->getTable());\n if(in_array('updated_at', $colums)){\n $this->updated_at = Tools::nowDateTime();\n }\n if(!$this->exists){\n if(in_array('created_at', $colums)){\n $this->created_at = Tools::nowDateTime();\n }\n if(self::withTrashed()->count() > 0){\n $largestIdItem = self::withTrashed()->orderBy('id', 'desc')->first();\n $this->id = $largestIdItem->id + 1;\n }else{\n $this->id = 1;\n }\n if(in_array('order', $colums)){\n if($this->order === 0){\n $largestOrderItem = self::orderBy('order', 'desc')->first();\n if($largestOrderItem){\n $this->order = $largestOrderItem->order + 1;\n }else{\n $this->order = 1;\n }\n }\n }\n }\n // before save code\n parent::save();\n // after save code\n }",
"public function save(PropelPDO $con = null)\n {\n if ($this->isDeleted()) {\n throw new PropelException(\"You cannot save an object that has been deleted.\");\n }\n\n if ($con === null) {\n $con = Propel::getConnection(JadwalPeer::DATABASE_NAME, Propel::CONNECTION_WRITE);\n }\n\n $con->beginTransaction();\n $isInsert = $this->isNew();\n try {\n $ret = $this->preSave($con);\n if ($isInsert) {\n $ret = $ret && $this->preInsert($con);\n } else {\n $ret = $ret && $this->preUpdate($con);\n }\n if ($ret) {\n $affectedRows = $this->doSave($con);\n if ($isInsert) {\n $this->postInsert($con);\n } else {\n $this->postUpdate($con);\n }\n $this->postSave($con);\n JadwalPeer::addInstanceToPool($this);\n } else {\n $affectedRows = 0;\n }\n $con->commit();\n\n return $affectedRows;\n } catch (Exception $e) {\n $con->rollBack();\n throw $e;\n }\n }",
"public function commit()\n {\n if ($this->transactionLevel === 0)\n {\n throw new DatabaseException('transaction-nothing-to-commit');\n }\n \n --$this->transactionLevel;\n \n if ($this->transactionLevel === 0)\n {\n if (!$this->pdo->commit())\n {\n throw new DatabaseException('transaction-commit');\n }\n }\n else\n {\n // Release savepoint, we no longer need it.\n $this->pdo->exec('RELEASE SAVEPOINT LEVEL' . $this->transactionLevel);\n }\n }",
"public function save() {\r\n $conn = GFSalsaConnector::instance();\r\n if ($conn) {\r\n $conn->saveObject($this->object, $this);\r\n }\r\n }",
"public function save()\n {\n $this->setData(array(\n 'modified' => time(),\n 'modifiedReadable' => Zend_Date::now()->get(Zend_Date::ISO_8601)\n ));\n \n $unmappedData = $this->getBean()->asDeepArray(true);\n if(key_exists('_id', $unmappedData)) {\n unset($unmappedData['_id']);\n }\n\n if (!($id = $this->_save($unmappedData, $this->getId()))) {\n return false;\n }\n\n $this->_setId($id);\n \n return true;\n }",
"public function save(ConnectionInterface $con = null)\n {\n if ($this->isDeleted()) {\n throw new PropelException(\"You cannot save an object that has been deleted.\");\n }\n\n if ($con === null) {\n $con = Propel::getServiceContainer()->getWriteConnection(KluBillTableMap::DATABASE_NAME);\n }\n\n return $con->transaction(function () use ($con) {\n $ret = $this->preSave($con);\n $isInsert = $this->isNew();\n if ($isInsert) {\n $ret = $ret && $this->preInsert($con);\n } else {\n $ret = $ret && $this->preUpdate($con);\n }\n if ($ret) {\n $affectedRows = $this->doSave($con);\n if ($isInsert) {\n $this->postInsert($con);\n } else {\n $this->postUpdate($con);\n }\n $this->postSave($con);\n KluBillTableMap::addInstanceToPool($this);\n } else {\n $affectedRows = 0;\n }\n\n return $affectedRows;\n });\n }",
"public function save()\n {\n // If deposit is new, will get assigned database ID.\n $this->dbID = $this->db->saveDeposit($this);\n }",
"public function save(){\n if($this->id == 0) {\n // Object is new and needs to be created\n return $this->insert();\n }\n }",
"public static function save($em, $obj)\n {\n $em->persist($obj);\n $em->flush();\n }",
"public function persist(Rating $rating)\n {\n if ($rating->getId()) {\n $this->getObjectManager()->flush();\n } else {\n $this->getObjectManager()->persist($rating);\n $this->getObjectManager()->flush();\n }\n }",
"public function markAsPersisted(): void;",
"public function save()\n {\n if ( !$this->unsaved ) {\n // either nothing has been changed, or data has not been loaded, so\n // do nothing by returning early\n return;\n }\n\n $this->write();\n $this->unsaved = false;\n }",
"public function commit()\n {\n $this->getActivePdo()->commit();\n }",
"public function save(ConnectionInterface $con = null)\n {\n if ($this->isDeleted()) {\n throw new PropelException(\"You cannot save an object that has been deleted.\");\n }\n\n if ($this->alreadyInSave) {\n return 0;\n }\n\n if ($con === null) {\n $con = Propel::getServiceContainer()->getWriteConnection(SalesHistoryNotesTableMap::DATABASE_NAME);\n }\n\n return $con->transaction(function () use ($con) {\n $ret = $this->preSave($con);\n $isInsert = $this->isNew();\n if ($isInsert) {\n $ret = $ret && $this->preInsert($con);\n } else {\n $ret = $ret && $this->preUpdate($con);\n }\n if ($ret) {\n $affectedRows = $this->doSave($con);\n if ($isInsert) {\n $this->postInsert($con);\n } else {\n $this->postUpdate($con);\n }\n $this->postSave($con);\n SalesHistoryNotesTableMap::addInstanceToPool($this);\n } else {\n $affectedRows = 0;\n }\n\n return $affectedRows;\n });\n }",
"public function saveToDb()\n\t{\n\t\t$this->addDocument();\n\t\tparent::saveToDb();\n\t}",
"protected function saveEntity($entity)\n {\n $this->om->persist($entity);\n $this->om->flush($entity);\n }",
"private function saveTracker(): void {\n try {\n $this->getEntityManager()->persist($this->engagement);\n $this->getEntityManager()->flush($this->engagement);\n } catch (OptimisticLockException $e) {\n } catch (ORMException $e) {\n } catch (ForeignKeyConstraintViolationException $e){\n }\n }",
"protected function persistObjects() {}",
"public function save()\n {\n $this->hasTableName();\n $pk = $this->pk;\n $condition = \"\";\n if ($this->isNew) {\n $sql = \"INSERT INTO \" . $this->table_name . \" SET \";\n $update = '';\n } else {\n if (!isset($this->$pk))\n throw new Exception('Update em objeto sem chave definida', 403);\n\n $sql = \"UPDATE \" . $this->table_name . \" SET \";\n $update = \" WHERE `\" . $this->pk . \"` = '\" . $this->$pk . \"'\";\n }\n foreach ($this->rules() as $key => $validation) {\n if ($this->validateField($key, $validation) && isset($this->$key) && $this->$key != \"\") {\n $sql .= \" `\" . $key . \"` = '\" . $this->$key . \"',\";\n $condition .= \" `\" . $key . \"` = '\" . $this->$key . \"' AND\";\n }\n }\n if (!$this->getErrors()) {\n $sql = substr($sql, 0, -1) . $update;\n if (Database::dbactionf($sql)) {\n if ($this->isNew) {\n $this->$pk = Database::lastID();\n $this->persisted();\n }\n return true;\n }\n }\n return false;\n }",
"public function save() {\n\t\tif( $this->isAddingNew() ) {\n\t\t\t//Insert record\n\t\t\t$key = $this->getConnection()->insert( $this->_updateBuffer, $this );\n\n\t\t\t//remove all state from this object (including isAddingNew)\n\t\t\t$this->clear();\n\n\t\t\t//Pull just this new record\n\t\t\t$method = \"where\" . $this->getTable()->getPrimaryKey();\n\t\t\t$this->$method( $key );\n\t\t} else {\n\t\t\t$updatedRecord = $this->getConnection()->update( $this->_updateBuffer, $this );\n\t\t\t$this->_recordset[ $this->_currentRow ] = $updatedRecord[0];\n\t\t}\n\n\t\t$this->_updateBuffer = array();\n\t\treturn $this;\n\t}",
"public function save() {\n $db = Db::instance();\n // omit id and any timestamps\n $db_properties = array(\n 'event_type_id' => $this->event_type_id,\n 'user_1_id' => $this->user_1_id,\n 'user_2_id' => $this->user_2_id,\n 'user_1_name' => $this->user_1_name,\n 'user_2_name' => $this->user_2_name,\n 'product_1_name' => $this->product_1_name,\n 'product_2_name' => $this->product_2_name,\n 'data_1' => $this->data_1,\n 'data_2' => $this->data_2\n );\n $db->store($this, __CLASS__, self::DB_TABLE, $db_properties);\n }",
"protected function persistAndFlush($entity)\n {\n $this->persist($entity);\n $this->flush();\n }",
"public function save() {\n return $this->entity->save();\n }",
"public function persist()\n {\n }",
"public function save(ConnectionInterface $con = null)\n {\n if ($this->isDeleted()) {\n throw new PropelException(\"You cannot save an object that has been deleted.\");\n }\n\n if ($this->alreadyInSave) {\n return 0;\n }\n\n if ($con === null) {\n $con = Propel::getServiceContainer()->getWriteConnection(BiblioTableMap::DATABASE_NAME);\n }\n\n return $con->transaction(function () use ($con) {\n $ret = $this->preSave($con);\n $isInsert = $this->isNew();\n if ($isInsert) {\n $ret = $ret && $this->preInsert($con);\n } else {\n $ret = $ret && $this->preUpdate($con);\n }\n if ($ret) {\n $affectedRows = $this->doSave($con);\n if ($isInsert) {\n $this->postInsert($con);\n } else {\n $this->postUpdate($con);\n }\n $this->postSave($con);\n BiblioTableMap::addInstanceToPool($this);\n } else {\n $affectedRows = 0;\n }\n\n return $affectedRows;\n });\n }",
"public function commit()\n {\n if ($this->transactions == 1) {\n $this->getPdo()->commit();\n }\n\n $this->transactions--;\n }",
"public function save()\n {\n if ($this->_id === false) {\n return $this->create();\n }\n\n return $this->set();\n }",
"public function forsedSave(Mage_Core_Model_Abstract $object)\n {\n $this->_beforeSave($object);\n $bind = $this->_prepareDataForSave($object);\n $adapter = $this->_getWriteAdapter();\n // update\n if (!is_null($object->getId()) && $this->_isPkAutoIncrement) {\n unset($bind[$this->getIdFieldName()]);\n $condition = $adapter->quoteInto($this->getIdFieldName().'=?', $object->getId());\n $adapter->update($this->_getTableByValue($object), $bind, $condition);\n } else {\n $adapter->insertOnDuplicate($this->_getTableByValue($object), $bind, $this->_fieldsForUpdate);\n $object->setId($adapter->lastInsertId($this->_getTableByValue($object)));\n }\n\n $this->_afterSave($object);\n\n return $this;\n }",
"public function persist()\n {\n $uid = $this->getIdentifier() == 0 ? 'NEW' . rand(100000, 999999) : $this->getIdentifier();\n $data = [\n trim(static::$storageTableName) => [\n $uid => $this->getPersistableDataArray()\n ]\n ];\n // New records always must have a pid\n if ($this->getIdentifier() == 0) {\n $data[trim(static::$storageTableName)][$uid]['pid'] = 0;\n }\n /** @var \\TYPO3\\CMS\\Core\\DataHandling\\DataHandler $tce */\n $tce = \\TYPO3\\CMS\\Core\\Utility\\GeneralUtility::makeInstance(\\TYPO3\\CMS\\Core\\DataHandling\\DataHandler::class);\n $tce->start($data, []);\n $tce->process_datamap();\n }",
"public function save() {\n\t\treturn isset($this->id) ? $this->update() : $this->create();\n\t}",
"public function save() {\n\t\treturn isset($this->id) ? $this->update() : $this->create();\n\t}",
"public function save($object);",
"public function save($object, bool $flush = true);",
"public function persist()\n {\n $this->eventManager->dispatchEvent(['persist_before'], [get_class($this)]);\n if (!empty($this->handlerInterface)) {\n $result = $this->handlerFactory->create($this->handlerInterface)->persist($this);\n if (!empty($result)) {\n foreach ($result as $key => $value) {\n $this->data[$key] = $value;\n }\n }\n }\n $this->eventManager->dispatchEvent(['persist_after'], [get_class($this)]);\n }",
"protected function saveState(): void\n {\n $em = $this->getEntityManager();\n $em->flush();\n }",
"public function save(){\r\n\t\tif ($this->new){\r\n\t\t\treturn $this->insert();\r\n\t\t} else {\r\n\t\t\treturn $this->update();\r\n\t\t}\r\n\t}",
"public function save()\n {\n if ($this->_state == 0) {\n // Insert\n $result = static::getLink()->insert(Structure::getTable($this)->getFullTableName(), $this->getColumns(), $this->getColumns(true));\n\n // Primary Key\n $this->_id = static::getLink()->lastInsertId();\n\n /** @var Column $primaryKey */\n $primaryKey = Structure::getTablePrimaryKey($this);\n\n if ($primaryKey->autoIncrement) {\n $this->{$primaryKey->getPropertyField()} = $this->_id;\n }\n\n $this->_state = 1;\n } else {\n // Update\n $result = static::getLink()->update(Structure::getTable($this)->getFullTableName(), $this->getColumns(), $this->getPrimaryKey(),\n array_merge($this->getColumns(true), $this->getPrimaryKey(true)));\n }\n\n return $result;\n }",
"protected function persist($entity)\n {\n if (!$this->em()->isOpen()) {\n $this->getDoctrine()->resetManager();\n }\n\n $this->em()->persist($entity);\n $this->em()->flush();\n\n }",
"public function save()\n {\n // that is already in this database using the current IDs in this \"where\"\n // clause to only update this model. Otherwise, we'll just insert them.\n if ($this->exists) {\n $saved = $this->newBuilder()->where('_id', $this->convertToMongoId($this->attributes['_id']))->update($this->attributes);\n }\n // If the model is brand new, we'll insert it into our database and set the\n // ID attribute on the model to the value of the newly inserted row's ID\n // which is typically an auto-increment value managed by the database.\n else {\n $saved = $this->newBuilder()->insert($this->attributes);\n }\n\n // TODO: fill() attributes will new or updated values.\n\n return $saved;\n }",
"public function single_save()\n {\n //Logger::getInstance()->po_log(\"PO:single_save \" . get_class($this));\n PersistentManager::getInstance()->save_object( $this, 0 );\n }",
"public function commit() {\n\t$idAvailable = \\is_numeric($this->getId());\n\t//We're checking if the id is available and it's marked for delete. If not, we need to check if the id is available.\n\t//Finally, we need to make sure it hasn't been marked for delete. if it has and there's no id, nothing needs to be\n\t//done.\n\tif ($idAvailable && $this->_markForDelete) {\n\t $this->delete();\n\t}\n\telse if ($idAvailable) {\n\t $this->update();\n\t}\n\telse if (!$this->_markForDelete) {\n\t $this->insert();\n\t}\n }",
"public function persist(IEntity $entity): void\n\t{\n\t\t$this->beginTransaction();\n\t\t$data = $this->entityToArray($entity);\n\t\t$data = $this->getConventions()->convertEntityToStorage($data);\n\n\t\tif (!$entity->isPersisted()) {\n\t\t\t$this->processInsert($entity, $data);\n\n\t\t} else {\n\t\t\t$primary = [];\n\t\t\t$id = (array) $entity->getPersistedId();\n\t\t\tforeach ($entity->getMetadata()->getPrimaryKey() as $key) {\n\t\t\t\t$primary[$key] = array_shift($id);\n\t\t\t}\n\t\t\t$primary = $this->getConventions()->convertEntityToStorage($primary);\n\n\t\t\t$this->processUpdate($entity, $data, $primary);\n\t\t}\n\t}",
"public function save() {\n\n $data = array(\n 'name' => $this->getName(),\n 'description' => $this->getDescription(),\n 'metatitle' => $this->getMetatitle(),\n 'metakeywords' => $this->getMetakeywords(),\n 'metadescription' => $this->getMetadescription()\n );\n $data['parent_id'] = 0; // by default it is 0, becouse right now there is no use of parent id in this application\n if (null === ($id = $this->getId())) {\n unset($data['id']);\n $data['status'] = 1;\n return $this->getMapper()->getDbTable()->insert($data);\n } else {\n $data['status'] = $this->getStatus();\n return $this->getMapper()->getDbTable()->update($data, array('id = ?' => $id));\n }\n\n }",
"public function persist()\n {\n //\n }",
"public function save(PropelPDO $con = null)\n\t{\n if ($this->isNew() && !$this->isColumnModified(UserPeer::CREATED_AT))\n {\n $this->setCreatedAt(time());\n }\n\n\t\tif ($this->isDeleted()) {\n\t\t\tthrow new PropelException(\"You cannot save an object that has been deleted.\");\n\t\t}\n\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection(UserPeer::DATABASE_NAME, Propel::CONNECTION_WRITE);\n\t\t}\n\t\t\n\t\t$con->beginTransaction();\n\t\ttry {\n\t\t\t$affectedRows = $this->doSave($con);\n\t\t\t$con->commit();\n\t\t\tUserPeer::addInstanceToPool($this);\n\t\t\treturn $affectedRows;\n\t\t} catch (PropelException $e) {\n\t\t\t$con->rollBack();\n\t\t\tthrow $e;\n\t\t}\n\t}",
"public function save()\n {\n if (empty($this->newProperties)) {\n return $this->insert();\n }\n\n return $this->update();\n }",
"public function persist(array $options = [])\n {\n return tap($this)->save($options);\n }"
] | [
"0.69814444",
"0.69519675",
"0.69409436",
"0.6811746",
"0.66507304",
"0.66301143",
"0.6511585",
"0.64274126",
"0.6427037",
"0.64038354",
"0.640378",
"0.63903904",
"0.6372566",
"0.6341316",
"0.6323745",
"0.6266331",
"0.62649876",
"0.6230897",
"0.6208281",
"0.6080022",
"0.607989",
"0.6079085",
"0.6076165",
"0.60495204",
"0.60486144",
"0.6048035",
"0.60456115",
"0.60437256",
"0.60231405",
"0.5986386",
"0.59661055",
"0.5958667",
"0.5946897",
"0.59312695",
"0.59289074",
"0.5922404",
"0.5915527",
"0.5912772",
"0.5892775",
"0.5888549",
"0.58688366",
"0.5867904",
"0.5861235",
"0.5860386",
"0.5856478",
"0.58560956",
"0.58437955",
"0.583645",
"0.5795564",
"0.57771814",
"0.57702446",
"0.5755919",
"0.57519424",
"0.57502997",
"0.57447535",
"0.57441866",
"0.5736724",
"0.57245165",
"0.57215166",
"0.57153785",
"0.57096833",
"0.5706222",
"0.57050455",
"0.5700516",
"0.5695844",
"0.5694644",
"0.5687595",
"0.56723523",
"0.56626946",
"0.5662422",
"0.5662256",
"0.56514376",
"0.56421864",
"0.5641392",
"0.56293815",
"0.5628327",
"0.56269103",
"0.56134975",
"0.5612656",
"0.5606409",
"0.55921483",
"0.5588628",
"0.5585448",
"0.5581611",
"0.5581611",
"0.55813056",
"0.55777377",
"0.55722815",
"0.5570442",
"0.5568486",
"0.5567029",
"0.5563324",
"0.556254",
"0.55625004",
"0.55555046",
"0.5554885",
"0.55451214",
"0.5535292",
"0.5526415",
"0.5522756",
"0.55198157"
] | 0.0 | -1 |
Performs the work of inserting or updating the row in the database. If the object is new, it inserts it; otherwise an update is performed. All related objects are also updated in this method. | protected function doSave(PropelPDO $con)
{
$affectedRows = 0; // initialize var to track total num of affected rows
if (!$this->alreadyInSave) {
$this->alreadyInSave = true;
// We call the save method on the following object(s) if they
// were passed to this object by their corresponding set
// method. This object relates to these object(s) by a
// foreign key reference.
if ($this->aOperations !== null) {
if ($this->aOperations->isModified() || $this->aOperations->isNew()) {
$affectedRows += $this->aOperations->save($con);
}
$this->setOperations($this->aOperations);
}
if ($this->aRCurrencies !== null) {
if ($this->aRCurrencies->isModified() || $this->aRCurrencies->isNew()) {
$affectedRows += $this->aRCurrencies->save($con);
}
$this->setRCurrencies($this->aRCurrencies);
}
if ($this->aRRewardTypes !== null) {
if ($this->aRRewardTypes->isModified() || $this->aRRewardTypes->isNew()) {
$affectedRows += $this->aRRewardTypes->save($con);
}
$this->setRRewardTypes($this->aRRewardTypes);
}
if ($this->aRRewardExpeditionModes !== null) {
if ($this->aRRewardExpeditionModes->isModified() || $this->aRRewardExpeditionModes->isNew()) {
$affectedRows += $this->aRRewardExpeditionModes->save($con);
}
$this->setRRewardExpeditionModes($this->aRRewardExpeditionModes);
}
if ($this->aRRewardTransporters !== null) {
if ($this->aRRewardTransporters->isModified() || $this->aRRewardTransporters->isNew()) {
$affectedRows += $this->aRRewardTransporters->save($con);
}
$this->setRRewardTransporters($this->aRRewardTransporters);
}
if ($this->isNew() || $this->isModified()) {
// persist changes
if ($this->isNew()) {
$this->doInsert($con);
} else {
$this->doUpdate($con);
}
$affectedRows += 1;
$this->resetModified();
}
if ($this->operationPrestationssScheduledForDeletion !== null) {
if (!$this->operationPrestationssScheduledForDeletion->isEmpty()) {
foreach ($this->operationPrestationssScheduledForDeletion as $operationPrestations) {
// need to save related object because we set the relation to null
$operationPrestations->save($con);
}
$this->operationPrestationssScheduledForDeletion = null;
}
}
if ($this->collOperationPrestationss !== null) {
foreach ($this->collOperationPrestationss as $referrerFK) {
if (!$referrerFK->isDeleted() && ($referrerFK->isNew() || $referrerFK->isModified())) {
$affectedRows += $referrerFK->save($con);
}
}
}
if ($this->operationScenariisScheduledForDeletion !== null) {
if (!$this->operationScenariisScheduledForDeletion->isEmpty()) {
foreach ($this->operationScenariisScheduledForDeletion as $operationScenarii) {
// need to save related object because we set the relation to null
$operationScenarii->save($con);
}
$this->operationScenariisScheduledForDeletion = null;
}
}
if ($this->collOperationScenariis !== null) {
foreach ($this->collOperationScenariis as $referrerFK) {
if (!$referrerFK->isDeleted() && ($referrerFK->isNew() || $referrerFK->isModified())) {
$affectedRows += $referrerFK->save($con);
}
}
}
if ($this->lnkOperationPrimeRCountriessScheduledForDeletion !== null) {
if (!$this->lnkOperationPrimeRCountriessScheduledForDeletion->isEmpty()) {
foreach ($this->lnkOperationPrimeRCountriessScheduledForDeletion as $lnkOperationPrimeRCountries) {
// need to save related object because we set the relation to null
$lnkOperationPrimeRCountries->save($con);
}
$this->lnkOperationPrimeRCountriessScheduledForDeletion = null;
}
}
if ($this->collLnkOperationPrimeRCountriess !== null) {
foreach ($this->collLnkOperationPrimeRCountriess as $referrerFK) {
if (!$referrerFK->isDeleted() && ($referrerFK->isNew() || $referrerFK->isModified())) {
$affectedRows += $referrerFK->save($con);
}
}
}
$this->alreadyInSave = false;
}
return $affectedRows;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function store()\n {\n if (!$this->id) { // Insert\n $this->insertObject();\n } else { // Update\n $this->updateObject();\n }\n }",
"public function update() {\r\n\r\n\t\ttry {\r\n\t\t\tglobal $ks_db;\r\n\t\t\tglobal $ks_log;\r\n\r\n\t\t\t$ks_db->beginTransaction ();\r\n\t\t\t\r\n\t\t\t$arrBindings = array ();\r\n\t\t\t\r\n\t\t\tif (! isset ( $this->id )) { \r\n\t\t\t\techo \"Fatal Error: Id is not set for the object! Please do \\$objA->setId(\\$id); in: \" . __METHOD__;\r\n\t\t\t\texit ();\r\n\t\t\t}\r\n\r\n\t\t\t//check if record exists\r\n\t\t\tif(! $this->exists ()) {\r\n\t\t\t\techo \"Fatal Error: No record found with id of ($this->id)\";\r\n\t\t\t\texit ();\r\n\t\t\t}\r\n\r\n\t\t\t$sql = \"UPDATE $this->sqlTable SET \";\r\n\t\t\t\r\n\t\t\tif (isset ( $this->userid )) {\r\n\t\t\t\t$sql .= \"lp_userid = ?, \";\r\n\t\t\t\t$arrBindings[] = $this->userid;\r\n\t\t\t}\r\n\t\t\tif (isset ( $this->random )) {\r\n\t\t\t\t$sql .= \"lp_random = ?, \";\r\n\t\t\t\t$arrBindings[] = $this->random;\r\n\t\t\t}\r\n\t\t\tif (isset ( $this->deadline )) {\r\n\t\t\t\t$sql .= \"lp_deadline = ?, \";\r\n\t\t\t\t$arrBindings[] = $this->deadline;\r\n\t\t\t}\r\n\r\n\t\t\t$sql = preg_replace ( '/, $/', '', $sql);\r\n\t\t\t$sql .= \" WHERE lp_id = ?\";\r\n\t\t\t$arrBindings[] = $this->id;\r\n\t\t\t\r\n\t\t\t$ks_db->query ( $sql, $arrBindings );\r\n\t\r\n\t\t\t$ks_db->commit ();\r\n\t\t\t\r\n\t\t} catch(Exception $e) {\r\n\t\t\t$ks_db->rollBack ();\r\n\t\t\t$ks_log->info ( 'Fatal Error: ' . __CLASS__ . '::' . __METHOD__ . '. ' . $e->getMessage () );\r\n\t\t\t$ks_log->info ( '<br>SQL Statement: ' . $sql);\r\n\t\t\techo \"Fatal Error: \" . __CLASS__ . '::' . __METHOD__ . '. ' . $e->getMessage ();\r\n\t\t\techo \"SQL Statement: \" . $sql;\r\n\t\t}\r\n\t}",
"public function save()\n {\n if ($this->id === null) {\n $this->insert();\n } else {\n $this->update();\n }\n }",
"function addUpdate() {\n\t\tif ($this->id) $this->update();\n\t\telse $this->insert();\n\t}",
"public function save() {\n $db = self::getDbConnection();\n $table = static::getTable();\n $data = get_object_vars($this);\n if ($table == 'posts') {\n $data['name'] = Service::get('session')->userEmail;\n }\n\n if (isset($data['id'])) {\n $query = $db->prepare($this->getUpdateString($data, $table));\n } else {\n $query = $db->prepare($this->getInsertString($data, $table));\n }\n\n if (!$query->execute()) {\n throw new DatabaseException('Cant save object');\n }\n }",
"public function save()\n {\n $this->checkForNecessaryProperties();\n\n $this->update($this->getCurrentId(), $this->data);\n }",
"function update( \\gb\\domain\\DomainObject $object ) {\n //$this->updateStmt->execute( $values );\n }",
"public function save()\n {\n if ($this->id) {\n $this->update();\n } else {\n $this->id = $this->insert();\n }\n }",
"public function save() {\n\t\tif( $this->isAddingNew() ) {\n\t\t\t//Insert record\n\t\t\t$key = $this->getConnection()->insert( $this->_updateBuffer, $this );\n\n\t\t\t//remove all state from this object (including isAddingNew)\n\t\t\t$this->clear();\n\n\t\t\t//Pull just this new record\n\t\t\t$method = \"where\" . $this->getTable()->getPrimaryKey();\n\t\t\t$this->$method( $key );\n\t\t} else {\n\t\t\t$updatedRecord = $this->getConnection()->update( $this->_updateBuffer, $this );\n\t\t\t$this->_recordset[ $this->_currentRow ] = $updatedRecord[0];\n\t\t}\n\n\t\t$this->_updateBuffer = array();\n\t\treturn $this;\n\t}",
"protected function updateObject()\n {\n $gatewayData = $this->encodeDataToJson();\n\n $query = $this->db->getQuery(true);\n\n $query\n ->update($this->db->quoteName(\"#__crowdf_intentions\"))\n ->set($this->db->quoteName(\"user_id\") . \"=\" . $this->db->quote($this->user_id))\n ->set($this->db->quoteName(\"project_id\") . \"=\" . $this->db->quote($this->project_id))\n ->set($this->db->quoteName(\"reward_id\") . \"=\" . $this->db->quote($this->reward_id))\n ->set($this->db->quoteName(\"unique_key\") . \"=\" . $this->db->quote($this->unique_key))\n ->set($this->db->quoteName(\"gateway\") . \"=\" . $this->db->quote($this->gateway))\n ->set($this->db->quoteName(\"gateway_data\") . \"=\" . $this->db->quote($gatewayData))\n ->set($this->db->quoteName(\"auser_id\") . \"=\" . $this->db->quote($this->auser_id))\n ->set($this->db->quoteName(\"session_id\") . \"=\" . $this->db->quote($this->session_id))\n ->where($this->db->quoteName(\"id\") .\"=\". (int)$this->id);\n\n $this->db->setQuery($query);\n $this->db->execute();\n }",
"public function update(){\n\t\t$this->beforeSave();\n\t\t$tableName = $this->tableName();\n\t\t$fields = $this->fields();\n\t\t// Remove fields set as ignored by rules validation.\n\t\t$fields = $this->removeIgnored($fields);\n\t\t// Create PDO placeholders.\n\t\t$params = implode(', ', array_map(fn($name) => $name . ' = :' . $name, $fields));\n\t\t$primaryKey = $this->getPrimaryKey();\n\t\t$where = $primaryKey . ' = :' . $primaryKey;\n\t\t$statement = $this->db->prepare('UPDATE ' . $tableName . ' SET ' . $params . ' WHERE ' . $where);\n\t\t// Bind values to placeholders.\n\t\tforeach($fields as $field){\n\t\t\t$this->binder($statement, ':' . $field, $this->{$field});\n\t\t}\n\t\t$statement->bindValue(':' . $primaryKey, $this->{$primaryKey});\n\t\tif($statement->execute()){\n\t\t\t$this->afterSave();\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}",
"protected function update() {\n if ($this->_isLoaded()) {\n $this->db->where('id', $this->id);\n $this->db->update($this->tableName, $this->mapToDatabase());\n } else {\n throw new Exception(\"Model is not loaded\");\n }\n }",
"public function save()\n {\n\n // generate all column's sql query\n $column_names = '';\n $column_values = '';\n foreach ($this->columns as $field_name => $column_obj)\n {\n if ($column_obj->columnName === null) {\n $column_names .= $field_name.', ';\n } else {\n $column_names .= $column_obj->columnName.', ';\n }\n $column_values .= $column_obj->generateValueForSQL().', ';\n }\n $column_names = substr($column_names, 0, -1);\n $column_values = substr($column_values, 0, -1);\n $this_table_name = $this->table_name;\n $this_id = $this->id;\n\n if ($this->id === 0) {\n // This object is not saved yet.\n $query = 'INSERT INTO $this_table_name ($column_names) VALUES ($column_values);';\n // Execute query\n } else {\n // This object is on the DB.\n $query = 'INSERT INTO $this_table_name ($column_names) VALUES ($column_values) WHERE id=$this_id;';\n // Execute query\n }\n\n mysql_run_query($query);\n\n }",
"public function store()\n {\n if( $this->isPersistent() )\n {\n $this->update();\n }\n else\n {\n $this->insert();\n }\n }",
"public function save(){\n\t\t// If primary key is set in model, run an update instead.\n\t\t$primaryKey = $this->getPrimaryKey();\n\t\tif(isset($this->{$primaryKey})){\n\t\t\treturn $this->update();\n\t\t}\n\t\t$this->beforeSave();\n\t\t$tableName = $this->tableName();\n\t\t$fields = $this->fields();\n\t\t// Remove fields set as ignored by rules validation.\n\t\t$fields = $this->removeIgnored($fields);\n\t\t// Create PDO placeholders.\n\t\t$params = array_map(fn($name) => ':'.$name, $fields);\n\t\t// Populate statement by imploding the arrays.\n\t\t$statement = $this->db->prepare('INSERT INTO ' . $tableName . ' ( ' . implode(', ', $fields) . ') VALUES (' . implode(', ', $params) . ')');\n\t\t// Bind values to placeholders.\n\t\tforeach($fields as $field){\n\t\t\t$this->binder($statement, ':' . $field, $this->{$field});\n\t\t}\n\t\tif($statement->execute()){\n\t\t\t$this->afterSave();\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}",
"function save() {\n\n\t\t// calls generic ORM save (insert or update)\n\t\tparent::save();\n\n\t}",
"public abstract function update($object);",
"public function save(){\n if($this->id == 0) {\n // Object is new and needs to be created\n return $this->insert();\n }\n }",
"public function update()\n\t{\n\t\t$this->getModel()->update($this);\n\t}",
"public function save()\n {\n $DB = DB::singleton(dsn());\n\n if ( $this->update ) {\n $SQL = SQL::newUpdate('entry');\n foreach ( $this->columns as $column ) {\n $SQL->addUpdate('entry_' . $column, $this->{$column});\n }\n $SQL->addWhereOpr('entry_id', $this->id);\n $SQL->addWhereOpr('entry_blog_id', $this->blog_id);\n $DB->query($SQL->get(dsn()), 'exec');\n } else {\n $SQL = SQL::newInsert('entry');\n foreach ( $this->columns as $column ) {\n $SQL->addInsert('entry_' . $column, $this->{$column});\n }\n $DB->query($SQL->get(dsn()), 'exec');\n }\n\n EntryHelper::saveColumn($this->units, $this->id, $this->blog_id);\n Common::saveField('eid', $this->id, $this->fields);\n Common::saveFulltext('eid', $this->id, Common::loadEntryFulltext($this->id));\n }",
"public function save()\n {\n $this->_validateModifiable();\n\n if($this->isNew())\n {\n $this->_getDataSource()->create($this);\n }\n else\n {\n $this->_getDataSource()->update($this);\n }\n\n $this->_saveRelations();\n $this->_setNew(false);\n }",
"public function save()\n {\n $entities = $this->entities;\n Database::getInstance()->doTransaction(\n function() use ($entities)\n {\n foreach ($entities as $entity)\n {\n if ($entity->getMarkedAsDeleted())\n {\n $entity->delete();\n } \n else if ($entity->getMarkedAsUpdated())\n {\n $entity->saveWithDetails();\n }\n }\n }\n );\n }",
"protected function update()\n {\n $database = cbSQLConnect::connect('object');\n if (isset($database))\n {\n $fields = self::$db_fields;\n foreach($fields as $key)\n {\n $flag = $database->SQLUpdate(\"place\", $key, $this->{$key}, \"id\", $this->id);\n if ($flag == \"fail\")\n {\n break;\n }\n }\n if ($flag == \"fail\")\n {\n return false;\n }\n else\n return $this->id;\n }\n }",
"public function update() {\r\n\r\n\t\ttry {\r\n\t\t\tglobal $ks_db;\r\n\t\t\tglobal $ks_log;\r\n\r\n\t\t\t$ks_db->beginTransaction ();\r\n\r\n\t\t\t$arrBindings = array ();\r\n\r\n\t\t\tif (! isset ( $this->id )) {\r\n\t\t\t\techo \"Fatal Error: Id is not set for the object! Please do \\$objA->setId(\\$dsh_id); in: \" . __METHOD__;\r\n\t\t\t\texit ();\r\n\t\t\t}\r\n\r\n\t\t\t//check if record exists\r\n\t\t\tif(! $this->exists ()) {\r\n\t\t\t\techo \"Fatal Error: No record found with primary key of ($this->id)\";\r\n\t\t\t\texit ();\r\n\t\t\t}\r\n\r\n\t\t\t$sql = \"UPDATE $this->sqlTable SET \";\r\n\r\n\t\t\tif (isset ( $this->title )) {\r\n\t\t\t\t$sql .= \"dsh_title = ?, \";\r\n\t\t\t\t$arrBindings[] = $this->title;\r\n\t\t\t}\r\n\t\t\tif (isset ( $this->desc )) {\r\n\t\t\t\t$sql .= \"dsh_desc = ?, \";\r\n\t\t\t\t$arrBindings[] = $this->desc;\r\n\t\t\t}\r\n\t\t\tif (isset ( $this->portlet )) {\r\n\t\t\t\t$sql .= \"dsh_portlet = ?, \";\r\n\t\t\t\t$arrBindings[] = $this->portlet;\r\n\t\t\t}\r\n\t\t\tif (isset ( $this->hide )) {\r\n\t\t\t\t$sql .= \"dsh_hide = ?, \";\r\n\t\t\t\t$arrBindings[] = $this->hide;\r\n\t\t\t}\r\n\t\t\tif (isset ( $this->createdBy )) {\r\n\t\t\t\t$sql .= \"dsh_created_by = ?, \";\r\n\t\t\t\t$arrBindings[] = $this->createdBy;\r\n\t\t\t}\r\n\t\t\tif (isset ( $this->modifiedBy )) {\r\n\t\t\t\t$sql .= \"dsh_modified_by = ?, \";\r\n\t\t\t\t$arrBindings[] = $this->modifiedBy;\r\n\t\t\t}\r\n\t\t\tif (isset ( $this->createdDate )) {\r\n\t\t\t\t$sql .= \"dsh_created_date = ?, \";\r\n\t\t\t\t$arrBindings[] = $this->createdDate;\r\n\t\t\t}\r\n\t\t\tif (isset ( $this->modifiedDate )) {\r\n\t\t\t\t$sql .= \"dsh_modified_date = ?, \";\r\n\t\t\t\t$arrBindings[] = $this->modifiedDate;\r\n\t\t\t}\r\n\r\n\t\t\t$sql = preg_replace ( '/, $/', '', $sql);\r\n\t\t\t$sql .= \" WHERE dsh_id = ?\";\r\n\t\t\t$arrBindings[] = $this->id;\r\n\r\n\t\t\t$ks_db->query ( $sql, $arrBindings );\r\n\r\n\t\t\t$ks_db->commit ();\r\n\r\n\t\t} catch(Exception $e) {\r\n\t\t\t$ks_db->rollBack ();\r\n\t\t\t$ks_log->info ( 'Fatal Error: ' . __METHOD__ . '. ' . $e->getMessage () );\r\n\t\t\t$ks_log->info ( '<br>SQL Statement: ' . $sql);\r\n\t\t\techo \"Fatal Error: \" . __METHOD__ . '. ' . $e->getMessage ();\r\n\t\t\techo \"SQL Statement: \" . $sql;\r\n\t\t}\r\n\t}",
"public function save(){\r\n\t\tif ($this->new){\r\n\t\t\treturn $this->insert();\r\n\t\t} else {\r\n\t\t\treturn $this->update();\r\n\t\t}\r\n\t}",
"public function save (&$obj) {\n\t\n\t\t// build the identifier\n\t\tif (!$idKey = $this->getIdentifier()) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t// get data from object\n\t\t$data = $obj->getAllData();\n\t\t\n\t\t// is it set already?\n\t\tif (!isset($data[$idKey])) {\n\t\t\n\t\t\t// build arrays to implode\n\t\t\t$keys = array();\n\t\t\t$plac = array();\n\t\t\t$vals = array();\n\t\t\t\n\t\t\tforeach ($data as $key => $val) {\n\t\t\t\t$keys[] = $key;\n\t\t\t\t$plac[] = \"?\";\n\t\t\t\t$vals[] = $val;\n\t\t\t}\n\t\t\t\n\t\t\t// this is an insert\n\t\t\t$sql = \"INSERT INTO \".DB_PREFIX.$this->tableName.\" (\".implode($keys, \",\").\") VALUES (\".implode($plac, \",\").\")\";\n\t\t\t$sth = $this->db->prepare($sql);\n\t\t\t$rv = $sth->execute($vals);\n\t\t\t\n\t\t\t// if successful, reload\n\t\t\tif ($rv) {\n\t\t\t\t$obj = $this->getById($this->db->lastInsertId());\n\t\t\t}\n\t\t\n\t\t} else {\n\t\t\n\t\t\t// this is an update\n\t\t\t$identifier = $data[$idKey];\n\t\t\tunset($data[$idKey]);\n\t\t\t\n\t\t\t$sql = \"UPDATE \".DB_PREFIX.$this->tableName.\" SET \";\n\t\t\t$updateSql = \"\";\n\t\t\t$updateVars = array();\n\t\t\t\n\t\t\tforeach ($data as $key => $val) {\n\t\t\t\t$updateSql .= \"$key = ?, \";\n\t\t\t\t$updateVars[] = $val;\n\t\t\t}\n\t\t\t\n\t\t\t$sql .= substr($updateSql, 0, -2) . \" \";\n\t\t\t$sql .= \"WHERE $idKey = \" . $identifier;\n\t\t\t\n\t\t\t$sth = $this->db->prepare($sql);\n\t\t\t$rv = $sth->execute($updateVars);\n\t\t\n\t\t}\n\t\t\n\t\t// return result\n\t\treturn $rv;\n\t\n\t}",
"public function save() \n\t{\n\t\tif (isset($this->id)) {\t\n\t\t\n\t\t\t// Return update when id exists\n\t\t\treturn $this->update();\n\t\t\t\n\t\t} else {\n\t\t\n\t\t\t// Return insert when id does not exists\n\t\t\treturn $this->insert();\n\t\t}\n\t}",
"public function __doSave()\n {\n $_SESSION[\"logger\"]->info(get_class($this) . '->__doSave');\n $_SESSION[\"logger\"]->info($this->toDebugStr());\n\n if (!$this->__exists()) {\n $strSQL = $this->getInsertSql();\n } else {\n $strSQL = $this->getUpdateSql();\n }\n $result = $this->query($strSQL);\n\n return $result;\n }",
"public function save()\n { \n return $this->checkForRows() ? $this->updateRow() : $this->insertRow();\n }",
"public function save()\n\t{\n\t\t$this->copyAttributesToValues() ;\n\t\tif( $this->factory )\n\t\t{\n\t\t\tswitch( $this->todo )\n\t\t\t{\n\t\t\t\tcase 1: // Insert\n\t\t\t\t\tif( $this->factory->insertObjectIntoDB( $this ) ) $this->state = \"inserted\" ;\n\t\t\t\t\telse $this->state = \"dberror\" ;\n\t\t\t\t\tbreak ;\n\t\t\t\tcase 2: // update\n\t\t\t\t\tif( $this->factory->updateObjectIntoDB( $this ) ) $this->state = \"updated\" ;\n\t\t\t\t\telse $this->state = \"dberror\" ;\n\t\t\t\t\tbreak ;\n\t\t\t\tcase 3: // delete\n\t\t\t\t\tif( $this->factory->deleteObjectIntoDB( $this ) ) $this->state = \"deleted\" ;\n\t\t\t\t\telse $this->state = \"dberror\" ;\n\t\t\t\t\tbreak ;\n\t\t\t}\n\t\t}\n\t}",
"public function save()\n {\n if ($this->_state == 0) {\n // Insert\n $result = static::getLink()->insert(Structure::getTable($this)->getFullTableName(), $this->getColumns(), $this->getColumns(true));\n\n // Primary Key\n $this->_id = static::getLink()->lastInsertId();\n\n /** @var Column $primaryKey */\n $primaryKey = Structure::getTablePrimaryKey($this);\n\n if ($primaryKey->autoIncrement) {\n $this->{$primaryKey->getPropertyField()} = $this->_id;\n }\n\n $this->_state = 1;\n } else {\n // Update\n $result = static::getLink()->update(Structure::getTable($this)->getFullTableName(), $this->getColumns(), $this->getPrimaryKey(),\n array_merge($this->getColumns(true), $this->getPrimaryKey(true)));\n }\n\n return $result;\n }",
"public function save() {\n if ($this->id) {\n return $this->update();\n } else {\n return $this->insert();\n }\n }",
"function save() {\n\n\t\tif ( $this->exists ) {\n\t\t\t// update changed fields\n\t\t\t$changed_data = array_intersect_key( $this->data, array_flip( $this->changed_fields ) );\n\n\t\t\t// serialize\n\t\t\t$changed_data = array_map( 'maybe_serialize', $changed_data );\n\n\t\t\tif ( empty( $changed_data ) ) {\n\t\t\t\treturn true;\n\t\t\t}\n\n\t\t\t$queue_id = $this->get_id();\n\n\t\t\t$updated = $this->update( $queue_id, $changed_data );\n\n\t\t\tif ( false === $updated ) {\n\t\t\t\t// Return here to prevent cache updates on error\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tdo_action( 'ig_es_object_update', $this ); // cleans object cache\n\t\t} else {\n\t\t\t$this->set_created_at( new DateTime() );\n\t\t\t$this->data = array_map( 'maybe_serialize', $this->data );\n\t\t\t\n\t\t\t// insert row\n\t\t\t$queue_id = $this->insert( $this->data );\n\n\t\t\tif ( $queue_id ) {\n\t\t\t\t$this->exists = true;\n\t\t\t\t$this->id = $queue_id;\n\t\t\t} else {\n\n\t\t\t\tES()->logger->error( sprintf( __( 'Could not insert into \\'%1$s\\' table. \\'%1$s\\' may not be present in the database.', 'email-subscribers' ), $this->table_name ), $this->logger_context );\n\n\t\t\t\t// Return here to prevent cache updates on error\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\t// reset changed data\n\t\t// important to reset after cache hooks\n\t\t$this->changed_fields = [];\n\t\t$this->original_data = $this->data;\n\n\t\treturn true;\n\t}",
"private function add_record_or_update_record() {\n\t\t\t$this->before_custom_save();\n\t\t\t$this->before_save();\n\t\t\tif($this->new_record) {\n\t\t\t\t$this->before_create();\n\t\t\t\t$result = $this->add_record();\n\t\t\t\t$this->after_create();\n\t\t\t} else {\n\t\t\t\t$this->before_update();\n\t\t\t\t$result = $this->update_record();\n\t\t\t\t$this->after_update();\n\t\t\t}\n\t\t\t$this->after_save();\n\n\t\t\t// init user custom cache\n\t\t\tif (is_array($this->cache)) {\n\t\t\t\t$this->rebuild_cache();\n\t\t\t}\n\n\t\t\tif($this->blob_fields) {\n\t\t\t\t$this->update_blob_fields();\n\t\t\t}\n\t\t\treturn $result;\n\t\t}",
"public function update() {\n // Get the values that are currently in the database\n $curr_vals = $this->read_single();\n\n // Set the values that will be added to the table\n foreach ($curr_vals as $key => $value) {\n // Convert key from the Database's capitalization to\n // this model's attribute capitalization style (all lowercase)\n $local_key = strtolower($key);\n // If user didn't specify property\n if (($this->attr[$local_key] === \"\") || ($this->attr[$local_key] === null)){\n // Then use the value that's already in the database\n $this->attr[$local_key] = $curr_vals[$key];\n }\n }\n\n // Create query\n $query = \"UPDATE \" . $this->table .\n \" SET = \" .\n \" WHERE MID = :mid AND Spot = :spot \";\n\n // Prepare statement\n $stmt = $this->conn->prepare($query);\n\n // Clean the data (reduce malicious SQL injection, etc.)\n foreach ($this->attr as $key => $value) {\n $this->attr[$key] = htmlspecialchars(strip_tags($value));\n }\n \n // Bind the data to a variable for an SQL attribute\n foreach ($this->attr as $key => $value) {\n $stmt->bindValue((\":\" . $key), $value);\n }\n\n // Execute the prepared statement and check for errors in running it\n return $this->runPrepStmtChkErr($stmt);\n }",
"public function save(){\n\n if (!$this->preSave()) {\n return FALSE;\n }\n\n $reference = $this->_getReference();\n $pk = $this->_getPK();\n\n $data = get_object_vars($this);\n\n if (empty($pk) && $pk !== NULL) {\n throw new \\Exception('Model PK is empty!');\n }\n\n if (is_array($pk)) {\n $pkv = [];\n $_pkv = [];\n $insert = TRUE;\n foreach ($pk as $c) {\n if (!empty($data[$c])) {\n $pkv[] = $data[$c];\n $_pkv[$c] = $data[$c];\n // unset($data[$c]);\n $insert = FALSE;\n }\n }\n\n if (!$insert) {\n $insert = is_null(self::getWhere($_pkv));\n }\n\n\n } else {\n $pkv = !empty($data[$pk]) ? $data[$pk] : NULL;\n $_pkv = [$pk => $pkv];\n\n // Se for AUTO INCREMENT remove dos campos a serem INSERIDOS/ALTERADOS\n if (self::_isPkAi())\n unset($data[$pk]);\n\n $insert = empty($pkv);\n }\n\n unset($data['__error']);\n\n foreach ($data as $key => $value) {\n if (strpos($key, '_') === 0)\n unset($data[$key]);\n }\n\n if ($insert) {\n\n if (array_key_exists('created', $data))\n $data['created'] = Date('Y-m-d H:i:s');\n\n if (array_key_exists('updated', $data))\n unset($data['updated']);\n\n\n $res = self::$connection->insert($reference, $data)->execute();\n\n if ($res && $pk !== NULL && !is_array($pk))\n $this->{'set'.$pk}(self::$connection->lastInsertId());\n\n } else {\n\n if (array_key_exists('updated', $data))\n $data['updated'] = Date('Y-m-d H:i:s');\n\n if (array_key_exists('created', $data))\n unset($data['created']);\n\n $res = self::$connection->update($reference, $data, $_pkv)->execute();\n\n }\n\n if ($res)\n $this->refresh();\n\n $this->afterSave($res);\n\n return $res;\n\n }",
"protected function doSave($con)\n\t{\n\t\t$affectedRows = 0; // initialize var to track total num of affected rows\n\t\tif (!$this->alreadyInSave) {\n\t\t\t$this->alreadyInSave = true;\n\n\n\t\t\t// We call the save method on the following object(s) if they\n\t\t\t// were passed to this object by their coresponding set\n\t\t\t// method. This object relates to these object(s) by a\n\t\t\t// foreign key reference.\n\n\t\t\tif ($this->aSerial !== null) {\n\t\t\t\tif ($this->aSerial->isModified() || $this->aSerial->getCurrentSerialI18n()->isModified()) {\n\t\t\t\t\t$affectedRows += $this->aSerial->save($con);\n\t\t\t\t}\n\t\t\t\t$this->setSerial($this->aSerial);\n\t\t\t}\n\n\t\t\tif ($this->aPrecinct !== null) {\n\t\t\t\tif ($this->aPrecinct->isModified() || $this->aPrecinct->getCurrentPrecinctI18n()->isModified()) {\n\t\t\t\t\t$affectedRows += $this->aPrecinct->save($con);\n\t\t\t\t}\n\t\t\t\t$this->setPrecinct($this->aPrecinct);\n\t\t\t}\n\n\t\t\tif ($this->aGenre !== null) {\n\t\t\t\tif ($this->aGenre->isModified() || $this->aGenre->getCurrentGenreI18n()->isModified()) {\n\t\t\t\t\t$affectedRows += $this->aGenre->save($con);\n\t\t\t\t}\n\t\t\t\t$this->setGenre($this->aGenre);\n\t\t\t}\n\n\t\t\tif ($this->aBroadcast !== null) {\n\t\t\t\tif ($this->aBroadcast->isModified() || $this->aBroadcast->getCurrentBroadcastI18n()->isModified()) {\n\t\t\t\t\t$affectedRows += $this->aBroadcast->save($con);\n\t\t\t\t}\n\t\t\t\t$this->setBroadcast($this->aBroadcast);\n\t\t\t}\n\n\n\t\t\t// If this object has been modified, then save it to the database.\n\t\t\tif ($this->isModified()) {\n\t\t\t\tif ($this->isNew()) {\n\t\t\t\t\t$pk = MmPeer::doInsert($this, $con);\n\t\t\t\t\t$affectedRows += 1; // we are assuming that there is only 1 row per doInsert() which\n\t\t\t\t\t\t\t\t\t\t // should always be true here (even though technically\n\t\t\t\t\t\t\t\t\t\t // BasePeer::doInsert() can insert multiple rows).\n\n\t\t\t\t\t$this->setId($pk); //[IMV] update autoincrement primary key\n\n\t\t\t\t\t$this->setNew(false);\n\t\t\t\t} else {\n\t\t\t\t\t$affectedRows += MmPeer::doUpdate($this, $con);\n\t\t\t\t}\n\t\t\t\t$this->resetModified(); // [HL] After being saved an object is no longer 'modified'\n\t\t\t}\n\n\t\t\tif ($this->collMmI18ns !== null) {\n\t\t\t\tforeach($this->collMmI18ns as $referrerFK) {\n\t\t\t\t\tif (!$referrerFK->isDeleted()) {\n\t\t\t\t\t\t$affectedRows += $referrerFK->save($con);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($this->collFiles !== null) {\n\t\t\t\tforeach($this->collFiles as $referrerFK) {\n\t\t\t\t\tif (!$referrerFK->isDeleted()) {\n\t\t\t\t\t\t$affectedRows += $referrerFK->save($con);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($this->collLinks !== null) {\n\t\t\t\tforeach($this->collLinks as $referrerFK) {\n\t\t\t\t\tif (!$referrerFK->isDeleted()) {\n\t\t\t\t\t\t$affectedRows += $referrerFK->save($con);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($this->collMmPersons !== null) {\n\t\t\t\tforeach($this->collMmPersons as $referrerFK) {\n\t\t\t\t\tif (!$referrerFK->isDeleted()) {\n\t\t\t\t\t\t$affectedRows += $referrerFK->save($con);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($this->collPicMms !== null) {\n\t\t\t\tforeach($this->collPicMms as $referrerFK) {\n\t\t\t\t\tif (!$referrerFK->isDeleted()) {\n\t\t\t\t\t\t$affectedRows += $referrerFK->save($con);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($this->collGroundMms !== null) {\n\t\t\t\tforeach($this->collGroundMms as $referrerFK) {\n\t\t\t\t\tif (!$referrerFK->isDeleted()) {\n\t\t\t\t\t\t$affectedRows += $referrerFK->save($con);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($this->collMaterials !== null) {\n\t\t\t\tforeach($this->collMaterials as $referrerFK) {\n\t\t\t\t\tif (!$referrerFK->isDeleted()) {\n\t\t\t\t\t\t$affectedRows += $referrerFK->save($con);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($this->collLogTranscodings !== null) {\n\t\t\t\tforeach($this->collLogTranscodings as $referrerFK) {\n\t\t\t\t\tif (!$referrerFK->isDeleted()) {\n\t\t\t\t\t\t$affectedRows += $referrerFK->save($con);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($this->collTranscodings !== null) {\n\t\t\t\tforeach($this->collTranscodings as $referrerFK) {\n\t\t\t\t\tif (!$referrerFK->isDeleted()) {\n\t\t\t\t\t\t$affectedRows += $referrerFK->save($con);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($this->collPubChannelMms !== null) {\n\t\t\t\tforeach($this->collPubChannelMms as $referrerFK) {\n\t\t\t\t\tif (!$referrerFK->isDeleted()) {\n\t\t\t\t\t\t$affectedRows += $referrerFK->save($con);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($this->collAnnounceChannelMms !== null) {\n\t\t\t\tforeach($this->collAnnounceChannelMms as $referrerFK) {\n\t\t\t\t\tif (!$referrerFK->isDeleted()) {\n\t\t\t\t\t\t$affectedRows += $referrerFK->save($con);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($this->collMmMatterhorns !== null) {\n\t\t\t\tforeach($this->collMmMatterhorns as $referrerFK) {\n\t\t\t\t\tif (!$referrerFK->isDeleted()) {\n\t\t\t\t\t\t$affectedRows += $referrerFK->save($con);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($this->collCategoryMms !== null) {\n\t\t\t\tforeach($this->collCategoryMms as $referrerFK) {\n\t\t\t\t\tif (!$referrerFK->isDeleted()) {\n\t\t\t\t\t\t$affectedRows += $referrerFK->save($con);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($this->collCategoryMmTimeframes !== null) {\n\t\t\t\tforeach($this->collCategoryMmTimeframes as $referrerFK) {\n\t\t\t\t\tif (!$referrerFK->isDeleted()) {\n\t\t\t\t\t\t$affectedRows += $referrerFK->save($con);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$this->alreadyInSave = false;\n\t\t}\n\t\treturn $affectedRows;\n\t}",
"public function update() {\n global $DB;\n $record = array(\n 'sortorder' => $this->sortorder,\n 'criterion' => $this->criterion,\n 'addinfo' => json_encode($this->addinfo)\n );\n if ($this->id) {\n $record['id'] = $this->id;\n $DB->update_record($this->get_table_name(), $record);\n } else {\n $record['instantquizid'] = $this->instantquiz->id;\n $this->id = $DB->insert_record($this->get_table_name(), $record);\n }\n }",
"public function save(Mage_Core_Model_Abstract $object)\n {\n if ($object->isDeleted()) {\n return $this->delete($object);\n }\n\n $this->_serializeFields($object);\n $this->_beforeSave($object);\n $this->_checkUnique($object);\n if (!is_null($object->getId()) && (!$this->_useIsObjectNew || !$object->isObjectNew())) {\n $condition = $this->_getWriteAdapter()->quoteInto($this->getIdFieldName().'=?', $object->getId());\n /**\n * Not auto increment primary key support\n */\n if ($this->_isPkAutoIncrement) {\n $data = $this->_prepareDataForSave($object);\n unset($data[$this->getIdFieldName()]);\n $this->_getWriteAdapter()->update($this->_getTableByValue($object), $data, $condition);\n } else {\n $select = $this->_getWriteAdapter()->select()\n ->from($this->_getTableByValue($object, array($this->getIdFieldName())))\n ->where($condition);\n if ($this->_getWriteAdapter()->fetchOne($select) !== false) {\n $data = $this->_prepareDataForSave($object);\n unset($data[$this->getIdFieldName()]);\n if (!empty($data)) {\n $this->_getWriteAdapter()->update($this->_getTableByValue($object), $data, $condition);\n }\n } else {\n $this->_getWriteAdapter()->insert($this->_getTableByValue($object), $this->_prepareDataForSave($object));\n }\n }\n } else {\n $bind = $this->_prepareDataForSave($object);\n if ($this->_isPkAutoIncrement) {\n unset($bind[$this->getIdFieldName()]);\n }\n $this->_getWriteAdapter()->insert($this->_getTableByValue($object), $bind);\n\n $object->setId($this->_getWriteAdapter()->lastInsertId($this->_getTableByValue($object)));\n\n if ($this->_useIsObjectNew) {\n $object->isObjectNew(false);\n }\n }\n\n $this->unserializeFields($object);\n $this->_afterSave($object);\n\n return $this;\n }",
"public function save()\n {\n $this->hasTableName();\n $pk = $this->pk;\n $condition = \"\";\n if ($this->isNew) {\n $sql = \"INSERT INTO \" . $this->table_name . \" SET \";\n $update = '';\n } else {\n if (!isset($this->$pk))\n throw new Exception('Update em objeto sem chave definida', 403);\n\n $sql = \"UPDATE \" . $this->table_name . \" SET \";\n $update = \" WHERE `\" . $this->pk . \"` = '\" . $this->$pk . \"'\";\n }\n foreach ($this->rules() as $key => $validation) {\n if ($this->validateField($key, $validation) && isset($this->$key) && $this->$key != \"\") {\n $sql .= \" `\" . $key . \"` = '\" . $this->$key . \"',\";\n $condition .= \" `\" . $key . \"` = '\" . $this->$key . \"' AND\";\n }\n }\n if (!$this->getErrors()) {\n $sql = substr($sql, 0, -1) . $update;\n if (Database::dbactionf($sql)) {\n if ($this->isNew) {\n $this->$pk = Database::lastID();\n $this->persisted();\n }\n return true;\n }\n }\n return false;\n }",
"public function save() : bool {\n\t\t// Check if record is new\n\t\t$isNew = isset($this->{$this->primaryKey}) && $this->{$this->primaryKey} ? false : true;\n\n\t\tif ($isNew) {\n\t\t\t// Insert\n\t\t\t$this->database->query('INSERT INTO ' . $this->tableNamePrefixed, $this->getValuesForDatabase());\n\t\t\tif ($this->database->getInsertId()) {\n\t\t\t\t$this->{$this->primaryKey} = $this->database->getInsertId();\n\t\t\t}\n\t\t} else {\n\t\t\t// Update\n\t\t\t$this->database->query(\n\t\t\t\t'UPDATE ' . $this->tableNamePrefixed . ' SET',\n\t\t\t\t$this->getValuesForDatabase(),\n\t\t\t\t'WHERE ' . $this->primaryKey . ' = ?', $this->{$this->primaryKey}\n\t\t\t);\n\t\t}\n\n\t\treturn true;\n\t}",
"public function save() \n {\n\t\t$this->setLastUpdateTime(date(MYSQL_DATETIME_FORMAT));\n\n\t\tif($this->getId() ) {\n\t\t\treturn $this->_update();\n\t\t} else {\n\t\t\treturn $this->_insert();\n\t\t}\n\t}",
"public function save(){\n\t\t$v = get_object_vars($this);\n\t\tunset($v['TABLE']);\n\t\tunset($v['IS_UPDATING']);\n\t\t$key_s = \"\";\n\t\t$key_v = \"\";\n\t\tforeach($v as $key => $val){\n\t\t\t$key_s .= \"$key, \";\n\t\t\t$key_v .= \"'$val', \";\n\t\t}\n\t\t$key_s = substr_replace($key_s, '', strlen($key_s)-2);\n\t\t$key_v = substr_replace($key_v, '', strlen($key_v)-2);\n\t\tif($this->IS_UPDATING){\n\t\t\t$str = \"\";\n\t\t\tunset($v['id']);\n\t\t\tforeach($v as $key => $val){\n\t\t\t\t$str .= $key . \"='$val', \";\n\t\t\t}\n\t\t\t$str = substr_replace($str, '', strlen($str)-2);\n\t\t\t$query = \"UPDATE {$this->TABLE} SET $str WHERE id = {$this->id}\";\n\t\t} else {\n\t\t\t$query = \"INSERT INTO {$this->TABLE} ($key_s) VALUES ($key_v)\";\n\t\t}\n\t\t$q = parent::query($query);\n\t\treturn $q;\n\t}",
"public function ApplyChanges()\n {\n parent::ApplyChanges();\n\n // Update data\n $this->Update();\n }",
"public function save()\n {\n $rc = true;\n $ak = array_keys($this->_objData);\n if (isset($this->_objData[$ak[0]][$this->_objField]) && $this->_objData[$ak[0]][$this->_objField]) {\n $rc = $this->update();\n } else {\n $rc = $this->insert();\n }\n return $rc;\n }",
"public function save()\r\n {\r\n if( empty($this->dirty) ) return true;\r\n \r\n $pkName = $this->pkName();\r\n //is it an update?\r\n if( isset($this->data[$pkName]) ){\r\n $this->table->update($this->dirty, \"{$pkName}=?\", array($this->data[$pkName]) );\r\n $merged_data[$pkName] = $this->data[$pkName];\r\n } else {\r\n //it's an insert\r\n $merged_data = array_merge(\r\n $this->array_diff_schema($this->dirty),\r\n $this->array_diff_schema($this->data)\r\n );\r\n $this->table->insert($merged_data);\r\n $pk = $this->pkName();\r\n if( !isset($merged_data[$pk]) )\r\n $merged_data[$pk] = $this->table->lastInsertId();\r\n }\r\n $this->reset($merged_data);\r\n return true;\r\n }",
"public function Save()\r\n\t\t{\r\n\t\t\tif ($this->id == -1) {\r\n\t\t\t\tunset($this->columns[\"id\"]);\r\n\t\t\t\t$sqlCol = null;\r\n\t\t\t\t$sqlKey = null;\r\n\t\t\t\tforeach ($this->columns as $column => $value) {\r\n\t\t\t\t\t$data[$column] = $this->$column;\r\n\t\t\t\t\t$sqlCol .= \",\" . $column;\r\n\t\t\t\t\t$sqlKey .= \",:\" . $column;\r\n\t\t\t\t}\r\n\t\t\t\t$sqlCol = ltrim($sqlCol, \",\");\r\n\t\t\t\t$sqlKey = ltrim($sqlKey, \",\");\r\n\t\t\t\t$query = $this->db->prepare(\r\n\t\t\t\t\t\"INSERT INTO \" . $this->table . \" (\" . $sqlCol . \")\r\n\t\t\t\t\t\tVALUES (\" . $sqlKey . \") ;\"\r\n\t\t\t\t);\r\n\t\t\t\t$query->execute($data);\r\n\t\t\t\t\r\n\t\t\t} else {\r\n\t\t\t\t// Sinon faire un update dynamique\r\n\t\t\t\t$sqlSet = null;\r\n\t\t\t\tforeach ($this->columns as $column => $value) {\r\n\t\t\t\t\t$data[$column] = $this->$column;\r\n\t\t\t\t\t$sqlSet[] .= $column . \"=:\" . $column;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Suppression de la mise à jour de la date d'update \r\n\t\t\t\t// la mise à jour des dates est maintenant faites en BDD.\r\n\t\t\t\t$query = $this->db->prepare(\r\n\t\t\t\t\t\"UPDATE \" . $this->table . \" SET \r\n\t\t\t\t\t\t\" . implode(\",\", $sqlSet) . \"\r\n\t\t\t\t\t\tWHERE id=:id;\"\r\n\t\t\t\t);\r\n\r\n\t\t\t\t$query->execute($data);\r\n\t\t\t}\r\n\t\t}",
"public function store()\n {\n $this->filtrarCampos();\n\n // verifica se tem ID ou se existe na base de dados\n if (empty($this->data['id']) or (!$this->load($this->id))) {\n // incrementa o ID\n $this->id = $this->getLast() + 1;\n // cria uma instruo de insert\n $sql = new TSqlInsert;\n $sql->setEntity($this->getEntity());\n // percorre os dados do objeto\n foreach ($this->data as $key => $value) {\n // passa os dados do objeto para o SQL\n $sql->setRowData($key, $this->$key);\n }\n } else {\n // instancia instruo de update\n $sql = new TSqlUpdate;\n $sql->setEntity($this->getEntity());\n // cria um critrio de seleo baseado no ID\n $criteria = new TCriteria;\n $criteria->add(new TFilter('id', '=', $this->id));\n $sql->setCriteria($criteria);\n // percorre os dados do objeto\n foreach ($this->data as $key => $value) {\n if ($key !== 'id') // o ID no precisa ir no UPDATE\n {\n // passa os dados do objeto para o SQL\n $sql->setRowData($key, $this->$key);\n }\n }\n }\n // inicia transao\n if ($conn = TTransaction::get()) {\n\n // faz o log e executa o SQL\n TTransaction::log($sql->getInstruction());\n $result = $conn->exec($sql->getInstruction());\n\n // retorna o resultado\n return $result;\n } else {\n // se no tiver transao, retorna uma exceo\n throw new \\Exception('No h transao ativa !!');\n }\n }",
"public function update() {\r\n\t\t$this->getMapper()->update($this);\r\n\t}",
"public function save() {\n $db = Db::instance();\n // omit id and any timestamps\n $db_properties = array(\n 'author_id' => $this->author_id,\n 'clothingname' => $this->clothingname,\n 'clothingtype' => $this->clothingtype,\n 'tempmin' => $this->tempmin,\n 'tempmax' => $this->tempmax\n );\n $db->store($this, __CLASS__, self::DB_TABLE, $db_properties);\n }",
"private function _update() {\n\n $this->db->replace(XCMS_Tables::TABLE_USERS, $this->getArray());\n $this->attributes->save();\n\n }",
"public function save()\n {\n $this->validate();\n if (!empty($this->_errors)) {\n return false;\n }\n\n if ($this->beforeSave() == false) {\n return false;\n }\n\n $schema = static::getSchema();\n $saveValues = array();\n foreach ($this as $col => $val) {\n if ($schema[$col]['type'] == 'datetime' && $this->$col !== null) {\n $val = $this->$col->setTimezone('UTC')->toDateTimeString();\n }\n\n if ($col == 'created' || $col == 'modified') {\n continue;\n }\n\n if (array_key_exists($col, $schema)) {\n $saveValues[$col] = $val;\n }\n }\n\n // If ID is not null, then UPDATE row in the database, else INSERT new row\n if ($this->{\"{$this->_idField}\"}) {\n // Update query\n if (array_key_exists('modified', static::getSchema())) {\n $this->modified = Carbon::now();\n $saveValues['modified'] = $this->modified->setTimezone('UTC')->toDateTimeString();\n }\n\n $success = static::queryBuilder()->update($saveValues)->where(array('id' => $this->{$this->_idField}))->execute();\n }\n else {\n // Insert query\n if (array_key_exists('created', static::getSchema())) {\n $this->created = Carbon::now();\n $saveValues['created'] = $this->created->setTimezone('UTC')->toDateTimeString();\n }\n\n $success = static::queryBuilder()->insert($saveValues)->execute();\n\n $this->{\"{$this->_idField}\"} = self::$_db->lastInsertId();\n }\n\n if ($this->afterSave() == false) {\n return false;\n }\n\n return $success;\n }",
"function update($primary){\n $this->primary=$primary;\n //\n //create the update\n $update= new update($this, $primary);\n //\n //Execute the the insert\n $update->query($this->entity->get_parent());\n }",
"public function insert() {\r\n\t\t$this->getMapper()->insert($this);\r\n\t}",
"public function save(){\n\t\t$res = true;\n\t\t$changedData = $this->changedData();\n\t\tif(count($changedData)){\n\t\t\tif(!empty($this->orig)){\n\t\t\t\t$res = (dbHelper::updateQry($this->tableName,$changedData,array($this->primaryKey=>$this->data[$this->primaryKey]))?true:false);\n\t\t\t\t$this->orig = $this->data;\n\t\t\t} else {\n\t\t\t\t//if this row has been deleted but someone else saves data to it this will automatically restore the row from $data\n\t\t\t\t$res = (dbHelper::insertQry($this->tableName,$this->data)?true:false);\n\t\t\t\t$this->data[$this->primaryKey] = db::insertID();\n\t\t\t\tdbData::addRow($this->tableName,$this->primaryKey,$this->data);\n\t\t\t\t$this->orig =& dbData::rowRefrence($this->tableName,$this->primaryKey,$this->data[$this->primaryKey]);\n\t\t\t}\n\t\t}\n\t\treturn $res;\n\t}",
"public function save(){\n\t\ttry {\n\t\t\t$params = array();\n\n\t\t\t//insert\n\t\t\tif( empty($this->_data['id']) ){\n\t\t\t\t$action = 'add';\n\n\t\t\t\t//build the insert starting from self::$fields\n\t\t\t\t$fields = array();\n\t\t\t\t$values = array();\n\n\t\t\t\tforeach( self::$_fields[$this->_table] as $key ){\n\t\t\t\t\tif( $key != 'id' ){\n\t\t\t\t\t\t$fields[] = $key;\n\n\t\t\t\t\t\tif( isset($this->_data[$key]) && !is_null($this->_data[$key]) ){\n\t\t\t\t\t\t\t$values[] = ':'.$key;\n\t\t\t\t\t\t\t$params[':'.$key] = $this->_data[$key];\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$values[] = 'NULL';\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t$fields = implode(', ', $fields);\n\t\t\t\t$values = implode(', ', $values);\n\t\t\t\t$sql = \"INSERT INTO \".$this->_table.\" (\".$fields.\") VALUES (\".$values.\")\";\n\n\t\t\t//update\n\t\t\t} else {\n\t\t\t\t$action = 'update';\n\n\t\t\t\t//build the update starting from self::$fields\n\t\t\t\t$where = '';\n\t\t\t\t$field_value = '';\n\n\t\t\t\tforeach( self::$_fields[$this->_table] as $key ){\n\t\t\t\t\tif( $key == 'id' ){\n\t\t\t\t\t\t$where = ' '.$key.' = :id';\n\t\t\t\t\t\t$params[':id'] = $this->_data[$key];\n\n\t\t\t\t\t} elseif( isset($this->_data[$key]) and !is_null($this->_data[$key]) ){\n\t\t\t\t\t\t$field_value .= ' '.$key.' = :'.$key.',';\n\t\t\t\t\t\t$params[':'.$key] = $this->_data[$key];\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$field_value .= ' '.$key.' = NULL,';\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$field_value = substr($field_value, 0, -1);\n\t\t\t\t$sql = \"UPDATE \".$this->_table.\" SET \".$field_value.\" WHERE \".$where;\n\t\t\t}\n\n\t\t\t$q = $this->_db->prepare($sql);\n\n\t\t\t$q->execute($params);\n\n\t\t\tif( empty($this->_data['id']) ){\n\t\t\t\t$this->_data['id'] = $this->_db->lastInsertId();\n\t\t\t}\n\n\t\t\treturn true;\n\n\t\t} catch ( PDOException $e ){\n\t\t\terreur_pdo( $e, get_class( $this ), __FUNCTION__ );\n\t\t}\n\t}",
"public function save() {\r\n $dateNow = date('Y-m-d H:i:s', time());\r\n $this->id = (int) $this->id;\r\n \r\n if (!empty($this->id)) {\r\n //update case\r\n if ($this->_update()) {\r\n return true;\r\n }\r\n }\r\n else {\r\n //Insert case\r\n if ($this->_insert()) {\r\n return true;\r\n }\r\n }\r\n }",
"public function save() {\n return $this->{static::$primaryKey} === null? $this->create() : $this->update();\n }",
"public function save() {\n if($this->hasUid){\n //Create new uid, and varify that it hasn't been used.\n //This might take a bit of overhead, but useful for ensuring you don't have duplicate UID's in any table\n $uniqueID = new uniqueID();\n $UID = $uniqueID->shorten($uniqueID->generate()); //final shortened userId\n\n while (!checkUidIsUnique($UID)) {\n $uniqueID = new uniqueID();\n $UID = $uniqueID->shorten($uniqueID->generate()); //final shortened userId\n }\n\n $this->uid = $UID;\n }\n \n //Check if we are creating a new object\n if ($this->uid == \"\" && $this->id == \"\") {\n $newFields = array();\n foreach ($this as $key => $value) {\n //Skip disregarded fields\n foreach($this->disregard as $disregard){\n if($key == $disregard){\n continue 2;\n }\n }\n \n $ins[] = ':' . $key;\n array_push($newFields, $key);\n }\n $ins = implode(',', $ins);\n $fields = implode(',', $newFields);\n \n //Get the current database time\n $NetworkConnection = new NetworkConnection();\n $PDO = $NetworkConnection->getNewDbConnection();\n \n $stmt = $PDO->prepare(\"SELECT NOW() today\");\n $stmt->execute();\n $dateTime = $stmt->fetch();\n $this->created_at = $dateTime[0]->today;\n $NetworkConnection->closeConnection();\n \n\n try {\n $NetworkConnection = new NetworkConnection();\n $PDO = $NetworkConnection->getNewDbConnection();\n \n $stmt = $PDO->prepare(\"INSERT INTO \" . $this->tableName .\" ($fields) VALUES ($ins)\");\n foreach ($this as $key => $value) {\n //Skip disregarded fields\n foreach($this->disregard as $disregard){\n if($key == $disregard){\n continue 2;\n }\n }\n $stmt->bindValue(':' . $key, $value);\n \n }\n var_dump($stmt);exit();\n $result = $stmt->execute();\n \n $NetworkConnection->closeConnection();\n \n if ($result && $this->hasUid) {\n //Created new lead entry\n $newUID = new UID(array(\"uid\" => $UID, \"table_name\" => $this->tableName));\n $newUID->save();\n return $this;\n }else{\n return $this;\n }\n } catch (Exception $ex) {\n echo $ex->getMessage();\n }\n } else {\n \n $fields = array();\n $set = '';\n $x = 1;\n\n //TODO:: JMJ think this is reminent of old code, consider for removal\n //$this->created_at = date(\"Y-m-d H:i:s\");\n\n foreach ($this as $key => $value) {\n //Skip disregarded fields\n foreach($this->disregard as $disregard){\n if($key == $disregard){\n continue 2;\n }\n }\n array_push($fields, $key);\n }\n\n for ($x = 0; $x < count($fields); $x++) {\n $set .= \"{$fields[$x]} = ?\";\n if ($x < count($fields) - 1) {\n $set .= ', ';\n }\n }\n\n //Update existing entry\n $NetworkConnection = new NetworkConnection();\n $PDO = $NetworkConnection->getNewDbConnection();\n \n if(!$this->hasUid){\n $stmt = $PDO->prepare(\"UPDATE \" . $this->tableName .\" SET {$set} WHERE id=?\");\n }else{\n $stmt = $PDO->prepare(\"UPDATE \" . $this->tableName .\" SET {$set} WHERE uid=?\");\n }\n for ($i = 0; $i < count($fields); $i++) {\n\n $stmt->bindParam($i + 1, $this->{$fields[$i]});\n if ($i + 1 == count($fields)) {\n if(!$this->hasUid){\n $stmt->bindParam($i + 2, $this->id);\n }else{\n $stmt->bindParam($i + 2, $this->uid);\n }\n \n }\n }\n\n $result = $stmt->execute();\n \n $NetworkConnection->closeConnection();\n \n if ($result) {\n return $this;\n }\n }\n }",
"protected function doSave(ConnectionInterface $con)\n {\n $affectedRows = 0; // initialize var to track total num of affected rows\n if (!$this->alreadyInSave) {\n $this->alreadyInSave = true;\n\n // We call the save method on the following object(s) if they\n // were passed to this object by their corresponding set\n // method. This object relates to these object(s) by a\n // foreign key reference.\n\n if ($this->aPublisher !== null) {\n if ($this->aPublisher->isModified() || $this->aPublisher->isNew()) {\n $affectedRows += $this->aPublisher->save($con);\n }\n $this->setPublisher($this->aPublisher);\n }\n\n if ($this->aLanguage !== null) {\n if ($this->aLanguage->isModified() || $this->aLanguage->isNew()) {\n $affectedRows += $this->aLanguage->save($con);\n }\n $this->setLanguage($this->aLanguage);\n }\n\n if ($this->aPlace !== null) {\n if ($this->aPlace->isModified() || $this->aPlace->isNew()) {\n $affectedRows += $this->aPlace->save($con);\n }\n $this->setPlace($this->aPlace);\n }\n\n if ($this->aFrequency !== null) {\n if ($this->aFrequency->isModified() || $this->aFrequency->isNew()) {\n $affectedRows += $this->aFrequency->save($con);\n }\n $this->setFrequency($this->aFrequency);\n }\n\n if ($this->aUser !== null) {\n if ($this->aUser->isModified() || $this->aUser->isNew()) {\n $affectedRows += $this->aUser->save($con);\n }\n $this->setUser($this->aUser);\n }\n\n if ($this->isNew() || $this->isModified()) {\n // persist changes\n if ($this->isNew()) {\n $this->doInsert($con);\n $affectedRows += 1;\n } else {\n $affectedRows += $this->doUpdate($con);\n }\n $this->resetModified();\n }\n\n if ($this->authorsScheduledForDeletion !== null) {\n if (!$this->authorsScheduledForDeletion->isEmpty()) {\n $pks = array();\n foreach ($this->authorsScheduledForDeletion as $entry) {\n $entryPk = [];\n\n $entryPk[0] = $this->getBiblioId();\n $entryPk[1] = $entry->getAuthorId();\n $pks[] = $entryPk;\n }\n\n \\Slims\\Models\\Masterfile\\BiblioAuthor\\BiblioAuthorQuery::create()\n ->filterByPrimaryKeys($pks)\n ->delete($con);\n\n $this->authorsScheduledForDeletion = null;\n }\n\n }\n\n if ($this->collAuthors) {\n foreach ($this->collAuthors as $author) {\n if (!$author->isDeleted() && ($author->isNew() || $author->isModified())) {\n $author->save($con);\n }\n }\n }\n\n\n if ($this->topicsScheduledForDeletion !== null) {\n if (!$this->topicsScheduledForDeletion->isEmpty()) {\n $pks = array();\n foreach ($this->topicsScheduledForDeletion as $entry) {\n $entryPk = [];\n\n $entryPk[0] = $this->getBiblioId();\n $entryPk[1] = $entry->getTopicId();\n $pks[] = $entryPk;\n }\n\n \\Slims\\Models\\Masterfile\\BiblioTopic\\BiblioTopicQuery::create()\n ->filterByPrimaryKeys($pks)\n ->delete($con);\n\n $this->topicsScheduledForDeletion = null;\n }\n\n }\n\n if ($this->collTopics) {\n foreach ($this->collTopics as $topic) {\n if (!$topic->isDeleted() && ($topic->isNew() || $topic->isModified())) {\n $topic->save($con);\n }\n }\n }\n\n\n if ($this->biblioAuthorsScheduledForDeletion !== null) {\n if (!$this->biblioAuthorsScheduledForDeletion->isEmpty()) {\n \\Slims\\Models\\Masterfile\\BiblioAuthor\\BiblioAuthorQuery::create()\n ->filterByPrimaryKeys($this->biblioAuthorsScheduledForDeletion->getPrimaryKeys(false))\n ->delete($con);\n $this->biblioAuthorsScheduledForDeletion = null;\n }\n }\n\n if ($this->collBiblioAuthors !== null) {\n foreach ($this->collBiblioAuthors as $referrerFK) {\n if (!$referrerFK->isDeleted() && ($referrerFK->isNew() || $referrerFK->isModified())) {\n $affectedRows += $referrerFK->save($con);\n }\n }\n }\n\n if ($this->biblioTopicsScheduledForDeletion !== null) {\n if (!$this->biblioTopicsScheduledForDeletion->isEmpty()) {\n \\Slims\\Models\\Masterfile\\BiblioTopic\\BiblioTopicQuery::create()\n ->filterByPrimaryKeys($this->biblioTopicsScheduledForDeletion->getPrimaryKeys(false))\n ->delete($con);\n $this->biblioTopicsScheduledForDeletion = null;\n }\n }\n\n if ($this->collBiblioTopics !== null) {\n foreach ($this->collBiblioTopics as $referrerFK) {\n if (!$referrerFK->isDeleted() && ($referrerFK->isNew() || $referrerFK->isModified())) {\n $affectedRows += $referrerFK->save($con);\n }\n }\n }\n\n if ($this->itemsScheduledForDeletion !== null) {\n if (!$this->itemsScheduledForDeletion->isEmpty()) {\n \\Slims\\Models\\Bibliography\\Item\\ItemQuery::create()\n ->filterByPrimaryKeys($this->itemsScheduledForDeletion->getPrimaryKeys(false))\n ->delete($con);\n $this->itemsScheduledForDeletion = null;\n }\n }\n\n if ($this->collItems !== null) {\n foreach ($this->collItems as $referrerFK) {\n if (!$referrerFK->isDeleted() && ($referrerFK->isNew() || $referrerFK->isModified())) {\n $affectedRows += $referrerFK->save($con);\n }\n }\n }\n\n $this->alreadyInSave = false;\n\n }\n\n return $affectedRows;\n }",
"protected function performInsert()\n {\n $attributes = $this->getAttributes();\n $updatedField = $this->getApi()->{'create'.ucfirst($this->getEntity())}($attributes);\n $this->fill($updatedField);\n $this->exists = true;\n $this->wasRecentlyCreated = true;\n\n return true;\n }",
"public function save(){\r\n\t \t\treturn isset($this->id) ? $this->update() : $this->create();\r\n\t\t}",
"protected function doSave(PropelPDO $con)\n\t{\n\t\t$affectedRows = 0; // initialize var to track total num of affected rows\n\t\tif (!$this->alreadyInSave) {\n\t\t\t$this->alreadyInSave = true;\n\n\t\t\t// We call the save method on the following object(s) if they\n\t\t\t// were passed to this object by their coresponding set\n\t\t\t// method. This object relates to these object(s) by a\n\t\t\t// foreign key reference.\n\n\t\t\tif ($this->aPartie !== null) {\n\t\t\t\tif ($this->aPartie->isModified() || $this->aPartie->isNew()) {\n\t\t\t\t\t$affectedRows += $this->aPartie->save($con);\n\t\t\t\t}\n\t\t\t\t$this->setPartie($this->aPartie);\n\t\t\t}\n\n\t\t\tif ($this->aPostRelatedByReplicaPostId !== null) {\n\t\t\t\tif ($this->aPostRelatedByReplicaPostId->isModified() || $this->aPostRelatedByReplicaPostId->isNew()) {\n\t\t\t\t\t$affectedRows += $this->aPostRelatedByReplicaPostId->save($con);\n\t\t\t\t}\n\t\t\t\t$this->setPostRelatedByReplicaPostId($this->aPostRelatedByReplicaPostId);\n\t\t\t}\n\n\t\t\tif ($this->isNew() ) {\n\t\t\t\t$this->modifiedColumns[] = PostPeer::ID;\n\t\t\t}\n\n\t\t\t// If this object has been modified, then save it to the database.\n\t\t\tif ($this->isModified()) {\n\t\t\t\tif ($this->isNew()) {\n\t\t\t\t\t$pk = PostPeer::doInsert($this, $con);\n\t\t\t\t\t$affectedRows += 1; // we are assuming that there is only 1 row per doInsert() which\n\t\t\t\t\t\t\t\t\t\t // should always be true here (even though technically\n\t\t\t\t\t\t\t\t\t\t // BasePeer::doInsert() can insert multiple rows).\n\n\t\t\t\t\t$this->setId($pk); //[IMV] update autoincrement primary key\n\n\t\t\t\t\t$this->setNew(false);\n\t\t\t\t} else {\n\t\t\t\t\t$affectedRows += PostPeer::doUpdate($this, $con);\n\t\t\t\t}\n\n\t\t\t\t$this->resetModified(); // [HL] After being saved an object is no longer 'modified'\n\t\t\t}\n\n\t\t\tif ($this->collPostBadges !== null) {\n\t\t\t\tforeach ($this->collPostBadges as $referrerFK) {\n\t\t\t\t\tif (!$referrerFK->isDeleted()) {\n\t\t\t\t\t\t$affectedRows += $referrerFK->save($con);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($this->collInappropriates !== null) {\n\t\t\t\tforeach ($this->collInappropriates as $referrerFK) {\n\t\t\t\t\tif (!$referrerFK->isDeleted()) {\n\t\t\t\t\t\t$affectedRows += $referrerFK->save($con);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($this->collPostsRelatedByReplicaPostId !== null) {\n\t\t\t\tforeach ($this->collPostsRelatedByReplicaPostId as $referrerFK) {\n\t\t\t\t\tif (!$referrerFK->isDeleted()) {\n\t\t\t\t\t\t$affectedRows += $referrerFK->save($con);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($this->collPostPollAnswers !== null) {\n\t\t\t\tforeach ($this->collPostPollAnswers as $referrerFK) {\n\t\t\t\t\tif (!$referrerFK->isDeleted()) {\n\t\t\t\t\t\t$affectedRows += $referrerFK->save($con);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($this->collPostPollVotes !== null) {\n\t\t\t\tforeach ($this->collPostPollVotes as $referrerFK) {\n\t\t\t\t\tif (!$referrerFK->isDeleted()) {\n\t\t\t\t\t\t$affectedRows += $referrerFK->save($con);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($this->collPostVisitss !== null) {\n\t\t\t\tforeach ($this->collPostVisitss as $referrerFK) {\n\t\t\t\t\tif (!$referrerFK->isDeleted()) {\n\t\t\t\t\t\t$affectedRows += $referrerFK->save($con);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($this->collPostDailyStatss !== null) {\n\t\t\t\tforeach ($this->collPostDailyStatss as $referrerFK) {\n\t\t\t\t\tif (!$referrerFK->isDeleted()) {\n\t\t\t\t\t\t$affectedRows += $referrerFK->save($con);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($this->collPostIndexs !== null) {\n\t\t\t\tforeach ($this->collPostIndexs as $referrerFK) {\n\t\t\t\t\tif (!$referrerFK->isDeleted()) {\n\t\t\t\t\t\t$affectedRows += $referrerFK->save($con);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$this->alreadyInSave = false;\n\n\t\t}\n\t\treturn $affectedRows;\n\t}",
"public function save() {\r\n if ($this->model->getId()) {\r\n return $this->model->update();\r\n }\r\n return $this->create();\r\n }",
"public function update(){\r\n\t\tif (!$this->hasChanged) return self::RES_UNCHANGED;\r\n\t\t$table = $this->getTable();\r\n\t\tif ($this->new){\r\n\t\t\tMessages::msg(\"Cannot update record in {$this->getFullTableName()}, because the record doesn't exist.\",Messages::M_CODE_ERROR);\r\n\t\t\treturn self::RES_FAILED;\r\n\t\t}\r\n\t\tif (!$table->hasPrimaryKey()){\r\n\t\t\tMessages::msg(\"Cannot update record in {$this->getFullTableName()}, because the table does not have a primary key.\",Messages::M_CODE_ERROR);\r\n\t\t\treturn self::RES_FAILED;\r\n\t\t}\r\n\t\t\r\n\t\t$this->beforeCommit();\r\n\t\t\r\n\t\t$vals = array();\r\n\t\t$where = array();\r\n\t\t$changeCount = 0;\r\n\t\t$error = false;\r\n\t\tforeach ($this->values as $name=>$value){\r\n\t\t\tif ($value->isErroneous()){\r\n\t\t\t\tFramework::reportErrorField($name);\r\n\t\t\t\t$error = true;\r\n\t\t\t}\r\n\t\t\tif ($value->hasChanged()){\r\n\t\t\t\t$vals[] = \"`$name` = \".$value->getSQLValue();\r\n\t\t\t\t$changeCount++;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif ($error){\r\n\t\t\treturn self::RES_FAILED;\r\n\t\t}\r\n\t\t\r\n\t\tforeach ($table->getPrimaryKey()->getColumns() as $name){\r\n\t\t\t$where[] = \"`$name` = \".$this->values[$name]->getSQLValue();\r\n\t\t}\r\n\t\t$sql = 'UPDATE '.$this->getFullTableName().' SET '.implode(', ',$vals).' WHERE '.implode(' AND ',$where).' LIMIT 1';\r\n\t\tif (!SQL::query($sql)->success()){\r\n\t\t\tMessages::msg('Failed to update record in '.$this->getFullTableName().'.',Messages::M_CODE_ERROR);\r\n\t\t\treturn self::RES_FAILED;\r\n\t\t}\r\n\t\t$this->hasChanged = false;\r\n\t\tforeach ($this->values as $value){\r\n\t\t\t$value->setHasChanged(false);\r\n\t\t}\r\n\t\t\r\n\t\t$this->afterCommit();\r\n\t\t\r\n\t\treturn self::RES_SUCCESS;\r\n\t}",
"public function save() {\n\t\tif ( ! $this->dirty()) return true;\n\n\t\tif (static::$timestamps) {\n\t\t\t$this->timestamp();\n\t\t}\n\n\t\t$this->fire_event('saving');\n\n\t\t// If the model exists, we only need to update it in the database, and the update\n\t\t// will be considered successful if there is one affected row returned from the\n\t\t// fluent query instance. We'll set the where condition automatically.\n\t\tif ($this->exists) {\n\t\t\t$query = $this->query()->where(static::$key, '=', $this->get_key());\n\n\t\t\t$result = $query->update($this->get_dirty()) === 1;\n\n\t\t\tif ($result) $this->fire_event('updated');\n\t\t}\n\n\t\t// If the model does not exist, we will insert the record and retrieve the last\n\t\t// insert ID that is associated with the model. If the ID returned is numeric\n\t\t// then we can consider the insert successful.\n\t\telse {\n\t\t\t$id = $this->query()->insert_get_id($this->attributes, $this->key());\n\n\t\t\t$this->set_key($id);\n\n\t\t\t$this->exists = $result = is_numeric($this->get_key());\n\n\t\t\tif ($result) $this->fire_event('created');\n\t\t}\n\n\t\t// After the model has been \"saved\", we will set the original attributes to\n\t\t// match the current attributes so the model will not be viewed as being\n\t\t// dirty and subsequent calls won't hit the database.\n\t\t$this->original = $this->attributes;\n\n\t\tif ($result) {\n\t\t\t$this->fire_event('saved');\n\t\t}\n\n\t\treturn $result;\n\t}",
"public function save() {\n\t\t$args = func_get_args();\n\t\t\n\t\t// no argument, so save current object\n\t\tif (empty($args))\n\t\t\t$o = $this;\n\t\t// argument given, so save that object\n\t\telse\n\t\t\t$o = $args[0];\n\n\t\t// ID is set, so update existing object\n\t\tif (isset($o->id))\n\t\t\treturn $this->update($o->id, $o);\n\n\t\t// ID is not set, so create new object\n\t\treturn $this->add($o);\n\t}",
"public function MyUpdate() {\n //var_dump($rs);\n\n DB::beginTransaction();\n\n\n /*\n DB::transaction(function() {\n $article = Articles::create(array(\n ''\n ));\n });\n */\n }",
"public function save()\n {\n $data = $this->getSaveData();\n $errorString = '<h5 class=\"alert-heading\">Can\\'t save ' . $this->entityName . ' because of the following problems:</h5>';\n\n $errors = $this->checkRequiredColumns( $data );\n if ( !empty( $errors ) ) {\n return $this->addError( $errorString . HTMLTags::getListGroup( $errors ) );\n }\n\n if ( defined( 'DEBUG' ) && DEBUG === true ) {\n $dataToSave = !empty( $data ) ? $this->getDataHTMLTable( $data ) : 'None';\n $this->messages->add(\n 'Entity - ' . $this->entityName\n . '<br>Changed - ' . print_r( $this->changed, true )\n . '<br>Data to save - ' . $dataToSave\n . '<br>All column properties - ' . $dataToSave,\n 'info'\n );\n }\n $errors = $this->healthCheck();\n if ( !empty( $errors ) ) {\n return $this->addError( $errorString . HTMLTags::getListGroup( $errors ) );\n }\n if ( $this->exists ) {\n return $this->updateDBRow( $data );\n }\n $addRow = $this->addDBRow( $data );\n if ( is_int( $addRow ) ) {\n $this->id = $addRow;\n $this->exists = true;\n }\n return $addRow;\n }",
"public function forsedSave(Mage_Core_Model_Abstract $object)\n {\n $this->_beforeSave($object);\n $bind = $this->_prepareDataForSave($object);\n $adapter = $this->_getWriteAdapter();\n // update\n if (!is_null($object->getId()) && $this->_isPkAutoIncrement) {\n unset($bind[$this->getIdFieldName()]);\n $condition = $adapter->quoteInto($this->getIdFieldName().'=?', $object->getId());\n $adapter->update($this->_getTableByValue($object), $bind, $condition);\n } else {\n $adapter->insertOnDuplicate($this->_getTableByValue($object), $bind, $this->_fieldsForUpdate);\n $object->setId($adapter->lastInsertId($this->_getTableByValue($object)));\n }\n\n $this->_afterSave($object);\n\n return $this;\n }",
"protected function performUpdate()\n {\n // Once we have run the update operation, we will fire the \"updated\" event for\n // this model instance. This will allow developers to hook into these after\n // models are updated, giving them a chance to do any special processing.\n $dirty = $this->getDirty();\n\n if (count($dirty) > 0) {\n $updatedField = $this->getApi()->{'update'.ucfirst($this->getEntity())}($this->{$this->primaryKey}, $dirty);\n $this->fill($updatedField);\n $this->syncChanges();\n }\n\n return true;\n }",
"public function save()\n\t{\n\t\tif( $this->isExist )\n\t\t{\n\t\t\treturn $this->update();\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn $this->insert();\n\t\t}\n\t}",
"abstract protected function updateModel();",
"public static function save()\n\t{\n//\t\t{\n//\t\t\techo static::$error;\n//\t\t\treturn false;\n//\t\t}\n\n\t\t$instance = static::$_instance[static::_getTable()];\n\t\t$columns = DB::getColumnListing(static::$_table);\n\n\t\tif (@$instance->id)\n\t\t{\n\t\t\tDB::where($instance->id);\n\n\t\t\tif (in_array('updated', $columns))\n\t\t\t\t$instance->updated = date('Y-m-d H:i:s');\n\n\t\t\tif (in_array('updater', $columns))\n\t\t\t\t$instance->updater = (int)Auth::identity()->id;\n\n\t\t\tDB::table(static::$_table)->update($instance);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif (in_array('ordering', $columns))\n\t\t\t\t$instance->ordering = DB::table(static::$_table)->getNewOrdering();\n\n\t\t\tif (in_array('created', $columns))\n\t\t\t\t$instance->created = date('Y-m-d H:i:s');\n\n\t\t\tif (in_array('creator', $columns))\n\t\t\t\t$instance->creator = (int)Auth::identity()->id;\n\n\t\t\tDB::table(static::$_table)->insert($instance);\n\t\t\t$instance->id = DB::getLastInsertId();\n\t\t}\n\n\t\treturn true;\n\t}",
"public function save()\n {\n $obj = $this->get_save_array();\n\n foreach ($obj as $key => $value)\n {\n $this->db->set($key, $value);\n }\n\n if (!$this->id || $this->id === null)\n {\n // insert\n $result = $this->db->insert($this->table);\n $saved_object = !$result ? false : $this->getByID($this->getLastID());\n }\n else\n {\n // update\n $this->db->where(array('id' => (int)$this->id));\n $result = $this->db->update($this->table);\n $saved_object = !$result ? false : $this->getByID($this->id);\n }\n\n return $saved_object;\n\n }",
"public function submit()\n\t{\n\t\t$identifier = $this->sql_id_field;\n\n\t\tif (!$this->$identifier)\n\t\t{\n\t\t\treturn $this->insert();\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn $this->update();\n\t\t}\n\t}",
"function update(){\n\t\t$this->model->update();\n\t}",
"public function update(){\n\n\t\t/* set method */\n\t\t$this->request_method = 'update';\n\t\t\t\t\n\t\t/* check for a model id */\n\t\tif( ! $this->id) {\n\t\t\t$this->set_error( 10, 'No model id in request, cant update' );\n\t\t\treturn;\t\t\t\n\t\t}\n\t\t\n\t\t/* read the data received from backbone */\n\t\t$this->parse_model_request();\n\n\t\tif($this->get_errors())\n\t\t\treturn;\n\t\t\t\t\t\n\t\t/* get the parsed post data from request */\n\t\t$item_data = $this->parsed_model_request;\n\t\t \t\t\t \t\n\t\t/* insert database */\n\t\tswitch( $this->properties->modelclass ) {\n\t\t\n\t\t\t/* posts */\n\t\t\tcase('post'):\n\t\t\tcase('attachment'):\n\t\t\t\t$post = $item_data['post'];\n\t\t\t\t\n\t\t\t\t/* privileg check */ //improve this for coded api calls, like when setting up bootstrap data (for reading it is no problem any way, because this check is only made for update and create and delete)\n\t\t\t\tif( $this->properties->access == \"loggedin\" && ! current_user_can('edit_post', $this->id)) { \n\t\t\t\t\t$this->set_error( 11, 'no user privileges to update the item on server' );\n\t\t\t\t\treturn;\n\t\t\t\t}\t\n\t\t\t\t\n\t\t\t\t$result = wp_update_post( $post );\n\t\t\t\t\n\t\t\t\t/* maybe an error while updating */\n\t\t\t\tif( ! $result) {\n\t\t\t\t\t$this->set_error( 12, 'updating the item failed on the server' );\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t/* geting the id means update was a success */\n\t\t\t\t$updated_id = $result;\n\t\t\t\t\n\t\t\t\t/* save custom data, this only method does all the magic, \n\t\t\t\tdetails must be specified in the custom package handlers */\n\t\t\t\t$this->_action_custom_package_data( $updated_id, $item_data);\t\n\t\t\t\t\n\t\t\t\t/* set a clean response */\n\t\t\t\t$this->parse_model_response($updated_id);\t\n\t\t\tbreak;\n\t\t\t\n\t\t\t/* comment */\n\t\t\tcase('comment'):\n\t\t\t\t$comment = $item_data['comment'];\n\t\t\t\t\n\t\t\t\t/* comment updateding is not supported */\n\t\t\t\t$this->set_error( 13, 'comments cant be updated!' );\n\t\t\t\t\treturn; \n\t\t\tbreak;\n\t\t\tcase('user'):\n\t\t\t//@TODO\n\t\t\tbreak;\n\t\t\tcase('idone'):\n\t\t\t\t$new_id = $this->id;\n\t\t\t\t$this->_action_custom_package_data( $new_id, $item_data);\t\t\t\t\t\n\t\t\t\t$this->parse_model_response($new_id);\t\t\n\t\t\tbreak;\n\t\t}\n do_action('bb-wp-api_after_update', $updated_id, $this->properties, $this );\n\t\n\t}",
"protected function performUpdate() {}",
"public function commitUpdate();",
"public function save(){\n\n\t\t$this->_connect();\n\t\t$exists = $this->_exists();\n\n\t\tif($exists==false){\n\t\t\t$this->_operationMade = self::OP_CREATE;\n\t\t} else {\n\t\t\t$this->_operationMade = self::OP_UPDATE;\n\t\t}\n\n\t\t// Run Validation Callbacks Before\n\t\t$this->_errorMessages = array();\n\t\tif(self::$_disableEvents==false){\n\t\t\tif($this->_callEvent('beforeValidation')===false){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tif(!$exists){\n\t\t\t\tif($this->_callEvent('beforeValidationOnCreate')===false){\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif($this->_callEvent('beforeValidationOnUpdate')===false){\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t//Generadores\n\t\t$className = get_class($this);\n\t\t$generator = null;\n\t\tif(EntityManager::hasGenerator($className)){\n\t\t\t$generator = EntityManager::getEntityGenerator($className);\n\t\t\t$generator->setIdentifier($this);\n\t\t}\n\n\t\t//LLaves foráneas virtuales\n\t\tif(EntityManager::hasForeignKeys($className)){\n\t\t\t$foreignKeys = EntityManager::getForeignKeys($className);\n\t\t\t$error = false;\n\t\t\tforeach($foreignKeys as $indexKey => $keyDescription){\n\t\t\t\t$entity = EntityManager::getEntityInstance($indexKey, false);\n\t\t\t\t$field = $keyDescription['fi'];\n\t\t\t\tif($this->$field==''){\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t$conditions = $keyDescription['rf'].' = \\''.$this->$field.'\\'';\n\t\t\t\tif(isset($keyDescription['op']['conditions'])){\n\t\t\t\t\t$conditions.= ' AND '.$keyDescription['op']['conditions'];\n\t\t\t\t}\n\t\t\t\t$rowcount = $entity->count($conditions);\n\t\t\t\tif($rowcount==0){\n\t\t\t\t\tif(isset($keyDescription['op']['message'])){\n\t\t\t\t\t\t$userMessage = $keyDescription['op']['message'];\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$userMessage = 'El valor de \"'.$keyDescription['fi'].'\" no existe en la tabla referencia';\n\t\t\t\t\t}\n\t\t\t\t\t$message = new ActiveRecordMessage($userMessage, $keyDescription['fi'], 'ConstraintViolation');\n\t\t\t\t\t$this->appendMessage($message);\n\t\t\t\t\t$error = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif($error==true){\n\t\t\t\t$this->_callEvent('onValidationFails');\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\t$notNull = $this->_getNotNullAttributes();\n\t\t$at = $this->_getDatesAtAttributes();\n\t\t$in = $this->_getDatesInAttributes();\n\t\tif(is_array($notNull)){\n\t\t\t$error = false;\n\t\t\t$numFields = count($notNull);\n\t\t\tfor($i=0;$i<$numFields;++$i){\n\t\t\t\t$field = $notNull[$i];\n\t\t\t\tif($this->$field===null||$this->$field===''){\n\t\t\t\t\tif(!$exists&&$field=='id'){\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tif(!$exists){\n\t\t\t\t\t\tif(isset($at[$field])){\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif(isset($in[$field])){\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t$field = str_replace('_id', '', $field);\n\t\t\t\t\t$message = new ActiveRecordMessage(\"El campo $field no puede ser nulo ''\", $field, 'PresenceOf');\n\t\t\t\t\t$this->appendMessage($message);\n\t\t\t\t\t$error = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif($error==true){\n\t\t\t\t$this->_callEvent('onValidationFails');\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\t// Run Validation\n\t\tif($this->_callEvent('validation')===false){\n\t\t\t$this->_callEvent('onValidationFails');\n\t\t\treturn false;\n\t\t}\n\n\t\tif(self::$_disableEvents==false){\n\t\t\t// Run Validation Callbacks After\n\t\t\tif(!$exists){\n\t\t\t\tif($this->_callEvent('afterValidationOnCreate')===false){\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif($this->_callEvent('afterValidationOnUpdate')===false){\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif($this->_callEvent('afterValidation')===false){\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\t// Run Before Callbacks\n\t\t\tif($this->_callEvent('beforeSave')===false){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tif($exists){\n\t\t\t\tif($this->_callEvent('beforeUpdate')===false){\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif($this->_callEvent('beforeCreate')===false){\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif($this->_schema){\n\t\t\t$table = $this->_schema.'.'.$this->_source;\n\t\t} else {\n\t\t\t$table = $this->_source;\n\t\t}\n\n\t\t$magicQuotesRuntime = get_magic_quotes_runtime();\n\t\t$dataType = $this->_getDataTypes();\n\t\t$primaryKeys = $this->_getPrimaryKeyAttributes();\n\t\t$dataTypeNumeric = $this->_getDataTypesNumeric();\n\t\tif($exists){\n\t\t\tif(self::$_dynamicUpdate==false){\n\t\t\t\t$fields = array();\n\t\t\t\t$values = array();\n\t\t\t\t$nonPrimary = $this->_getNonPrimaryKeyAttributes();\n\t\t\t\tforeach($nonPrimary as $np){\n\t\t\t\t\tif(isset($in[$np])){\n\t\t\t\t\t\t$this->$np = Date::now();\n\t\t\t\t\t}\n\t\t\t\t\t$fields[] = $np;\n\t\t\t\t\tif(is_object($this->$np)&&($this->$np instanceof DbRawValue)){\n\t\t\t\t\t\t$values[] = $this->$np->getValue();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif($this->$np===''||$this->$np===null){\n\t\t\t\t\t\t\t$values[] = 'NULL';\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif(!isset($dataTypeNumeric[$np])){\n\t\t\t\t\t\t\t\tif($dataType[$np]=='date'){\n\t\t\t\t\t\t\t\t\t$values[] = $this->_db->getDateUsingFormat($this->$np);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t$values[] = '\\''.addslashes($this->$np).'\\'';\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t$values[] = '\\''.addslashes($this->$np).'\\'';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$conditions = array();\n\t\t\t\tforeach($primaryKeys as $field){\n\t\t\t\t\t$conditions[] = $field.' = \\''.$this->field.'\\'';\n\t\t\t\t}\n\t\t\t\t$pkCondition = join(' AND ', $conditions);\n\t\t\t\t$existRecord = clone $this;\n\t\t\t\t$record = $existRecord->findFirst($pkCondition);\n\t\t\t\t$fields = array();\n\t\t\t\t$values = array();\n\t\t\t\t$nonPrimary = $this->_getNonPrimaryKeyAttributes();\n\t\t\t\tforeach($nonPrimary as $np){\n\t\t\t\t\tif(isset($in[$np])){\n\t\t\t\t\t\t$this->$np = $this->_db->getCurrentDate();\n\t\t\t\t\t}\n\t\t\t\t\tif(is_object($this->$np)){\n\t\t\t\t\t\tif($this->$np instanceof DbRawValue){\n\t\t\t\t\t\t\t$value = $this->$np->getValue();\n\t\t\t\t\t\t\tif($record->$np!=$value){\n\t\t\t\t\t\t\t\t$fields[] = $np;\n\t\t\t\t\t\t\t\t$values[] = $values;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tthrow new ActiveRecordException('El objeto instancia de \"'.get_class($this->$field).'\" en el campo \"'.$field.'\" es muy complejo, debe realizarle un \"cast\" a un tipo de dato escalar antes de almacenarlo');\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif($this->$np===''||$this->$np===null){\n\t\t\t\t\t\t\tif($record->$np!==''&&$record->$np!==null){\n\t\t\t\t\t\t\t\t$fields[] = $np;\n\t\t\t\t\t\t\t\t$values[] = 'NULL';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif(!isset($dataTypeNumeric[$np])){\n\t\t\t\t\t\t\t\tif($dataType[$np]=='date'){\n\t\t\t\t\t\t\t\t\t$value = $this->_db->getDateUsingFormat($this->$np);\n\t\t\t\t\t\t\t\t\tif($record->$np!=$value){\n\t\t\t\t\t\t\t\t\t\t$fields[] = $np;\n\t\t\t\t\t\t\t\t\t\t$values[] = $value;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tif($record->$np!=$this->$np){\n\t\t\t\t\t\t\t\t\t\t$fields[] = $np;\n\t\t\t\t\t\t\t\t\t\t$values[] = \"'\".addslashes($this->$np).\"'\";\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t$success = $this->_db->update($table, $fields, $values, $this->_wherePk);\n\t\t} else {\n\t\t\t$fields = array();\n\t\t\t$values = array();\n\t\t\t$attributes = $this->getAttributes();\n\t\t\tforeach($attributes as $field){\n\t\t\t\tif($field!='id'){\n\t\t\t\t\tif(isset($at[$field])){\n\t\t\t\t\t\tif($this->$field==null||$this->$field===\"\"){\n\t\t\t\t\t\t\t$this->$field = $this->_db->getCurrentDate();\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif(isset($in[$field])){\n\t\t\t\t\t\t\t$this->$field = new DbRawValue('NULL');\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t$fields[] = $field;\n\t\t\t\t\tif(is_object($this->$field)){\n\t\t\t\t\t\tif($this->$field instanceof DbRawValue){\n\t\t\t\t\t\t\t$values[] = $this->$field->getValue();\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tthrow new ActiveRecordException('El objeto instancia de \"'.get_class($this->$field).'\" en el campo \"'.$field.'\" es muy complejo, debe realizarle un \"cast\" a un tipo de dato escalar antes de almacenarlo');\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif(isset($dataTypeNumeric[$field])||$this->$field=='NULL'){\n\t\t\t\t\t\t\tif($this->$field===''||$this->$field===null){\n\t\t\t\t\t\t\t\t$values[] = 'NULL';\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t$values[] = addslashes($this->$field);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif($dataType[$field]=='date'){\n\t\t\t\t\t\t\t\tif($this->$field===null||$this->$field===''){\n\t\t\t\t\t\t\t\t\t$values[] = 'NULL';\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t$values[] = $this->_db->getDateUsingFormat(addslashes($this->$field));\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tif($this->$field===null||$this->$field===''){\n\t\t\t\t\t\t\t\t\t$values[] = 'NULL';\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tif($magicQuotesRuntime==true){\n\t\t\t\t\t\t\t\t\t\t$values[] = \"'\".$this->$field.\"'\";\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t$values[] = \"'\".addslashes($this->$field).\"'\";\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t$sequenceName = '';\n\t\t\tif($generator===null){\n\t\t\t\tif(count($primaryKeys)==1){\n\t\t\t\t\t// Hay que buscar la columna identidad aqui!\n\t\t\t\t\tif(!isset($this->id)||!$this->id){\n\t\t\t\t\t\tif(method_exists($this, 'sequenceName')){\n\t\t\t\t\t\t\t$sequenceName = $this->sequenceName();\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$identityValue = $this->_db->getRequiredSequence($this->_source, $primaryKeys[0], $sequenceName);\n\t\t\t\t\t\tif($identityValue!==false){\n\t\t\t\t\t\t\t$fields[] = 'id';\n\t\t\t\t\t\t\t$values[] = $identityValue;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif(isset($this->id)){\n\t\t\t\t\t\t\t$fields[] = 'id';\n\t\t\t\t\t\t\t$values[] = $this->id;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t$success = $this->_db->insert($table, $values, $fields);\n\t\t}\n\t\tif($this->_db->isUnderTransaction()==false){\n\t\t\tif($this->_db->getHaveAutoCommit()==true){\n\t\t\t\t$this->_db->commit();\n\t\t\t}\n\t\t}\n\t\tif($success){\n\t\t\tif($exists==true){\n\t\t\t\t$this->_callEvent('afterUpdate');\n\t\t\t} else {\n\t\t\t\tif($generator===null){\n\t\t\t\t\tif(count($primaryKeys)==1){\n\t\t\t\t\t\tif(isset($dataTypeNumeric[$primaryKeys[0]])){\n\t\t\t\t\t\t $lastId = $this->_db->lastInsertId($table, $primaryKeys[0], $sequenceName);\n\t\t\t\t\t\t if($lastId>0){\n\t\t\t\t\t\t\t $this->{$primaryKeys[0]} = $lastId;\n\t\t\t\t\t\t\t\t$this->findFirst($lastId);\n\t\t\t\t\t\t }\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t//Actualiza el consecutivo para algunos generadores\n\t\t\t\t\t$generator->updateConsecutive($this);\n\t\t\t\t}\n\t\t\t\t$this->_callEvent('afterCreate');\n\t\t\t}\n\t\t\t$this->_callEvent('afterSave');\n\t\t\treturn $success;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}",
"public function save()\n {\n $db = DatabaseUtil::db_connect($this->database);\n $db->query('update ' . $this->table . 'set ' . $this->column . ' = ' . $this->value . ' where ID=' . $this->ID);\n $db->close();\n }",
"public function save()\n {\n // that is already in this database using the current IDs in this \"where\"\n // clause to only update this model. Otherwise, we'll just insert them.\n if ($this->exists) {\n $saved = $this->newBuilder()->where('_id', $this->convertToMongoId($this->attributes['_id']))->update($this->attributes);\n }\n // If the model is brand new, we'll insert it into our database and set the\n // ID attribute on the model to the value of the newly inserted row's ID\n // which is typically an auto-increment value managed by the database.\n else {\n $saved = $this->newBuilder()->insert($this->attributes);\n }\n\n // TODO: fill() attributes will new or updated values.\n\n return $saved;\n }",
"public function commit() {\n\t$idAvailable = \\is_numeric($this->getId());\n\t//We're checking if the id is available and it's marked for delete. If not, we need to check if the id is available.\n\t//Finally, we need to make sure it hasn't been marked for delete. if it has and there's no id, nothing needs to be\n\t//done.\n\tif ($idAvailable && $this->_markForDelete) {\n\t $this->delete();\n\t}\n\telse if ($idAvailable) {\n\t $this->update();\n\t}\n\telse if (!$this->_markForDelete) {\n\t $this->insert();\n\t}\n }",
"public function save(){\n return isset($this->id) ? $this->update() : $this->create();\n \n }",
"public function save() {\n\n return isset($this->id) ? $this->update() : $this->create();\n }",
"public function save($obj)\r\n {\r\n $params = array(\r\n \"property1\" => $obj->getProperty1(),\r\n \"property2\" => $obj->getProperty2()\r\n );\r\n $pk = (int) $obj->getId();\r\n if($pk > 0){\r\n $this->getTable()->update($params, array(\"id\" => $pk));\r\n }else{\r\n $pk = $this->getTable()->insert($params);\r\n $obj->setId($pk);\r\n }\r\n }",
"public function save() {\n\t\treturn isset($this->id) ? $this->update() : $this->create();\n\t}",
"public function save() {\n\t\treturn isset($this->id) ? $this->update() : $this->create();\n\t}",
"public function updateAssociatedRecords()\n\t{\n\t\t$fkObject = $this->getContext()->getPropertyValue();\n\t\t$source = $this->getSourceRecord();\n\t\t$fkeys = $this->findForeignKeys($fkObject, $source);\n\t\tforeach($fkeys as $fKey => $srcKey)\n\t\t\t$fkObject->setColumnValue($fKey, $source->getColumnValue($srcKey));\n\t\treturn $fkObject->save();\n\t}",
"public function save(){\n global $wpdb;\n $table_name = $wpdb->prefix.static::$_table;\n \n $data = [];\n $pk = $this->getPk();\n foreach($this->_datas as $key => $value){\n if($key!=$pk && in_array($key, static::$_fields)){\n $data[$key] = $value.'';\n }\n }\n \n if( isset( $this->$pk ) ){\n // Update row\n $wpdb->update(\n $table_name,\n $data,\n [$pk=>$this->$pk]\n );\n }else{\n // Insert row\n $wpdb->insert(\n $table_name,\n $data\n );\n $this->$pk = $wpdb->insert_id;\n }\n \n return $this;\n }",
"private function saveDb()\n\t{\n\t\t//format our sql statements w/ the valid fields\n\t\t$fields = array();\n\t\t\n\t\t//loop thru all our dirty fields.\n\t\tforeach ($this->dirtyFields AS $key => $foo)\n\t\t{\n\t\t\t//get our value.\n\t\t\tif (isset($this->data[$key]) && $key != 'id')\n\t\t\t{\n\t\t\t\t$val = $this->data[$key];\n\n\t\t\t\t//slashes replacement..\n\t\t\t\t$val = str_replace(\"\\\\\\\\\", \"\\\\\", $val);\n\t\t\t\t$val = str_replace(\"\\'\", \"'\", $val);\n\t\t\t\t$val = str_replace(\"\\\\\\\"\", \"\\\"\", $val);\n\n\t\t\t\t//add it if we have it...\n\t\t\t\t$fields[] = \"`$key` = '\" . addslashes($val) . \"'\";\n\t\t\t}\n\t\t}\n\t\t\n\t\t//update if we have an id....\n\t\tif (count($fields))\n\t\t{\n\t\t\t//now make our array\n\t\t\t$sqlFields = implode(\",\\n\", $fields) . \"\\n\";\n\t\t\t\n\t\t\t//update it?\n\t\t\tif ($this->id)\n\t\t\t{\n\t\t\t\t$sql = \"UPDATE $this->tableName SET\\n\";\n\t\t\t\t$sql .= $sqlFields;\n\t\t\t\t$sql .= \"WHERE id = '$this->id'\\n\";\n\t\t\t\t$sql .= \"LIMIT 1\";\n\n\t\t\t\tdb()->execute($sql);\n\t\t\t}\n\t\t\t//otherwise insert it...\n\t\t\telse\n\t\t\t{\n\t\t\t\t$sql = \"INSERT INTO $this->tableName SET\\n\";\n\t\t\t\t$sql .= $sqlFields;\n\n\t\t\t\t$this->id = db()->insert($sql);\n\t\t\t}\n\t\t}\n\t}",
"public function save($object = null) {\n if ($object != null) {\n try {\n if ($object->getId() > 0) {\n //return $this->_update($object);\n $where = $this->getAdapter()->quoteInto('objid = ?', $object->getId());\n return $this->update($this->_preparePersistData($object), $where);\n } else {\n //return $this->_insert($object);\n return $this->insert($this->_preparePersistData($object));\n }\n } catch (Exception $e) {\n throw $e;\n }\n } else {\n throw new Agana_Exception('Cannont persist a null object');\n }\n }",
"public function save($save_related = TRUE)\n\t{\n\t\t$meta = $this->meta();\n\t\t\n\t\tif ($meta->validate_on_save)\n\t\t{\n\t\t\t$this->validate();\n\t\t}\n\t\t\n\t\t// Stuff that will be inserted\n\t\t$values = array();\n\t\t\n\t\t// These will be processed later\n\t\t$relations = array();\n\t\t\n\t\t// Run through the main table data\n\t\tforeach($meta->fields as $column => $field)\n\t\t{\t\t\t\n\t\t\t// Only add actual columns\n\t\t\tif ($field->in_db)\n\t\t\t{\t\n\t\t\t\tif (array_key_exists($column, $this->_changed))\n\t\t\t\t{\n\t\t\t\t\t$this->_original[$column] = $values[$field->column] = $field->save($this, $this->_changed[$column]);\n\t\t\t\t}\n\t\t\t\t// Set default data. Careful not to override unchanged data!\n\t\t\t\telse if ($this->_original[$column] == $meta->defaults[$column] && !$field->primary)\n\t\t\t\t{\n\t\t\t\t\t$this->_original[$column] = $values[$field->column] = $field->save($this, $field->default);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if ($field instanceof Jelly_Behavior_Field_Saveable)\n\t\t\t{\n\t\t\t\t$relations[$column] = $field;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Remove the primary key if it's empty, SQLite accepts it but \n\t\t// most other databases won't if it's going to auto-increment\n\t\t// It is often inadvertently set by validate() when inserting\n\t\tif (empty($values[$meta->primary_key]))\n\t\t{\n\t\t\tunset($values[$meta->primary_key]);\n\t\t\tunset($this->_changed[$meta->primary_key]);\t\n\t\t}\n\t\t\n\t\t// Set this just in case it doesn't change with the insert/update\n\t\t$id = $this->id();\n\t\t\n\t\t// Check if we have a loaded object, in which case it's an update\n\t\tif ($this->_loaded)\n\t\t{\n\t\t\t// Do we even have to update anything in the main table?\n\t\t\tif ($values)\n\t\t\t{\n\t\t\t\tDB::update($meta->table)\n\t\t\t\t\t->set($values)\n\t\t\t\t\t->where($this->alias($meta->primary_key), '=', $this->id())\n\t\t\t\t\t->execute($meta->db);\n\n\t\t\t\t// Has id changed? \n\t\t\t\tif (isset($values[$meta->primary_key]))\n\t\t\t\t{\n\t\t\t\t\t$id = $values[$meta->primary_key];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tlist($id) = DB::insert($meta->table)\n\t\t\t\t\t\t->columns(array_keys($values))\n\t\t\t\t\t\t->values($values)\n\t\t\t\t\t\t->execute($meta->db);\n\t\t}\n\t\t\n\t\t// Update the primary key\n\t\t$this->_original[$meta->primary_key] = $id;\n\t\t\n\t\tif ($save_related)\n\t\t{\n\t\t\t// Load the relations\n\t\t\tforeach($relations as $column => $field)\n\t\t\t{\t\t\t\t\n\t\t\t\tif (array_key_exists($column, $this->_changed))\n\t\t\t\t{\n\t\t\t\t\t$this->_original[$column] = $field->save($this, $this->_changed[$column]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// We're good!\n\t\t$this->_loaded = $this->_saved = TRUE;\n\t\t$this->_changed = array();\n\t\t\n\t\t// Delete the last queries\n\t\t$this->end();\n\t\t\n\t\treturn $this;\n\t}",
"public function update(){\n if(empty($this->attributes)){\n return;\n }\n if ($this->isAutoInc) {\n $fieldsList = \" SET \";\n foreach ($this->attributes as $column => $value) {\n $fieldsList.=$column.\"=\".'\\''.$value.'\\''.\", \";\n }\n $fieldsList = str_last_replace(\", \", \"\", $fieldsList);\n $sqlQuery = \"UPDATE \".$this->table.$fieldsList.\" WHERE \".$this->idName.\"=\".$this->attributes[$this->idName];\n\n Db::instance()->execute($sqlQuery,$this->attributes);\n }\n }",
"public function save()\n {\n\t\t\tforeach($this->items as $index=>$data)\n\t\t\t{\n\t \t//if exists, update\n\t\t\t\tif($data[\"object\"])\n\t\t\t\t{\n\t\t\t\t\t$data[\"object\"]->update(array(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'description'=>$data[\"description\"],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'producttype_id'=>$data[\"producttype\"]->getId(),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'category1'=>$data[\"category1\"],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'category2'=>$data[\"category2\"],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'category3'=>$data[\"category3\"],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'category4'=>$data[\"category4\"],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'category5'=>$data[\"category5\"],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'category6'=>$data[\"category6\"],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'category7'=>$data[\"category7\"],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'category8'=>$data[\"category8\"],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'category9'=>$data[\"category9\"],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'category10'=>$data[\"category10\"],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t));\n\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$data[\"object\"]=MyModel::create(\"Product\",array(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'name'=>$data[\"name\"],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'description'=>$data[\"description\"],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'producttype_id'=>$this->main->producttypedata->items[$data[\"producttypename\"]][\"object\"]->getId(),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'category1'=>$data[\"category1\"],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'category2'=>$data[\"category2\"],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'category3'=>$data[\"category3\"],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'category4'=>$data[\"category4\"],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'category5'=>$data[\"category5\"],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'category6'=>$data[\"category6\"],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'category7'=>$data[\"category7\"],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'category8'=>$data[\"category8\"],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'category9'=>$data[\"category9\"],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'category10'=>$data[\"category10\"],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t));\n\n\t\t\t\t}\n\n\t\t\t}\n }",
"public function update() {\n\t\tTournamentDBClient::update($this);\n\t}",
"protected function doSave(PropelPDO $con)\n\t{\n\t\t$affectedRows = 0; // initialize var to track total num of affected rows\n\t\tif (!$this->alreadyInSave) {\n\t\t\t$this->alreadyInSave = true;\n\n\t\t\tif ($this->isNew() ) {\n\t\t\t\t$this->modifiedColumns[] = UserPeer::ID;\n\t\t\t}\n\n\t\t\t// If this object has been modified, then save it to the database.\n\t\t\tif ($this->isModified()) {\n\t\t\t\tif ($this->isNew()) {\n\t\t\t\t\t$pk = UserPeer::doInsert($this, $con);\n\t\t\t\t\t$affectedRows += 1; // we are assuming that there is only 1 row per doInsert() which\n\t\t\t\t\t\t\t\t\t\t // should always be true here (even though technically\n\t\t\t\t\t\t\t\t\t\t // BasePeer::doInsert() can insert multiple rows).\n\n\t\t\t\t\t$this->setId($pk); //[IMV] update autoincrement primary key\n\n\t\t\t\t\t$this->setNew(false);\n\t\t\t\t} else {\n\t\t\t\t\t$affectedRows += UserPeer::doUpdate($this, $con);\n\t\t\t\t}\n\n\t\t\t\t$this->resetModified(); // [HL] After being saved an object is no longer 'modified'\n\t\t\t}\n\n\t\t\tif ($this->collExperts !== null) {\n\t\t\t\tforeach ($this->collExperts as $referrerFK) {\n\t\t\t\t\tif (!$referrerFK->isDeleted()) {\n\t\t\t\t\t\t$affectedRows += $referrerFK->save($con);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($this->collExpertCategorys !== null) {\n\t\t\t\tforeach ($this->collExpertCategorys as $referrerFK) {\n\t\t\t\t\tif (!$referrerFK->isDeleted()) {\n\t\t\t\t\t\t$affectedRows += $referrerFK->save($con);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($this->collHistorys !== null) {\n\t\t\t\tforeach ($this->collHistorys as $referrerFK) {\n\t\t\t\t\tif (!$referrerFK->isDeleted()) {\n\t\t\t\t\t\t$affectedRows += $referrerFK->save($con);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($this->collItemRatings !== null) {\n\t\t\t\tforeach ($this->collItemRatings as $referrerFK) {\n\t\t\t\t\tif (!$referrerFK->isDeleted()) {\n\t\t\t\t\t\t$affectedRows += $referrerFK->save($con);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($this->collOfferVoucher1s !== null) {\n\t\t\t\tforeach ($this->collOfferVoucher1s as $referrerFK) {\n\t\t\t\t\tif (!$referrerFK->isDeleted()) {\n\t\t\t\t\t\t$affectedRows += $referrerFK->save($con);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($this->collPurchaseDetails !== null) {\n\t\t\t\tforeach ($this->collPurchaseDetails as $referrerFK) {\n\t\t\t\t\tif (!$referrerFK->isDeleted()) {\n\t\t\t\t\t\t$affectedRows += $referrerFK->save($con);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($this->collShoppingCarts !== null) {\n\t\t\t\tforeach ($this->collShoppingCarts as $referrerFK) {\n\t\t\t\t\tif (!$referrerFK->isDeleted()) {\n\t\t\t\t\t\t$affectedRows += $referrerFK->save($con);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($this->collShoutsRelatedByPosterId !== null) {\n\t\t\t\tforeach ($this->collShoutsRelatedByPosterId as $referrerFK) {\n\t\t\t\t\tif (!$referrerFK->isDeleted()) {\n\t\t\t\t\t\t$affectedRows += $referrerFK->save($con);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($this->collShoutsRelatedByRecipientId !== null) {\n\t\t\t\tforeach ($this->collShoutsRelatedByRecipientId as $referrerFK) {\n\t\t\t\t\tif (!$referrerFK->isDeleted()) {\n\t\t\t\t\t\t$affectedRows += $referrerFK->save($con);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($this->collUserAwardss !== null) {\n\t\t\t\tforeach ($this->collUserAwardss as $referrerFK) {\n\t\t\t\t\tif (!$referrerFK->isDeleted()) {\n\t\t\t\t\t\t$affectedRows += $referrerFK->save($con);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($this->singleUserGtalk !== null) {\n\t\t\t\tif (!$this->singleUserGtalk->isDeleted()) {\n\t\t\t\t\t\t$affectedRows += $this->singleUserGtalk->save($con);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($this->singleUserFb !== null) {\n\t\t\t\tif (!$this->singleUserFb->isDeleted()) {\n\t\t\t\t\t\t$affectedRows += $this->singleUserFb->save($con);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($this->collUserRates !== null) {\n\t\t\t\tforeach ($this->collUserRates as $referrerFK) {\n\t\t\t\t\tif (!$referrerFK->isDeleted()) {\n\t\t\t\t\t\t$affectedRows += $referrerFK->save($con);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($this->singleUserTutor !== null) {\n\t\t\t\tif (!$this->singleUserTutor->isDeleted()) {\n\t\t\t\t\t\t$affectedRows += $this->singleUserTutor->save($con);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($this->collUserQuestionTags !== null) {\n\t\t\t\tforeach ($this->collUserQuestionTags as $referrerFK) {\n\t\t\t\t\tif (!$referrerFK->isDeleted()) {\n\t\t\t\t\t\t$affectedRows += $referrerFK->save($con);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($this->collStudentQuestionsRelatedByStudentId !== null) {\n\t\t\t\tforeach ($this->collStudentQuestionsRelatedByStudentId as $referrerFK) {\n\t\t\t\t\tif (!$referrerFK->isDeleted()) {\n\t\t\t\t\t\t$affectedRows += $referrerFK->save($con);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($this->collStudentQuestionsRelatedByTutorId !== null) {\n\t\t\t\tforeach ($this->collStudentQuestionsRelatedByTutorId as $referrerFK) {\n\t\t\t\t\tif (!$referrerFK->isDeleted()) {\n\t\t\t\t\t\t$affectedRows += $referrerFK->save($con);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($this->collWhiteboardSessions !== null) {\n\t\t\t\tforeach ($this->collWhiteboardSessions as $referrerFK) {\n\t\t\t\t\tif (!$referrerFK->isDeleted()) {\n\t\t\t\t\t\t$affectedRows += $referrerFK->save($con);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$this->alreadyInSave = false;\n\n\t\t}\n\t\treturn $affectedRows;\n\t}",
"public function update() {\n if (!$this->id) {\n //echo \"No se tiene referencia al ID del objeto a actulizar.\";\n throw new Exception(\"No se tiene referencia al ID del objeto a actulizar.\");\n }\n\n $sql = \"UPDATE contratos SET numero_contrato=:numero_contrato, objeto_contrato=:objeto_contrato, presupuesto=:presupuesto, fecha_estimada_finalizacion=:fecha_estimada_finalizacion WHERE id=:id\";\n $args = array(\n \":id\" => $this->id,\n \":numero_contrato\" => $this->numeroContrato,\n \":objeto_contrato\" => $this->objetoContrato,\n \":presupuesto\" => $this->presupuesto,\n \":fecha_estimada_finalizacion\" => $this->fechaEstimadaFinalizacion,\n );\n $stmt = $this->executeQuery($sql, $args);\n\n return !$stmt ? false : true;\n }",
"public function save() {\n return isset($this->id) ? $this->update() : $this->create();\n }",
"public function save() {\n\t\tif (!empty($this->originalData)) {\n\t\t\t$query=\"UPDATE \";\t\n\t\t\tfor ($i=0; $i<count($this->originalData); $i++) {\n\t\t\t\tif (!isset($this->modifiedData)) {\n\t\t\t\t\t$this->modifiedData = $this->originalData;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\t$query=\"INSERT INTO \";\n\t\t}\n\t\t$query.=$this->table.' SET ';\n\t\tforeach ($this->modifiedData as $key=>$value) {\n\t\t\t$value = mysqli_real_escape_string($this->connection->connection,$value);\n\t\t\t$query.= '`'.$key .\"`='\".$value.'\\',';\n\t\t}\n\t\t$query = substr($query,0,-1);\n\t\tif (!empty($this->originalData)) {\n\t\t\t$query.=' WHERE '.self::$primaryKey[$this->table].'=\\''.$this->originalData[self::$primaryKey[$this->table]].\"'\";\n\t\t}\n\t\t$this->connection->query($query);\n\t\tif ($this->connection->getError()) {\n\t\t\treturn false;\n\t\t}\n\t\tif (empty($this->originalData)) {\n\t\t\t$this->originalData[self::$primaryKey[$this->table]] = $this->connection->getInsertID();\n\t\t}\n\t\t$this->originalData = array_merge($this->originalData,$this->modifiedData);\n\t\treturn true;\n\t}"
] | [
"0.7089358",
"0.6777712",
"0.66622216",
"0.6579319",
"0.6555837",
"0.64950615",
"0.6494138",
"0.64498883",
"0.63797367",
"0.6355173",
"0.6321682",
"0.631803",
"0.63112974",
"0.6295961",
"0.6267777",
"0.626631",
"0.62629753",
"0.6258791",
"0.6246723",
"0.62094116",
"0.6207008",
"0.6206926",
"0.6196381",
"0.6187407",
"0.61764437",
"0.6143494",
"0.6135578",
"0.613426",
"0.61230594",
"0.6110506",
"0.61035126",
"0.60887337",
"0.6073148",
"0.6068112",
"0.6052219",
"0.6040965",
"0.6023933",
"0.600904",
"0.6000406",
"0.5984893",
"0.596294",
"0.59608525",
"0.59570414",
"0.5950828",
"0.5934616",
"0.59271735",
"0.59208006",
"0.587668",
"0.5876474",
"0.58689004",
"0.58652645",
"0.5862771",
"0.58592135",
"0.5835707",
"0.58329445",
"0.58323985",
"0.58015037",
"0.57959384",
"0.57685876",
"0.5766233",
"0.5760119",
"0.57569635",
"0.5754035",
"0.57454246",
"0.57447207",
"0.57393605",
"0.5737031",
"0.572781",
"0.5723211",
"0.5719641",
"0.5716278",
"0.5710808",
"0.57015544",
"0.5700845",
"0.56955475",
"0.5692811",
"0.56868064",
"0.56847113",
"0.5667654",
"0.5659854",
"0.56598413",
"0.5657679",
"0.56511825",
"0.5643785",
"0.5642078",
"0.56366324",
"0.5635175",
"0.56300163",
"0.56300163",
"0.56182045",
"0.56172407",
"0.5615858",
"0.5613298",
"0.56125903",
"0.5611278",
"0.56112045",
"0.5605642",
"0.5598081",
"0.55976737",
"0.5584994",
"0.5580474"
] | 0.0 | -1 |
doSave() Insert the row in the database. | protected function doInsert(PropelPDO $con)
{
$modifiedColumns = array();
$index = 0;
$this->modifiedColumns[] = OperationPrimesPeer::OP_PRIME_ID;
if (null !== $this->op_prime_id) {
throw new PropelException('Cannot insert a value for auto-increment primary key (' . OperationPrimesPeer::OP_PRIME_ID . ')');
}
// check the columns in natural order for more readable SQL queries
if ($this->isColumnModified(OperationPrimesPeer::OP_PRIME_ID)) {
$modifiedColumns[':p' . $index++] = '`op_prime_id`';
}
if ($this->isColumnModified(OperationPrimesPeer::OP_ID)) {
$modifiedColumns[':p' . $index++] = '`op_id`';
}
if ($this->isColumnModified(OperationPrimesPeer::OP_PRIME_LIBELLE)) {
$modifiedColumns[':p' . $index++] = '`op_prime_libelle`';
}
if ($this->isColumnModified(OperationPrimesPeer::OP_PRIME_NUMERO)) {
$modifiedColumns[':p' . $index++] = '`op_prime_numero`';
}
if ($this->isColumnModified(OperationPrimesPeer::GDL_ART_ID)) {
$modifiedColumns[':p' . $index++] = '`gdl_art_id`';
}
if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_CURRENCY_ID)) {
$modifiedColumns[':p' . $index++] = '`operation_prime_currency_id`';
}
if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_TYPE_ID)) {
$modifiedColumns[':p' . $index++] = '`operation_prime_r_reward_type_id`';
}
if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_EXPEDITION_MODE_ID)) {
$modifiedColumns[':p' . $index++] = '`operation_prime_r_reward_expedition_mode_id`';
}
if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_TRANSPORTER_ID)) {
$modifiedColumns[':p' . $index++] = '`operation_prime_r_reward_transporter_id`';
}
if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_FIXED_AMOUNT)) {
$modifiedColumns[':p' . $index++] = '`operation_prime_fixed_amount`';
}
if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_PRODUCT_PRICE_POURCENTAGE)) {
$modifiedColumns[':p' . $index++] = '`operation_prime_product_price_pourcentage`';
}
if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_MAXIMUM_AMOUNT)) {
$modifiedColumns[':p' . $index++] = '`operation_prime_maximum_amount`';
}
$sql = sprintf(
'INSERT INTO `operation_primes` (%s) VALUES (%s)',
implode(', ', $modifiedColumns),
implode(', ', array_keys($modifiedColumns))
);
try {
$stmt = $con->prepare($sql);
foreach ($modifiedColumns as $identifier => $columnName) {
switch ($columnName) {
case '`op_prime_id`':
$stmt->bindValue($identifier, $this->op_prime_id, PDO::PARAM_INT);
break;
case '`op_id`':
$stmt->bindValue($identifier, $this->op_id, PDO::PARAM_INT);
break;
case '`op_prime_libelle`':
$stmt->bindValue($identifier, $this->op_prime_libelle, PDO::PARAM_STR);
break;
case '`op_prime_numero`':
$stmt->bindValue($identifier, $this->op_prime_numero, PDO::PARAM_INT);
break;
case '`gdl_art_id`':
$stmt->bindValue($identifier, $this->gdl_art_id, PDO::PARAM_INT);
break;
case '`operation_prime_currency_id`':
$stmt->bindValue($identifier, $this->operation_prime_currency_id, PDO::PARAM_INT);
break;
case '`operation_prime_r_reward_type_id`':
$stmt->bindValue($identifier, $this->operation_prime_r_reward_type_id, PDO::PARAM_INT);
break;
case '`operation_prime_r_reward_expedition_mode_id`':
$stmt->bindValue($identifier, $this->operation_prime_r_reward_expedition_mode_id, PDO::PARAM_INT);
break;
case '`operation_prime_r_reward_transporter_id`':
$stmt->bindValue($identifier, $this->operation_prime_r_reward_transporter_id, PDO::PARAM_INT);
break;
case '`operation_prime_fixed_amount`':
$stmt->bindValue($identifier, $this->operation_prime_fixed_amount, PDO::PARAM_INT);
break;
case '`operation_prime_product_price_pourcentage`':
$stmt->bindValue($identifier, $this->operation_prime_product_price_pourcentage, PDO::PARAM_INT);
break;
case '`operation_prime_maximum_amount`':
$stmt->bindValue($identifier, $this->operation_prime_maximum_amount, PDO::PARAM_INT);
break;
}
}
$stmt->execute();
} catch (Exception $e) {
Propel::log($e->getMessage(), Propel::LOG_ERR);
throw new PropelException(sprintf('Unable to execute INSERT statement [%s]', $sql), $e);
}
try {
$pk = $con->lastInsertId();
} catch (Exception $e) {
throw new PropelException('Unable to get autoincrement id.', $e);
}
$this->setOpPrimeId($pk);
$this->setNew(false);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function save()\n {\n if ($this->id) {\n $this->update();\n } else {\n $this->id = $this->insert();\n }\n }",
"public function saveRow( $row );",
"public function save()\n {\n if ($this->id === null) {\n $this->insert();\n } else {\n $this->update();\n }\n }",
"protected function saveInsert()\n {\n }",
"function save() {\n\n\t\t// calls generic ORM save (insert or update)\n\t\tparent::save();\n\n\t}",
"public function save()\n {\n $DB = DB::singleton(dsn());\n\n if ( $this->update ) {\n $SQL = SQL::newUpdate('entry');\n foreach ( $this->columns as $column ) {\n $SQL->addUpdate('entry_' . $column, $this->{$column});\n }\n $SQL->addWhereOpr('entry_id', $this->id);\n $SQL->addWhereOpr('entry_blog_id', $this->blog_id);\n $DB->query($SQL->get(dsn()), 'exec');\n } else {\n $SQL = SQL::newInsert('entry');\n foreach ( $this->columns as $column ) {\n $SQL->addInsert('entry_' . $column, $this->{$column});\n }\n $DB->query($SQL->get(dsn()), 'exec');\n }\n\n EntryHelper::saveColumn($this->units, $this->id, $this->blog_id);\n Common::saveField('eid', $this->id, $this->fields);\n Common::saveFulltext('eid', $this->id, Common::loadEntryFulltext($this->id));\n }",
"public function save()\n { \n return $this->checkForRows() ? $this->updateRow() : $this->insertRow();\n }",
"function save(){\n\t\t// returns the item's id if successful\n\t\tif($this->beforesave()){\n\t\t\t$query = ($this->id?\"UPDATE \":\"INSERT INTO \").$this->tablename.\" SET \";\n\t\t\t$qvalues = \"\";\n\t\t\tforeach($this->dbvariables as $key){\n\t\t\t\t$qvalues .= ($qvalues == \"\"?\"\":\", \").$key.\"='\".trim(addslashes($this->$key)).\"'\";\n\t\t\t}\n\t\t\t$query .= $qvalues;\n\t\t\tif($this->id){\n\t\t\t\t$query .= \" WHERE id=\".$this->id;\n\t\t\t}else{\n\t\t\t\t$query .= \", item_order=\".get_neworder($this->tablename, $this->neworder_where());\n\t\t\t}\n\t\t\tmy_debug(\"Attempting query: \".$query,__FILE__,__LINE__,\"green\");\n\t\t\tif(mysql_query($query)){\t\t\t\t\n\t\t\t\tif(!$this->id && mysql_insert_id())\t$this->id = mysql_insert_id();\n\t\t\t\t$this->onsave();\n\t\t\t\treturn $this->id;\n\t\t\t}else{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t}",
"public function save() {\r\n $dateNow = date('Y-m-d H:i:s', time());\r\n $this->id = (int) $this->id;\r\n \r\n if (!empty($this->id)) {\r\n //update case\r\n if ($this->_update()) {\r\n return true;\r\n }\r\n }\r\n else {\r\n //Insert case\r\n if ($this->_insert()) {\r\n return true;\r\n }\r\n }\r\n }",
"public function save()\n {\n $pdo = $this->getDbConnection();\n $valuesRow = $this->prepareValuesRow();\n\n $pdo->exec(\"REPLACE INTO {$this->dbTable} (`key`, `value`) VALUES {$valuesRow}\");\n }",
"public\tfunction\tsave()\n\t\t{\n\t\t}",
"public function save(){\r\n\t\tif ($this->new){\r\n\t\t\treturn $this->insert();\r\n\t\t} else {\r\n\t\t\treturn $this->update();\r\n\t\t}\r\n\t}",
"public function save() \n {\n\t\t$this->setLastUpdateTime(date(MYSQL_DATETIME_FORMAT));\n\n\t\tif($this->getId() ) {\n\t\t\treturn $this->_update();\n\t\t} else {\n\t\t\treturn $this->_insert();\n\t\t}\n\t}",
"public function save() {\n if ($this->id) {\n return $this->update();\n } else {\n return $this->insert();\n }\n }",
"public function save()\n\t{\n\t\t$this->copyAttributesToValues() ;\n\t\tif( $this->factory )\n\t\t{\n\t\t\tswitch( $this->todo )\n\t\t\t{\n\t\t\t\tcase 1: // Insert\n\t\t\t\t\tif( $this->factory->insertObjectIntoDB( $this ) ) $this->state = \"inserted\" ;\n\t\t\t\t\telse $this->state = \"dberror\" ;\n\t\t\t\t\tbreak ;\n\t\t\t\tcase 2: // update\n\t\t\t\t\tif( $this->factory->updateObjectIntoDB( $this ) ) $this->state = \"updated\" ;\n\t\t\t\t\telse $this->state = \"dberror\" ;\n\t\t\t\t\tbreak ;\n\t\t\t\tcase 3: // delete\n\t\t\t\t\tif( $this->factory->deleteObjectIntoDB( $this ) ) $this->state = \"deleted\" ;\n\t\t\t\t\telse $this->state = \"dberror\" ;\n\t\t\t\t\tbreak ;\n\t\t\t}\n\t\t}\n\t}",
"public function save(){\n\t\t// If primary key is set in model, run an update instead.\n\t\t$primaryKey = $this->getPrimaryKey();\n\t\tif(isset($this->{$primaryKey})){\n\t\t\treturn $this->update();\n\t\t}\n\t\t$this->beforeSave();\n\t\t$tableName = $this->tableName();\n\t\t$fields = $this->fields();\n\t\t// Remove fields set as ignored by rules validation.\n\t\t$fields = $this->removeIgnored($fields);\n\t\t// Create PDO placeholders.\n\t\t$params = array_map(fn($name) => ':'.$name, $fields);\n\t\t// Populate statement by imploding the arrays.\n\t\t$statement = $this->db->prepare('INSERT INTO ' . $tableName . ' ( ' . implode(', ', $fields) . ') VALUES (' . implode(', ', $params) . ')');\n\t\t// Bind values to placeholders.\n\t\tforeach($fields as $field){\n\t\t\t$this->binder($statement, ':' . $field, $this->{$field});\n\t\t}\n\t\tif($statement->execute()){\n\t\t\t$this->afterSave();\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}",
"public function save(){\n\t\t\n\t\tif(!isset($this->data[$this->primary_key])){\n\t\t\t$success = $this->db\n\t\t\t\t->set($this->data)\n\t\t\t\t->insert($this->table);\n\n\t\t\t$this->data[$this->primary_key] = $this->db->last_insert_id;\n\t\t}else{\n\t\t\t$success = $this->db\n\t\t\t\t->set($this->data)\n\t\t\t\t->where($this->primary_key, $this->data[$this->primary_key])\n\t\t\t\t->update($this->table);\n\t\t}\n\n\t\treturn $success;\n\t}",
"public function __doSave()\n {\n $_SESSION[\"logger\"]->info(get_class($this) . '->__doSave');\n $_SESSION[\"logger\"]->info($this->toDebugStr());\n\n if (!$this->__exists()) {\n $strSQL = $this->getInsertSql();\n } else {\n $strSQL = $this->getUpdateSql();\n }\n $result = $this->query($strSQL);\n\n return $result;\n }",
"public function save(){\n $tableName = $this->tableName();\n $attributes = $this->attributes();\n $params = array_map(fn($attr) => \":$attr\", $attributes);\n $statement = self::prepare(\"INSERT INTO $tableName (\".implode(',', $attributes).\") \n VALUES (\".implode(',', $params).\")\");\n \n foreach($attributes as $attribute){\n $statement->bindValue(\":$attribute\", $this->{$attribute});\n }\n \n $statement->execute();\n return true;\n }",
"public function save() {\n $db = Db::instance();\n $db_properties = array(\n 'action' => $this->action,\n 'url_mod' => $this->url_mod,\n 'description' => $this->description,\n 'target_id' => $this->target_id,\n 'target_name' => $this->target_name,\n 'creator_id' => $this->creator_id,\n 'creator_username' => $this->creator_username\n );\n $db->store($this, __CLASS__, self::DB_TABLE, $db_properties);\n }",
"public function save() \n\t{\n\t\tif (isset($this->id)) {\t\n\t\t\n\t\t\t// Return update when id exists\n\t\t\treturn $this->update();\n\t\t\t\n\t\t} else {\n\t\t\n\t\t\t// Return insert when id does not exists\n\t\t\treturn $this->insert();\n\t\t}\n\t}",
"function save()\n {\n $this->form_validation->set_rules($this->_get_rules());\n\n if($this->form_validation->run()){\n $entity = $this->_from_form();\n $this->data['save'] = $this->model->insert_entry($entity);\n $this->data['action_performed'] = 'save';\n $this->success($entity);\n }\n else {\n $this->create();\n }\n }",
"public function save() {\n $db = Db::instance();\n // omit id and any timestamps\n $db_properties = array(\n 'author_id' => $this->author_id,\n 'clothingname' => $this->clothingname,\n 'clothingtype' => $this->clothingtype,\n 'tempmin' => $this->tempmin,\n 'tempmax' => $this->tempmax\n );\n $db->store($this, __CLASS__, self::DB_TABLE, $db_properties);\n }",
"public function save()\n {\n $entities = $this->entities;\n Database::getInstance()->doTransaction(\n function() use ($entities)\n {\n foreach ($entities as $entity)\n {\n if ($entity->getMarkedAsDeleted())\n {\n $entity->delete();\n } \n else if ($entity->getMarkedAsUpdated())\n {\n $entity->saveWithDetails();\n }\n }\n }\n );\n }",
"public function save()\n {\n $this->hasTableName();\n $pk = $this->pk;\n $condition = \"\";\n if ($this->isNew) {\n $sql = \"INSERT INTO \" . $this->table_name . \" SET \";\n $update = '';\n } else {\n if (!isset($this->$pk))\n throw new Exception('Update em objeto sem chave definida', 403);\n\n $sql = \"UPDATE \" . $this->table_name . \" SET \";\n $update = \" WHERE `\" . $this->pk . \"` = '\" . $this->$pk . \"'\";\n }\n foreach ($this->rules() as $key => $validation) {\n if ($this->validateField($key, $validation) && isset($this->$key) && $this->$key != \"\") {\n $sql .= \" `\" . $key . \"` = '\" . $this->$key . \"',\";\n $condition .= \" `\" . $key . \"` = '\" . $this->$key . \"' AND\";\n }\n }\n if (!$this->getErrors()) {\n $sql = substr($sql, 0, -1) . $update;\n if (Database::dbactionf($sql)) {\n if ($this->isNew) {\n $this->$pk = Database::lastID();\n $this->persisted();\n }\n return true;\n }\n }\n return false;\n }",
"public function save(){\n $tableName = $this->tableName();\n $attributes = $this->attributes();\n $params = array_map(fn($attr)=> \":$attr\", $attributes);\n\n $st = self::prepare(\n \"INSERT INTO $tableName (\".implode(',', $attributes).\")\n VALUES(\".implode(',', $params).\")\"\n );\n\n foreach($attributes as $attribute){\n $st->bindValue(\":$attribute\", $this->{$attribute});\n }\n\n $st->execute();\n return true;\n }",
"public function save()\n {\n $data = $this->getSaveData();\n $errorString = '<h5 class=\"alert-heading\">Can\\'t save ' . $this->entityName . ' because of the following problems:</h5>';\n\n $errors = $this->checkRequiredColumns( $data );\n if ( !empty( $errors ) ) {\n return $this->addError( $errorString . HTMLTags::getListGroup( $errors ) );\n }\n\n if ( defined( 'DEBUG' ) && DEBUG === true ) {\n $dataToSave = !empty( $data ) ? $this->getDataHTMLTable( $data ) : 'None';\n $this->messages->add(\n 'Entity - ' . $this->entityName\n . '<br>Changed - ' . print_r( $this->changed, true )\n . '<br>Data to save - ' . $dataToSave\n . '<br>All column properties - ' . $dataToSave,\n 'info'\n );\n }\n $errors = $this->healthCheck();\n if ( !empty( $errors ) ) {\n return $this->addError( $errorString . HTMLTags::getListGroup( $errors ) );\n }\n if ( $this->exists ) {\n return $this->updateDBRow( $data );\n }\n $addRow = $this->addDBRow( $data );\n if ( is_int( $addRow ) ) {\n $this->id = $addRow;\n $this->exists = true;\n }\n return $addRow;\n }",
"public function save()\n {\n $db = DatabaseUtil::db_connect($this->database);\n $db->query('update ' . $this->table . 'set ' . $this->column . ' = ' . $this->value . ' where ID=' . $this->ID);\n $db->close();\n }",
"public function save() : bool {\n\t\t// Check if record is new\n\t\t$isNew = isset($this->{$this->primaryKey}) && $this->{$this->primaryKey} ? false : true;\n\n\t\tif ($isNew) {\n\t\t\t// Insert\n\t\t\t$this->database->query('INSERT INTO ' . $this->tableNamePrefixed, $this->getValuesForDatabase());\n\t\t\tif ($this->database->getInsertId()) {\n\t\t\t\t$this->{$this->primaryKey} = $this->database->getInsertId();\n\t\t\t}\n\t\t} else {\n\t\t\t// Update\n\t\t\t$this->database->query(\n\t\t\t\t'UPDATE ' . $this->tableNamePrefixed . ' SET',\n\t\t\t\t$this->getValuesForDatabase(),\n\t\t\t\t'WHERE ' . $this->primaryKey . ' = ?', $this->{$this->primaryKey}\n\t\t\t);\n\t\t}\n\n\t\treturn true;\n\t}",
"public function save()\n {\n $this->checkForNecessaryProperties();\n\n $this->update($this->getCurrentId(), $this->data);\n }",
"public function save(PDO $dbh);",
"public function save(){\n if($this->id == 0) {\n // Object is new and needs to be created\n return $this->insert();\n }\n }",
"public function save()\r\n {\r\n if( empty($this->dirty) ) return true;\r\n \r\n $pkName = $this->pkName();\r\n //is it an update?\r\n if( isset($this->data[$pkName]) ){\r\n $this->table->update($this->dirty, \"{$pkName}=?\", array($this->data[$pkName]) );\r\n $merged_data[$pkName] = $this->data[$pkName];\r\n } else {\r\n //it's an insert\r\n $merged_data = array_merge(\r\n $this->array_diff_schema($this->dirty),\r\n $this->array_diff_schema($this->data)\r\n );\r\n $this->table->insert($merged_data);\r\n $pk = $this->pkName();\r\n if( !isset($merged_data[$pk]) )\r\n $merged_data[$pk] = $this->table->lastInsertId();\r\n }\r\n $this->reset($merged_data);\r\n return true;\r\n }",
"public function save()\n {\n\n // generate all column's sql query\n $column_names = '';\n $column_values = '';\n foreach ($this->columns as $field_name => $column_obj)\n {\n if ($column_obj->columnName === null) {\n $column_names .= $field_name.', ';\n } else {\n $column_names .= $column_obj->columnName.', ';\n }\n $column_values .= $column_obj->generateValueForSQL().', ';\n }\n $column_names = substr($column_names, 0, -1);\n $column_values = substr($column_values, 0, -1);\n $this_table_name = $this->table_name;\n $this_id = $this->id;\n\n if ($this->id === 0) {\n // This object is not saved yet.\n $query = 'INSERT INTO $this_table_name ($column_names) VALUES ($column_values);';\n // Execute query\n } else {\n // This object is on the DB.\n $query = 'INSERT INTO $this_table_name ($column_names) VALUES ($column_values) WHERE id=$this_id;';\n // Execute query\n }\n\n mysql_run_query($query);\n\n }",
"public function saveToDB()\n {\n }",
"public function save()\n {\n if ($this->_state == 0) {\n // Insert\n $result = static::getLink()->insert(Structure::getTable($this)->getFullTableName(), $this->getColumns(), $this->getColumns(true));\n\n // Primary Key\n $this->_id = static::getLink()->lastInsertId();\n\n /** @var Column $primaryKey */\n $primaryKey = Structure::getTablePrimaryKey($this);\n\n if ($primaryKey->autoIncrement) {\n $this->{$primaryKey->getPropertyField()} = $this->_id;\n }\n\n $this->_state = 1;\n } else {\n // Update\n $result = static::getLink()->update(Structure::getTable($this)->getFullTableName(), $this->getColumns(), $this->getPrimaryKey(),\n array_merge($this->getColumns(true), $this->getPrimaryKey(true)));\n }\n\n return $result;\n }",
"public function save() {\n $db = self::getDbConnection();\n $table = static::getTable();\n $data = get_object_vars($this);\n if ($table == 'posts') {\n $data['name'] = Service::get('session')->userEmail;\n }\n\n if (isset($data['id'])) {\n $query = $db->prepare($this->getUpdateString($data, $table));\n } else {\n $query = $db->prepare($this->getInsertString($data, $table));\n }\n\n if (!$query->execute()) {\n throw new DatabaseException('Cant save object');\n }\n }",
"public function store()\n {\n if( $this->isPersistent() )\n {\n $this->update();\n }\n else\n {\n $this->insert();\n }\n }",
"public function save(){\n\t\t$db = static::getDatabaseConnection();\n\t\t//Find the columns from the model\n\t\t$columns = static::$columns;\n\n\t\t//because ID is AI we dont want to put a value in it\n\t\tunset($columns[array_search('id', $columns)]);\n\t\t//Same with timestamp\n\t\tunset($columns[array_search('timestamp', $columns)]);\n\n\t\t//Create an insert query which gets linked to the database\n\t\t$query = \"INSERT INTO \" . static::$tableName . \" (\". implode(\",\", $columns) . \") VALUES (\";\n\n\t\t//create a variable called insesrtcols. This is where we put the values\n\t\t$insertcols = [];\n\t\t//For each of the columns in the columns array, add that column into the insert cols array, and seperate it with a :\n\t\tforeach ($columns as $column) {\n\t\t\tarray_push($insertcols, \":\" . $column);\n\t\t}\n\t\t//turn the insertcols array into 1 string and put a , between each entry\n\t\t$query .= implode(\",\", $insertcols);\n\t\t//close the query\n\t\t$query .= \")\";\n\n\t\t//Prepare the query\n\t\t$statement = $db->prepare($query);\n\n\t\t//Foreach of the columns run this function\n\t\tforeach ($columns as $column) {\n\t\t\t//Attach the value to each of the columns\n\t\t\t//Hash the password\n\t\t\tif($column === 'password'){\n\t\t\t\t$this->$column = password_hash($this->$column, PASSWORD_DEFAULT);\n\t\t\t}\n\t\t\t$statement->bindValue(\":\" . $column , $this->$column);\n\t\t}\n\n\t\t//Run the query\n\t\t$statement->execute();\n\n\t\t//Get the id of the query which was just added\n\t\t$this->id = $db->lastInsertID();\n\t}",
"public function insertRecord()\n\t{\n\t\tif($this->user->hasRight($this->getHandler()->getAddRight()))\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\t$record = $this->getHandler()->getRecord();\n\t\t\t\t$record->import($this->getRequest());\n\n\t\t\t\t// check captcha\n\t\t\t\t$this->handleCaptcha($record);\n\n\t\t\t\t// insert\n\t\t\t\t$this->getHandler()->create($record);\n\n\n\t\t\t\t$msg = new Message('You have successful create a ' . $record->getName(), true);\n\n\t\t\t\t$this->setResponse($msg);\n\t\t\t}\n\t\t\tcatch(\\Exception $e)\n\t\t\t{\n\t\t\t\t$msg = new Message($e->getMessage(), false);\n\n\t\t\t\t$this->setResponse($msg);\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$msg = new Message('Access not allowed', false);\n\n\t\t\t$this->setResponse($msg, null, $this->user->isAnonymous() ? 401 : 403);\n\t\t}\n\t}",
"public function save()\n {\n \treturn FactoryAbastract::dao(get_class($this))->save($this);\n }",
"public function save()\n {\n // If deposit is new, will get assigned database ID.\n $this->dbID = $this->db->saveDeposit($this);\n }",
"public function save()\n\t{\n\t\tif( $this->isExist )\n\t\t{\n\t\t\treturn $this->update();\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn $this->insert();\n\t\t}\n\t}",
"public function save();",
"public function save();",
"public function save();",
"public function save();",
"public function save();",
"public function save();",
"public function save();",
"public function save();",
"public function save();",
"public function save();",
"public function save();",
"public function save();",
"public function save();",
"public function save();",
"public function save();",
"public function save();",
"public function save();",
"public function save();",
"public function save(){\r\n $db = new Database();\r\n $sql = \"\";\r\n $stm = null;\r\n if (empty($this->id)){\r\n $sql = \"insert into interests (name) values (:name)\";\r\n $stm = $db->pdo->prepare($sql);\r\n }\r\n else{\r\n $sql = \"update interests set name=:name where id=:id\";\r\n $stm = $db->pdo->prepare($sql);\r\n $stm->bindParam(':id', $this->id);\r\n }\r\n $stm->bindParam(':name', $this->name);\r\n $stm->execute();\r\n }",
"public function save()\n \t{\n \t $this->getMapper()->save($this);\n \t}",
"public function save()\n {\n if($this->id != -1)\n {\n $this->update_subject();\n }\n else\n {\n $this->insert_subject();\n }\n }",
"public function onSave()\n {\n try\n {\n // open a transaction with database 'samples'\n TTransaction::open('samples');\n \n // get the form data into an active record Entry\n $object = $this->form->getData('AgendaEntry');\n \n $this->form->validate(); // form validation\n $object->store(); // stores the object\n $this->form->setData($object); // keep form data\n \n TTransaction::close(); // close the transaction\n $posAction = new TAction(array('AgendaView', 'reload'));\n // shows the success message\n new TMessage('info', TAdiantiCoreTranslator::translate('Record saved'), $posAction);\n }\n catch (Exception $e) // in case of exception\n {\n // shows the exception error message\n new TMessage('error', $e->getMessage());\n \n $this->form->setData( $this->form->getData() ); // keep form data\n \n // undo all pending operations\n TTransaction::rollback();\n }\n }",
"public function save(){\n\t\t$res = true;\n\t\t$changedData = $this->changedData();\n\t\tif(count($changedData)){\n\t\t\tif(!empty($this->orig)){\n\t\t\t\t$res = (dbHelper::updateQry($this->tableName,$changedData,array($this->primaryKey=>$this->data[$this->primaryKey]))?true:false);\n\t\t\t\t$this->orig = $this->data;\n\t\t\t} else {\n\t\t\t\t//if this row has been deleted but someone else saves data to it this will automatically restore the row from $data\n\t\t\t\t$res = (dbHelper::insertQry($this->tableName,$this->data)?true:false);\n\t\t\t\t$this->data[$this->primaryKey] = db::insertID();\n\t\t\t\tdbData::addRow($this->tableName,$this->primaryKey,$this->data);\n\t\t\t\t$this->orig =& dbData::rowRefrence($this->tableName,$this->primaryKey,$this->data[$this->primaryKey]);\n\t\t\t}\n\t\t}\n\t\treturn $res;\n\t}",
"final public function save() {\n\t\t$table_id = $this::TABLE_ID;\n\t\tif (strlen ( $this->$table_id ) != 0) {\n\t\t\treturn $this->update ();\n\t\t}\n\t\t\n\t\tif ($this::USR_CREATE_ID != 'undefined') {\n\t\t\t$usrid = PwConnexion::getInstance ()->getUserId ();\n\t\t\t$colUsrId = $this::USR_CREATE_ID;\n\t\t\t$this->$colUsrId = $usrid;\n\t\t}\n\t\t\n\t\tif ($this::USR_CREATE_DATE != 'undefined') {\n\t\t\t$objDateTime = new DateTime ( 'NOW' );\n\t\t\t$colUsrDat = $this::USR_CREATE_DATE;\n\t\t\t$usrid = PwConnexion::getInstance ()->getUserId ();\n\t\t\t$this->$colUsrDat = $objDateTime->format ( \"Y-m-d H:i:s\" );\n\t\t}\n\t\t\n\t\t$this->$table_id = \"\";\n\t\t\n\t\t$row = $this->getSqlRow ();\n\t\t$k = 0;\n\t\t$filds = \"\";\n\t\tforeach ( $row as $key => $value ) {\n\t\t\tif ($k == 0)\n\t\t\t\t$sep = \" \";\n\t\t\telse\n\t\t\t\t$sep = \",\";\n\t\t\t$filds = $filds . $sep . $key;\n\t\t\t$k = 1;\n\t\t}\n\t\t$k = 0;\n\t\t$values = \"\";\n\t\tforeach ( $row as $key => $value ) {\n\t\t\tif ($k == 0)\n\t\t\t\t$sep = \" \";\n\t\t\telse\n\t\t\t\t$sep = \",\";\n\t\t\t$values = $values . $sep . \"'\" . $value . \"'\";\n\t\t\t$k = 1;\n\t\t}\n\t\t$cmd = \"insert into \" . $this::TABLE_NAME . \"(\" . $filds . \")values(\" . $values . \");\";\n\t\t$rid = \"\";\n\t\ttry {\n\t\t\t$stmt = PwPDO::getInstance ( PwPDO::DB_0 )->prepare ( $cmd );\n\t\t\t$stmt->execute ();\n\t\t\t$rid = PwPDO::getInstance ( PwPDO::DB_0 )->lastInsertId ();\n\t\t} catch ( Exception $e ) {\n\t\t\tPwDebug::debug ( $e->getMessage (), $cmd );\n\t\t\tPwDebug::debugInLogFile ( $e->getMessage () . \" \" . $cmd );\n\t\t\treturn 0;\n\t\t}\n\t\treturn PwPDO::getInstance ( PwPDO::DB_0 )->lastInsertId ();\n\t}",
"abstract public function save();",
"abstract public function save();",
"abstract public function save();",
"abstract public function save();",
"abstract public function save();",
"function save()\r\n {\r\n $GLOBALS['DB']->exec(\"INSERT INTO inventory_items (name) VALUES ('{$this->getName()}')\");\r\n $this->id = $GLOBALS['DB']->lastInsertId();\r\n }",
"public function store()\n {\n if (!$this->id) { // Insert\n $this->insertObject();\n } else { // Update\n $this->updateObject();\n }\n }",
"public function save($data)\n\t{\n\t\t$dispatcher = JEventDispatcher::getInstance();\n\t\t$table = $this->getTable();\n\n\t\tif ((!empty($data['tags']) && $data['tags'][0] != ''))\n\t\t{\n\t\t\t$table->newTags = $data['tags'];\n\t\t}\n\n\t\t$key = $table->getKeyName();\n\t\t$pk = (!empty($data[$key])) ? $data[$key] : (int) $this->getState($this->getName() . '.id');\n\t\t$isNew = true;\n\n\t\t// Include the content plugins for the on save events.\n\t\tJPluginHelper::importPlugin('content');\n\n\t\t// Allow an exception to be thrown.\n\t\ttry\n\t\t{\n\t\t\t// Load the row if saving an existing record.\n\t\t\tif ($pk > 0)\n\t\t\t{\n\t\t\t\t$table->load($pk);\n\t\t\t\t$isNew = false;\n\t\t\t}\n\n\t\t\t// Bind the data.\n\t\t\tif (!$table->bind($data))\n\t\t\t{\n\t\t\t\t$this->setError($table->getError());\n\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\t// Prepare the row for saving\n\t\t\t$this->prepareTable($table);\n\n\t\t\t// Check the data.\n\t\t\tif (!$table->check())\n\t\t\t{\n\t\t\t\t$this->setError($table->getError());\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\t// Trigger the onContentBeforeSave event.\n\t\t\t$result = $dispatcher->trigger($this->event_before_save, array($this->option . '.' . $this->name, $table, $isNew));\n\n\t\t\tif (in_array(false, $result, true))\n\t\t\t{\n\t\t\t\t$this->setError($table->getError());\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\t// Store the data.\n\t\t\tif (!$table->store())\n\t\t\t{\n\t\t\t\t$this->setError($table->getError());\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\t// Clean the cache.\n\t\t\t$this->cleanCache();\n\n\t\t\t// Trigger the onContentAfterSave event.\n\t\t\t$dispatcher->trigger($this->event_after_save, array($this->option . '.' . $this->name, $table, $isNew));\n\t\t}\n\t\tcatch (Exception $e)\n\t\t{\n\t\t\t$this->setError($e->getMessage());\n\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}",
"public function save(){\n\t\ttry {\n\t\t\t$params = array();\n\n\t\t\t//insert\n\t\t\tif( empty($this->_data['id']) ){\n\t\t\t\t$action = 'add';\n\n\t\t\t\t//build the insert starting from self::$fields\n\t\t\t\t$fields = array();\n\t\t\t\t$values = array();\n\n\t\t\t\tforeach( self::$_fields[$this->_table] as $key ){\n\t\t\t\t\tif( $key != 'id' ){\n\t\t\t\t\t\t$fields[] = $key;\n\n\t\t\t\t\t\tif( isset($this->_data[$key]) && !is_null($this->_data[$key]) ){\n\t\t\t\t\t\t\t$values[] = ':'.$key;\n\t\t\t\t\t\t\t$params[':'.$key] = $this->_data[$key];\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$values[] = 'NULL';\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t$fields = implode(', ', $fields);\n\t\t\t\t$values = implode(', ', $values);\n\t\t\t\t$sql = \"INSERT INTO \".$this->_table.\" (\".$fields.\") VALUES (\".$values.\")\";\n\n\t\t\t//update\n\t\t\t} else {\n\t\t\t\t$action = 'update';\n\n\t\t\t\t//build the update starting from self::$fields\n\t\t\t\t$where = '';\n\t\t\t\t$field_value = '';\n\n\t\t\t\tforeach( self::$_fields[$this->_table] as $key ){\n\t\t\t\t\tif( $key == 'id' ){\n\t\t\t\t\t\t$where = ' '.$key.' = :id';\n\t\t\t\t\t\t$params[':id'] = $this->_data[$key];\n\n\t\t\t\t\t} elseif( isset($this->_data[$key]) and !is_null($this->_data[$key]) ){\n\t\t\t\t\t\t$field_value .= ' '.$key.' = :'.$key.',';\n\t\t\t\t\t\t$params[':'.$key] = $this->_data[$key];\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$field_value .= ' '.$key.' = NULL,';\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$field_value = substr($field_value, 0, -1);\n\t\t\t\t$sql = \"UPDATE \".$this->_table.\" SET \".$field_value.\" WHERE \".$where;\n\t\t\t}\n\n\t\t\t$q = $this->_db->prepare($sql);\n\n\t\t\t$q->execute($params);\n\n\t\t\tif( empty($this->_data['id']) ){\n\t\t\t\t$this->_data['id'] = $this->_db->lastInsertId();\n\t\t\t}\n\n\t\t\treturn true;\n\n\t\t} catch ( PDOException $e ){\n\t\t\terreur_pdo( $e, get_class( $this ), __FUNCTION__ );\n\t\t}\n\t}",
"public function save()\n {\n $this->_validateModifiable();\n\n if($this->isNew())\n {\n $this->_getDataSource()->create($this);\n }\n else\n {\n $this->_getDataSource()->update($this);\n }\n\n $this->_saveRelations();\n $this->_setNew(false);\n }",
"private function saveDb()\n\t{\n\t\t//format our sql statements w/ the valid fields\n\t\t$fields = array();\n\t\t\n\t\t//loop thru all our dirty fields.\n\t\tforeach ($this->dirtyFields AS $key => $foo)\n\t\t{\n\t\t\t//get our value.\n\t\t\tif (isset($this->data[$key]) && $key != 'id')\n\t\t\t{\n\t\t\t\t$val = $this->data[$key];\n\n\t\t\t\t//slashes replacement..\n\t\t\t\t$val = str_replace(\"\\\\\\\\\", \"\\\\\", $val);\n\t\t\t\t$val = str_replace(\"\\'\", \"'\", $val);\n\t\t\t\t$val = str_replace(\"\\\\\\\"\", \"\\\"\", $val);\n\n\t\t\t\t//add it if we have it...\n\t\t\t\t$fields[] = \"`$key` = '\" . addslashes($val) . \"'\";\n\t\t\t}\n\t\t}\n\t\t\n\t\t//update if we have an id....\n\t\tif (count($fields))\n\t\t{\n\t\t\t//now make our array\n\t\t\t$sqlFields = implode(\",\\n\", $fields) . \"\\n\";\n\t\t\t\n\t\t\t//update it?\n\t\t\tif ($this->id)\n\t\t\t{\n\t\t\t\t$sql = \"UPDATE $this->tableName SET\\n\";\n\t\t\t\t$sql .= $sqlFields;\n\t\t\t\t$sql .= \"WHERE id = '$this->id'\\n\";\n\t\t\t\t$sql .= \"LIMIT 1\";\n\n\t\t\t\tdb()->execute($sql);\n\t\t\t}\n\t\t\t//otherwise insert it...\n\t\t\telse\n\t\t\t{\n\t\t\t\t$sql = \"INSERT INTO $this->tableName SET\\n\";\n\t\t\t\t$sql .= $sqlFields;\n\n\t\t\t\t$this->id = db()->insert($sql);\n\t\t\t}\n\t\t}\n\t}",
"public function save()\n {\n if ($conn = $this->_getConnection()) {\n $data = $this->getData();\n unset($data['user']);\n if ($this->id) {\n $fields = array();\n foreach ($data as $_field => $_value) {\n $fields[] = \"`{$_field}`='{$_value}'\";\n }\n $sql = \"UPDATE `{$this->_dbTable}` SET \" . implode(\",\", $fields) . \" WHERE `id`={$this->id};\";\n } else {\n $sql = \"INSERT INTO `{$this->_dbTable}` (`\" . implode('`,`', array_keys($data)) . \"`)\n VALUES('\" . implode(\"','\", $data) . \"');\";\n }\n $result = $conn->query($sql);\n app::log(array($sql, $result, $conn->errno, $conn->error)); //!!!!\n if ($conn->errno) {\n app::log('Error saving model \"' . $this->_modelName . '\" into DB with ID=' . $this->id, app::LOG_LEVEL_ERROR . \"\\n{$conn->errno} - {$conn->error}\");\n }\n if (!$this->id) {\n $this->id = $conn->insert_id;\n }\n }\n app::log($this->_data); //!!!!\n return $this;\n }",
"public function Save(){\r\n\t\t$this->db->save();\r\n\t}",
"public function save()\n {\n $queryBuilder = $this->db->createQueryBuilder();\n\n $queryBuilder->insert(self::TABLE_NAME);\n\n foreach (['delivery_id', 'status', 'topic', 'body', 'sent_at', 'direction', 'to', 'result'] as $field) {\n $value = isset($this->data[$field]) ? $this->data[$field] : null;\n $queryBuilder->setValue(\"`$field`\", $queryBuilder->expr()->literal($value));\n }\n\n $queryBuilder->execute();\n\n return $this->db->lastInsertId();\n }",
"public abstract function save();",
"public function save() {\n return $this->{static::$primaryKey} === null? $this->create() : $this->update();\n }",
"function save() {\n $conn = \\DB\\getConnection();\n\n $query = sprintf(\"INSERT INTO Payments (uid, typeid, token, amount)\n VALUES (%u, %u, '%s', %f)\",\n $this->uid, $this->typeid, $conn->escape_string($this->token), $this->amount);\n\n \n\n $result = $conn->query($query);\n\n // If this is a newly created user, then update the id with the\n // newly created one\n if (!isset($this->id)) {\n $this->id = $result->insert_id;\n }\n }",
"public function save()\n\t{\n\t\t$status = $this->validated ? TRUE : $this->valid();\n\n\t\tif ($status === TRUE)\n\t\t{\n\t\t\tif ($this->data['id']) // Do an update\n\t\t\t\treturn count($this->db->update($this->table_name, $this->data, array('id' => $this->data['id'])));\n\t\t\telse // Do an insert\n\t\t\t{\n\t\t\t\t$id = $this->db->insert($this->table_name, $this->data)->insert_id();\n\t\t\t\treturn ($this->data['id'] = $id);\n\t\t\t}\n\t\t}\n\n\t\tthrow new Kohana_User_Exception('auto_modeler.validation_error', $status);\n\t}",
"function Save(){\n // If id is set, update the current register in database\n if(isset($this->idAval)){\n // Makes the update in the database\n return $this->UpdateSQL([\"ID_AVAL = \".$this->idAval]) > 0;\n }else{\n // If id is not set, insert a new row in database\n $this->fecha = date_format(new \\DateTime('now', new \\DateTimeZone('America/Argentina/Buenos_Aires')), 'Y-m-d H:i:s');\n if($this->InsertSQL()>0){\n // Refresh get the inserted id and refresh the object values\n return $this->Refresh();\n }\n }\n return false;\n }",
"public function insert() {\r\n\t\t$this->getMapper()->insert($this);\r\n\t}",
"public function save(){\r\n\t \t\treturn isset($this->id) ? $this->update() : $this->create();\r\n\t\t}",
"public function save() {\n $db = Db::instance();\n // omit id and any timestamps\n $db_properties = array(\n 'event_type_id' => $this->event_type_id,\n 'user_1_id' => $this->user_1_id,\n 'user_2_id' => $this->user_2_id,\n 'user_1_name' => $this->user_1_name,\n 'user_2_name' => $this->user_2_name,\n 'product_1_name' => $this->product_1_name,\n 'product_2_name' => $this->product_2_name,\n 'data_1' => $this->data_1,\n 'data_2' => $this->data_2\n );\n $db->store($this, __CLASS__, self::DB_TABLE, $db_properties);\n }",
"public function save(): bool\n {\n return $this->id > 0\n ? $this->actionHandler->update()\n : $this->actionHandler->insert();\n }",
"public function save(){\n global $wpdb;\n $table_name = $wpdb->prefix.static::$_table;\n \n $data = [];\n $pk = $this->getPk();\n foreach($this->_datas as $key => $value){\n if($key!=$pk && in_array($key, static::$_fields)){\n $data[$key] = $value.'';\n }\n }\n \n if( isset( $this->$pk ) ){\n // Update row\n $wpdb->update(\n $table_name,\n $data,\n [$pk=>$this->$pk]\n );\n }else{\n // Insert row\n $wpdb->insert(\n $table_name,\n $data\n );\n $this->$pk = $wpdb->insert_id;\n }\n \n return $this;\n }",
"public function save()\n {\n array_push($this->table, $this->value);\n }",
"function save()\n {\n $GLOBALS['DB']->exec(\"INSERT INTO stores (store_name) VALUES (\n '{$this->getStoreName()}'\n );\");\n\n $this->id = $GLOBALS['DB']->lastInsertId();\n }",
"public function save()\n\t{\n\t\t$data = ['criteria' => $this -> criteria,\n\t\t\t\t 'dbname' => $this -> dbname,\n\t\t\t\t 'tblname' => $this -> tblname];\n\n\t\t$result = $this -> connection -> setTable($this -> entity)\r\n\t\t\t\t\t\t\t\t\t -> saveRec($data);\n\t\tif ($result) {\n\t\t\t$this -> id = $result;\n\t\t\treturn $this;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}",
"public function save() : bool {\n $this->getForm();\n $model = (array) $this;\n unset($model['id']);\n\n $colNames = implode(', ', array_keys($model));\n $colValues = ':' . str_replace(', ', ', :', $colNames);\n $arrBind = array_combine(explode(', ', $colValues), array_values($model));\n\n try {\n $db = new DbConnection();\n $db = $db->connect();\n $statement = $db->prepare(\"INSERT INTO \" . static::tableName() . \" (\" . $colNames . \")\n VALUES (\" . $colValues . \")\");\n\n foreach ($arrBind as $key => &$value) {\n $statement->bindParam($key, $value);\n }\n\n $result = $statement->execute();\n $db = null;\n } catch (PDOException $e) {\n $result = false;\n $e->getMessage(); // Only in dev mode\n }\n return $result;\n }",
"public function save($data)\n\t{\n\t\t// Initialise variables.\n\t\t$table\t\t= $this->getTable();\n\t\t$pk\t\t\t= (!empty($data['id'])) ? $data['id'] : (int) $this->getState('plugin.id');\n\t\t$isNew\t\t= true;\n\n\t\t// Include the content plugins for the onSave events.\n\t\tJPluginHelper::importPlugin('content');\n\n\t\t// Load the row if saving an existing record.\n\t\tif ($pk > 0) {\n\t\t\t$table->load($pk);\n\t\t\t$isNew = false;\n\t\t}\n\n\t\t// Bind the data.\n\t\tif (!$table->bind($data)) {\n\t\t\t$this->setError($table->getError());\n\t\t\treturn false;\n\t\t}\n\n\t\t// Prepare the row for saving\n\t\t$this->prepareTable($table);\n\n\t\t// Check the data.\n\t\tif (!$table->check()) {\n\t\t\t$this->setError($table->getError());\n\t\t\treturn false;\n\t\t}\n\n\t\t// Store the data.\n\t\tif (!$table->store()) {\n\t\t\t$this->setError($table->getError());\n\t\t\treturn false;\n\t\t}\n\n\t\t$this->setState('plugin.id', $table->extension_id);\n\n\t\treturn true;\n\t}",
"public function save()\r\n {\r\n \r\n }",
"public function save()\n {\n if (count($this->toSave) <= 0)\n return;\n \n $columns = [ ];\n $params = [ ];\n $to_save = [ ];\n array_walk($this->toSave, function($value, $key) use (&$columns, &$to_save, &$params) {\n if ($this->insert):\n $columns[] = $key;\n $to_save[] = \"?\";\n else:\n $to_save[] = \"{$key} = ?\";\n endif;\n\n $params[] = $value;\n });\n $to_save = implode(', ', $to_save);\n\n if ($this->insert):\n $columns = implode(', ', $columns);\n $primary_key = database()->run('INSERT INTO ' . $this->table . '(' . $columns . ') VALUES(' . $to_save . ')', $params);\n \n $this->{$this->primaryKey} = $primary_key;\n $this->insert = false;\n else:\n $params[] = $this->{$this->primaryKey};\n database()->run('UPDATE ' . $this->table . ' SET ' . $to_save . ' WHERE ' . $this->primaryKey . ' = ?', $params);\n endif;\n \n $this->toSave = [ ];\n return $this;\n }",
"public function save()\n {\n if ( !$this->unsaved ) {\n // either nothing has been changed, or data has not been loaded, so\n // do nothing by returning early\n return;\n }\n\n $this->write();\n $this->unsaved = false;\n }",
"public function save() {\n $db = Db::instance();\n // omit id \n $db_properties = array(\n 'firstName' => $this->firstName,\n 'lastName' => $this->lastName,\n 'description' => $this->description,\n 'user' => $this->user,\n 'password' => $this->password,\n 'image' => $this->image,\n 'gender' => $this->gender,\n 'topic_id' => $this->topic_id,\n 'topic_id1' => $this->topic_id1,\n 'role_id' => $this->role_id,\n );\n $db->store($this, __CLASS__, self::DB_TABLE, $db_properties);\n }",
"public function save() {\n\t\t\t\n\t\t}"
] | [
"0.72395414",
"0.7023153",
"0.69897276",
"0.69859445",
"0.68637806",
"0.6777437",
"0.6774917",
"0.6670073",
"0.6630975",
"0.66238767",
"0.6596921",
"0.6596321",
"0.65869534",
"0.6576844",
"0.65690297",
"0.65574664",
"0.65443015",
"0.65379804",
"0.65335345",
"0.65287566",
"0.6516431",
"0.6516169",
"0.6511058",
"0.64997673",
"0.6493491",
"0.64930415",
"0.64837193",
"0.647469",
"0.6450102",
"0.6446309",
"0.6432566",
"0.6423039",
"0.64184237",
"0.6408107",
"0.63985306",
"0.6394607",
"0.6359149",
"0.6354984",
"0.6353293",
"0.63459224",
"0.6340073",
"0.6327219",
"0.6302182",
"0.6299247",
"0.6299247",
"0.6299247",
"0.6299247",
"0.6299247",
"0.6299247",
"0.6299247",
"0.6299247",
"0.6299247",
"0.6299247",
"0.6299247",
"0.6299247",
"0.6299247",
"0.6299247",
"0.6299247",
"0.6299247",
"0.6299247",
"0.6299247",
"0.62927526",
"0.62848973",
"0.6260789",
"0.62537515",
"0.6249716",
"0.62325865",
"0.6228206",
"0.6228206",
"0.6228206",
"0.6228206",
"0.6228206",
"0.6228016",
"0.62212044",
"0.6199843",
"0.6198102",
"0.6191493",
"0.6187096",
"0.6175835",
"0.6175204",
"0.61728597",
"0.6172281",
"0.61573553",
"0.61531514",
"0.6153116",
"0.6146787",
"0.61462545",
"0.6143681",
"0.61265343",
"0.61255866",
"0.61228406",
"0.61224294",
"0.612184",
"0.6120731",
"0.6117351",
"0.61083984",
"0.61055076",
"0.6104328",
"0.6101028",
"0.609651",
"0.6094931"
] | 0.0 | -1 |
Update the row in the database. | protected function doUpdate(PropelPDO $con)
{
$selectCriteria = $this->buildPkeyCriteria();
$valuesCriteria = $this->buildCriteria();
BasePeer::doUpdate($selectCriteria, $valuesCriteria, $con);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function updateRow($row);",
"protected function update() {\n $this->db->updateRows($this->table_name, $this->update, $this->filter);\n storeDbMsg($this->db,ucwords($this->form_ID) . \" successfully updated!\");\n }",
"public function update() {\n\t\tif (isset($this->params['updated'])) {\n\t\t\t$this->params['updated'] = null;\n\t\t} // 'updated' is an auto timestamp\n\n\t\t$columns = array();\n\t\tforeach (array_keys($this->params) as $key) {\n\t\t\tarray_push($columns, $key . ' = ?');\n\t\t}\n\t\t$bindings = implode(', ', $columns);\n\t\t$sql = 'UPDATE ' . static::$table . ' SET ' . $bindings . ' WHERE id = ' . $this->get('id') . ' ;';\n\t\t$query = DBH()->prepare($sql);\n\t\t$query->execute(array_values($this->params));\n\t}",
"public function update(){\n\t\t$this->beforeSave();\n\t\t$tableName = $this->tableName();\n\t\t$fields = $this->fields();\n\t\t// Remove fields set as ignored by rules validation.\n\t\t$fields = $this->removeIgnored($fields);\n\t\t// Create PDO placeholders.\n\t\t$params = implode(', ', array_map(fn($name) => $name . ' = :' . $name, $fields));\n\t\t$primaryKey = $this->getPrimaryKey();\n\t\t$where = $primaryKey . ' = :' . $primaryKey;\n\t\t$statement = $this->db->prepare('UPDATE ' . $tableName . ' SET ' . $params . ' WHERE ' . $where);\n\t\t// Bind values to placeholders.\n\t\tforeach($fields as $field){\n\t\t\t$this->binder($statement, ':' . $field, $this->{$field});\n\t\t}\n\t\t$statement->bindValue(':' . $primaryKey, $this->{$primaryKey});\n\t\tif($statement->execute()){\n\t\t\t$this->afterSave();\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}",
"public function db_update() {}",
"public function updateRecord() \n {\n $str = \"Id = :Id\";\n array_walk($this->arrayKeysValues(), function ($value, $key) use (&$str) {\n $str .= \", $key = :$key\";\n });\n $sql = sprintf(\"UPDATE Cubans SET %s WHERE Id = :Id\", $str);\n $statement = $this->connect->prepare($sql);\n $statement->execute(array_merge([\":Id\" => $this->id], $this->arrayKeysValues()));\n }",
"protected function updateRow()\n { \n $tableName = $this->getTableName($this->className);\n $assignedValues = $this->getAssignedValues();\n $updateDetails = [];\n\n for ($i = 0; $i < count($assignedValues['columns']); $i++) { \n array_push($updateDetails, $assignedValues['columns'][$i] .' =\\''. $assignedValues['values'][$i].'\\'');\n }\n\n $connection = Connection::connect();\n\n $allUpdates = implode(', ' , $updateDetails);\n $update = $connection->prepare('update '.$tableName.' set '. $allUpdates.' where id='.$this->resultRows[0]['id']);\n \n if ($update->execute()) { \n return 'Row updated';\n } else { \n throw new Exception(\"Unable to update row\"); \n }\n }",
"private function update()\n {\n $queryString = 'UPDATE ' . $this->table . ' SET ';\n foreach ($this->data as $column => $value) {\n if ($column != self::ID) {\n $queryString .= $column . ' =:' . $column . ',';\n }\n }\n $queryString .= ' updated_at = sysdate() WHERE 1 = 1 AND ' . self::ID . ' =:' . self::ID;\n $this->query = $this->pdo->prepare($queryString);\n }",
"public function update() {\n // Get the values that are currently in the database\n $curr_vals = $this->read_single();\n\n // Set the values that will be added to the table\n foreach ($curr_vals as $key => $value) {\n // Convert key from the Database's capitalization to\n // this model's attribute capitalization style (all lowercase)\n $local_key = strtolower($key);\n // If user didn't specify property\n if (($this->attr[$local_key] === \"\") || ($this->attr[$local_key] === null)){\n // Then use the value that's already in the database\n $this->attr[$local_key] = $curr_vals[$key];\n }\n }\n\n // Create query\n $query = \"UPDATE \" . $this->table .\n \" SET = \" .\n \" WHERE MID = :mid AND Spot = :spot \";\n\n // Prepare statement\n $stmt = $this->conn->prepare($query);\n\n // Clean the data (reduce malicious SQL injection, etc.)\n foreach ($this->attr as $key => $value) {\n $this->attr[$key] = htmlspecialchars(strip_tags($value));\n }\n \n // Bind the data to a variable for an SQL attribute\n foreach ($this->attr as $key => $value) {\n $stmt->bindValue((\":\" . $key), $value);\n }\n\n // Execute the prepared statement and check for errors in running it\n return $this->runPrepStmtChkErr($stmt);\n }",
"public function update() {\n\t\tTournamentDBClient::update($this);\n\t}",
"protected function update() {\n if ($this->_isLoaded()) {\n $this->db->where('id', $this->id);\n $this->db->update($this->tableName, $this->mapToDatabase());\n } else {\n throw new Exception(\"Model is not loaded\");\n }\n }",
"public function update()\n\t{\n\t\t$this->user->db_update();\n\t}",
"public function update($row)\n\t{\n\t\t$this->db->where('tournamentId', $row['tournamentId']);\n\t\treturn $this->db->update('tournaments', $row);\n\t}",
"public function update(){\r\n\t\tif (!$this->hasChanged) return self::RES_UNCHANGED;\r\n\t\t$table = $this->getTable();\r\n\t\tif ($this->new){\r\n\t\t\tMessages::msg(\"Cannot update record in {$this->getFullTableName()}, because the record doesn't exist.\",Messages::M_CODE_ERROR);\r\n\t\t\treturn self::RES_FAILED;\r\n\t\t}\r\n\t\tif (!$table->hasPrimaryKey()){\r\n\t\t\tMessages::msg(\"Cannot update record in {$this->getFullTableName()}, because the table does not have a primary key.\",Messages::M_CODE_ERROR);\r\n\t\t\treturn self::RES_FAILED;\r\n\t\t}\r\n\t\t\r\n\t\t$this->beforeCommit();\r\n\t\t\r\n\t\t$vals = array();\r\n\t\t$where = array();\r\n\t\t$changeCount = 0;\r\n\t\t$error = false;\r\n\t\tforeach ($this->values as $name=>$value){\r\n\t\t\tif ($value->isErroneous()){\r\n\t\t\t\tFramework::reportErrorField($name);\r\n\t\t\t\t$error = true;\r\n\t\t\t}\r\n\t\t\tif ($value->hasChanged()){\r\n\t\t\t\t$vals[] = \"`$name` = \".$value->getSQLValue();\r\n\t\t\t\t$changeCount++;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif ($error){\r\n\t\t\treturn self::RES_FAILED;\r\n\t\t}\r\n\t\t\r\n\t\tforeach ($table->getPrimaryKey()->getColumns() as $name){\r\n\t\t\t$where[] = \"`$name` = \".$this->values[$name]->getSQLValue();\r\n\t\t}\r\n\t\t$sql = 'UPDATE '.$this->getFullTableName().' SET '.implode(', ',$vals).' WHERE '.implode(' AND ',$where).' LIMIT 1';\r\n\t\tif (!SQL::query($sql)->success()){\r\n\t\t\tMessages::msg('Failed to update record in '.$this->getFullTableName().'.',Messages::M_CODE_ERROR);\r\n\t\t\treturn self::RES_FAILED;\r\n\t\t}\r\n\t\t$this->hasChanged = false;\r\n\t\tforeach ($this->values as $value){\r\n\t\t\t$value->setHasChanged(false);\r\n\t\t}\r\n\t\t\r\n\t\t$this->afterCommit();\r\n\t\t\r\n\t\treturn self::RES_SUCCESS;\r\n\t}",
"protected function _update() {\n $this->_getDef();\n \n //prepare\n foreach ($this->_tableData as $field) {\n if($field['primary']) {\n $primaryKey = $field['field_name'];\n $primaryValue = $this->$primaryKey;\n continue;\n }\n \n $sql_fields[] = '`' . $field['field_name'] . '` =?';\n \n $field_name = $field['field_name'];\n \n if(false !== ($overrideKey = $this->_getOverrideKey($field_name))){\n $field_name = $overrideKey;\n }\n \n if($this->$field_name instanceof \\DateTime){\n $$field_name = $this->$field_name->format('Y-m-d H:i:s');\n } elseif(is_array($$field_name)){\n $$field_name = json_encode($$field_name);\n } else {\n $$field_name = $this->$field_name;\n }\n \n $values[] = $$field_name;\n }\n \n $values[] = $primaryValue;\n \n $sql = \"UPDATE `{$this->_table}` SET \" . implode(',', $sql_fields) . \" WHERE `{$primaryKey}` =?\";\n $stmt = Database::connection($this->_connection)->prepare($sql, $values);\n $stmt->execute();\n $this->setLastError(NULL);\n if($stmt->error !== ''){\n $this->setLastError($stmt->error);\n }\n \n $stmt->close();\n \n return $this->getLastError() === NULL ? true : false;\n }",
"private function _update() {\n\n $this->db->replace(XCMS_Tables::TABLE_USERS, $this->getArray());\n $this->attributes->save();\n\n }",
"public function update()\n\t{\n\t\t$this->getModel()->update($this);\n\t}",
"public function update(){\n if(empty($this->attributes)){\n return;\n }\n if ($this->isAutoInc) {\n $fieldsList = \" SET \";\n foreach ($this->attributes as $column => $value) {\n $fieldsList.=$column.\"=\".'\\''.$value.'\\''.\", \";\n }\n $fieldsList = str_last_replace(\", \", \"\", $fieldsList);\n $sqlQuery = \"UPDATE \".$this->table.$fieldsList.\" WHERE \".$this->idName.\"=\".$this->attributes[$this->idName];\n\n Db::instance()->execute($sqlQuery,$this->attributes);\n }\n }",
"public function put()\n {\n $this->layout = 'ajax';\n\n $this->Row->id = $this->request->data['id'];\n\n //if the row has a feed that belongs to the user\n $this->Feed->id = $this->Row->field('feed_id');\n\n // check if row belongs to the user\n if ($this->Auth->user('id') != $this->Feed->field('user_id')) {\n die('ERROR');\n }\n $this->Row->saveField(trim($this->request->data['columnName']), $this->request->data['value']);\n\n die($this->data['value']); // datatables wants this\n }",
"public function update(){\n\t\t$sql = \"update \".self::$tablename.\" set name=\\\"$this->name\\\",lastname=\\\"$this->lastname\\\",username=\\\"$this->username\\\",email=\\\"$this->email\\\",kind=\\\"$this->kind\\\",status=\\\"$this->status\\\" where id=$this->id\";\n\t\tExecutor::doit($sql);\n\t}",
"public function update(){\n\t\t$sql = \"update \".self::$tablename.\" set name=\\\"$this->name\\\",comments=\\\"$this->comments\\\",price=\\\"$this->price\\\",brand=\\\"$this->brand\\\",model=\\\"$this->model\\\",y=\\\"$this->y\\\",link=\\\"$this->link\\\",in_existence=\\\"$this->in_existence\\\",is_public=\\\"$this->is_public\\\",is_featured=\\\"$this->is_featured\\\",category_id=\\\"$this->category_id\\\" where id=$this->id\";\n\t\tExecutor::doit($sql);\n\t}",
"public function update()\n\t{\n\t\ttry\n\t\t{\n\t\t\t$sql = 'UPDATE class SET ';\n\n\t\t\tif(isset($this->_year))\n\t\t\t\t$sql.=' year = :year,';\n\n\t\t\tif(isset($this->_section))\n\t\t\t\t$sql.=' section = :section';\n\t\t\telse\n\t\t\t\t$sql = substr_replace($sql, '', -1);\n\t\t\t\n\t\t\t$sql.=' WHERE id = :id';\n\n \t\t$data = [\n\t\t\t 'id' => $this->_id,\n\t\t\t 'year' => $this->_year,\n\t\t\t 'section' => $this->_section,\n\t\t\t];\n\n\t \t$stmt = $this->db->prepare($sql);\n\t \t$stmt->execute($data);\n\t\t\t$status = $stmt->rowCount();\n\t\t}\n\t\tcatch (Exception $e)\n\t\t{\n\t\t\theader(\"HTTP/1.0 400 Bad request\");\n\t\t\techo $e;\n\t\t}\n\t}",
"public function update() {\n\t\t$dbh = App::getDatabase()->connect();\n\n\t\t$query = \"UPDATE \".$this->getTableName().\"\n\t\t\t\t SET \";\n\n\t\t$fl = true;\n\t\tforeach($this as $column => $val) {\n\t\t\tif(!in_array($column, $this->getPrimaries())) {\n\t\t\t\t$query .= (($fl) ? \"\" : \", \").$column.\" = \".((is_bool($val)) ? (($val) ? \"TRUE\" : \"FALSE\") : ((is_null($val)||($val === \"\")) ? \"null\" : \"'\".$val.\"'\"));\n\t\t\t\t$fl = false;\n\t\t\t}\n\t\t}\n\n\t\t$fl = true;\n\t\tforeach($this as $column => $val) {\n\t\t\tif(in_array($column, $this->getPrimaries())) {\n\t\t\t\t$query .= \"\\n\".(($fl) ? \"WHERE\" : \"AND\").\" \".$column.\" = '\".$val.\"'\";\n\t\t\t\t$fl = false;\n\t\t\t}\n\t\t}\n\n\t\t$res = $dbh->exec($query);\n\t\t$dbh = null;\n\t\treturn $res;\n\t}",
"public function update(){\n\t\t$sql = \"update \".self::$tablename.\" set name=\\\"$this->name\\\" where id=$this->id\";\n\t\tExecutor::doit($sql);\n\t}",
"function update() {\n\t\t\t$updateQuery = \"UPDATE \".$this->table.\" SET \";\n\n\t\t\t$keysAR = array_keys($this->activeRecord);\n\n\t\t\tfor ($loopUp = 0; $loopUp < count($this->activeRecord); $loopUp++) {\n\n $updateQuery .= $keysAR[$loopUp] . \" = ?, \";\n $paramArray[] = $this->activeRecord[$keysAR[$loopUp]];\n\n\t\t\t}\n\n\t\t\t$updateQuery = substr($updateQuery, 0, -2); // Haal de laatste komma weg.\n\n\t\t\t$updateQuery .= \" WHERE \";\n\n\t\t\t// Fetch de primary key van de tabel.\n $fetchPrimary = $this->mysqlConnection->query(\"SHOW INDEX FROM \".$this->table);\n $arrayIndex = $fetchPrimary->fetch(PDO::FETCH_ASSOC);\n $kolomIndex = $arrayIndex['Column_name'];\n\n $updateQuery .= $kolomIndex.\" = \".$this->originalValues[$kolomIndex];\n\n\t\t\t$this->lastQuery = $updateQuery;\n\n $updateTable = $this->mysqlConnection->prepare($this->lastQuery);\n $updateTable->execute($paramArray);\n\n\t\t}",
"public final function update() {\n\t\t$properties = self::getProperties($this);\n\t\t$columns = array_keys($properties);\n\t\t$values = array_values($properties);\n\n\t\t$setArray = array();\n\t\tfor ($i = 0; $i < count($properties); $i++) {\n\t\t\t$column = $columns[$i];\n\t\t\tif (strcmp($column, $this->primaryField) == 0 ||\n\t\t\t\tin_array($column, $this->uniqueFields)\n\t\t\t) {\n\t\t\t\t// Remove the value for binding\n\t\t\t\tunset($values[$i]);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t$setArray[] = $column . \" = ?\";\n\t\t}\n\n\t\t$sql = \"\n\tUPDATE\n\t\t\" . $this->table . \"\n\tSET\n\t\t\" . implode(\", \", $setArray) . \"\n\tWHERE\n\t\t\" . $this->primaryField . \" = ?\n\t;\";\n\t\t// Adds the primary key binding\n\t\t$values[] = $this->{$this->primaryField};\n\n\t\t$db = new MySQL();\n\t\t$statement = $db->prepare($sql);\n\t\t$status = $statement->execute($values);\n\t\t$statement = NULL;\n\n\t\treturn $status;\n\t}",
"function EditRow() {\n\t\tglobal $conn, $Security, $Language;\n\t\t$sFilter = $this->KeyFilter();\n\t\t$this->CurrentFilter = $sFilter;\n\t\t$sSql = $this->SQL();\n\t\t$conn->raiseErrorFn = 'ew_ErrorFn';\n\t\t$rs = $conn->Execute($sSql);\n\t\t$conn->raiseErrorFn = '';\n\t\tif ($rs === FALSE)\n\t\t\treturn FALSE;\n\t\tif ($rs->EOF) {\n\t\t\t$EditRow = FALSE; // Update Failed\n\t\t} else {\n\n\t\t\t// Save old values\n\t\t\t$rsold = &$rs->fields;\n\t\t\t$rsnew = array();\n\n\t\t\t// model_id\n\t\t\t$this->model_id->SetDbValueDef($rsnew, $this->model_id->CurrentValue, 0, $this->model_id->ReadOnly);\n\n\t\t\t// title\n\t\t\t$this->title->SetDbValueDef($rsnew, $this->title->CurrentValue, NULL, $this->title->ReadOnly);\n\n\t\t\t// description\n\t\t\t$this->description->SetDbValueDef($rsnew, $this->description->CurrentValue, NULL, $this->description->ReadOnly);\n\n\t\t\t// s_order\n\t\t\t$this->s_order->SetDbValueDef($rsnew, $this->s_order->CurrentValue, 0, $this->s_order->ReadOnly);\n\n\t\t\t// status\n\t\t\t$this->status->SetDbValueDef($rsnew, $this->status->CurrentValue, 0, $this->status->ReadOnly);\n\n\t\t\t// Call Row Updating event\n\t\t\t$bUpdateRow = $this->Row_Updating($rsold, $rsnew);\n\t\t\tif ($bUpdateRow) {\n\t\t\t\t$conn->raiseErrorFn = 'ew_ErrorFn';\n\t\t\t\tif (count($rsnew) > 0)\n\t\t\t\t\t$EditRow = $this->Update($rsnew);\n\t\t\t\telse\n\t\t\t\t\t$EditRow = TRUE; // No field to update\n\t\t\t\t$conn->raiseErrorFn = '';\n\t\t\t} else {\n\t\t\t\tif ($this->getSuccessMessage() <> \"\" || $this->getFailureMessage() <> \"\") {\n\n\t\t\t\t\t// Use the message, do nothing\n\t\t\t\t} elseif ($this->CancelMessage <> \"\") {\n\t\t\t\t\t$this->setFailureMessage($this->CancelMessage);\n\t\t\t\t\t$this->CancelMessage = \"\";\n\t\t\t\t} else {\n\t\t\t\t\t$this->setFailureMessage($Language->Phrase(\"UpdateCancelled\"));\n\t\t\t\t}\n\t\t\t\t$EditRow = FALSE;\n\t\t\t}\n\t\t}\n\n\t\t// Call Row_Updated event\n\t\tif ($EditRow)\n\t\t\t$this->Row_Updated($rsold, $rsnew);\n\t\t$rs->Close();\n\t\treturn $EditRow;\n\t}",
"protected function update()\n {\n $database = cbSQLConnect::connect('object');\n if (isset($database))\n {\n $fields = self::$db_fields;\n foreach($fields as $key)\n {\n $flag = $database->SQLUpdate(\"place\", $key, $this->{$key}, \"id\", $this->id);\n if ($flag == \"fail\")\n {\n break;\n }\n }\n if ($flag == \"fail\")\n {\n return false;\n }\n else\n return $this->id;\n }\n }",
"public function update()\n {\n return $this->save();\n }",
"public function update(){\n\t\t$sql = \"update \".self::$tablename.\" set name=\\\"$this->name\\\",email1=\\\"$this->email1\\\",address1=\\\"$this->address1\\\",lastname=\\\"$this->lastname\\\",phone1=\\\"$this->phone1\\\" where id=$this->id\";\n\t\tExecutor::doit($sql);\n\t}",
"protected function update()\n\t{\n\t\t//append ID to fields\n\t\t$query = $this->connection->prepare\n\t\t(\"\n\t\t\tupdate Booth\n\t\t\tset BoothNum = ?\n\t\t\twhere BoothID = ?\n\t\t\");\n\n\t\t$query->execute(array_values($this->fields));\n\n\t}",
"private function update(){\n\t\t$id = $this->objAccessCrud->getId();\n\t\tif (empty ( $id )) return;\n\t\t// Check permission to update.\n\t\t$result = $this->clsAccessPermission->toUpdate();\n\t\tif(!$result){\n\t\t\t$this->msg->setWarn(\"You don't have permission to update!\");\n\t\t\treturn;\n\t\t}\n\t\t// Execute Update.\n\t\tif (! $this->objAccessCrud->update ()) {\n\t\t\t$this->msg->setError (\"There were issues on update the record!\");\n\t\t\treturn;\n\t\t}\n\t\t$this->msg->setSuccess (\"Updated the record with success!\");\n\t\treturn;\n\t}",
"function updateField() {\n DATABASE::INIT_TABLE($this->database, $this->table);\n $fname = $this->urlParam('fname');\n $fvalue = $this->urlParam('fvalue');\n $id = $this->urlParam('id');\n DATABASE::UPDATE($this->table, [$fname], [$fvalue], $id);\n }",
"public function update(phpDataMapper_Model_Row $row)\n\t{\n\t\t// Get \"col = :col\" pairs for the update query\n\t\t$placeholders = array();\n\t\t$binds = array();\n\t\tforeach($row->getDataModified() as $field => $value) {\n\t\t\tif($this->fieldExists($field)) {\n\t\t\t\t$placeholders[] = $field . \" = :\" . $field . \"\";\n\t\t\t\t// Empty values will be NULL (easier to be handled by databases)\n\t\t\t\t$binds[$field] = $this->isEmpty($value) ? null : $value;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Ensure there are actually updated values on THIS table\n\t\tif(count($placeholders) > 0) {\n\t\t\t// Build the query\n\t\t\t$sql = \"UPDATE \" . $this->getTable() .\n\t\t\t\t\" SET \" . implode(', ', $placeholders) .\n\t\t\t\t\" WHERE \" . $this->getPrimaryKeyField() . \" = '\" . $this->getPrimaryKey($row) . \"'\";\n\t\t\t\n\t\t\t// Add query to log\n\t\t\t$this->logQuery($sql, $binds);\n\t\t\t\n\t\t\t// Prepare update query\n\t\t\t$stmt = $this->adapter->prepare($sql);\n\t\t\t\n\t\t\t// Bind column values\n\t\t\t$this->bindValues($stmt, $binds);\n\t\t\t\n\t\t\tif($stmt) {\n\t\t\t\t// Execute\n\t\t\t\tif($stmt->execute($binds)) {\n\t\t\t\t\t$result = $this->getPrimaryKey($row);\n\t\t\t\t} else {\n\t\t\t\t\t$result = false;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$result = false;\n\t\t\t}\n\t\t} else {\n\t\t\t$result = false;\n\t\t}\n\t\t\n\t\t// Save related rows\n\t\tif($result) {\n\t\t\t$this->saveRelatedRowsFor($row);\n\t\t}\n\t\t\n\t\treturn $result;\n\t}",
"function EditRow() {\n\t\tglobal $Security, $Language;\n\t\t$sFilter = $this->KeyFilter();\n\t\t$sFilter = $this->ApplyUserIDFilters($sFilter);\n\t\t$conn = &$this->Connection();\n\t\t$this->CurrentFilter = $sFilter;\n\t\t$sSql = $this->SQL();\n\t\t$conn->raiseErrorFn = $GLOBALS[\"EW_ERROR_FN\"];\n\t\t$rs = $conn->Execute($sSql);\n\t\t$conn->raiseErrorFn = '';\n\t\tif ($rs === FALSE)\n\t\t\treturn FALSE;\n\t\tif ($rs->EOF) {\n\t\t\t$this->setFailureMessage($Language->Phrase(\"NoRecord\")); // Set no record message\n\t\t\t$EditRow = FALSE; // Update Failed\n\t\t} else {\n\n\t\t\t// Save old values\n\t\t\t$rsold = &$rs->fields;\n\t\t\t$this->LoadDbValues($rsold);\n\t\t\t$this->featured_image->OldUploadPath = \"../uploads/product/\";\n\t\t\t$this->featured_image->UploadPath = $this->featured_image->OldUploadPath;\n\t\t\t$rsnew = array();\n\n\t\t\t// cat_id\n\t\t\t$this->cat_id->SetDbValueDef($rsnew, $this->cat_id->CurrentValue, 0, $this->cat_id->ReadOnly || $this->cat_id->MultiUpdate <> \"1\");\n\n\t\t\t// company_id\n\t\t\t$this->company_id->SetDbValueDef($rsnew, $this->company_id->CurrentValue, 0, $this->company_id->ReadOnly || $this->company_id->MultiUpdate <> \"1\");\n\n\t\t\t// pro_model\n\t\t\t$this->pro_model->SetDbValueDef($rsnew, $this->pro_model->CurrentValue, NULL, $this->pro_model->ReadOnly || $this->pro_model->MultiUpdate <> \"1\");\n\n\t\t\t// pro_name\n\t\t\t$this->pro_name->SetDbValueDef($rsnew, $this->pro_name->CurrentValue, NULL, $this->pro_name->ReadOnly || $this->pro_name->MultiUpdate <> \"1\");\n\n\t\t\t// pro_description\n\t\t\t$this->pro_description->SetDbValueDef($rsnew, $this->pro_description->CurrentValue, NULL, $this->pro_description->ReadOnly || $this->pro_description->MultiUpdate <> \"1\");\n\n\t\t\t// pro_condition\n\t\t\t$this->pro_condition->SetDbValueDef($rsnew, $this->pro_condition->CurrentValue, NULL, $this->pro_condition->ReadOnly || $this->pro_condition->MultiUpdate <> \"1\");\n\n\t\t\t// pro_features\n\t\t\t$this->pro_features->SetDbValueDef($rsnew, $this->pro_features->CurrentValue, NULL, $this->pro_features->ReadOnly || $this->pro_features->MultiUpdate <> \"1\");\n\n\t\t\t// post_date\n\t\t\t$this->post_date->SetDbValueDef($rsnew, ew_CurrentDateTime(), NULL);\n\t\t\t$rsnew['post_date'] = &$this->post_date->DbValue;\n\n\t\t\t// ads_id\n\t\t\t$this->ads_id->SetDbValueDef($rsnew, $this->ads_id->CurrentValue, NULL, $this->ads_id->ReadOnly || $this->ads_id->MultiUpdate <> \"1\");\n\n\t\t\t// pro_base_price\n\t\t\t$this->pro_base_price->SetDbValueDef($rsnew, $this->pro_base_price->CurrentValue, NULL, $this->pro_base_price->ReadOnly || $this->pro_base_price->MultiUpdate <> \"1\");\n\n\t\t\t// pro_sell_price\n\t\t\t$this->pro_sell_price->SetDbValueDef($rsnew, $this->pro_sell_price->CurrentValue, NULL, $this->pro_sell_price->ReadOnly || $this->pro_sell_price->MultiUpdate <> \"1\");\n\n\t\t\t// featured_image\n\t\t\tif ($this->featured_image->Visible && !$this->featured_image->ReadOnly && strval($this->featured_image->MultiUpdate) == \"1\" && !$this->featured_image->Upload->KeepFile) {\n\t\t\t\t$this->featured_image->Upload->DbValue = $rsold['featured_image']; // Get original value\n\t\t\t\tif ($this->featured_image->Upload->FileName == \"\") {\n\t\t\t\t\t$rsnew['featured_image'] = NULL;\n\t\t\t\t} else {\n\t\t\t\t\t$rsnew['featured_image'] = $this->featured_image->Upload->FileName;\n\t\t\t\t}\n\t\t\t\t$this->featured_image->ImageWidth = 875; // Resize width\n\t\t\t\t$this->featured_image->ImageHeight = 665; // Resize height\n\t\t\t}\n\n\t\t\t// folder_image\n\t\t\t$this->folder_image->SetDbValueDef($rsnew, $this->folder_image->CurrentValue, \"\", $this->folder_image->ReadOnly || $this->folder_image->MultiUpdate <> \"1\");\n\n\t\t\t// pro_status\n\t\t\t$tmpBool = $this->pro_status->CurrentValue;\n\t\t\tif ($tmpBool <> \"Y\" && $tmpBool <> \"N\")\n\t\t\t\t$tmpBool = (!empty($tmpBool)) ? \"Y\" : \"N\";\n\t\t\t$this->pro_status->SetDbValueDef($rsnew, $tmpBool, \"N\", $this->pro_status->ReadOnly || $this->pro_status->MultiUpdate <> \"1\");\n\n\t\t\t// branch_id\n\t\t\t$this->branch_id->SetDbValueDef($rsnew, $this->branch_id->CurrentValue, NULL, $this->branch_id->ReadOnly || $this->branch_id->MultiUpdate <> \"1\");\n\n\t\t\t// lang\n\t\t\t$this->lang->SetDbValueDef($rsnew, $this->lang->CurrentValue, \"\", $this->lang->ReadOnly || $this->lang->MultiUpdate <> \"1\");\n\t\t\tif ($this->featured_image->Visible && !$this->featured_image->Upload->KeepFile) {\n\t\t\t\t$this->featured_image->UploadPath = \"../uploads/product/\";\n\t\t\t\t$OldFiles = ew_Empty($this->featured_image->Upload->DbValue) ? array() : array($this->featured_image->Upload->DbValue);\n\t\t\t\tif (!ew_Empty($this->featured_image->Upload->FileName) && $this->UpdateCount == 1) {\n\t\t\t\t\t$NewFiles = array($this->featured_image->Upload->FileName);\n\t\t\t\t\t$NewFileCount = count($NewFiles);\n\t\t\t\t\tfor ($i = 0; $i < $NewFileCount; $i++) {\n\t\t\t\t\t\t$fldvar = ($this->featured_image->Upload->Index < 0) ? $this->featured_image->FldVar : substr($this->featured_image->FldVar, 0, 1) . $this->featured_image->Upload->Index . substr($this->featured_image->FldVar, 1);\n\t\t\t\t\t\tif ($NewFiles[$i] <> \"\") {\n\t\t\t\t\t\t\t$file = $NewFiles[$i];\n\t\t\t\t\t\t\tif (file_exists(ew_UploadTempPath($fldvar, $this->featured_image->TblVar) . $file)) {\n\t\t\t\t\t\t\t\t$OldFileFound = FALSE;\n\t\t\t\t\t\t\t\t$OldFileCount = count($OldFiles);\n\t\t\t\t\t\t\t\tfor ($j = 0; $j < $OldFileCount; $j++) {\n\t\t\t\t\t\t\t\t\t$file1 = $OldFiles[$j];\n\t\t\t\t\t\t\t\t\tif ($file1 == $file) { // Old file found, no need to delete anymore\n\t\t\t\t\t\t\t\t\t\tunset($OldFiles[$j]);\n\t\t\t\t\t\t\t\t\t\t$OldFileFound = TRUE;\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif ($OldFileFound) // No need to check if file exists further\n\t\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\t$file1 = ew_UploadFileNameEx($this->featured_image->PhysicalUploadPath(), $file); // Get new file name\n\t\t\t\t\t\t\t\tif ($file1 <> $file) { // Rename temp file\n\t\t\t\t\t\t\t\t\twhile (file_exists(ew_UploadTempPath($fldvar, $this->featured_image->TblVar) . $file1) || file_exists($this->featured_image->PhysicalUploadPath() . $file1)) // Make sure no file name clash\n\t\t\t\t\t\t\t\t\t\t$file1 = ew_UniqueFilename($this->featured_image->PhysicalUploadPath(), $file1, TRUE); // Use indexed name\n\t\t\t\t\t\t\t\t\trename(ew_UploadTempPath($fldvar, $this->featured_image->TblVar) . $file, ew_UploadTempPath($fldvar, $this->featured_image->TblVar) . $file1);\n\t\t\t\t\t\t\t\t\t$NewFiles[$i] = $file1;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t$this->featured_image->Upload->DbValue = empty($OldFiles) ? \"\" : implode(EW_MULTIPLE_UPLOAD_SEPARATOR, $OldFiles);\n\t\t\t\t\t$this->featured_image->Upload->FileName = implode(EW_MULTIPLE_UPLOAD_SEPARATOR, $NewFiles);\n\t\t\t\t\t$this->featured_image->SetDbValueDef($rsnew, $this->featured_image->Upload->FileName, \"\", $this->featured_image->ReadOnly || $this->featured_image->MultiUpdate <> \"1\");\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Call Row Updating event\n\t\t\t$bUpdateRow = $this->Row_Updating($rsold, $rsnew);\n\t\t\tif ($bUpdateRow) {\n\t\t\t\t$conn->raiseErrorFn = $GLOBALS[\"EW_ERROR_FN\"];\n\t\t\t\tif (count($rsnew) > 0)\n\t\t\t\t\t$EditRow = $this->Update($rsnew, \"\", $rsold);\n\t\t\t\telse\n\t\t\t\t\t$EditRow = TRUE; // No field to update\n\t\t\t\t$conn->raiseErrorFn = '';\n\t\t\t\tif ($EditRow) {\n\t\t\t\t\tif ($this->featured_image->Visible && !$this->featured_image->Upload->KeepFile) {\n\t\t\t\t\t\t$OldFiles = ew_Empty($this->featured_image->Upload->DbValue) ? array() : array($this->featured_image->Upload->DbValue);\n\t\t\t\t\t\tif (!ew_Empty($this->featured_image->Upload->FileName) && $this->UpdateCount == 1) {\n\t\t\t\t\t\t\t$NewFiles = array($this->featured_image->Upload->FileName);\n\t\t\t\t\t\t\t$NewFiles2 = array($rsnew['featured_image']);\n\t\t\t\t\t\t\t$NewFileCount = count($NewFiles);\n\t\t\t\t\t\t\tfor ($i = 0; $i < $NewFileCount; $i++) {\n\t\t\t\t\t\t\t\t$fldvar = ($this->featured_image->Upload->Index < 0) ? $this->featured_image->FldVar : substr($this->featured_image->FldVar, 0, 1) . $this->featured_image->Upload->Index . substr($this->featured_image->FldVar, 1);\n\t\t\t\t\t\t\t\tif ($NewFiles[$i] <> \"\") {\n\t\t\t\t\t\t\t\t\t$file = ew_UploadTempPath($fldvar, $this->featured_image->TblVar) . $NewFiles[$i];\n\t\t\t\t\t\t\t\t\tif (file_exists($file)) {\n\t\t\t\t\t\t\t\t\t\tif (@$NewFiles2[$i] <> \"\") // Use correct file name\n\t\t\t\t\t\t\t\t\t\t\t$NewFiles[$i] = $NewFiles2[$i];\n\t\t\t\t\t\t\t\t\t\tif (!$this->featured_image->Upload->ResizeAndSaveToFile($this->featured_image->ImageWidth, $this->featured_image->ImageHeight, EW_THUMBNAIL_DEFAULT_QUALITY, $NewFiles[$i], TRUE, $i)) {\n\t\t\t\t\t\t\t\t\t\t\t$this->setFailureMessage($Language->Phrase(\"UploadErrMsg7\"));\n\t\t\t\t\t\t\t\t\t\t\treturn FALSE;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$NewFiles = array();\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$OldFileCount = count($OldFiles);\n\t\t\t\t\t\tfor ($i = 0; $i < $OldFileCount; $i++) {\n\t\t\t\t\t\t\tif ($OldFiles[$i] <> \"\" && !in_array($OldFiles[$i], $NewFiles))\n\t\t\t\t\t\t\t\t@unlink($this->featured_image->OldPhysicalUploadPath() . $OldFiles[$i]);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif ($this->getSuccessMessage() <> \"\" || $this->getFailureMessage() <> \"\") {\n\n\t\t\t\t\t// Use the message, do nothing\n\t\t\t\t} elseif ($this->CancelMessage <> \"\") {\n\t\t\t\t\t$this->setFailureMessage($this->CancelMessage);\n\t\t\t\t\t$this->CancelMessage = \"\";\n\t\t\t\t} else {\n\t\t\t\t\t$this->setFailureMessage($Language->Phrase(\"UpdateCancelled\"));\n\t\t\t\t}\n\t\t\t\t$EditRow = FALSE;\n\t\t\t}\n\t\t}\n\n\t\t// Call Row_Updated event\n\t\tif ($EditRow)\n\t\t\t$this->Row_Updated($rsold, $rsnew);\n\t\t$rs->Close();\n\n\t\t// featured_image\n\t\tew_CleanUploadTempPath($this->featured_image, $this->featured_image->Upload->Index);\n\t\treturn $EditRow;\n\t}",
"public function update($record);",
"public function SQL_UPDATE() {\r\n\t}",
"function update(){\n\t\t$this->model->update();\n\t}",
"public function update(){\n static::setConnection();\n $table = static::$table;\n $keyColumn = static::$keyColumn;\n $sql = \"UPDATE \".$table.\" SET \";\n foreach($this as $k=>$v){\n $sql .= $k.\" = '\".$v.\"',\";\n }\n $sql = trim($sql, ',');\n $sql .= \" WHERE \".$keyColumn.\" = \".$this->keyColumn;\n mysqli_query(static::$conn, $sql);\n }",
"public function update() {\n global $db;\n $this->_preupdate();\n $sql_set = '';\n $data = array();\n foreach($this->_magicProperties as $key=>$value)\n {\n $sql_set .= \"`\".addslashes($key).\"`=\";\n $sql_set .= \"?,\";\n $data[] = $value;\n }\n $sql_set = substr($sql_set, 0, -1);\n\n $query = \"UPDATE {$this->table} SET $sql_set WHERE \".$this->id_field.\"=?;\";\n $data[] = $this->{'get'.$this->id_field}();\n\n $result = $db->query($query,$data);\n $this->_postupdate($result);\n return $result;\n }",
"public function update(){\n\t\techo $sql = \"update \".self::$tablename.\" set title=\\\"$this->title\\\",description=\\\"$this->description\\\",skills=\\\"$this->skills\\\",area_id=$this->area_id,jobtype_id=$this->jobtype_id,jobperiod_id=$this->jobperiod_id,duration=$this->duration,is_public=$this->is_public,is_finished=$this->is_finished,created_at=$this->created_at where id=$this->id\";\n\t\tExecutor::doit($sql);\n\t}",
"public function update($id)\n {\n /*\n |--------------------------------------------------------------------------\n |\n | This is an example which edits a particular row. \n | You can un-comment it to use this example\n |\n */\n // $row = Quizz::find($id);\n // $row->column = requestData(\"column\");\n // $row->save();\n }",
"function EditRow() {\r\n\t\tglobal $Security, $Language;\r\n\t\t$sFilter = $this->KeyFilter();\r\n\t\t$sFilter = $this->ApplyUserIDFilters($sFilter);\r\n\t\t$conn = &$this->Connection();\r\n\t\t$this->CurrentFilter = $sFilter;\r\n\t\t$sSql = $this->SQL();\r\n\t\t$conn->raiseErrorFn = $GLOBALS[\"EW_ERROR_FN\"];\r\n\t\t$rs = $conn->Execute($sSql);\r\n\t\t$conn->raiseErrorFn = '';\r\n\t\tif ($rs === FALSE)\r\n\t\t\treturn FALSE;\r\n\t\tif ($rs->EOF) {\r\n\t\t\t$this->setFailureMessage($Language->Phrase(\"NoRecord\")); // Set no record message\r\n\t\t\t$EditRow = FALSE; // Update Failed\r\n\t\t} else {\r\n\r\n\t\t\t// Save old values\r\n\t\t\t$rsold = &$rs->fields;\r\n\t\t\t$this->LoadDbValues($rsold);\r\n\t\t\t$rsnew = array();\r\n\r\n\t\t\t// Nro_Serie\r\n\t\t\t$this->Nro_Serie->SetDbValueDef($rsnew, $this->Nro_Serie->CurrentValue, \"\", $this->Nro_Serie->ReadOnly || $this->Nro_Serie->MultiUpdate <> \"1\");\r\n\r\n\t\t\t// SN\r\n\t\t\t$this->SN->SetDbValueDef($rsnew, $this->SN->CurrentValue, NULL, $this->SN->ReadOnly || $this->SN->MultiUpdate <> \"1\");\r\n\r\n\t\t\t// Cant_Net_Asoc\r\n\t\t\t$this->Cant_Net_Asoc->SetDbValueDef($rsnew, $this->Cant_Net_Asoc->CurrentValue, NULL, $this->Cant_Net_Asoc->ReadOnly || $this->Cant_Net_Asoc->MultiUpdate <> \"1\");\r\n\r\n\t\t\t// Id_Marca\r\n\t\t\t$this->Id_Marca->SetDbValueDef($rsnew, $this->Id_Marca->CurrentValue, 0, $this->Id_Marca->ReadOnly || $this->Id_Marca->MultiUpdate <> \"1\");\r\n\r\n\t\t\t// Id_Modelo\r\n\t\t\t$this->Id_Modelo->SetDbValueDef($rsnew, $this->Id_Modelo->CurrentValue, 0, $this->Id_Modelo->ReadOnly || $this->Id_Modelo->MultiUpdate <> \"1\");\r\n\r\n\t\t\t// Id_SO\r\n\t\t\t$this->Id_SO->SetDbValueDef($rsnew, $this->Id_SO->CurrentValue, 0, $this->Id_SO->ReadOnly || $this->Id_SO->MultiUpdate <> \"1\");\r\n\r\n\t\t\t// Id_Estado\r\n\t\t\t$this->Id_Estado->SetDbValueDef($rsnew, $this->Id_Estado->CurrentValue, 0, $this->Id_Estado->ReadOnly || $this->Id_Estado->MultiUpdate <> \"1\");\r\n\r\n\t\t\t// User_Server\r\n\t\t\t$this->User_Server->SetDbValueDef($rsnew, $this->User_Server->CurrentValue, NULL, $this->User_Server->ReadOnly || $this->User_Server->MultiUpdate <> \"1\");\r\n\r\n\t\t\t// Pass_Server\r\n\t\t\t$this->Pass_Server->SetDbValueDef($rsnew, $this->Pass_Server->CurrentValue, NULL, $this->Pass_Server->ReadOnly || $this->Pass_Server->MultiUpdate <> \"1\");\r\n\r\n\t\t\t// User_TdServer\r\n\t\t\t$this->User_TdServer->SetDbValueDef($rsnew, $this->User_TdServer->CurrentValue, NULL, $this->User_TdServer->ReadOnly || $this->User_TdServer->MultiUpdate <> \"1\");\r\n\r\n\t\t\t// Pass_TdServer\r\n\t\t\t$this->Pass_TdServer->SetDbValueDef($rsnew, $this->Pass_TdServer->CurrentValue, NULL, $this->Pass_TdServer->ReadOnly || $this->Pass_TdServer->MultiUpdate <> \"1\");\r\n\r\n\t\t\t// Cue\r\n\t\t\t// Fecha_Actualizacion\r\n\r\n\t\t\t$this->Fecha_Actualizacion->SetDbValueDef($rsnew, ew_CurrentDate(), NULL);\r\n\t\t\t$rsnew['Fecha_Actualizacion'] = &$this->Fecha_Actualizacion->DbValue;\r\n\r\n\t\t\t// Usuario\r\n\t\t\t$this->Usuario->SetDbValueDef($rsnew, CurrentUserName(), NULL);\r\n\t\t\t$rsnew['Usuario'] = &$this->Usuario->DbValue;\r\n\r\n\t\t\t// Call Row Updating event\r\n\t\t\t$bUpdateRow = $this->Row_Updating($rsold, $rsnew);\r\n\t\t\tif ($bUpdateRow) {\r\n\t\t\t\t$conn->raiseErrorFn = $GLOBALS[\"EW_ERROR_FN\"];\r\n\t\t\t\tif (count($rsnew) > 0)\r\n\t\t\t\t\t$EditRow = $this->Update($rsnew, \"\", $rsold);\r\n\t\t\t\telse\r\n\t\t\t\t\t$EditRow = TRUE; // No field to update\r\n\t\t\t\t$conn->raiseErrorFn = '';\r\n\t\t\t\tif ($EditRow) {\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tif ($this->getSuccessMessage() <> \"\" || $this->getFailureMessage() <> \"\") {\r\n\r\n\t\t\t\t\t// Use the message, do nothing\r\n\t\t\t\t} elseif ($this->CancelMessage <> \"\") {\r\n\t\t\t\t\t$this->setFailureMessage($this->CancelMessage);\r\n\t\t\t\t\t$this->CancelMessage = \"\";\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$this->setFailureMessage($Language->Phrase(\"UpdateCancelled\"));\r\n\t\t\t\t}\r\n\t\t\t\t$EditRow = FALSE;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Call Row_Updated event\r\n\t\tif ($EditRow)\r\n\t\t\t$this->Row_Updated($rsold, $rsnew);\r\n\t\tif ($EditRow) {\r\n\t\t\t$this->WriteAuditTrailOnEdit($rsold, $rsnew);\r\n\t\t}\r\n\t\t$rs->Close();\r\n\t\treturn $EditRow;\r\n\t}",
"public function update() \n\t{\n\t\ttry\n\t\t{\n\t\t\t// Open database connection\n\t\t\t$database = new Database();\n\t\t\t\n\t\t\t// Set the error reporting attribute\n\t\t\t$database->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n\n\t\t\t// Build database query\n\t\t\t$sql = \"update stats set GP=:GP,AB=:AB,R=:R,H=:H,HR=:HR,RBI=:RBI,Salary=:Salary,Bio = :Bio where id = :id\";\n\t\t\t\n\t\t\t// Build database statement\n\t\t\t$statement = $database->prepare($sql);\n\t\t\t$statement->bindParam(':GP', $this->GP, PDO::PARAM_INT);\n\t\t\t$statement->bindParam(':AB', $this->AB, PDO::PARAM_INT);\n\t\t\t$statement->bindParam(':R', $this->R, PDO::PARAM_INT);\n\t\t\t$statement->bindParam(':H', $this->H, PDO::PARAM_INT);\n\t\t\t$statement->bindParam(':HR', $this->HR, PDO::PARAM_INT);\n\t\t\t$statement->bindParam(':RBI', $this->RBI, PDO::PARAM_INT);\n\t\t\t$statement->bindParam(':Salary', $this->Salary, PDO::PARAM_STR);\n\t\t\t$statement->bindParam(':Bio', $this->Bio, PDO::PARAM_STR);\n\t\t\t$statement->bindParam(':id', $this->id, PDO::PARAM_INT);\n\t\t\t\n\t\t\t// Execute database statement\n\t\t\t$statement->execute();\n\t\t\t\n\t\t\t// Get affected rows\n\t\t\t$count = $statement->rowCount();\n\t\t\t\n\t\t\t// Close database resources\n\t\t\t$database = null;\n\t\t\t\n\t\t\t// Return affected rows\n\t\t\treturn $count;\n\t\t}\n\t\tcatch (PDOException $exception) \n\t\t{\n\t\t\tdie($exception->getMessage());\n\t\t}\n\t}",
"public function update() {\n if (!$this->id) {\n //echo \"No se tiene referencia al ID del objeto a actulizar.\";\n throw new Exception(\"No se tiene referencia al ID del objeto a actulizar.\");\n }\n\n $sql = \"UPDATE contratos SET numero_contrato=:numero_contrato, objeto_contrato=:objeto_contrato, presupuesto=:presupuesto, fecha_estimada_finalizacion=:fecha_estimada_finalizacion WHERE id=:id\";\n $args = array(\n \":id\" => $this->id,\n \":numero_contrato\" => $this->numeroContrato,\n \":objeto_contrato\" => $this->objetoContrato,\n \":presupuesto\" => $this->presupuesto,\n \":fecha_estimada_finalizacion\" => $this->fechaEstimadaFinalizacion,\n );\n $stmt = $this->executeQuery($sql, $args);\n\n return !$stmt ? false : true;\n }",
"public function updateRow($data)\r\n\t{\r\n\t\t$data = (array)$data;\r\n\t\t$data = $this->cleanupFieldNames($data);\r\n\t\t\r\n\t\t// Build SQL\r\n\t\t$sql = 'UPDATE `'.$this->name.'` SET ';\r\n\t\t$values = array();\r\n\t\t$pkFound = false;\r\n\t\tforeach($data as $key => $val)\r\n\t\t{\r\n\t\t\t// Ignore if field is not in table\r\n\t\t\tif (!$this->hasField($key))\r\n\t\t\t{\r\n\t\t\t\tunset($data[$key]);\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\r\n\t\t\t// Include value, but not if primary key and table has auto-incr PK\r\n\t\t\t$include = true;\r\n\t\t\tif ($key == $this->primaryKey)\r\n\t\t\t{\r\n\t\t\t\tif ($this->primaryKeyIsAutoIncrement)\r\n\t\t\t\t{\r\n\t\t\t\t\t$include = false;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Found non-empty primary key\r\n\t\t\t\tif (!empty($val))\r\n\t\t\t\t{\r\n\t\t\t\t\t$pkFound = true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t// Include and process special value\r\n\t\t\tif ($include)\r\n\t\t\t{\r\n\t\t\t\tif ($val === 'NULL')\r\n\t\t\t\t{\r\n\t\t\t\t\t$values[] = \"`$key` = NULL\";\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\t$values[] = \"`$key` = :$key\";\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\t\r\n\t\t// Quit if has no primary key\r\n\t\tif (!$pkFound)\r\n\t\t{\r\n\t\t\tthrow new \\Exception('Cannot update: The supplied data does not contain a primary key');\r\n\t\t}\r\n\t\r\n\t\t// No fields were found - update makes no sense\r\n\t\tif (count($values) == 0)\r\n\t\t{\r\n\t\t\tthrow new \\Exception('No fields were added to the UPDATE query');\r\n\t\t}\r\n\t\t\t\r\n\t\t// Add values to query\r\n\t\t$sql .= implode(', ', $values);\r\n\t\r\n\t\t// Add where\r\n\t\t$sql .= ' WHERE `'.$this->primaryKey.'` = :' . $this->primaryKey;\r\n\r\n\t\t// Execute\r\n\t\t$result = $this->db->runQuery($sql, $data);\r\n\t\t\r\n\t\treturn $this->db->getAffectedRows();\r\n\t}",
"public function update(){\n\t\t$sql = \"update \".self::$tablename.\" set name=\\\"$this->name\\\",short_name=\\\"$this->short_name\\\",is_active=\\\"$this->is_active\\\" where id=$this->id\";\n\t\tExecutor::doit($sql);\n\t}",
"public function updateRecord(){\n\t\tglobal $db;\n $data = array('email'=>$this->email);\n\t\t\t\t$response = $db->update($this->table,$data,\"id = $this->id\");\n\t\treturn $response;\n\t}",
"public function update($data) {}",
"public function update($data) {}",
"public function update() {\n global $DB;\n $record = array(\n 'sortorder' => $this->sortorder,\n 'criterion' => $this->criterion,\n 'addinfo' => json_encode($this->addinfo)\n );\n if ($this->id) {\n $record['id'] = $this->id;\n $DB->update_record($this->get_table_name(), $record);\n } else {\n $record['instantquizid'] = $this->instantquiz->id;\n $this->id = $DB->insert_record($this->get_table_name(), $record);\n }\n }",
"public function update() {\n $Sql = \"UPDATE \" . $this->tableName[0] . \" SET \";\n foreach ($this->fieldListArray as $Key_ => $Value_) {\n $Sql = $Sql . \"$Key_='$Value_', \";\n }\n $Sql = substr($Sql, 0, strlen($Sql) - 2);\n $Sql = $Sql . \" WHERE \";\n foreach ($this->conditionArray as $Key_ => $Value_) {\n $Sql = $Sql . \"$Key_='$Value_' AND \";\n }\n $Sql = substr($Sql, 0, strlen($Sql) - 4);\n //echo $Sql;\n return mysqli_query($this->dataBaseConnect->getConnection(), $Sql);\n }",
"private function Update() {\n $Update = new Update;\n $Update->ExeUpdate(self::Entity, $this->Data, \"WHERE id = :id\", \"id={$this->Post}\");\n if ($Update->getResult()):\n $this->Error = [\"As informações de <b>contato</b> foram atualizadas com sucesso!\", WS_ACCEPT];\n $this->Result = true;\n endif;\n }",
"public function update()\n {\n if (empty($this->info)) {\n return true;\n }\n\n $success = $this->query($this->constructUpdateQuery());\n $this->numRows = $this->conn->affected_rows;\n\n return $success;\n }",
"public function update() {\n\n // Does the course object have an ID?\n if ( is_null( $this->courseId ) ) trigger_error ( \"Course::update(): Attempt to update Course object that does not have its ID property set.\", E_USER_ERROR );\n\n // Update the course\n $conn = new PDO( DB_DSN, DB_USERNAME, DB_PASSWORD );\n $sql = \"UPDATE course SET courseCode=:courseCode, courseName=:courseName, description=:description, headTeacher=:headTeacher WHERE courseId = :courseId\";\n $st = $conn->prepare ( $sql );\n $st->bindValue( \":courseCode\", $this->courseCode, PDO::PARAM_INT );\n $st->bindValue( \":courseName\", $this->courseName, PDO::PARAM_INT );\n $st->bindValue( \":description\", $this->description, PDO::PARAM_STR );\n $st->bindValue( \":headTeacher\", $this->headTeacher, PDO::PARAM_STR );\n\n//\n $st->bindValue( \":courseId\", $this->courseId, PDO::PARAM_INT );\n $st->execute();\n $conn = null;\n }",
"function EditRow() {\r\n\t\tglobal $Security, $Language;\r\n\t\t$sFilter = $this->KeyFilter();\r\n\t\t$sFilter = $this->ApplyUserIDFilters($sFilter);\r\n\t\t$conn = &$this->Connection();\r\n\t\t$this->CurrentFilter = $sFilter;\r\n\t\t$sSql = $this->SQL();\r\n\t\t$conn->raiseErrorFn = $GLOBALS[\"EW_ERROR_FN\"];\r\n\t\t$rs = $conn->Execute($sSql);\r\n\t\t$conn->raiseErrorFn = '';\r\n\t\tif ($rs === FALSE)\r\n\t\t\treturn FALSE;\r\n\t\tif ($rs->EOF) {\r\n\t\t\t$this->setFailureMessage($Language->Phrase(\"NoRecord\")); // Set no record message\r\n\t\t\t$EditRow = FALSE; // Update Failed\r\n\t\t} else {\r\n\r\n\t\t\t// Save old values\r\n\t\t\t$rsold = &$rs->fields;\r\n\t\t\t$this->LoadDbValues($rsold);\r\n\t\t\t$this->Ruta_Archivo->OldUploadPath = 'ArchivosPase';\r\n\t\t\t$this->Ruta_Archivo->UploadPath = $this->Ruta_Archivo->OldUploadPath;\r\n\t\t\t$rsnew = array();\r\n\r\n\t\t\t// Serie_Equipo\r\n\t\t\t$this->Serie_Equipo->SetDbValueDef($rsnew, $this->Serie_Equipo->CurrentValue, NULL, $this->Serie_Equipo->ReadOnly);\r\n\r\n\t\t\t// Id_Hardware\r\n\t\t\t$this->Id_Hardware->SetDbValueDef($rsnew, $this->Id_Hardware->CurrentValue, NULL, $this->Id_Hardware->ReadOnly);\r\n\r\n\t\t\t// SN\r\n\t\t\t$this->SN->SetDbValueDef($rsnew, $this->SN->CurrentValue, NULL, $this->SN->ReadOnly);\r\n\r\n\t\t\t// Modelo_Net\r\n\t\t\t$this->Modelo_Net->SetDbValueDef($rsnew, $this->Modelo_Net->CurrentValue, NULL, $this->Modelo_Net->ReadOnly);\r\n\r\n\t\t\t// Marca_Arranque\r\n\t\t\t$this->Marca_Arranque->SetDbValueDef($rsnew, $this->Marca_Arranque->CurrentValue, NULL, $this->Marca_Arranque->ReadOnly);\r\n\r\n\t\t\t// Nombre_Titular\r\n\t\t\t$this->Nombre_Titular->SetDbValueDef($rsnew, $this->Nombre_Titular->CurrentValue, NULL, $this->Nombre_Titular->ReadOnly);\r\n\r\n\t\t\t// Dni_Titular\r\n\t\t\t$this->Dni_Titular->SetDbValueDef($rsnew, $this->Dni_Titular->CurrentValue, NULL, $this->Dni_Titular->ReadOnly);\r\n\r\n\t\t\t// Cuil_Titular\r\n\t\t\t$this->Cuil_Titular->SetDbValueDef($rsnew, $this->Cuil_Titular->CurrentValue, NULL, $this->Cuil_Titular->ReadOnly);\r\n\r\n\t\t\t// Nombre_Tutor\r\n\t\t\t$this->Nombre_Tutor->SetDbValueDef($rsnew, $this->Nombre_Tutor->CurrentValue, NULL, $this->Nombre_Tutor->ReadOnly);\r\n\r\n\t\t\t// DniTutor\r\n\t\t\t$this->DniTutor->SetDbValueDef($rsnew, $this->DniTutor->CurrentValue, NULL, $this->DniTutor->ReadOnly);\r\n\r\n\t\t\t// Domicilio\r\n\t\t\t$this->Domicilio->SetDbValueDef($rsnew, $this->Domicilio->CurrentValue, NULL, $this->Domicilio->ReadOnly);\r\n\r\n\t\t\t// Tel_Tutor\r\n\t\t\t$this->Tel_Tutor->SetDbValueDef($rsnew, $this->Tel_Tutor->CurrentValue, NULL, $this->Tel_Tutor->ReadOnly);\r\n\r\n\t\t\t// CelTutor\r\n\t\t\t$this->CelTutor->SetDbValueDef($rsnew, $this->CelTutor->CurrentValue, NULL, $this->CelTutor->ReadOnly);\r\n\r\n\t\t\t// Cue_Establecimiento_Alta\r\n\t\t\t$this->Cue_Establecimiento_Alta->SetDbValueDef($rsnew, $this->Cue_Establecimiento_Alta->CurrentValue, NULL, $this->Cue_Establecimiento_Alta->ReadOnly);\r\n\r\n\t\t\t// Escuela_Alta\r\n\t\t\t$this->Escuela_Alta->SetDbValueDef($rsnew, $this->Escuela_Alta->CurrentValue, NULL, $this->Escuela_Alta->ReadOnly);\r\n\r\n\t\t\t// Directivo_Alta\r\n\t\t\t$this->Directivo_Alta->SetDbValueDef($rsnew, $this->Directivo_Alta->CurrentValue, NULL, $this->Directivo_Alta->ReadOnly);\r\n\r\n\t\t\t// Cuil_Directivo_Alta\r\n\t\t\t$this->Cuil_Directivo_Alta->SetDbValueDef($rsnew, $this->Cuil_Directivo_Alta->CurrentValue, NULL, $this->Cuil_Directivo_Alta->ReadOnly);\r\n\r\n\t\t\t// Dpto_Esc_alta\r\n\t\t\t$this->Dpto_Esc_alta->SetDbValueDef($rsnew, $this->Dpto_Esc_alta->CurrentValue, NULL, $this->Dpto_Esc_alta->ReadOnly);\r\n\r\n\t\t\t// Localidad_Esc_Alta\r\n\t\t\t$this->Localidad_Esc_Alta->SetDbValueDef($rsnew, $this->Localidad_Esc_Alta->CurrentValue, NULL, $this->Localidad_Esc_Alta->ReadOnly);\r\n\r\n\t\t\t// Domicilio_Esc_Alta\r\n\t\t\t$this->Domicilio_Esc_Alta->SetDbValueDef($rsnew, $this->Domicilio_Esc_Alta->CurrentValue, NULL, $this->Domicilio_Esc_Alta->ReadOnly);\r\n\r\n\t\t\t// Rte_Alta\r\n\t\t\t$this->Rte_Alta->SetDbValueDef($rsnew, $this->Rte_Alta->CurrentValue, NULL, $this->Rte_Alta->ReadOnly);\r\n\r\n\t\t\t// Tel_Rte_Alta\r\n\t\t\t$this->Tel_Rte_Alta->SetDbValueDef($rsnew, $this->Tel_Rte_Alta->CurrentValue, NULL, $this->Tel_Rte_Alta->ReadOnly);\r\n\r\n\t\t\t// Email_Rte_Alta\r\n\t\t\t$this->Email_Rte_Alta->SetDbValueDef($rsnew, $this->Email_Rte_Alta->CurrentValue, NULL, $this->Email_Rte_Alta->ReadOnly);\r\n\r\n\t\t\t// Serie_Server_Alta\r\n\t\t\t$this->Serie_Server_Alta->SetDbValueDef($rsnew, $this->Serie_Server_Alta->CurrentValue, NULL, $this->Serie_Server_Alta->ReadOnly);\r\n\r\n\t\t\t// Cue_Establecimiento_Baja\r\n\t\t\t$this->Cue_Establecimiento_Baja->SetDbValueDef($rsnew, $this->Cue_Establecimiento_Baja->CurrentValue, NULL, $this->Cue_Establecimiento_Baja->ReadOnly);\r\n\r\n\t\t\t// Escuela_Baja\r\n\t\t\t$this->Escuela_Baja->SetDbValueDef($rsnew, $this->Escuela_Baja->CurrentValue, NULL, $this->Escuela_Baja->ReadOnly);\r\n\r\n\t\t\t// Directivo_Baja\r\n\t\t\t$this->Directivo_Baja->SetDbValueDef($rsnew, $this->Directivo_Baja->CurrentValue, NULL, $this->Directivo_Baja->ReadOnly);\r\n\r\n\t\t\t// Cuil_Directivo_Baja\r\n\t\t\t$this->Cuil_Directivo_Baja->SetDbValueDef($rsnew, $this->Cuil_Directivo_Baja->CurrentValue, NULL, $this->Cuil_Directivo_Baja->ReadOnly);\r\n\r\n\t\t\t// Dpto_Esc_Baja\r\n\t\t\t$this->Dpto_Esc_Baja->SetDbValueDef($rsnew, $this->Dpto_Esc_Baja->CurrentValue, NULL, $this->Dpto_Esc_Baja->ReadOnly);\r\n\r\n\t\t\t// Localidad_Esc_Baja\r\n\t\t\t$this->Localidad_Esc_Baja->SetDbValueDef($rsnew, $this->Localidad_Esc_Baja->CurrentValue, NULL, $this->Localidad_Esc_Baja->ReadOnly);\r\n\r\n\t\t\t// Domicilio_Esc_Baja\r\n\t\t\t$this->Domicilio_Esc_Baja->SetDbValueDef($rsnew, $this->Domicilio_Esc_Baja->CurrentValue, NULL, $this->Domicilio_Esc_Baja->ReadOnly);\r\n\r\n\t\t\t// Rte_Baja\r\n\t\t\t$this->Rte_Baja->SetDbValueDef($rsnew, $this->Rte_Baja->CurrentValue, NULL, $this->Rte_Baja->ReadOnly);\r\n\r\n\t\t\t// Tel_Rte_Baja\r\n\t\t\t$this->Tel_Rte_Baja->SetDbValueDef($rsnew, $this->Tel_Rte_Baja->CurrentValue, NULL, $this->Tel_Rte_Baja->ReadOnly);\r\n\r\n\t\t\t// Email_Rte_Baja\r\n\t\t\t$this->Email_Rte_Baja->SetDbValueDef($rsnew, $this->Email_Rte_Baja->CurrentValue, NULL, $this->Email_Rte_Baja->ReadOnly);\r\n\r\n\t\t\t// Serie_Server_Baja\r\n\t\t\t$this->Serie_Server_Baja->SetDbValueDef($rsnew, $this->Serie_Server_Baja->CurrentValue, NULL, $this->Serie_Server_Baja->ReadOnly);\r\n\r\n\t\t\t// Fecha_Pase\r\n\t\t\t$this->Fecha_Pase->SetDbValueDef($rsnew, ew_UnFormatDateTime($this->Fecha_Pase->CurrentValue, 7), NULL, $this->Fecha_Pase->ReadOnly);\r\n\r\n\t\t\t// Id_Estado_Pase\r\n\t\t\t$this->Id_Estado_Pase->SetDbValueDef($rsnew, $this->Id_Estado_Pase->CurrentValue, 0, $this->Id_Estado_Pase->ReadOnly);\r\n\r\n\t\t\t// Ruta_Archivo\r\n\t\t\tif ($this->Ruta_Archivo->Visible && !$this->Ruta_Archivo->ReadOnly && !$this->Ruta_Archivo->Upload->KeepFile) {\r\n\t\t\t\t$this->Ruta_Archivo->Upload->DbValue = $rsold['Ruta_Archivo']; // Get original value\r\n\t\t\t\tif ($this->Ruta_Archivo->Upload->FileName == \"\") {\r\n\t\t\t\t\t$rsnew['Ruta_Archivo'] = NULL;\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$rsnew['Ruta_Archivo'] = $this->Ruta_Archivo->Upload->FileName;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif ($this->Ruta_Archivo->Visible && !$this->Ruta_Archivo->Upload->KeepFile) {\r\n\t\t\t\t$this->Ruta_Archivo->UploadPath = 'ArchivosPase';\r\n\t\t\t\t$OldFiles = explode(EW_MULTIPLE_UPLOAD_SEPARATOR, $this->Ruta_Archivo->Upload->DbValue);\r\n\t\t\t\tif (!ew_Empty($this->Ruta_Archivo->Upload->FileName)) {\r\n\t\t\t\t\t$NewFiles = explode(EW_MULTIPLE_UPLOAD_SEPARATOR, $this->Ruta_Archivo->Upload->FileName);\r\n\t\t\t\t\t$FileCount = count($NewFiles);\r\n\t\t\t\t\tfor ($i = 0; $i < $FileCount; $i++) {\r\n\t\t\t\t\t\t$fldvar = ($this->Ruta_Archivo->Upload->Index < 0) ? $this->Ruta_Archivo->FldVar : substr($this->Ruta_Archivo->FldVar, 0, 1) . $this->Ruta_Archivo->Upload->Index . substr($this->Ruta_Archivo->FldVar, 1);\r\n\t\t\t\t\t\tif ($NewFiles[$i] <> \"\") {\r\n\t\t\t\t\t\t\t$file = $NewFiles[$i];\r\n\t\t\t\t\t\t\tif (file_exists(ew_UploadTempPath($fldvar, $this->Ruta_Archivo->TblVar) . EW_PATH_DELIMITER . $file)) {\r\n\t\t\t\t\t\t\t\tif (!in_array($file, $OldFiles)) {\r\n\t\t\t\t\t\t\t\t\t$file1 = ew_UploadFileNameEx(ew_UploadPathEx(TRUE, $this->Ruta_Archivo->UploadPath), $file); // Get new file name\r\n\t\t\t\t\t\t\t\t\tif ($file1 <> $file) { // Rename temp file\r\n\t\t\t\t\t\t\t\t\t\twhile (file_exists(ew_UploadTempPath($fldvar, $this->Ruta_Archivo->TblVar) . EW_PATH_DELIMITER . $file1)) // Make sure did not clash with existing upload file\r\n\t\t\t\t\t\t\t\t\t\t\t$file1 = ew_UniqueFilename(ew_UploadPathEx(TRUE, $this->Ruta_Archivo->UploadPath), $file1, TRUE); // Use indexed name\r\n\t\t\t\t\t\t\t\t\t\trename(ew_UploadTempPath($fldvar, $this->Ruta_Archivo->TblVar) . EW_PATH_DELIMITER . $file, ew_UploadTempPath($fldvar, $this->Ruta_Archivo->TblVar) . EW_PATH_DELIMITER . $file1);\r\n\t\t\t\t\t\t\t\t\t\t$NewFiles[$i] = $file1;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t$this->Ruta_Archivo->Upload->FileName = implode(EW_MULTIPLE_UPLOAD_SEPARATOR, $NewFiles);\r\n\t\t\t\t\t$rsnew['Ruta_Archivo'] = $this->Ruta_Archivo->Upload->FileName;\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$NewFiles = array();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t// Call Row Updating event\r\n\t\t\t$bUpdateRow = $this->Row_Updating($rsold, $rsnew);\r\n\t\t\tif ($bUpdateRow) {\r\n\t\t\t\t$conn->raiseErrorFn = $GLOBALS[\"EW_ERROR_FN\"];\r\n\t\t\t\tif (count($rsnew) > 0)\r\n\t\t\t\t\t$EditRow = $this->Update($rsnew, \"\", $rsold);\r\n\t\t\t\telse\r\n\t\t\t\t\t$EditRow = TRUE; // No field to update\r\n\t\t\t\t$conn->raiseErrorFn = '';\r\n\t\t\t\tif ($EditRow) {\r\n\t\t\t\t\tif ($this->Ruta_Archivo->Visible && !$this->Ruta_Archivo->Upload->KeepFile) {\r\n\t\t\t\t\t\t$OldFiles = explode(EW_MULTIPLE_UPLOAD_SEPARATOR, $this->Ruta_Archivo->Upload->DbValue);\r\n\t\t\t\t\t\tif (!ew_Empty($this->Ruta_Archivo->Upload->FileName)) {\r\n\t\t\t\t\t\t\t$NewFiles = explode(EW_MULTIPLE_UPLOAD_SEPARATOR, $this->Ruta_Archivo->Upload->FileName);\r\n\t\t\t\t\t\t\t$NewFiles2 = explode(EW_MULTIPLE_UPLOAD_SEPARATOR, $rsnew['Ruta_Archivo']);\r\n\t\t\t\t\t\t\t$FileCount = count($NewFiles);\r\n\t\t\t\t\t\t\tfor ($i = 0; $i < $FileCount; $i++) {\r\n\t\t\t\t\t\t\t\t$fldvar = ($this->Ruta_Archivo->Upload->Index < 0) ? $this->Ruta_Archivo->FldVar : substr($this->Ruta_Archivo->FldVar, 0, 1) . $this->Ruta_Archivo->Upload->Index . substr($this->Ruta_Archivo->FldVar, 1);\r\n\t\t\t\t\t\t\t\tif ($NewFiles[$i] <> \"\") {\r\n\t\t\t\t\t\t\t\t\t$file = ew_UploadTempPath($fldvar, $this->Ruta_Archivo->TblVar) . EW_PATH_DELIMITER . $NewFiles[$i];\r\n\t\t\t\t\t\t\t\t\tif (file_exists($file)) {\r\n\t\t\t\t\t\t\t\t\t\t$this->Ruta_Archivo->Upload->SaveToFile($this->Ruta_Archivo->UploadPath, (@$NewFiles2[$i] <> \"\") ? $NewFiles2[$i] : $NewFiles[$i], TRUE, $i); // Just replace\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t$NewFiles = array();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t$FileCount = count($OldFiles);\r\n\t\t\t\t\t\tfor ($i = 0; $i < $FileCount; $i++) {\r\n\t\t\t\t\t\t\tif ($OldFiles[$i] <> \"\" && !in_array($OldFiles[$i], $NewFiles))\r\n\t\t\t\t\t\t\t\t@unlink(ew_UploadPathEx(TRUE, $this->Ruta_Archivo->OldUploadPath) . $OldFiles[$i]);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tif ($this->getSuccessMessage() <> \"\" || $this->getFailureMessage() <> \"\") {\r\n\r\n\t\t\t\t\t// Use the message, do nothing\r\n\t\t\t\t} elseif ($this->CancelMessage <> \"\") {\r\n\t\t\t\t\t$this->setFailureMessage($this->CancelMessage);\r\n\t\t\t\t\t$this->CancelMessage = \"\";\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$this->setFailureMessage($Language->Phrase(\"UpdateCancelled\"));\r\n\t\t\t\t}\r\n\t\t\t\t$EditRow = FALSE;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Call Row_Updated event\r\n\t\tif ($EditRow)\r\n\t\t\t$this->Row_Updated($rsold, $rsnew);\r\n\t\tif ($EditRow) {\r\n\t\t\t$this->WriteAuditTrailOnEdit($rsold, $rsnew);\r\n\t\t}\r\n\t\t$rs->Close();\r\n\r\n\t\t// Ruta_Archivo\r\n\t\tew_CleanUploadTempPath($this->Ruta_Archivo, $this->Ruta_Archivo->Upload->Index);\r\n\t\treturn $EditRow;\r\n\t}",
"public function DoUpdate()\n\t{\n\n\t\treturn db_update_records($this->fields, $this->tables, $this->values, $this->filters);\n\t}",
"public function update() {\r\n\r\n\t\ttry {\r\n\t\t\tglobal $ks_db;\r\n\t\t\tglobal $ks_log;\r\n\r\n\t\t\t$ks_db->beginTransaction ();\r\n\t\t\t\r\n\t\t\t$arrBindings = array ();\r\n\t\t\t\r\n\t\t\tif (! isset ( $this->id )) { \r\n\t\t\t\techo \"Fatal Error: Id is not set for the object! Please do \\$objA->setId(\\$id); in: \" . __METHOD__;\r\n\t\t\t\texit ();\r\n\t\t\t}\r\n\r\n\t\t\t//check if record exists\r\n\t\t\tif(! $this->exists ()) {\r\n\t\t\t\techo \"Fatal Error: No record found with id of ($this->id)\";\r\n\t\t\t\texit ();\r\n\t\t\t}\r\n\r\n\t\t\t$sql = \"UPDATE $this->sqlTable SET \";\r\n\t\t\t\r\n\t\t\tif (isset ( $this->userid )) {\r\n\t\t\t\t$sql .= \"lp_userid = ?, \";\r\n\t\t\t\t$arrBindings[] = $this->userid;\r\n\t\t\t}\r\n\t\t\tif (isset ( $this->random )) {\r\n\t\t\t\t$sql .= \"lp_random = ?, \";\r\n\t\t\t\t$arrBindings[] = $this->random;\r\n\t\t\t}\r\n\t\t\tif (isset ( $this->deadline )) {\r\n\t\t\t\t$sql .= \"lp_deadline = ?, \";\r\n\t\t\t\t$arrBindings[] = $this->deadline;\r\n\t\t\t}\r\n\r\n\t\t\t$sql = preg_replace ( '/, $/', '', $sql);\r\n\t\t\t$sql .= \" WHERE lp_id = ?\";\r\n\t\t\t$arrBindings[] = $this->id;\r\n\t\t\t\r\n\t\t\t$ks_db->query ( $sql, $arrBindings );\r\n\t\r\n\t\t\t$ks_db->commit ();\r\n\t\t\t\r\n\t\t} catch(Exception $e) {\r\n\t\t\t$ks_db->rollBack ();\r\n\t\t\t$ks_log->info ( 'Fatal Error: ' . __CLASS__ . '::' . __METHOD__ . '. ' . $e->getMessage () );\r\n\t\t\t$ks_log->info ( '<br>SQL Statement: ' . $sql);\r\n\t\t\techo \"Fatal Error: \" . __CLASS__ . '::' . __METHOD__ . '. ' . $e->getMessage ();\r\n\t\t\techo \"SQL Statement: \" . $sql;\r\n\t\t}\r\n\t}",
"function EditRow() {\r\n\t\tglobal $conn, $Security, $Language;\r\n\t\t$sFilter = $this->KeyFilter();\r\n\t\t$this->CurrentFilter = $sFilter;\r\n\t\t$sSql = $this->SQL();\r\n\t\t$conn->raiseErrorFn = 'ew_ErrorFn';\r\n\t\t$rs = $conn->Execute($sSql);\r\n\t\t$conn->raiseErrorFn = '';\r\n\t\tif ($rs === FALSE)\r\n\t\t\treturn FALSE;\r\n\t\tif ($rs->EOF) {\r\n\t\t\t$EditRow = FALSE; // Update Failed\r\n\t\t} else {\r\n\r\n\t\t\t// Save old values\r\n\t\t\t$rsold = &$rs->fields;\r\n\t\t\t$rsnew = array();\r\n\r\n\t\t\t// Con_SIM\r\n\t\t\t$this->Con_SIM->SetDbValueDef($rsnew, $this->Con_SIM->CurrentValue, NULL, $this->Con_SIM->ReadOnly);\r\n\r\n\t\t\t// Observaciones\r\n\t\t\t$this->Observaciones->SetDbValueDef($rsnew, $this->Observaciones->CurrentValue, NULL, $this->Observaciones->ReadOnly);\r\n\r\n\t\t\t// Call Row Updating event\r\n\t\t\t$bUpdateRow = $this->Row_Updating($rsold, $rsnew);\r\n\t\t\tif ($bUpdateRow) {\r\n\t\t\t\t$conn->raiseErrorFn = 'ew_ErrorFn';\r\n\t\t\t\tif (count($rsnew) > 0)\r\n\t\t\t\t\t$EditRow = $this->Update($rsnew);\r\n\t\t\t\telse\r\n\t\t\t\t\t$EditRow = TRUE; // No field to update\r\n\t\t\t\t$conn->raiseErrorFn = '';\r\n\t\t\t} else {\r\n\t\t\t\tif ($this->getSuccessMessage() <> \"\" || $this->getFailureMessage() <> \"\") {\r\n\r\n\t\t\t\t\t// Use the message, do nothing\r\n\t\t\t\t} elseif ($this->CancelMessage <> \"\") {\r\n\t\t\t\t\t$this->setFailureMessage($this->CancelMessage);\r\n\t\t\t\t\t$this->CancelMessage = \"\";\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$this->setFailureMessage($Language->Phrase(\"UpdateCancelled\"));\r\n\t\t\t\t}\r\n\t\t\t\t$EditRow = FALSE;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Call Row_Updated event\r\n\t\tif ($EditRow)\r\n\t\t\t$this->Row_Updated($rsold, $rsnew);\r\n\t\t$rs->Close();\r\n\t\treturn $EditRow;\r\n\t}",
"protected function update()\n\t{\n\t\t$set = array();\n\t\tforeach( $this->attributes as $column => $value )\n\t\t{\n\t\t\t$set[] = \"`$column`=?\";\n\t\t}\n\t\t$set = implode(\",\", $set);\n\t\t\n\t\t$methodAttributes = array_values( $this->attributes );\n\t\t// add first method attribute - query\n\t\tarray_unshift($methodAttributes, \"UPDATE `\" . static::$table . \"` SET $set WHERE `\" . static::$primaryKey . \"` = ?\");\n\t\t// add last method attribute - primaryKey to WHERE\n\t\t$methodAttributes[] = $this->attributes[static::$primaryKey];\n\t\t\n\t\t// inserting\n\t\treturn call_user_func_array(\"Database::update\", $methodAttributes);\n\t}",
"public function save()\n {\n $db = DatabaseUtil::db_connect($this->database);\n $db->query('update ' . $this->table . 'set ' . $this->column . ' = ' . $this->value . ' where ID=' . $this->ID);\n $db->close();\n }",
"protected function updateObject()\n {\n $gatewayData = $this->encodeDataToJson();\n\n $query = $this->db->getQuery(true);\n\n $query\n ->update($this->db->quoteName(\"#__crowdf_intentions\"))\n ->set($this->db->quoteName(\"user_id\") . \"=\" . $this->db->quote($this->user_id))\n ->set($this->db->quoteName(\"project_id\") . \"=\" . $this->db->quote($this->project_id))\n ->set($this->db->quoteName(\"reward_id\") . \"=\" . $this->db->quote($this->reward_id))\n ->set($this->db->quoteName(\"unique_key\") . \"=\" . $this->db->quote($this->unique_key))\n ->set($this->db->quoteName(\"gateway\") . \"=\" . $this->db->quote($this->gateway))\n ->set($this->db->quoteName(\"gateway_data\") . \"=\" . $this->db->quote($gatewayData))\n ->set($this->db->quoteName(\"auser_id\") . \"=\" . $this->db->quote($this->auser_id))\n ->set($this->db->quoteName(\"session_id\") . \"=\" . $this->db->quote($this->session_id))\n ->where($this->db->quoteName(\"id\") .\"=\". (int)$this->id);\n\n $this->db->setQuery($query);\n $this->db->execute();\n }",
"public function update():void\n {\n $id = $this->id;\n $first_name = $this->first_name;\n $last_name = $this->last_name;\n $image = $this->image;\n $user_type = $this->user_type;\n $address = $this->address;\n\t\t$phone = $this->phone;\n $this->fetch(\n 'UPDATE user\n SET first_name = ?,\n last_name = ?,\n image = ?,\n user_type = ?,\n address=?,\n phone=?\n WHERE id = ?;',\n [$first_name, $last_name,$image, $user_type,$address ,$phone , $id]\n );\n }",
"public function update()\n\t{\n\t\t$mytable = WikiRevision::$table;\n\t\t$buf = \"UPDATE $mytable SET \";\n\t\tfor ($i = 0; $i < count(WikiRevision::$fields); $i++) {\n\t\t\t$buf .= WikiRevision::$fields[$i] . \" = '\" . DBConnection::get()->handle()->real_escape_string($this->data[$fields[$i]]) . \"'\" . ($i == count(WikiRevision::$fields) - 1)?(', '):(' ');\n\t\t}\n\t\t$buf .= \"WHERE rev_id = \" . $data['rev_id'];\n\t\tDBConnection::get()->handle()->query($buf);\n\t}",
"public function update() {\r\n\r\n // get database connection\r\n\r\n \r\n \r\n $sql_update = \"update employees SET fname = '$this->firstName', lname = '$this->lastName', email = '$this->email' where id = '$this->id'\";\r\n if ($this->dbc->query($sql_update)) {\r\n\r\n echo \"<p> User Successfully Updated </p>\";\r\n return true;\r\n } else {\r\n\r\n echo \"<p> Could not run query </p>\";\r\n return false;\r\n }\r\n }",
"public function update(){\n $sql = \"update \".self::$tablename.\" set correlativo=\\\"$this->correlativo\\\",nombre_instalador=\\\"$this->nombre_instalador\\\",nombre_proyecto=\\\"$this->nombre_proyecto\\\",localizacion=\\\"$this->localizacion\\\",contrato_orden_trabajo=\\\"$this->contrato_orden_trabajo\\\",sector_trabajo=\\\"$this->sector_trabajo\\\",area_aceptada=\\\"$this->area_aceptada\\\",fecha_proyecto=\\\"$this->fecha_proyecto\\\" where id_usuario=$this->id_usuario\";\n Executor::doit($sql);\n }",
"public function updateData()\n {\n try {\n// echo \"<pre>\";\n// print_r($this->where);\n// print_r($this->insertUpdateArray);\n// exit;\n DB::table($this->dbTable)\n ->where($this->where)\n ->update($this->insertUpdateArray);\n } catch (Exception $ex) {\n throw new Exception($ex->getMessage(), 10024, $ex);\n }\n }",
"function update(){\n\t\t\t\t$servername = \"localhost\";\n\t\t\t\t$username = \"root\";\n\t\t\t\t$password = \"\";\n\t\t\t\t$dbname = \"CS230\";\n\t\t\t\t//Variables for holding entity data\n\t\t\t\t$i = $_POST['i'];\n\t\t\t\t$cr = $_POST['creator'];\n\t\t\t\t$ti = $_POST['title'];\n\t\t\t\t$ty = $_POST['type'];\n\t\t\t\t$id = $_POST['identifier'];\n\t\t\t\t$da = $_POST['date'];\n\t\t\t\t$la = $_POST['language'];\n\t\t\t\t$de = $_POST['description'];\n\t\t\t\t$conn = mysqli_connect($servername, $username, $password, $dbname);\n\t\t\t\t\tif($conn){\n\t\t\t\t\t//echo \"Connection OK\";\n\t\t\t\t\t}else{\n\t\t\t\t\t\tdie(\"The Connection has failed: \" .mysqli_connect_error());\n\t\t\t\t\t}\n\t\t\t\t$sql = \"UPDATE eBook_MetaData SET creator='$cr', title='$ti', type='$ty', identifier='$id', date='$da', language='$la', description='$de' WHERE id='$i'\";\n\t\t\t\t\t$data = mysqli_query($conn, $sql);\n\n\t\t\t\t\tif(!$data){\n\t\t\t\t\t\techo \"error\";\n\t\t\t\t\t}else{\n\t\t\t\t\t\techo \"data updated\";\n\t\t\t\t\t}\t\n\t\t\t\t\n\t\t\t\t$conn = null;\n\t\t\t\t}",
"public function updateRow($object)\n {\n $con = $this->getConnection();\n $statement = mysqli_prepare($con, \"UPDATE Comment SET UserID=? WHERE ID =?\");\n mysqli_stmt_bind_param($statement, 'ii', $UserID, $ID);\n $ID = $object->ID;\n $UserID = $object->UserID;\n mysqli_stmt_execute($statement);\n }",
"public function testUpdate()\n {\n $id = $this->tester->grabRecord('common\\models\\Comentario', ['id_receita' => 2]);\n $receita = Comentario::findOne($id);\n $receita->descricao = 'novo Comentario';\n $receita->update();\n $this->tester->seeRecord('common\\models\\Comentario', ['descricao' => 'novo Comentario']);\n }",
"public function update() {\n // Create Query\n $query = \n \"UPDATE \n $this->table \n SET\n name = :name\n WHERE\n id = :id;\";\n \n // Prepare Statement\n $stmt = $this->conn->prepare($query);\n \n // Clean data\n $this->name = htmlspecialchars(strip_tags($this->name));\n $this->id = htmlspecialchars(strip_tags($this->id));\n \n // Bind data\n $stmt-> bindParam(':name', $this->name);\n $stmt-> bindParam(':id', $this->id);\n \n // Execute query\n if($stmt->execute()) {\n return true;\n }\n\n // Print error if something goes wrong\n printf(\"Error: %s.\\n\", $stmt->error);\n return false;\n }",
"public function update()\n\t{\n\t\ttry {\n\t\t\t$query = $this->connection->prepare(\"UPDATE \".self::$table.\" SET title=:title, content=:content, content_preview=:contentPreview WHERE id=:id\");\n\t\t\t$query->bindParam(':title', $this->title);\n\t\t\t$query->bindParam(':content', $this->content);\n\t\t\t$query->bindParam(':contentPreview', $this->contentPreview);\n\t\t\t$query->bindParam(':id', $this->id);\n\n\t\t\treturn $query->execute();\n\t\t} catch (\\PDOException $e) {\n\t\t\tLogger::log($e->getMessage());\n\t\t\tThrow new \\Exception('databaseError');\n\t\t\treturn false;\n\t\t}\n\t}",
"public function update()\n {\n $this->_checkItem();\n $service = $this->getService();\n $entry = $service->getGbaseItemEntry( $this->getItem()->getGbaseItemId() );\n $this->setEntry($entry);\n $this->_prepareEnrtyForSave();\n $entry = $service->updateGbaseItem($this->getEntry());\n\n }",
"function updateRow($pairId, $question, $answer)\r\n{\r\n global $dbh;\r\n\r\n $select = \"UPDATE flashcard SET question = :question, answer = :answer WHERE pairId=:pairId\";\r\n\r\n // prepare statement\r\n $statement = $dbh->prepare($select);\r\n\r\n // bind parameters\r\n $statement->bindValue(':pairId', $pairId);\r\n $statement->bindValue(':answer', $answer);\r\n $statement->bindValue(':question', $question);\r\n\r\n // execute statement\r\n $success = $statement->execute();\r\n\r\n return $success;\r\n}",
"public function updateDb()\n {\n\n // make sure this is a valid new entry\n if ($this->isValid()) {\n\n // check for duplicate\n $vals = sprintf(\"Level = %d\",$this->level);\n $sql = \" update Admins set $vals where Email = '$this->email';\";\n Dbc::getReader()->Exec($sql);\n }\n else\n print \"<br> Invalid entry. STOP! ($sql)<br>\";\n }",
"private function _update(){\n\t\tif($this->dao->update($this->user->getID(), $this->ident, $this->datahandler)){\n\t\t\t$this->read();\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}",
"public function update(){\n\t\t$sql = \"update \".self::$tablename.\" set Origen='$this->Origen',Fechap='$this->Fechap',Horap='$this->Horap',Cod_Referencia='$this->Referencia',Nombre_Referencia='$this->Nombre',Ref_Tela='$this->Reftela',Pinta='$this->Pinta',Color='$this->Color',Proceso='$this->Proceso',Ubicacion='$this->Ubicacion',SKU='$this->Sku',Maquina='$this->Maquina',Longitud_Inicial='$this->Longitudini',Longitud_Final='$this->Longitudfin',Peso='$this->Peso',Grados_PFoAT800K='$this->Plancha',Grados_Plato='$this->Plato',Grados_Pie='$this->Pie',Grados_Aire_S='$this->Airesup',Grados_Aire_I='$this->Aireinf',Caudal_Sup='$this->Caudalsup',Caudal_Inf='$this->Caudalinf',Presion='$this->Presion',Velocidad='$this->Velocidad',Velocidad_Sup='$this->Velocidad_Sup',Velocidad_Inf='$this->Velocidad_Inf',Intensidad='$this->Intensidad',Tiempo_Exp='$this->Tiempo',Resultado='$this->Resultado',Dinamometro='$this->Dinamometro',Observaciones1='$this->Observaciones' where id=$this->id\";\n\t\tExecutor::doit($sql);\n\t}",
"public function update_student($row)\n\t\t{\n\t\t\t$student = new Student();\n\t\t\t$student->setId($row['id']);\n\t\t\t$student->setFirstName($row['firstName']);\n\t\t\t$student->setLastName($row['lastName']);\n\t\t\t$student->setGender($row['gender']);\n\t\t\t$student->setAge($row['age']);\n\t\t\t$student->setGroup($row['sgroup']);\n\t\t\t$student->setFaculty($row['faculty']);\n\t\t\t$this->conn->update($student);\n\t\t}",
"public function updateRecord()\n\t{\n\t\tif($this->user->hasRight($this->getHandler()->getEditRight()))\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\t$record = $this->getHandler()->getRecord();\n\t\t\t\t$record->import($this->getRequest());\n\n\t\t\t\t// check owner\n\t\t\t\tif(!$this->isOwner($record))\n\t\t\t\t{\n\t\t\t\t\tthrow new Exception('You are not the owner of the record');\n\t\t\t\t}\n\n\t\t\t\t// check captcha\n\t\t\t\t$this->handleCaptcha($record);\n\n\t\t\t\t// update\n\t\t\t\t$this->getHandler()->update($record);\n\n\n\t\t\t\t$msg = new Message('You have successful edit a ' . $record->getName(), true);\n\n\t\t\t\t$this->setResponse($msg);\n\t\t\t}\n\t\t\tcatch(\\Exception $e)\n\t\t\t{\n\t\t\t\t$msg = new Message($e->getMessage(), false);\n\n\t\t\t\t$this->setResponse($msg);\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$msg = new Message('Access not allowed', false);\n\n\t\t\t$this->setResponse($msg, null, $this->user->isAnonymous() ? 401 : 403);\n\t\t}\n\t}",
"public function update() {\n\t\t$date = date(\"Y-m-d H:i:s\");\n\n\t\t$query=mysql_query(\"update \".$this->table.\" set \".$this->column.\" = '\".mysql_escape_string($this->value).\"', modified_by = \".$this->userID.\", modified='\".$date.\"' where id=\".$this->id);\n\n\t}",
"public function update()\n {\n update($this->id, $article);\n }",
"protected function _update()\n {\n $hash = $this->hasChangedFields() ? $this->getChangedFields()\n : $this->getFields();\n\n $primary = array();\n\n // we should check if tabe has only one primary\n $keys = $this->_db->getPrimary();\n if (is_array($keys)) {\n foreach ($keys as $key) {\n $primary[\"{$key} = ?\"] = $this->_fields[$key];\n }\n }\n\n return $this->_db->update($hash, $primary);\n }",
"private function update() {\n\t\t\n\t\t// get database handle\n\t\tglobal $dbh;\n\t\t\n\t\t\n\t\treturn false;\n\t}",
"public function update()\n {\n $this->model->load('TacGia');\n $tacgia = $this->model->TacGia->findById($_POST['id']);\n $tacgia->anh = $_POST['anh'];\n $tacgia->ten = $_POST['ten'];\n $tacgia->thongtin = $_POST['thongtin'];\n $tacgia->update();\n\n go_back();\n }",
"protected function update()\n\t{\n\t\t$this->autofill();\n\n\t\t$query = $this->connection->prepare (\"call UpdateProjectBooth (?, ?)\");\n\t\t$query->execute ([$this->fields['ID'], $this->fields['BoothID']]);\n\n\t\t$booth = $this->fields['BoothID'];\n\t\tunset ($this->fields['BoothID']);\n\n\t\tparent::update();\n\n\t\t$this->fields['BoothID'] = $booth;\n\n\t}",
"function EditRow() {\n\t\tglobal $Security, $Language;\n\t\t$sFilter = $this->KeyFilter();\n\t\t$sFilter = $this->ApplyUserIDFilters($sFilter);\n\t\t$conn = &$this->Connection();\n\t\t$this->CurrentFilter = $sFilter;\n\t\t$sSql = $this->SQL();\n\t\t$conn->raiseErrorFn = $GLOBALS[\"EW_ERROR_FN\"];\n\t\t$rs = $conn->Execute($sSql);\n\t\t$conn->raiseErrorFn = '';\n\t\tif ($rs === FALSE)\n\t\t\treturn FALSE;\n\t\tif ($rs->EOF) {\n\t\t\t$this->setFailureMessage($Language->Phrase(\"NoRecord\")); // Set no record message\n\t\t\t$EditRow = FALSE; // Update Failed\n\t\t} else {\n\n\t\t\t// Save old values\n\t\t\t$rsold = &$rs->fields;\n\t\t\t$this->LoadDbValues($rsold);\n\t\t\t$rsnew = array();\n\n\t\t\t// nomr\n\t\t\t$this->nomr->SetDbValueDef($rsnew, $this->nomr->CurrentValue, \"\", $this->nomr->ReadOnly);\n\n\t\t\t// ket_nama\n\t\t\t$this->ket_nama->SetDbValueDef($rsnew, $this->ket_nama->CurrentValue, NULL, $this->ket_nama->ReadOnly);\n\n\t\t\t// ket_tgllahir\n\t\t\t$this->ket_tgllahir->SetDbValueDef($rsnew, ew_UnFormatDateTime($this->ket_tgllahir->CurrentValue, 0), NULL, $this->ket_tgllahir->ReadOnly);\n\n\t\t\t// ket_alamat\n\t\t\t$this->ket_alamat->SetDbValueDef($rsnew, $this->ket_alamat->CurrentValue, NULL, $this->ket_alamat->ReadOnly);\n\n\t\t\t// ket_jeniskelamin\n\t\t\t$this->ket_jeniskelamin->SetDbValueDef($rsnew, $this->ket_jeniskelamin->CurrentValue, NULL, $this->ket_jeniskelamin->ReadOnly);\n\n\t\t\t// ket_title\n\t\t\t$this->ket_title->SetDbValueDef($rsnew, $this->ket_title->CurrentValue, NULL, $this->ket_title->ReadOnly);\n\n\t\t\t// dokterpengirim\n\t\t\t$this->dokterpengirim->SetDbValueDef($rsnew, $this->dokterpengirim->CurrentValue, 0, $this->dokterpengirim->ReadOnly);\n\n\t\t\t// statusbayar\n\t\t\t$this->statusbayar->SetDbValueDef($rsnew, $this->statusbayar->CurrentValue, 0, $this->statusbayar->ReadOnly);\n\n\t\t\t// kirimdari\n\t\t\t$this->kirimdari->SetDbValueDef($rsnew, $this->kirimdari->CurrentValue, 0, $this->kirimdari->ReadOnly);\n\n\t\t\t// keluargadekat\n\t\t\t$this->keluargadekat->SetDbValueDef($rsnew, $this->keluargadekat->CurrentValue, \"\", $this->keluargadekat->ReadOnly);\n\n\t\t\t// panggungjawab\n\t\t\t$this->panggungjawab->SetDbValueDef($rsnew, $this->panggungjawab->CurrentValue, \"\", $this->panggungjawab->ReadOnly);\n\n\t\t\t// masukrs\n\t\t\t$this->masukrs->SetDbValueDef($rsnew, ew_UnFormatDateTime($this->masukrs->CurrentValue, 0), NULL, $this->masukrs->ReadOnly);\n\n\t\t\t// noruang\n\t\t\t$this->noruang->SetDbValueDef($rsnew, $this->noruang->CurrentValue, 0, $this->noruang->ReadOnly);\n\n\t\t\t// tempat_tidur_id\n\t\t\t$this->tempat_tidur_id->SetDbValueDef($rsnew, $this->tempat_tidur_id->CurrentValue, 0, $this->tempat_tidur_id->ReadOnly);\n\n\t\t\t// nott\n\t\t\t$this->nott->SetDbValueDef($rsnew, $this->nott->CurrentValue, \"\", $this->nott->ReadOnly);\n\n\t\t\t// NIP\n\t\t\t$this->NIP->SetDbValueDef($rsnew, $this->NIP->CurrentValue, \"\", $this->NIP->ReadOnly);\n\n\t\t\t// dokter_penanggungjawab\n\t\t\t$this->dokter_penanggungjawab->SetDbValueDef($rsnew, $this->dokter_penanggungjawab->CurrentValue, 0, $this->dokter_penanggungjawab->ReadOnly);\n\n\t\t\t// KELASPERAWATAN_ID\n\t\t\t$this->KELASPERAWATAN_ID->SetDbValueDef($rsnew, $this->KELASPERAWATAN_ID->CurrentValue, NULL, $this->KELASPERAWATAN_ID->ReadOnly);\n\n\t\t\t// NO_SKP\n\t\t\t$this->NO_SKP->SetDbValueDef($rsnew, $this->NO_SKP->CurrentValue, NULL, $this->NO_SKP->ReadOnly);\n\n\t\t\t// sep_tglsep\n\t\t\t$this->sep_tglsep->SetDbValueDef($rsnew, ew_UnFormatDateTime($this->sep_tglsep->CurrentValue, 5), NULL, $this->sep_tglsep->ReadOnly);\n\n\t\t\t// sep_tglrujuk\n\t\t\t$this->sep_tglrujuk->SetDbValueDef($rsnew, ew_UnFormatDateTime($this->sep_tglrujuk->CurrentValue, 5), NULL, $this->sep_tglrujuk->ReadOnly);\n\n\t\t\t// sep_kodekelasrawat\n\t\t\t$this->sep_kodekelasrawat->SetDbValueDef($rsnew, $this->sep_kodekelasrawat->CurrentValue, NULL, $this->sep_kodekelasrawat->ReadOnly);\n\n\t\t\t// sep_norujukan\n\t\t\t$this->sep_norujukan->SetDbValueDef($rsnew, $this->sep_norujukan->CurrentValue, NULL, $this->sep_norujukan->ReadOnly);\n\n\t\t\t// sep_kodeppkasal\n\t\t\t$this->sep_kodeppkasal->SetDbValueDef($rsnew, $this->sep_kodeppkasal->CurrentValue, NULL, $this->sep_kodeppkasal->ReadOnly);\n\n\t\t\t// sep_namappkasal\n\t\t\t$this->sep_namappkasal->SetDbValueDef($rsnew, $this->sep_namappkasal->CurrentValue, NULL, $this->sep_namappkasal->ReadOnly);\n\n\t\t\t// sep_kodeppkpelayanan\n\t\t\t$this->sep_kodeppkpelayanan->SetDbValueDef($rsnew, $this->sep_kodeppkpelayanan->CurrentValue, NULL, $this->sep_kodeppkpelayanan->ReadOnly);\n\n\t\t\t// sep_jenisperawatan\n\t\t\t$this->sep_jenisperawatan->SetDbValueDef($rsnew, $this->sep_jenisperawatan->CurrentValue, NULL, $this->sep_jenisperawatan->ReadOnly);\n\n\t\t\t// sep_catatan\n\t\t\t$this->sep_catatan->SetDbValueDef($rsnew, $this->sep_catatan->CurrentValue, NULL, $this->sep_catatan->ReadOnly);\n\n\t\t\t// sep_kodediagnosaawal\n\t\t\t$this->sep_kodediagnosaawal->SetDbValueDef($rsnew, $this->sep_kodediagnosaawal->CurrentValue, NULL, $this->sep_kodediagnosaawal->ReadOnly);\n\n\t\t\t// sep_namadiagnosaawal\n\t\t\t$this->sep_namadiagnosaawal->SetDbValueDef($rsnew, $this->sep_namadiagnosaawal->CurrentValue, NULL, $this->sep_namadiagnosaawal->ReadOnly);\n\n\t\t\t// sep_lakalantas\n\t\t\t$this->sep_lakalantas->SetDbValueDef($rsnew, $this->sep_lakalantas->CurrentValue, NULL, $this->sep_lakalantas->ReadOnly);\n\n\t\t\t// sep_lokasilaka\n\t\t\t$this->sep_lokasilaka->SetDbValueDef($rsnew, $this->sep_lokasilaka->CurrentValue, NULL, $this->sep_lokasilaka->ReadOnly);\n\n\t\t\t// sep_user\n\t\t\t$this->sep_user->SetDbValueDef($rsnew, $this->sep_user->CurrentValue, NULL, $this->sep_user->ReadOnly);\n\n\t\t\t// sep_flag_cekpeserta\n\t\t\t$this->sep_flag_cekpeserta->SetDbValueDef($rsnew, $this->sep_flag_cekpeserta->CurrentValue, NULL, $this->sep_flag_cekpeserta->ReadOnly);\n\n\t\t\t// sep_flag_generatesep\n\t\t\t$this->sep_flag_generatesep->SetDbValueDef($rsnew, $this->sep_flag_generatesep->CurrentValue, NULL, $this->sep_flag_generatesep->ReadOnly);\n\n\t\t\t// sep_nik\n\t\t\t$this->sep_nik->SetDbValueDef($rsnew, $this->sep_nik->CurrentValue, NULL, $this->sep_nik->ReadOnly);\n\n\t\t\t// sep_namapeserta\n\t\t\t$this->sep_namapeserta->SetDbValueDef($rsnew, $this->sep_namapeserta->CurrentValue, NULL, $this->sep_namapeserta->ReadOnly);\n\n\t\t\t// sep_jeniskelamin\n\t\t\t$this->sep_jeniskelamin->SetDbValueDef($rsnew, $this->sep_jeniskelamin->CurrentValue, NULL, $this->sep_jeniskelamin->ReadOnly);\n\n\t\t\t// sep_pisat\n\t\t\t$this->sep_pisat->SetDbValueDef($rsnew, $this->sep_pisat->CurrentValue, NULL, $this->sep_pisat->ReadOnly);\n\n\t\t\t// sep_tgllahir\n\t\t\t$this->sep_tgllahir->SetDbValueDef($rsnew, $this->sep_tgllahir->CurrentValue, NULL, $this->sep_tgllahir->ReadOnly);\n\n\t\t\t// sep_kodejeniskepesertaan\n\t\t\t$this->sep_kodejeniskepesertaan->SetDbValueDef($rsnew, $this->sep_kodejeniskepesertaan->CurrentValue, NULL, $this->sep_kodejeniskepesertaan->ReadOnly);\n\n\t\t\t// sep_namajeniskepesertaan\n\t\t\t$this->sep_namajeniskepesertaan->SetDbValueDef($rsnew, $this->sep_namajeniskepesertaan->CurrentValue, NULL, $this->sep_namajeniskepesertaan->ReadOnly);\n\n\t\t\t// sep_nokabpjs\n\t\t\t$this->sep_nokabpjs->SetDbValueDef($rsnew, $this->sep_nokabpjs->CurrentValue, NULL, $this->sep_nokabpjs->ReadOnly);\n\n\t\t\t// sep_status_peserta\n\t\t\t$this->sep_status_peserta->SetDbValueDef($rsnew, $this->sep_status_peserta->CurrentValue, NULL, $this->sep_status_peserta->ReadOnly);\n\n\t\t\t// sep_umur_pasien_sekarang\n\t\t\t$this->sep_umur_pasien_sekarang->SetDbValueDef($rsnew, $this->sep_umur_pasien_sekarang->CurrentValue, NULL, $this->sep_umur_pasien_sekarang->ReadOnly);\n\n\t\t\t// Call Row Updating event\n\t\t\t$bUpdateRow = $this->Row_Updating($rsold, $rsnew);\n\t\t\tif ($bUpdateRow) {\n\t\t\t\t$conn->raiseErrorFn = $GLOBALS[\"EW_ERROR_FN\"];\n\t\t\t\tif (count($rsnew) > 0)\n\t\t\t\t\t$EditRow = $this->Update($rsnew, \"\", $rsold);\n\t\t\t\telse\n\t\t\t\t\t$EditRow = TRUE; // No field to update\n\t\t\t\t$conn->raiseErrorFn = '';\n\t\t\t\tif ($EditRow) {\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif ($this->getSuccessMessage() <> \"\" || $this->getFailureMessage() <> \"\") {\n\n\t\t\t\t\t// Use the message, do nothing\n\t\t\t\t} elseif ($this->CancelMessage <> \"\") {\n\t\t\t\t\t$this->setFailureMessage($this->CancelMessage);\n\t\t\t\t\t$this->CancelMessage = \"\";\n\t\t\t\t} else {\n\t\t\t\t\t$this->setFailureMessage($Language->Phrase(\"UpdateCancelled\"));\n\t\t\t\t}\n\t\t\t\t$EditRow = FALSE;\n\t\t\t}\n\t\t}\n\n\t\t// Call Row_Updated event\n\t\tif ($EditRow)\n\t\t\t$this->Row_Updated($rsold, $rsnew);\n\t\t$rs->Close();\n\t\treturn $EditRow;\n\t}",
"function updateRecord()\n\t{\n\t\t$data['roleName'] = $this->roleName;\n\t\t$data['roleDesc'] = $this->roleDesc;\n\t\t\n\t $this->db->where('roleID', $this->roleID);\n\t\t$this->db->update('roles', $data); \n\t\t\n\t\tif ($this->db->_error_message())\n\t\t\treturn false;\n\t\telse\n\t\t\treturn true;\n\t}",
"function update( \\gb\\domain\\DomainObject $object ) {\n //$this->updateStmt->execute( $values );\n }",
"public function updateDatabase(){\n\t\t$db = static::getDatabaseConnection();\n\t\t//Get all of the columns in the database table\n\t\t$columns = static::$columns;\n\t\t//Because we dont want the ID to change, remove the ID from the database\n\t\tunset($columns[array_search('id', $columns)]);\n\t\t//If we had a timecreated and timeupdated column, we would unset the timecreated column here\n\n\t\t//Write an Update Query\n\t\t$query = \"UPDATE \" . static::$tableName . \" SET \";\n\t\t$updatecols = [];\n\t\tforeach ($columns as $column){\n\t\t\tarray_push($updatecols, $column . \"=:\" . $column);\n\t\t}\n\t\t$query .= implode(\",\", $updatecols);\n\t\t$query .= \" WHERE id =:id\";\n\t\t$statement = $db->prepare($query);\n\n\t\tforeach(static::$columns as $column){\n\t\t\t//Hash the password\n\t\t\tif($column === 'password'){\n\t\t\t\t$this->$column = password_hash($this->$column, PASSWORD_DEFAULT);\n\t\t\t}\n\t\t\t$statement->bindValue(\":\".$column, $this->$column);\n\t\t}\n\t\t$statement->execute();\n\t}",
"function update()\n {\n global $config;\n $query=file_get_contents(\"sql/updateArticle.sql\"); \n $query =sprintf($query, $config->prefix.self::$table); \n $query = $config->sql->prepare($query);\n $param=array(\n $this->title, $this->content, $this->lang, $this->date,\n $this->cat, $this->id, $this->lang\n );\n $result=$query->execute($param);\n if ($result) {\n return true;\n } else {\n print_r($query->errorInfo());\n }\n \n }",
"function update_record () {\n\t\t\n\t\t// validate input\n $valid = true;\n if (empty($this->name)) {\n $this->nameError = 'Please enter Name';\n $valid = false;\n }\n\n if (empty($this->email)) {\n $this->emailError = 'Please enter Email Address';\n $valid = false;\n } \n\n\n if (empty($this->mobile)) {\n $this->mobileError = 'Please enter Mobile Number';\n $valid = false;\n }\n\n // update data\n if ($valid) {\n $pdo = Database::connect();\n $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n $sql = \"UPDATE customers SET name = ?, email = ?, mobile = ? WHERE id=\".$_GET['id'];\n $q = $pdo->prepare($sql);\n $q->execute(array($this->name,$this->email,$this->mobile));\n Database::disconnect();\n header(\"Location: customer.php\");\n }\n else {\n $this->update();\n }\n\t\n\t}",
"function update() {\n\n global $conn;\n\n $stmt = $conn->prepare('\n UPDATE Customer SET\n Name = :Name,\n Surname = :Surname,\n Email = :Email,\n Phone = :Phone\n WHERE Customer_id = :Customer_id\n ');\n\n $stmt->bindParam(':Name', $this->Name);\n $stmt->bindParam(':Surname', $this->Surname);\n $stmt->bindParam(':Email', $this->Email);\n $stmt->bindParam(':Phone', $this->Phone);\n $stmt->bindParam(':Customer_id', $this->Customer_id);\n\n return $stmt->execute();\n }",
"function updateEntry($request, $rowId, $newRowId) {\n\n\t\t$this->deleteEntry($request, $rowId);\n\t\t$this->insertEntry($request, $newRowId);\n\t}",
"protected function update()\n {\n $update = 'UPDATE users SET first_name = :first_name, last_name = :last_name,\n email = :email, password = :password WHERE id = :id';\n $statement = self::$dbc->prepare($update);\n foreach ($this->attributes as $key => $value) {\n $statement->bindValue(\":$key\", $value, PDO::PARAM_STR);\n }\n $statement->execute();\n }",
"public function Save()\r\n\t\t{\r\n\t\t\tif ($this->id == -1) {\r\n\t\t\t\tunset($this->columns[\"id\"]);\r\n\t\t\t\t$sqlCol = null;\r\n\t\t\t\t$sqlKey = null;\r\n\t\t\t\tforeach ($this->columns as $column => $value) {\r\n\t\t\t\t\t$data[$column] = $this->$column;\r\n\t\t\t\t\t$sqlCol .= \",\" . $column;\r\n\t\t\t\t\t$sqlKey .= \",:\" . $column;\r\n\t\t\t\t}\r\n\t\t\t\t$sqlCol = ltrim($sqlCol, \",\");\r\n\t\t\t\t$sqlKey = ltrim($sqlKey, \",\");\r\n\t\t\t\t$query = $this->db->prepare(\r\n\t\t\t\t\t\"INSERT INTO \" . $this->table . \" (\" . $sqlCol . \")\r\n\t\t\t\t\t\tVALUES (\" . $sqlKey . \") ;\"\r\n\t\t\t\t);\r\n\t\t\t\t$query->execute($data);\r\n\t\t\t\t\r\n\t\t\t} else {\r\n\t\t\t\t// Sinon faire un update dynamique\r\n\t\t\t\t$sqlSet = null;\r\n\t\t\t\tforeach ($this->columns as $column => $value) {\r\n\t\t\t\t\t$data[$column] = $this->$column;\r\n\t\t\t\t\t$sqlSet[] .= $column . \"=:\" . $column;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Suppression de la mise à jour de la date d'update \r\n\t\t\t\t// la mise à jour des dates est maintenant faites en BDD.\r\n\t\t\t\t$query = $this->db->prepare(\r\n\t\t\t\t\t\"UPDATE \" . $this->table . \" SET \r\n\t\t\t\t\t\t\" . implode(\",\", $sqlSet) . \"\r\n\t\t\t\t\t\tWHERE id=:id;\"\r\n\t\t\t\t);\r\n\r\n\t\t\t\t$query->execute($data);\r\n\t\t\t}\r\n\t\t}",
"function update()\n {\n $this->dbInit();\n if ( isset( $this->ID ) )\n {\n query( \"UPDATE Grp set Name='$this->Name', Description='$this->Description',\n\t\tUserAdmin='$this->UserAdmin',\n \t\tUserGroupAdmin='$this->UserGroupAdmin',\n\t\tPersonTypeAdmin='$this->PersonTypeAdmin',\n\t\tCompanyTypeAdmin='$this->CompanyTypeAdmin',\n\t\tPhoneTypeAdmin='$this->PhoneTypeAdmin',\n\t\tAddressTypeAdmin='$this->AddressTypeAdmin' WHERE ID='$this->ID'\" );\n }\n }",
"public function update(){\n try {\n // update user query\n $this->_query = \"UPDATE \" . $this->_dbtable . \" SET usuario = :usuario, contrasena = :contrasena, nombre = :nombre, apellido = :apellido, email = :email, telefono = :telefono WHERE id=:id\";\n\n //preparing statement\n $statement = $this->_conn->prepare($this->_query);\n\n // binding params\n $statement->bindParam(':id', $this->id, PDO::PARAM_STR);\n $statement->bindParam(':usuario', $this->usuario, PDO::PARAM_STR);\n $statement->bindParam(':contrasena', $this->contrasena, PDO::PARAM_STR);\n $statement->bindParam(':nombre', $this->nombre, PDO::PARAM_STR);\n $statement->bindParam(':apellido', $this->apellido, PDO::PARAM_STR);\n $statement->bindParam(':email', $this->email, PDO::PARAM_STR);\n $statement->bindParam(':telefono', $this->telefono, PDO::PARAM_STR);\n\n // executing statement\n $statement->execute();\n\n // count affected rows\n $updatedRow = $statement->rowCount();\n\n // check if a row has been affected\n if ($updatedRow == 1) {\n return true;\n }\n\n return false;\n }\n catch(PDOException $ex){\n echo \"Error\" . $ex->getMessage();\n }\n }",
"public function update() {\n\n //GETS TASK, DEPENDING ON TASK ID (ID)\n $data=Tasks::find(request('task_id'));\n\n //GETS REQUEST AND REPLACES TASK TITLE & DESCRIPTION\n $data->task=request('task');\n $data->description=request('description');\n\n //SAVES DB\n $data->save();\n\n //REDIRECTS TO TASK VIEW WITH NOTEPADID AS PARAMETER\n return redirect (\"/task/$data->NotepadID\");\n }",
"public function Update()\n\t{\n\t\t$prefix = $this->Db->TablePrefix;\n\t\t$user = GetUser();\n\t\t$userid = $user->userid;\n\t\t$where = 'id = ' . $this->id;\n\n\t\t$surveys_data = $this->data;\n\n\t\tif (isset($surveys_data['_columns'])) {\n\t\t\tunset($surveys_data['_columns']);\n\t\t}\n\n\t\tif (isset($surveys_data['id'])) {\n\t\t\tunset($surveys_data['id']);\n\t\t}\n\n\t\t$surveys_data['updated'] = $this->GetServerTime();\n\n\t\t$this->Db->UpdateQuery('surveys', $surveys_data, $where);\n\t}",
"public function update() {\n\t\t\t$query = \"UPDATE $this->table_name SET name=:name, drink=:drink WHERE id=:id\";\n\n\t\t\t// prepare motherfucker\n\t\t\t$stmt = $this->conn->prepare($query);\n\n\t\t\t$stmt->bindParam(':id', $this->id);\n\t\t\t$stmt->bindParam(':name', $this->name);\n\t\t\t$stmt->bindParam(':drink', $this->drink);\n\n\t\t\tif ($stmt->execute()) {\n\t\t\t\treturn true;\n\t\t\t}else {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}",
"public function update(){\n\t\t$sql = \"update \".self::$tablename.\" set nombre=\\\"$this->name\\\", razon_social=\\\"$this->razon\\\", status=$this->is_active where id_banco=$this->id_banco\";\n\t\tExecutor::doit($sql);\n\t}"
] | [
"0.7753869",
"0.73640484",
"0.72702825",
"0.72121763",
"0.7120161",
"0.7061953",
"0.7061775",
"0.70574987",
"0.69864887",
"0.6934475",
"0.6927067",
"0.68846107",
"0.6872685",
"0.68523765",
"0.682981",
"0.68267447",
"0.6804584",
"0.67689174",
"0.67659825",
"0.67483187",
"0.6685212",
"0.66846687",
"0.66783464",
"0.6675825",
"0.6675122",
"0.66747767",
"0.66712815",
"0.66583896",
"0.66564023",
"0.66494226",
"0.6647555",
"0.66376173",
"0.66223174",
"0.6621191",
"0.66203445",
"0.6618801",
"0.65835893",
"0.65618694",
"0.65457016",
"0.65430105",
"0.65348935",
"0.64933586",
"0.64905965",
"0.64811945",
"0.64749223",
"0.64404035",
"0.6438373",
"0.64334124",
"0.64226174",
"0.64226174",
"0.64225435",
"0.64215195",
"0.6408097",
"0.64079756",
"0.640502",
"0.64028406",
"0.63995963",
"0.6388943",
"0.6386539",
"0.6385473",
"0.63814354",
"0.637528",
"0.6374793",
"0.63665444",
"0.63655895",
"0.6361523",
"0.6335594",
"0.63309264",
"0.63305265",
"0.6324209",
"0.6315264",
"0.631214",
"0.63085586",
"0.629598",
"0.6291942",
"0.6290785",
"0.6286525",
"0.628072",
"0.62796366",
"0.6276986",
"0.6272755",
"0.62642944",
"0.62632716",
"0.62589586",
"0.6231671",
"0.6225774",
"0.62220293",
"0.6221584",
"0.6218769",
"0.62147725",
"0.6206249",
"0.6205427",
"0.6201719",
"0.6201389",
"0.61938757",
"0.61806375",
"0.6180484",
"0.6170601",
"0.6164722",
"0.6163687",
"0.6138605"
] | 0.0 | -1 |
Gets any ValidationFailed objects that resulted from last call to validate(). | public function getValidationFailures()
{
return $this->validationFailures;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getFailedValidators() {\n return $this->failedValidators;\n }",
"public function getValidationFailures()\n\t{\n\t\treturn $this->validationFailures;\n\t}",
"public function getValidationFailures()\n\t{\n\t\treturn $this->validationFailures;\n\t}",
"public function getValidationFailures()\n\t{\n\t\treturn $this->validationFailures;\n\t}",
"public function getValidationFailures()\n\t{\n\t\treturn $this->validationFailures;\n\t}",
"public function getValidationFailures()\n\t{\n\t\treturn $this->validationFailures;\n\t}",
"public function getValidationFailures()\n\t{\n\t\treturn $this->validationFailures;\n\t}",
"public function getValidationFailures()\n\t{\n\t\treturn $this->validationFailures;\n\t}",
"public function getValidationFailures()\n\t{\n\t\treturn $this->validationFailures;\n\t}",
"public function getValidationFailures()\n\t{\n\t\treturn $this->validationFailures;\n\t}",
"public function getValidationFailures()\n\t{\n\t\treturn $this->validationFailures;\n\t}",
"public function getValidationFailures ()\n {\n return $this->validationFailures;\n }",
"public function getValidationFailures ()\n {\n return $this->validationFailures;\n }",
"public function getValidationFailures ()\n {\n return $this->validationFailures;\n }",
"public function getValidationErrors() {\n if (true == ($this->validation instanceof Validation)) {\n return $this->validation->getErrors();\n }\n\n return array();\n }",
"public function getValidationFailed();",
"protected function _getValidationErrors()\n {\n if (is_null($this->validationErrors)) {\n return array();\n }\n\n return $this->validationErrors;\n }",
"public function getValidationErrors() {\n\t\treturn $this->_validationErrors;\n\t}",
"protected function getValidationErrors()\n {\n return $this->validation->errors();\n }",
"public function getValidationErrors()\n\t{\n\t\treturn $this->validationErrors;\n\t}",
"public function validation_errors()\n\t{\n\t\t$errors = array();\n\n\t\tforeach ($this->validators as $fld=>$arr)\n\t\t{\n\t\t\tforeach ($arr as $vl)\n\t\t\t{\n\t\t\t\t$vl->page = $this;\n\n\t\t\t\tif (!$vl->validate($fld, $this->vars))\n\t\t\t\t{\n\t\t\t\t\t$errors[$fld] = $vl->error_message($fld, $this->vars);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn $errors;\n\t}",
"public function getValidationErrors()\n\t{\n\t\tif(is_array($this->validation_errors) && \n\t\t\tsizeof($this->validation_errors))\n\t\t{\n\t\t\treturn array_unique($this->validation_errors);\n\t\t}\n\t\treturn array();\n\t}",
"public function getValidationErrors() {\n\t\tif ($this->_errors === null) {\n\t\t\treturn array();\n\t\t}\n\n\t\treturn $this->_errors->toArray();\n\t}",
"protected function failedValidation(Validator $validator)\n {\n return $validator->errors()->all();\n }",
"public function getErrors()\n {\n return $this->_arrValidationErrors;\n }",
"public function getValidationErrors();",
"public function getValidationErrors();",
"public function getValidationErrors() {\n\t\treturn (array)$this -> _errors;\n\t}",
"public function getErrors(): array {\n return $this->validationError;\n }",
"public function getErrors()\n {\n return $this->validator->errors();\n }",
"public function _getValidationErrors(): array\n\t{\n\t\t$errs = parent::_getValidationErrors();\n\t\t$validationRules = $this->_getValidationRules();\n\t\tif (null !== ($v = $this->getUrl())) {\n\t\t\tif ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n\t\t\t\t$errs[self::FIELD_URL] = $fieldErrs;\n\t\t\t}\n\t\t}\n\t\tif ([] !== ($vs = $this->getIdentifier())) {\n\t\t\tforeach ($vs as $i => $v) {\n\t\t\t\tif ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n\t\t\t\t\t$errs[sprintf('%s.%d', self::FIELD_IDENTIFIER, $i)] = $fieldErrs;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (null !== ($v = $this->getVersion())) {\n\t\t\tif ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n\t\t\t\t$errs[self::FIELD_VERSION] = $fieldErrs;\n\t\t\t}\n\t\t}\n\t\tif (null !== ($v = $this->getName())) {\n\t\t\tif ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n\t\t\t\t$errs[self::FIELD_NAME] = $fieldErrs;\n\t\t\t}\n\t\t}\n\t\tif (null !== ($v = $this->getDisplay())) {\n\t\t\tif ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n\t\t\t\t$errs[self::FIELD_DISPLAY] = $fieldErrs;\n\t\t\t}\n\t\t}\n\t\tif (null !== ($v = $this->getStatus())) {\n\t\t\tif ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n\t\t\t\t$errs[self::FIELD_STATUS] = $fieldErrs;\n\t\t\t}\n\t\t}\n\t\tif (null !== ($v = $this->getExperimental())) {\n\t\t\tif ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n\t\t\t\t$errs[self::FIELD_EXPERIMENTAL] = $fieldErrs;\n\t\t\t}\n\t\t}\n\t\tif (null !== ($v = $this->getPublisher())) {\n\t\t\tif ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n\t\t\t\t$errs[self::FIELD_PUBLISHER] = $fieldErrs;\n\t\t\t}\n\t\t}\n\t\tif ([] !== ($vs = $this->getContact())) {\n\t\t\tforeach ($vs as $i => $v) {\n\t\t\t\tif ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n\t\t\t\t\t$errs[sprintf('%s.%d', self::FIELD_CONTACT, $i)] = $fieldErrs;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (null !== ($v = $this->getDate())) {\n\t\t\tif ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n\t\t\t\t$errs[self::FIELD_DATE] = $fieldErrs;\n\t\t\t}\n\t\t}\n\t\tif (null !== ($v = $this->getDescription())) {\n\t\t\tif ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n\t\t\t\t$errs[self::FIELD_DESCRIPTION] = $fieldErrs;\n\t\t\t}\n\t\t}\n\t\tif ([] !== ($vs = $this->getUseContext())) {\n\t\t\tforeach ($vs as $i => $v) {\n\t\t\t\tif ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n\t\t\t\t\t$errs[sprintf('%s.%d', self::FIELD_USE_CONTEXT, $i)] = $fieldErrs;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (null !== ($v = $this->getRequirements())) {\n\t\t\tif ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n\t\t\t\t$errs[self::FIELD_REQUIREMENTS] = $fieldErrs;\n\t\t\t}\n\t\t}\n\t\tif (null !== ($v = $this->getCopyright())) {\n\t\t\tif ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n\t\t\t\t$errs[self::FIELD_COPYRIGHT] = $fieldErrs;\n\t\t\t}\n\t\t}\n\t\tif ([] !== ($vs = $this->getCode())) {\n\t\t\tforeach ($vs as $i => $v) {\n\t\t\t\tif ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n\t\t\t\t\t$errs[sprintf('%s.%d', self::FIELD_CODE, $i)] = $fieldErrs;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (null !== ($v = $this->getFhirVersion())) {\n\t\t\tif ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n\t\t\t\t$errs[self::FIELD_FHIR_VERSION] = $fieldErrs;\n\t\t\t}\n\t\t}\n\t\tif ([] !== ($vs = $this->getMapping())) {\n\t\t\tforeach ($vs as $i => $v) {\n\t\t\t\tif ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n\t\t\t\t\t$errs[sprintf('%s.%d', self::FIELD_MAPPING, $i)] = $fieldErrs;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (null !== ($v = $this->getKind())) {\n\t\t\tif ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n\t\t\t\t$errs[self::FIELD_KIND] = $fieldErrs;\n\t\t\t}\n\t\t}\n\t\tif (null !== ($v = $this->getConstrainedType())) {\n\t\t\tif ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n\t\t\t\t$errs[self::FIELD_CONSTRAINED_TYPE] = $fieldErrs;\n\t\t\t}\n\t\t}\n\t\tif (null !== ($v = $this->getAbstract())) {\n\t\t\tif ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n\t\t\t\t$errs[self::FIELD_ABSTRACT] = $fieldErrs;\n\t\t\t}\n\t\t}\n\t\tif (null !== ($v = $this->getContextType())) {\n\t\t\tif ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n\t\t\t\t$errs[self::FIELD_CONTEXT_TYPE] = $fieldErrs;\n\t\t\t}\n\t\t}\n\t\tif ([] !== ($vs = $this->getContext())) {\n\t\t\tforeach ($vs as $i => $v) {\n\t\t\t\tif ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n\t\t\t\t\t$errs[sprintf('%s.%d', self::FIELD_CONTEXT, $i)] = $fieldErrs;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (null !== ($v = $this->getBase())) {\n\t\t\tif ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n\t\t\t\t$errs[self::FIELD_BASE] = $fieldErrs;\n\t\t\t}\n\t\t}\n\t\tif (null !== ($v = $this->getSnapshot())) {\n\t\t\tif ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n\t\t\t\t$errs[self::FIELD_SNAPSHOT] = $fieldErrs;\n\t\t\t}\n\t\t}\n\t\tif (null !== ($v = $this->getDifferential())) {\n\t\t\tif ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n\t\t\t\t$errs[self::FIELD_DIFFERENTIAL] = $fieldErrs;\n\t\t\t}\n\t\t}\n\t\tif (isset($validationRules[self::FIELD_URL])) {\n\t\t\t$v = $this->getUrl();\n\t\t\tforeach ($validationRules[self::FIELD_URL] as $rule => $constraint) {\n\t\t\t\t$err = $this->_performValidation(\n\t\t\t\t\tPHPFHIRConstants::TYPE_NAME_STRUCTURE_DEFINITION,\n\t\t\t\t\tself::FIELD_URL,\n\t\t\t\t\t$rule,\n\t\t\t\t\t$constraint,\n\t\t\t\t\t$v,\n\t\t\t\t);\n\t\t\t\tif (null !== $err) {\n\t\t\t\t\tif (!isset($errs[self::FIELD_URL])) {\n\t\t\t\t\t\t$errs[self::FIELD_URL] = [];\n\t\t\t\t\t}\n\t\t\t\t\t$errs[self::FIELD_URL][$rule] = $err;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (isset($validationRules[self::FIELD_IDENTIFIER])) {\n\t\t\t$v = $this->getIdentifier();\n\t\t\tforeach ($validationRules[self::FIELD_IDENTIFIER] as $rule => $constraint) {\n\t\t\t\t$err = $this->_performValidation(\n\t\t\t\t\tPHPFHIRConstants::TYPE_NAME_STRUCTURE_DEFINITION,\n\t\t\t\t\tself::FIELD_IDENTIFIER,\n\t\t\t\t\t$rule,\n\t\t\t\t\t$constraint,\n\t\t\t\t\t$v,\n\t\t\t\t);\n\t\t\t\tif (null !== $err) {\n\t\t\t\t\tif (!isset($errs[self::FIELD_IDENTIFIER])) {\n\t\t\t\t\t\t$errs[self::FIELD_IDENTIFIER] = [];\n\t\t\t\t\t}\n\t\t\t\t\t$errs[self::FIELD_IDENTIFIER][$rule] = $err;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (isset($validationRules[self::FIELD_VERSION])) {\n\t\t\t$v = $this->getVersion();\n\t\t\tforeach ($validationRules[self::FIELD_VERSION] as $rule => $constraint) {\n\t\t\t\t$err = $this->_performValidation(\n\t\t\t\t\tPHPFHIRConstants::TYPE_NAME_STRUCTURE_DEFINITION,\n\t\t\t\t\tself::FIELD_VERSION,\n\t\t\t\t\t$rule,\n\t\t\t\t\t$constraint,\n\t\t\t\t\t$v,\n\t\t\t\t);\n\t\t\t\tif (null !== $err) {\n\t\t\t\t\tif (!isset($errs[self::FIELD_VERSION])) {\n\t\t\t\t\t\t$errs[self::FIELD_VERSION] = [];\n\t\t\t\t\t}\n\t\t\t\t\t$errs[self::FIELD_VERSION][$rule] = $err;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (isset($validationRules[self::FIELD_NAME])) {\n\t\t\t$v = $this->getName();\n\t\t\tforeach ($validationRules[self::FIELD_NAME] as $rule => $constraint) {\n\t\t\t\t$err = $this->_performValidation(\n\t\t\t\t\tPHPFHIRConstants::TYPE_NAME_STRUCTURE_DEFINITION,\n\t\t\t\t\tself::FIELD_NAME,\n\t\t\t\t\t$rule,\n\t\t\t\t\t$constraint,\n\t\t\t\t\t$v,\n\t\t\t\t);\n\t\t\t\tif (null !== $err) {\n\t\t\t\t\tif (!isset($errs[self::FIELD_NAME])) {\n\t\t\t\t\t\t$errs[self::FIELD_NAME] = [];\n\t\t\t\t\t}\n\t\t\t\t\t$errs[self::FIELD_NAME][$rule] = $err;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (isset($validationRules[self::FIELD_DISPLAY])) {\n\t\t\t$v = $this->getDisplay();\n\t\t\tforeach ($validationRules[self::FIELD_DISPLAY] as $rule => $constraint) {\n\t\t\t\t$err = $this->_performValidation(\n\t\t\t\t\tPHPFHIRConstants::TYPE_NAME_STRUCTURE_DEFINITION,\n\t\t\t\t\tself::FIELD_DISPLAY,\n\t\t\t\t\t$rule,\n\t\t\t\t\t$constraint,\n\t\t\t\t\t$v,\n\t\t\t\t);\n\t\t\t\tif (null !== $err) {\n\t\t\t\t\tif (!isset($errs[self::FIELD_DISPLAY])) {\n\t\t\t\t\t\t$errs[self::FIELD_DISPLAY] = [];\n\t\t\t\t\t}\n\t\t\t\t\t$errs[self::FIELD_DISPLAY][$rule] = $err;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (isset($validationRules[self::FIELD_STATUS])) {\n\t\t\t$v = $this->getStatus();\n\t\t\tforeach ($validationRules[self::FIELD_STATUS] as $rule => $constraint) {\n\t\t\t\t$err = $this->_performValidation(\n\t\t\t\t\tPHPFHIRConstants::TYPE_NAME_STRUCTURE_DEFINITION,\n\t\t\t\t\tself::FIELD_STATUS,\n\t\t\t\t\t$rule,\n\t\t\t\t\t$constraint,\n\t\t\t\t\t$v,\n\t\t\t\t);\n\t\t\t\tif (null !== $err) {\n\t\t\t\t\tif (!isset($errs[self::FIELD_STATUS])) {\n\t\t\t\t\t\t$errs[self::FIELD_STATUS] = [];\n\t\t\t\t\t}\n\t\t\t\t\t$errs[self::FIELD_STATUS][$rule] = $err;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (isset($validationRules[self::FIELD_EXPERIMENTAL])) {\n\t\t\t$v = $this->getExperimental();\n\t\t\tforeach ($validationRules[self::FIELD_EXPERIMENTAL] as $rule => $constraint) {\n\t\t\t\t$err = $this->_performValidation(\n\t\t\t\t\tPHPFHIRConstants::TYPE_NAME_STRUCTURE_DEFINITION,\n\t\t\t\t\tself::FIELD_EXPERIMENTAL,\n\t\t\t\t\t$rule,\n\t\t\t\t\t$constraint,\n\t\t\t\t\t$v,\n\t\t\t\t);\n\t\t\t\tif (null !== $err) {\n\t\t\t\t\tif (!isset($errs[self::FIELD_EXPERIMENTAL])) {\n\t\t\t\t\t\t$errs[self::FIELD_EXPERIMENTAL] = [];\n\t\t\t\t\t}\n\t\t\t\t\t$errs[self::FIELD_EXPERIMENTAL][$rule] = $err;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (isset($validationRules[self::FIELD_PUBLISHER])) {\n\t\t\t$v = $this->getPublisher();\n\t\t\tforeach ($validationRules[self::FIELD_PUBLISHER] as $rule => $constraint) {\n\t\t\t\t$err = $this->_performValidation(\n\t\t\t\t\tPHPFHIRConstants::TYPE_NAME_STRUCTURE_DEFINITION,\n\t\t\t\t\tself::FIELD_PUBLISHER,\n\t\t\t\t\t$rule,\n\t\t\t\t\t$constraint,\n\t\t\t\t\t$v,\n\t\t\t\t);\n\t\t\t\tif (null !== $err) {\n\t\t\t\t\tif (!isset($errs[self::FIELD_PUBLISHER])) {\n\t\t\t\t\t\t$errs[self::FIELD_PUBLISHER] = [];\n\t\t\t\t\t}\n\t\t\t\t\t$errs[self::FIELD_PUBLISHER][$rule] = $err;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (isset($validationRules[self::FIELD_CONTACT])) {\n\t\t\t$v = $this->getContact();\n\t\t\tforeach ($validationRules[self::FIELD_CONTACT] as $rule => $constraint) {\n\t\t\t\t$err = $this->_performValidation(\n\t\t\t\t\tPHPFHIRConstants::TYPE_NAME_STRUCTURE_DEFINITION,\n\t\t\t\t\tself::FIELD_CONTACT,\n\t\t\t\t\t$rule,\n\t\t\t\t\t$constraint,\n\t\t\t\t\t$v,\n\t\t\t\t);\n\t\t\t\tif (null !== $err) {\n\t\t\t\t\tif (!isset($errs[self::FIELD_CONTACT])) {\n\t\t\t\t\t\t$errs[self::FIELD_CONTACT] = [];\n\t\t\t\t\t}\n\t\t\t\t\t$errs[self::FIELD_CONTACT][$rule] = $err;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (isset($validationRules[self::FIELD_DATE])) {\n\t\t\t$v = $this->getDate();\n\t\t\tforeach ($validationRules[self::FIELD_DATE] as $rule => $constraint) {\n\t\t\t\t$err = $this->_performValidation(\n\t\t\t\t\tPHPFHIRConstants::TYPE_NAME_STRUCTURE_DEFINITION,\n\t\t\t\t\tself::FIELD_DATE,\n\t\t\t\t\t$rule,\n\t\t\t\t\t$constraint,\n\t\t\t\t\t$v,\n\t\t\t\t);\n\t\t\t\tif (null !== $err) {\n\t\t\t\t\tif (!isset($errs[self::FIELD_DATE])) {\n\t\t\t\t\t\t$errs[self::FIELD_DATE] = [];\n\t\t\t\t\t}\n\t\t\t\t\t$errs[self::FIELD_DATE][$rule] = $err;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (isset($validationRules[self::FIELD_DESCRIPTION])) {\n\t\t\t$v = $this->getDescription();\n\t\t\tforeach ($validationRules[self::FIELD_DESCRIPTION] as $rule => $constraint) {\n\t\t\t\t$err = $this->_performValidation(\n\t\t\t\t\tPHPFHIRConstants::TYPE_NAME_STRUCTURE_DEFINITION,\n\t\t\t\t\tself::FIELD_DESCRIPTION,\n\t\t\t\t\t$rule,\n\t\t\t\t\t$constraint,\n\t\t\t\t\t$v,\n\t\t\t\t);\n\t\t\t\tif (null !== $err) {\n\t\t\t\t\tif (!isset($errs[self::FIELD_DESCRIPTION])) {\n\t\t\t\t\t\t$errs[self::FIELD_DESCRIPTION] = [];\n\t\t\t\t\t}\n\t\t\t\t\t$errs[self::FIELD_DESCRIPTION][$rule] = $err;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (isset($validationRules[self::FIELD_USE_CONTEXT])) {\n\t\t\t$v = $this->getUseContext();\n\t\t\tforeach ($validationRules[self::FIELD_USE_CONTEXT] as $rule => $constraint) {\n\t\t\t\t$err = $this->_performValidation(\n\t\t\t\t\tPHPFHIRConstants::TYPE_NAME_STRUCTURE_DEFINITION,\n\t\t\t\t\tself::FIELD_USE_CONTEXT,\n\t\t\t\t\t$rule,\n\t\t\t\t\t$constraint,\n\t\t\t\t\t$v,\n\t\t\t\t);\n\t\t\t\tif (null !== $err) {\n\t\t\t\t\tif (!isset($errs[self::FIELD_USE_CONTEXT])) {\n\t\t\t\t\t\t$errs[self::FIELD_USE_CONTEXT] = [];\n\t\t\t\t\t}\n\t\t\t\t\t$errs[self::FIELD_USE_CONTEXT][$rule] = $err;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (isset($validationRules[self::FIELD_REQUIREMENTS])) {\n\t\t\t$v = $this->getRequirements();\n\t\t\tforeach ($validationRules[self::FIELD_REQUIREMENTS] as $rule => $constraint) {\n\t\t\t\t$err = $this->_performValidation(\n\t\t\t\t\tPHPFHIRConstants::TYPE_NAME_STRUCTURE_DEFINITION,\n\t\t\t\t\tself::FIELD_REQUIREMENTS,\n\t\t\t\t\t$rule,\n\t\t\t\t\t$constraint,\n\t\t\t\t\t$v,\n\t\t\t\t);\n\t\t\t\tif (null !== $err) {\n\t\t\t\t\tif (!isset($errs[self::FIELD_REQUIREMENTS])) {\n\t\t\t\t\t\t$errs[self::FIELD_REQUIREMENTS] = [];\n\t\t\t\t\t}\n\t\t\t\t\t$errs[self::FIELD_REQUIREMENTS][$rule] = $err;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (isset($validationRules[self::FIELD_COPYRIGHT])) {\n\t\t\t$v = $this->getCopyright();\n\t\t\tforeach ($validationRules[self::FIELD_COPYRIGHT] as $rule => $constraint) {\n\t\t\t\t$err = $this->_performValidation(\n\t\t\t\t\tPHPFHIRConstants::TYPE_NAME_STRUCTURE_DEFINITION,\n\t\t\t\t\tself::FIELD_COPYRIGHT,\n\t\t\t\t\t$rule,\n\t\t\t\t\t$constraint,\n\t\t\t\t\t$v,\n\t\t\t\t);\n\t\t\t\tif (null !== $err) {\n\t\t\t\t\tif (!isset($errs[self::FIELD_COPYRIGHT])) {\n\t\t\t\t\t\t$errs[self::FIELD_COPYRIGHT] = [];\n\t\t\t\t\t}\n\t\t\t\t\t$errs[self::FIELD_COPYRIGHT][$rule] = $err;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (isset($validationRules[self::FIELD_CODE])) {\n\t\t\t$v = $this->getCode();\n\t\t\tforeach ($validationRules[self::FIELD_CODE] as $rule => $constraint) {\n\t\t\t\t$err = $this->_performValidation(\n\t\t\t\t\tPHPFHIRConstants::TYPE_NAME_STRUCTURE_DEFINITION,\n\t\t\t\t\tself::FIELD_CODE,\n\t\t\t\t\t$rule,\n\t\t\t\t\t$constraint,\n\t\t\t\t\t$v,\n\t\t\t\t);\n\t\t\t\tif (null !== $err) {\n\t\t\t\t\tif (!isset($errs[self::FIELD_CODE])) {\n\t\t\t\t\t\t$errs[self::FIELD_CODE] = [];\n\t\t\t\t\t}\n\t\t\t\t\t$errs[self::FIELD_CODE][$rule] = $err;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (isset($validationRules[self::FIELD_FHIR_VERSION])) {\n\t\t\t$v = $this->getFhirVersion();\n\t\t\tforeach ($validationRules[self::FIELD_FHIR_VERSION] as $rule => $constraint) {\n\t\t\t\t$err = $this->_performValidation(\n\t\t\t\t\tPHPFHIRConstants::TYPE_NAME_STRUCTURE_DEFINITION,\n\t\t\t\t\tself::FIELD_FHIR_VERSION,\n\t\t\t\t\t$rule,\n\t\t\t\t\t$constraint,\n\t\t\t\t\t$v,\n\t\t\t\t);\n\t\t\t\tif (null !== $err) {\n\t\t\t\t\tif (!isset($errs[self::FIELD_FHIR_VERSION])) {\n\t\t\t\t\t\t$errs[self::FIELD_FHIR_VERSION] = [];\n\t\t\t\t\t}\n\t\t\t\t\t$errs[self::FIELD_FHIR_VERSION][$rule] = $err;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (isset($validationRules[self::FIELD_MAPPING])) {\n\t\t\t$v = $this->getMapping();\n\t\t\tforeach ($validationRules[self::FIELD_MAPPING] as $rule => $constraint) {\n\t\t\t\t$err = $this->_performValidation(\n\t\t\t\t\tPHPFHIRConstants::TYPE_NAME_STRUCTURE_DEFINITION,\n\t\t\t\t\tself::FIELD_MAPPING,\n\t\t\t\t\t$rule,\n\t\t\t\t\t$constraint,\n\t\t\t\t\t$v,\n\t\t\t\t);\n\t\t\t\tif (null !== $err) {\n\t\t\t\t\tif (!isset($errs[self::FIELD_MAPPING])) {\n\t\t\t\t\t\t$errs[self::FIELD_MAPPING] = [];\n\t\t\t\t\t}\n\t\t\t\t\t$errs[self::FIELD_MAPPING][$rule] = $err;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (isset($validationRules[self::FIELD_KIND])) {\n\t\t\t$v = $this->getKind();\n\t\t\tforeach ($validationRules[self::FIELD_KIND] as $rule => $constraint) {\n\t\t\t\t$err = $this->_performValidation(\n\t\t\t\t\tPHPFHIRConstants::TYPE_NAME_STRUCTURE_DEFINITION,\n\t\t\t\t\tself::FIELD_KIND,\n\t\t\t\t\t$rule,\n\t\t\t\t\t$constraint,\n\t\t\t\t\t$v,\n\t\t\t\t);\n\t\t\t\tif (null !== $err) {\n\t\t\t\t\tif (!isset($errs[self::FIELD_KIND])) {\n\t\t\t\t\t\t$errs[self::FIELD_KIND] = [];\n\t\t\t\t\t}\n\t\t\t\t\t$errs[self::FIELD_KIND][$rule] = $err;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (isset($validationRules[self::FIELD_CONSTRAINED_TYPE])) {\n\t\t\t$v = $this->getConstrainedType();\n\t\t\tforeach ($validationRules[self::FIELD_CONSTRAINED_TYPE] as $rule => $constraint) {\n\t\t\t\t$err = $this->_performValidation(\n\t\t\t\t\tPHPFHIRConstants::TYPE_NAME_STRUCTURE_DEFINITION,\n\t\t\t\t\tself::FIELD_CONSTRAINED_TYPE,\n\t\t\t\t\t$rule,\n\t\t\t\t\t$constraint,\n\t\t\t\t\t$v,\n\t\t\t\t);\n\t\t\t\tif (null !== $err) {\n\t\t\t\t\tif (!isset($errs[self::FIELD_CONSTRAINED_TYPE])) {\n\t\t\t\t\t\t$errs[self::FIELD_CONSTRAINED_TYPE] = [];\n\t\t\t\t\t}\n\t\t\t\t\t$errs[self::FIELD_CONSTRAINED_TYPE][$rule] = $err;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (isset($validationRules[self::FIELD_ABSTRACT])) {\n\t\t\t$v = $this->getAbstract();\n\t\t\tforeach ($validationRules[self::FIELD_ABSTRACT] as $rule => $constraint) {\n\t\t\t\t$err = $this->_performValidation(\n\t\t\t\t\tPHPFHIRConstants::TYPE_NAME_STRUCTURE_DEFINITION,\n\t\t\t\t\tself::FIELD_ABSTRACT,\n\t\t\t\t\t$rule,\n\t\t\t\t\t$constraint,\n\t\t\t\t\t$v,\n\t\t\t\t);\n\t\t\t\tif (null !== $err) {\n\t\t\t\t\tif (!isset($errs[self::FIELD_ABSTRACT])) {\n\t\t\t\t\t\t$errs[self::FIELD_ABSTRACT] = [];\n\t\t\t\t\t}\n\t\t\t\t\t$errs[self::FIELD_ABSTRACT][$rule] = $err;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (isset($validationRules[self::FIELD_CONTEXT_TYPE])) {\n\t\t\t$v = $this->getContextType();\n\t\t\tforeach ($validationRules[self::FIELD_CONTEXT_TYPE] as $rule => $constraint) {\n\t\t\t\t$err = $this->_performValidation(\n\t\t\t\t\tPHPFHIRConstants::TYPE_NAME_STRUCTURE_DEFINITION,\n\t\t\t\t\tself::FIELD_CONTEXT_TYPE,\n\t\t\t\t\t$rule,\n\t\t\t\t\t$constraint,\n\t\t\t\t\t$v,\n\t\t\t\t);\n\t\t\t\tif (null !== $err) {\n\t\t\t\t\tif (!isset($errs[self::FIELD_CONTEXT_TYPE])) {\n\t\t\t\t\t\t$errs[self::FIELD_CONTEXT_TYPE] = [];\n\t\t\t\t\t}\n\t\t\t\t\t$errs[self::FIELD_CONTEXT_TYPE][$rule] = $err;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (isset($validationRules[self::FIELD_CONTEXT])) {\n\t\t\t$v = $this->getContext();\n\t\t\tforeach ($validationRules[self::FIELD_CONTEXT] as $rule => $constraint) {\n\t\t\t\t$err = $this->_performValidation(\n\t\t\t\t\tPHPFHIRConstants::TYPE_NAME_STRUCTURE_DEFINITION,\n\t\t\t\t\tself::FIELD_CONTEXT,\n\t\t\t\t\t$rule,\n\t\t\t\t\t$constraint,\n\t\t\t\t\t$v,\n\t\t\t\t);\n\t\t\t\tif (null !== $err) {\n\t\t\t\t\tif (!isset($errs[self::FIELD_CONTEXT])) {\n\t\t\t\t\t\t$errs[self::FIELD_CONTEXT] = [];\n\t\t\t\t\t}\n\t\t\t\t\t$errs[self::FIELD_CONTEXT][$rule] = $err;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (isset($validationRules[self::FIELD_BASE])) {\n\t\t\t$v = $this->getBase();\n\t\t\tforeach ($validationRules[self::FIELD_BASE] as $rule => $constraint) {\n\t\t\t\t$err = $this->_performValidation(\n\t\t\t\t\tPHPFHIRConstants::TYPE_NAME_STRUCTURE_DEFINITION,\n\t\t\t\t\tself::FIELD_BASE,\n\t\t\t\t\t$rule,\n\t\t\t\t\t$constraint,\n\t\t\t\t\t$v,\n\t\t\t\t);\n\t\t\t\tif (null !== $err) {\n\t\t\t\t\tif (!isset($errs[self::FIELD_BASE])) {\n\t\t\t\t\t\t$errs[self::FIELD_BASE] = [];\n\t\t\t\t\t}\n\t\t\t\t\t$errs[self::FIELD_BASE][$rule] = $err;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (isset($validationRules[self::FIELD_SNAPSHOT])) {\n\t\t\t$v = $this->getSnapshot();\n\t\t\tforeach ($validationRules[self::FIELD_SNAPSHOT] as $rule => $constraint) {\n\t\t\t\t$err = $this->_performValidation(\n\t\t\t\t\tPHPFHIRConstants::TYPE_NAME_STRUCTURE_DEFINITION,\n\t\t\t\t\tself::FIELD_SNAPSHOT,\n\t\t\t\t\t$rule,\n\t\t\t\t\t$constraint,\n\t\t\t\t\t$v,\n\t\t\t\t);\n\t\t\t\tif (null !== $err) {\n\t\t\t\t\tif (!isset($errs[self::FIELD_SNAPSHOT])) {\n\t\t\t\t\t\t$errs[self::FIELD_SNAPSHOT] = [];\n\t\t\t\t\t}\n\t\t\t\t\t$errs[self::FIELD_SNAPSHOT][$rule] = $err;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (isset($validationRules[self::FIELD_DIFFERENTIAL])) {\n\t\t\t$v = $this->getDifferential();\n\t\t\tforeach ($validationRules[self::FIELD_DIFFERENTIAL] as $rule => $constraint) {\n\t\t\t\t$err = $this->_performValidation(\n\t\t\t\t\tPHPFHIRConstants::TYPE_NAME_STRUCTURE_DEFINITION,\n\t\t\t\t\tself::FIELD_DIFFERENTIAL,\n\t\t\t\t\t$rule,\n\t\t\t\t\t$constraint,\n\t\t\t\t\t$v,\n\t\t\t\t);\n\t\t\t\tif (null !== $err) {\n\t\t\t\t\tif (!isset($errs[self::FIELD_DIFFERENTIAL])) {\n\t\t\t\t\t\t$errs[self::FIELD_DIFFERENTIAL] = [];\n\t\t\t\t\t}\n\t\t\t\t\t$errs[self::FIELD_DIFFERENTIAL][$rule] = $err;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (isset($validationRules[self::FIELD_TEXT])) {\n\t\t\t$v = $this->getText();\n\t\t\tforeach ($validationRules[self::FIELD_TEXT] as $rule => $constraint) {\n\t\t\t\t$err = $this->_performValidation(\n\t\t\t\t\tPHPFHIRConstants::TYPE_NAME_DOMAIN_RESOURCE,\n\t\t\t\t\tself::FIELD_TEXT,\n\t\t\t\t\t$rule,\n\t\t\t\t\t$constraint,\n\t\t\t\t\t$v,\n\t\t\t\t);\n\t\t\t\tif (null !== $err) {\n\t\t\t\t\tif (!isset($errs[self::FIELD_TEXT])) {\n\t\t\t\t\t\t$errs[self::FIELD_TEXT] = [];\n\t\t\t\t\t}\n\t\t\t\t\t$errs[self::FIELD_TEXT][$rule] = $err;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (isset($validationRules[self::FIELD_CONTAINED])) {\n\t\t\t$v = $this->getContained();\n\t\t\tforeach ($validationRules[self::FIELD_CONTAINED] as $rule => $constraint) {\n\t\t\t\t$err = $this->_performValidation(\n\t\t\t\t\tPHPFHIRConstants::TYPE_NAME_DOMAIN_RESOURCE,\n\t\t\t\t\tself::FIELD_CONTAINED,\n\t\t\t\t\t$rule,\n\t\t\t\t\t$constraint,\n\t\t\t\t\t$v,\n\t\t\t\t);\n\t\t\t\tif (null !== $err) {\n\t\t\t\t\tif (!isset($errs[self::FIELD_CONTAINED])) {\n\t\t\t\t\t\t$errs[self::FIELD_CONTAINED] = [];\n\t\t\t\t\t}\n\t\t\t\t\t$errs[self::FIELD_CONTAINED][$rule] = $err;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (isset($validationRules[self::FIELD_EXTENSION])) {\n\t\t\t$v = $this->getExtension();\n\t\t\tforeach ($validationRules[self::FIELD_EXTENSION] as $rule => $constraint) {\n\t\t\t\t$err = $this->_performValidation(\n\t\t\t\t\tPHPFHIRConstants::TYPE_NAME_DOMAIN_RESOURCE,\n\t\t\t\t\tself::FIELD_EXTENSION,\n\t\t\t\t\t$rule,\n\t\t\t\t\t$constraint,\n\t\t\t\t\t$v,\n\t\t\t\t);\n\t\t\t\tif (null !== $err) {\n\t\t\t\t\tif (!isset($errs[self::FIELD_EXTENSION])) {\n\t\t\t\t\t\t$errs[self::FIELD_EXTENSION] = [];\n\t\t\t\t\t}\n\t\t\t\t\t$errs[self::FIELD_EXTENSION][$rule] = $err;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (isset($validationRules[self::FIELD_MODIFIER_EXTENSION])) {\n\t\t\t$v = $this->getModifierExtension();\n\t\t\tforeach ($validationRules[self::FIELD_MODIFIER_EXTENSION] as $rule => $constraint) {\n\t\t\t\t$err = $this->_performValidation(\n\t\t\t\t\tPHPFHIRConstants::TYPE_NAME_DOMAIN_RESOURCE,\n\t\t\t\t\tself::FIELD_MODIFIER_EXTENSION,\n\t\t\t\t\t$rule,\n\t\t\t\t\t$constraint,\n\t\t\t\t\t$v,\n\t\t\t\t);\n\t\t\t\tif (null !== $err) {\n\t\t\t\t\tif (!isset($errs[self::FIELD_MODIFIER_EXTENSION])) {\n\t\t\t\t\t\t$errs[self::FIELD_MODIFIER_EXTENSION] = [];\n\t\t\t\t\t}\n\t\t\t\t\t$errs[self::FIELD_MODIFIER_EXTENSION][$rule] = $err;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (isset($validationRules[self::FIELD_ID])) {\n\t\t\t$v = $this->getId();\n\t\t\tforeach ($validationRules[self::FIELD_ID] as $rule => $constraint) {\n\t\t\t\t$err = $this->_performValidation(\n\t\t\t\t\tPHPFHIRConstants::TYPE_NAME_RESOURCE,\n\t\t\t\t\tself::FIELD_ID,\n\t\t\t\t\t$rule,\n\t\t\t\t\t$constraint,\n\t\t\t\t\t$v,\n\t\t\t\t);\n\t\t\t\tif (null !== $err) {\n\t\t\t\t\tif (!isset($errs[self::FIELD_ID])) {\n\t\t\t\t\t\t$errs[self::FIELD_ID] = [];\n\t\t\t\t\t}\n\t\t\t\t\t$errs[self::FIELD_ID][$rule] = $err;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (isset($validationRules[self::FIELD_META])) {\n\t\t\t$v = $this->getMeta();\n\t\t\tforeach ($validationRules[self::FIELD_META] as $rule => $constraint) {\n\t\t\t\t$err = $this->_performValidation(\n\t\t\t\t\tPHPFHIRConstants::TYPE_NAME_RESOURCE,\n\t\t\t\t\tself::FIELD_META,\n\t\t\t\t\t$rule,\n\t\t\t\t\t$constraint,\n\t\t\t\t\t$v,\n\t\t\t\t);\n\t\t\t\tif (null !== $err) {\n\t\t\t\t\tif (!isset($errs[self::FIELD_META])) {\n\t\t\t\t\t\t$errs[self::FIELD_META] = [];\n\t\t\t\t\t}\n\t\t\t\t\t$errs[self::FIELD_META][$rule] = $err;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (isset($validationRules[self::FIELD_IMPLICIT_RULES])) {\n\t\t\t$v = $this->getImplicitRules();\n\t\t\tforeach ($validationRules[self::FIELD_IMPLICIT_RULES] as $rule => $constraint) {\n\t\t\t\t$err = $this->_performValidation(\n\t\t\t\t\tPHPFHIRConstants::TYPE_NAME_RESOURCE,\n\t\t\t\t\tself::FIELD_IMPLICIT_RULES,\n\t\t\t\t\t$rule,\n\t\t\t\t\t$constraint,\n\t\t\t\t\t$v,\n\t\t\t\t);\n\t\t\t\tif (null !== $err) {\n\t\t\t\t\tif (!isset($errs[self::FIELD_IMPLICIT_RULES])) {\n\t\t\t\t\t\t$errs[self::FIELD_IMPLICIT_RULES] = [];\n\t\t\t\t\t}\n\t\t\t\t\t$errs[self::FIELD_IMPLICIT_RULES][$rule] = $err;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (isset($validationRules[self::FIELD_LANGUAGE])) {\n\t\t\t$v = $this->getLanguage();\n\t\t\tforeach ($validationRules[self::FIELD_LANGUAGE] as $rule => $constraint) {\n\t\t\t\t$err = $this->_performValidation(\n\t\t\t\t\tPHPFHIRConstants::TYPE_NAME_RESOURCE,\n\t\t\t\t\tself::FIELD_LANGUAGE,\n\t\t\t\t\t$rule,\n\t\t\t\t\t$constraint,\n\t\t\t\t\t$v,\n\t\t\t\t);\n\t\t\t\tif (null !== $err) {\n\t\t\t\t\tif (!isset($errs[self::FIELD_LANGUAGE])) {\n\t\t\t\t\t\t$errs[self::FIELD_LANGUAGE] = [];\n\t\t\t\t\t}\n\t\t\t\t\t$errs[self::FIELD_LANGUAGE][$rule] = $err;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn $errs;\n\t}",
"public function getErrors()\n {\n $errors = $this->getValue('klarna_validation_errors');\n return $errors ? $errors : array();\n }",
"public function validationErrors() {\n\t\t$return = array();\n\n\t\t$models = ClassRegistry::keys();\n\t\tforeach ($models as $currentModel) {\n\t\t\t$currentObject = ClassRegistry::getObject($currentModel);\n\t\t\tif ($currentObject instanceof Model) {\n\t\t\t\t$return[$currentObject->alias] = $currentObject->validationErrors;\n\t\t\t}\n\t\t}\n\n\t\treturn $return;\n\t}",
"public function getValidationErrors()\n {\n $fields = $this->getFields();\n if (!$fields) {\n return [];\n }\n\n $result = [];\n foreach ($fields as $field) {\n if ($field instanceof AbstractFormField) {\n if (!$field->isValid()) {\n $result = array_merge($result, $field->getErrorMessages());\n }\n }\n }\n\n return $result;\n }",
"public function getValidationErrorCount() {\n\t\treturn $this->_validationErrorCount;\n\t}",
"public function getLastErrors(): iterable;",
"public function errors() {\n $errors = array();\n foreach ($this->properties as $property) {\n if (!$property->rulesPassed()) {\n $errors[$property->getName()] = $property->getErrors();\n }\n }\n return $errors;\n }",
"public function getErrors()\n\t{\n\t\t$errors = array();\n\t\t/** @var Miao_Form_Control $control */\n\t\t/** @var Miao_Form_Validate $validator */\n\t\tforeach ( $this->getControls() as $control )\n\t\t{\n\t\t\tif ( !$control->isValid() )\n\t\t\t{\n\t\t\t\t$validator = $control->error();\n\t\t\t\t$errors[] = array(\n\t\t\t\t\t'name' => $control->getName(),\n\t\t\t\t\t'error' => $validator->getMessage() );\n\t\t\t}\n\t\t}\n\t\treturn $errors;\n\t}",
"public function getErrors(): ConstraintViolationListInterface\n {\n return $this->validator->validate($this->dataObject);\n }",
"public function clearFailedValidationData()\n {\n FormUtil::clearValidationFailedObjects($this->_objPath);\n }",
"public function _getValidationErrors()\n {\n $errs = parent::_getValidationErrors();\n $validationRules = $this->_getValidationRules();\n if ([] !== ($vs = $this->getCountry())) {\n foreach($vs as $i => $v) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[sprintf('%s.%d', self::FIELD_COUNTRY, $i)] = $fieldErrs;\n }\n }\n }\n if (null !== ($v = $this->getDataExclusivityPeriod())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_DATA_EXCLUSIVITY_PERIOD] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getDateOfFirstAuthorization())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_DATE_OF_FIRST_AUTHORIZATION] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getHolder())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_HOLDER] = $fieldErrs;\n }\n }\n if ([] !== ($vs = $this->getIdentifier())) {\n foreach($vs as $i => $v) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[sprintf('%s.%d', self::FIELD_IDENTIFIER, $i)] = $fieldErrs;\n }\n }\n }\n if (null !== ($v = $this->getInternationalBirthDate())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_INTERNATIONAL_BIRTH_DATE] = $fieldErrs;\n }\n }\n if ([] !== ($vs = $this->getJurisdiction())) {\n foreach($vs as $i => $v) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[sprintf('%s.%d', self::FIELD_JURISDICTION, $i)] = $fieldErrs;\n }\n }\n }\n if ([] !== ($vs = $this->getJurisdictionalAuthorization())) {\n foreach($vs as $i => $v) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[sprintf('%s.%d', self::FIELD_JURISDICTIONAL_AUTHORIZATION, $i)] = $fieldErrs;\n }\n }\n }\n if (null !== ($v = $this->getLegalBasis())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_LEGAL_BASIS] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getProcedure())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_PROCEDURE] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getRegulator())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_REGULATOR] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getRestoreDate())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_RESTORE_DATE] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getStatus())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_STATUS] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getStatusDate())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_STATUS_DATE] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getSubject())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_SUBJECT] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getValidityPeriod())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_VALIDITY_PERIOD] = $fieldErrs;\n }\n }\n if (isset($validationRules[self::FIELD_COUNTRY])) {\n $v = $this->getCountry();\n foreach($validationRules[self::FIELD_COUNTRY] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_MEDICINAL_PRODUCT_AUTHORIZATION, self::FIELD_COUNTRY, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_COUNTRY])) {\n $errs[self::FIELD_COUNTRY] = [];\n }\n $errs[self::FIELD_COUNTRY][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_DATA_EXCLUSIVITY_PERIOD])) {\n $v = $this->getDataExclusivityPeriod();\n foreach($validationRules[self::FIELD_DATA_EXCLUSIVITY_PERIOD] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_MEDICINAL_PRODUCT_AUTHORIZATION, self::FIELD_DATA_EXCLUSIVITY_PERIOD, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_DATA_EXCLUSIVITY_PERIOD])) {\n $errs[self::FIELD_DATA_EXCLUSIVITY_PERIOD] = [];\n }\n $errs[self::FIELD_DATA_EXCLUSIVITY_PERIOD][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_DATE_OF_FIRST_AUTHORIZATION])) {\n $v = $this->getDateOfFirstAuthorization();\n foreach($validationRules[self::FIELD_DATE_OF_FIRST_AUTHORIZATION] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_MEDICINAL_PRODUCT_AUTHORIZATION, self::FIELD_DATE_OF_FIRST_AUTHORIZATION, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_DATE_OF_FIRST_AUTHORIZATION])) {\n $errs[self::FIELD_DATE_OF_FIRST_AUTHORIZATION] = [];\n }\n $errs[self::FIELD_DATE_OF_FIRST_AUTHORIZATION][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_HOLDER])) {\n $v = $this->getHolder();\n foreach($validationRules[self::FIELD_HOLDER] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_MEDICINAL_PRODUCT_AUTHORIZATION, self::FIELD_HOLDER, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_HOLDER])) {\n $errs[self::FIELD_HOLDER] = [];\n }\n $errs[self::FIELD_HOLDER][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_IDENTIFIER])) {\n $v = $this->getIdentifier();\n foreach($validationRules[self::FIELD_IDENTIFIER] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_MEDICINAL_PRODUCT_AUTHORIZATION, self::FIELD_IDENTIFIER, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_IDENTIFIER])) {\n $errs[self::FIELD_IDENTIFIER] = [];\n }\n $errs[self::FIELD_IDENTIFIER][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_INTERNATIONAL_BIRTH_DATE])) {\n $v = $this->getInternationalBirthDate();\n foreach($validationRules[self::FIELD_INTERNATIONAL_BIRTH_DATE] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_MEDICINAL_PRODUCT_AUTHORIZATION, self::FIELD_INTERNATIONAL_BIRTH_DATE, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_INTERNATIONAL_BIRTH_DATE])) {\n $errs[self::FIELD_INTERNATIONAL_BIRTH_DATE] = [];\n }\n $errs[self::FIELD_INTERNATIONAL_BIRTH_DATE][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_JURISDICTION])) {\n $v = $this->getJurisdiction();\n foreach($validationRules[self::FIELD_JURISDICTION] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_MEDICINAL_PRODUCT_AUTHORIZATION, self::FIELD_JURISDICTION, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_JURISDICTION])) {\n $errs[self::FIELD_JURISDICTION] = [];\n }\n $errs[self::FIELD_JURISDICTION][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_JURISDICTIONAL_AUTHORIZATION])) {\n $v = $this->getJurisdictionalAuthorization();\n foreach($validationRules[self::FIELD_JURISDICTIONAL_AUTHORIZATION] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_MEDICINAL_PRODUCT_AUTHORIZATION, self::FIELD_JURISDICTIONAL_AUTHORIZATION, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_JURISDICTIONAL_AUTHORIZATION])) {\n $errs[self::FIELD_JURISDICTIONAL_AUTHORIZATION] = [];\n }\n $errs[self::FIELD_JURISDICTIONAL_AUTHORIZATION][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_LEGAL_BASIS])) {\n $v = $this->getLegalBasis();\n foreach($validationRules[self::FIELD_LEGAL_BASIS] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_MEDICINAL_PRODUCT_AUTHORIZATION, self::FIELD_LEGAL_BASIS, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_LEGAL_BASIS])) {\n $errs[self::FIELD_LEGAL_BASIS] = [];\n }\n $errs[self::FIELD_LEGAL_BASIS][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_PROCEDURE])) {\n $v = $this->getProcedure();\n foreach($validationRules[self::FIELD_PROCEDURE] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_MEDICINAL_PRODUCT_AUTHORIZATION, self::FIELD_PROCEDURE, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_PROCEDURE])) {\n $errs[self::FIELD_PROCEDURE] = [];\n }\n $errs[self::FIELD_PROCEDURE][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_REGULATOR])) {\n $v = $this->getRegulator();\n foreach($validationRules[self::FIELD_REGULATOR] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_MEDICINAL_PRODUCT_AUTHORIZATION, self::FIELD_REGULATOR, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_REGULATOR])) {\n $errs[self::FIELD_REGULATOR] = [];\n }\n $errs[self::FIELD_REGULATOR][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_RESTORE_DATE])) {\n $v = $this->getRestoreDate();\n foreach($validationRules[self::FIELD_RESTORE_DATE] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_MEDICINAL_PRODUCT_AUTHORIZATION, self::FIELD_RESTORE_DATE, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_RESTORE_DATE])) {\n $errs[self::FIELD_RESTORE_DATE] = [];\n }\n $errs[self::FIELD_RESTORE_DATE][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_STATUS])) {\n $v = $this->getStatus();\n foreach($validationRules[self::FIELD_STATUS] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_MEDICINAL_PRODUCT_AUTHORIZATION, self::FIELD_STATUS, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_STATUS])) {\n $errs[self::FIELD_STATUS] = [];\n }\n $errs[self::FIELD_STATUS][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_STATUS_DATE])) {\n $v = $this->getStatusDate();\n foreach($validationRules[self::FIELD_STATUS_DATE] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_MEDICINAL_PRODUCT_AUTHORIZATION, self::FIELD_STATUS_DATE, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_STATUS_DATE])) {\n $errs[self::FIELD_STATUS_DATE] = [];\n }\n $errs[self::FIELD_STATUS_DATE][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_SUBJECT])) {\n $v = $this->getSubject();\n foreach($validationRules[self::FIELD_SUBJECT] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_MEDICINAL_PRODUCT_AUTHORIZATION, self::FIELD_SUBJECT, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_SUBJECT])) {\n $errs[self::FIELD_SUBJECT] = [];\n }\n $errs[self::FIELD_SUBJECT][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_VALIDITY_PERIOD])) {\n $v = $this->getValidityPeriod();\n foreach($validationRules[self::FIELD_VALIDITY_PERIOD] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_MEDICINAL_PRODUCT_AUTHORIZATION, self::FIELD_VALIDITY_PERIOD, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_VALIDITY_PERIOD])) {\n $errs[self::FIELD_VALIDITY_PERIOD] = [];\n }\n $errs[self::FIELD_VALIDITY_PERIOD][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_CONTAINED])) {\n $v = $this->getContained();\n foreach($validationRules[self::FIELD_CONTAINED] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_DOMAIN_RESOURCE, self::FIELD_CONTAINED, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_CONTAINED])) {\n $errs[self::FIELD_CONTAINED] = [];\n }\n $errs[self::FIELD_CONTAINED][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_EXTENSION])) {\n $v = $this->getExtension();\n foreach($validationRules[self::FIELD_EXTENSION] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_DOMAIN_RESOURCE, self::FIELD_EXTENSION, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_EXTENSION])) {\n $errs[self::FIELD_EXTENSION] = [];\n }\n $errs[self::FIELD_EXTENSION][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_MODIFIER_EXTENSION])) {\n $v = $this->getModifierExtension();\n foreach($validationRules[self::FIELD_MODIFIER_EXTENSION] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_DOMAIN_RESOURCE, self::FIELD_MODIFIER_EXTENSION, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_MODIFIER_EXTENSION])) {\n $errs[self::FIELD_MODIFIER_EXTENSION] = [];\n }\n $errs[self::FIELD_MODIFIER_EXTENSION][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_TEXT])) {\n $v = $this->getText();\n foreach($validationRules[self::FIELD_TEXT] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_DOMAIN_RESOURCE, self::FIELD_TEXT, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_TEXT])) {\n $errs[self::FIELD_TEXT] = [];\n }\n $errs[self::FIELD_TEXT][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_ID])) {\n $v = $this->getId();\n foreach($validationRules[self::FIELD_ID] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_RESOURCE, self::FIELD_ID, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_ID])) {\n $errs[self::FIELD_ID] = [];\n }\n $errs[self::FIELD_ID][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_IMPLICIT_RULES])) {\n $v = $this->getImplicitRules();\n foreach($validationRules[self::FIELD_IMPLICIT_RULES] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_RESOURCE, self::FIELD_IMPLICIT_RULES, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_IMPLICIT_RULES])) {\n $errs[self::FIELD_IMPLICIT_RULES] = [];\n }\n $errs[self::FIELD_IMPLICIT_RULES][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_LANGUAGE])) {\n $v = $this->getLanguage();\n foreach($validationRules[self::FIELD_LANGUAGE] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_RESOURCE, self::FIELD_LANGUAGE, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_LANGUAGE])) {\n $errs[self::FIELD_LANGUAGE] = [];\n }\n $errs[self::FIELD_LANGUAGE][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_META])) {\n $v = $this->getMeta();\n foreach($validationRules[self::FIELD_META] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_RESOURCE, self::FIELD_META, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_META])) {\n $errs[self::FIELD_META] = [];\n }\n $errs[self::FIELD_META][$rule] = $err;\n }\n }\n }\n return $errs;\n }",
"public function getValidationErrors() {\n\t\t$out = array();\n\t\t$this->loadFields();\n\t\tforeach($this->fields as $field) {\n\t\t\t$out = array_merge($out, $field->getValidationErrors());\n\t\t}\n\t\tif ((!$this->lat || !$this->lng) && !$this->feature_id) {\n\t\t\t$out[] = \"You must set a location!\";\n\t\t}\n\t\treturn $out;\n\t}",
"public function getValidationMessages()\n {\n return $this->validationMessages;\n }",
"public function errors()\n {\n return $this->validator->errors();\n }",
"public function errors()\n {\n return $this->validator->errors();\n }",
"public function errors()\n {\n return $this->validator->errors();\n }",
"public function errors()\n {\n return $this->validator->errors();\n }",
"public function validateAll()\n {\n $errorMsgs = array();\n return $errorMsgs;\n }",
"public function _getValidationErrors()\n {\n $errs = parent::_getValidationErrors();\n $validationRules = $this->_getValidationRules();\n if (null !== ($v = $this->getCity())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_CITY] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getCountry())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_COUNTRY] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getDistrict())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_DISTRICT] = $fieldErrs;\n }\n }\n if ([] !== ($vs = $this->getLine())) {\n foreach($vs as $i => $v) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[sprintf('%s.%d', self::FIELD_LINE, $i)] = $fieldErrs;\n }\n }\n }\n if (null !== ($v = $this->getPeriod())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_PERIOD] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getPostalCode())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_POSTAL_CODE] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getState())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_STATE] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getText())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_TEXT] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getType())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_TYPE] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getUse())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_USE] = $fieldErrs;\n }\n }\n if (isset($validationRules[self::FIELD_CITY])) {\n $v = $this->getCity();\n foreach($validationRules[self::FIELD_CITY] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_ADDRESS, self::FIELD_CITY, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_CITY])) {\n $errs[self::FIELD_CITY] = [];\n }\n $errs[self::FIELD_CITY][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_COUNTRY])) {\n $v = $this->getCountry();\n foreach($validationRules[self::FIELD_COUNTRY] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_ADDRESS, self::FIELD_COUNTRY, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_COUNTRY])) {\n $errs[self::FIELD_COUNTRY] = [];\n }\n $errs[self::FIELD_COUNTRY][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_DISTRICT])) {\n $v = $this->getDistrict();\n foreach($validationRules[self::FIELD_DISTRICT] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_ADDRESS, self::FIELD_DISTRICT, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_DISTRICT])) {\n $errs[self::FIELD_DISTRICT] = [];\n }\n $errs[self::FIELD_DISTRICT][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_LINE])) {\n $v = $this->getLine();\n foreach($validationRules[self::FIELD_LINE] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_ADDRESS, self::FIELD_LINE, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_LINE])) {\n $errs[self::FIELD_LINE] = [];\n }\n $errs[self::FIELD_LINE][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_PERIOD])) {\n $v = $this->getPeriod();\n foreach($validationRules[self::FIELD_PERIOD] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_ADDRESS, self::FIELD_PERIOD, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_PERIOD])) {\n $errs[self::FIELD_PERIOD] = [];\n }\n $errs[self::FIELD_PERIOD][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_POSTAL_CODE])) {\n $v = $this->getPostalCode();\n foreach($validationRules[self::FIELD_POSTAL_CODE] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_ADDRESS, self::FIELD_POSTAL_CODE, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_POSTAL_CODE])) {\n $errs[self::FIELD_POSTAL_CODE] = [];\n }\n $errs[self::FIELD_POSTAL_CODE][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_STATE])) {\n $v = $this->getState();\n foreach($validationRules[self::FIELD_STATE] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_ADDRESS, self::FIELD_STATE, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_STATE])) {\n $errs[self::FIELD_STATE] = [];\n }\n $errs[self::FIELD_STATE][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_TEXT])) {\n $v = $this->getText();\n foreach($validationRules[self::FIELD_TEXT] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_ADDRESS, self::FIELD_TEXT, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_TEXT])) {\n $errs[self::FIELD_TEXT] = [];\n }\n $errs[self::FIELD_TEXT][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_TYPE])) {\n $v = $this->getType();\n foreach($validationRules[self::FIELD_TYPE] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_ADDRESS, self::FIELD_TYPE, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_TYPE])) {\n $errs[self::FIELD_TYPE] = [];\n }\n $errs[self::FIELD_TYPE][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_USE])) {\n $v = $this->getUse();\n foreach($validationRules[self::FIELD_USE] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_ADDRESS, self::FIELD_USE, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_USE])) {\n $errs[self::FIELD_USE] = [];\n }\n $errs[self::FIELD_USE][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_EXTENSION])) {\n $v = $this->getExtension();\n foreach($validationRules[self::FIELD_EXTENSION] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_ELEMENT, self::FIELD_EXTENSION, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_EXTENSION])) {\n $errs[self::FIELD_EXTENSION] = [];\n }\n $errs[self::FIELD_EXTENSION][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_ID])) {\n $v = $this->getId();\n foreach($validationRules[self::FIELD_ID] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_ELEMENT, self::FIELD_ID, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_ID])) {\n $errs[self::FIELD_ID] = [];\n }\n $errs[self::FIELD_ID][$rule] = $err;\n }\n }\n }\n return $errs;\n }",
"public function getErrors()\n {\n return $this->errors; // core.validation.Errors\n }",
"function getErrors()\n {\n ksort($this->errors);\n $e = array();\n foreach ($this->errors as $v) foreach ($v as $e[]) {}\n return $e;\n }",
"public function getFieldValidationErrors()\n {\n return $this->_aInputValidationErrors;\n }",
"public function getLastValidationError(): string;",
"public function getErrorMessage()\n {\n return $this->validator->errors()->all();\n }",
"public function getErrors(): Collection\n {\n return $this->errors;\n }",
"public function failures()\n {\n return $this->failedRecipients;\n }",
"public function _getValidationErrors()\n {\n $errs = parent::_getValidationErrors();\n $validationRules = $this->_getValidationRules();\n if ([] !== ($vs = $this->getDataRequirement())) {\n foreach($vs as $i => $v) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[sprintf('%s.%d', self::FIELD_DATA_REQUIREMENT, $i)] = $fieldErrs;\n }\n }\n }\n if (null !== ($v = $this->getEncounter())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_ENCOUNTER] = $fieldErrs;\n }\n }\n if ([] !== ($vs = $this->getEvaluationMessage())) {\n foreach($vs as $i => $v) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[sprintf('%s.%d', self::FIELD_EVALUATION_MESSAGE, $i)] = $fieldErrs;\n }\n }\n }\n if ([] !== ($vs = $this->getIdentifier())) {\n foreach($vs as $i => $v) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[sprintf('%s.%d', self::FIELD_IDENTIFIER, $i)] = $fieldErrs;\n }\n }\n }\n if (null !== ($v = $this->getModuleCanonical())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_MODULE_CANONICAL] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getModuleCodeableConcept())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_MODULE_CODEABLE_CONCEPT] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getModuleUri())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_MODULE_URI] = $fieldErrs;\n }\n }\n if ([] !== ($vs = $this->getNote())) {\n foreach($vs as $i => $v) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[sprintf('%s.%d', self::FIELD_NOTE, $i)] = $fieldErrs;\n }\n }\n }\n if (null !== ($v = $this->getOccurrenceDateTime())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_OCCURRENCE_DATE_TIME] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getOutputParameters())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_OUTPUT_PARAMETERS] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getPerformer())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_PERFORMER] = $fieldErrs;\n }\n }\n if ([] !== ($vs = $this->getReasonCode())) {\n foreach($vs as $i => $v) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[sprintf('%s.%d', self::FIELD_REASON_CODE, $i)] = $fieldErrs;\n }\n }\n }\n if ([] !== ($vs = $this->getReasonReference())) {\n foreach($vs as $i => $v) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[sprintf('%s.%d', self::FIELD_REASON_REFERENCE, $i)] = $fieldErrs;\n }\n }\n }\n if (null !== ($v = $this->getRequestIdentifier())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_REQUEST_IDENTIFIER] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getResult())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_RESULT] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getStatus())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_STATUS] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getSubject())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_SUBJECT] = $fieldErrs;\n }\n }\n if (isset($validationRules[self::FIELD_DATA_REQUIREMENT])) {\n $v = $this->getDataRequirement();\n foreach($validationRules[self::FIELD_DATA_REQUIREMENT] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_GUIDANCE_RESPONSE, self::FIELD_DATA_REQUIREMENT, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_DATA_REQUIREMENT])) {\n $errs[self::FIELD_DATA_REQUIREMENT] = [];\n }\n $errs[self::FIELD_DATA_REQUIREMENT][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_ENCOUNTER])) {\n $v = $this->getEncounter();\n foreach($validationRules[self::FIELD_ENCOUNTER] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_GUIDANCE_RESPONSE, self::FIELD_ENCOUNTER, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_ENCOUNTER])) {\n $errs[self::FIELD_ENCOUNTER] = [];\n }\n $errs[self::FIELD_ENCOUNTER][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_EVALUATION_MESSAGE])) {\n $v = $this->getEvaluationMessage();\n foreach($validationRules[self::FIELD_EVALUATION_MESSAGE] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_GUIDANCE_RESPONSE, self::FIELD_EVALUATION_MESSAGE, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_EVALUATION_MESSAGE])) {\n $errs[self::FIELD_EVALUATION_MESSAGE] = [];\n }\n $errs[self::FIELD_EVALUATION_MESSAGE][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_IDENTIFIER])) {\n $v = $this->getIdentifier();\n foreach($validationRules[self::FIELD_IDENTIFIER] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_GUIDANCE_RESPONSE, self::FIELD_IDENTIFIER, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_IDENTIFIER])) {\n $errs[self::FIELD_IDENTIFIER] = [];\n }\n $errs[self::FIELD_IDENTIFIER][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_MODULE_CANONICAL])) {\n $v = $this->getModuleCanonical();\n foreach($validationRules[self::FIELD_MODULE_CANONICAL] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_GUIDANCE_RESPONSE, self::FIELD_MODULE_CANONICAL, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_MODULE_CANONICAL])) {\n $errs[self::FIELD_MODULE_CANONICAL] = [];\n }\n $errs[self::FIELD_MODULE_CANONICAL][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_MODULE_CODEABLE_CONCEPT])) {\n $v = $this->getModuleCodeableConcept();\n foreach($validationRules[self::FIELD_MODULE_CODEABLE_CONCEPT] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_GUIDANCE_RESPONSE, self::FIELD_MODULE_CODEABLE_CONCEPT, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_MODULE_CODEABLE_CONCEPT])) {\n $errs[self::FIELD_MODULE_CODEABLE_CONCEPT] = [];\n }\n $errs[self::FIELD_MODULE_CODEABLE_CONCEPT][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_MODULE_URI])) {\n $v = $this->getModuleUri();\n foreach($validationRules[self::FIELD_MODULE_URI] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_GUIDANCE_RESPONSE, self::FIELD_MODULE_URI, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_MODULE_URI])) {\n $errs[self::FIELD_MODULE_URI] = [];\n }\n $errs[self::FIELD_MODULE_URI][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_NOTE])) {\n $v = $this->getNote();\n foreach($validationRules[self::FIELD_NOTE] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_GUIDANCE_RESPONSE, self::FIELD_NOTE, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_NOTE])) {\n $errs[self::FIELD_NOTE] = [];\n }\n $errs[self::FIELD_NOTE][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_OCCURRENCE_DATE_TIME])) {\n $v = $this->getOccurrenceDateTime();\n foreach($validationRules[self::FIELD_OCCURRENCE_DATE_TIME] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_GUIDANCE_RESPONSE, self::FIELD_OCCURRENCE_DATE_TIME, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_OCCURRENCE_DATE_TIME])) {\n $errs[self::FIELD_OCCURRENCE_DATE_TIME] = [];\n }\n $errs[self::FIELD_OCCURRENCE_DATE_TIME][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_OUTPUT_PARAMETERS])) {\n $v = $this->getOutputParameters();\n foreach($validationRules[self::FIELD_OUTPUT_PARAMETERS] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_GUIDANCE_RESPONSE, self::FIELD_OUTPUT_PARAMETERS, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_OUTPUT_PARAMETERS])) {\n $errs[self::FIELD_OUTPUT_PARAMETERS] = [];\n }\n $errs[self::FIELD_OUTPUT_PARAMETERS][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_PERFORMER])) {\n $v = $this->getPerformer();\n foreach($validationRules[self::FIELD_PERFORMER] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_GUIDANCE_RESPONSE, self::FIELD_PERFORMER, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_PERFORMER])) {\n $errs[self::FIELD_PERFORMER] = [];\n }\n $errs[self::FIELD_PERFORMER][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_REASON_CODE])) {\n $v = $this->getReasonCode();\n foreach($validationRules[self::FIELD_REASON_CODE] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_GUIDANCE_RESPONSE, self::FIELD_REASON_CODE, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_REASON_CODE])) {\n $errs[self::FIELD_REASON_CODE] = [];\n }\n $errs[self::FIELD_REASON_CODE][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_REASON_REFERENCE])) {\n $v = $this->getReasonReference();\n foreach($validationRules[self::FIELD_REASON_REFERENCE] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_GUIDANCE_RESPONSE, self::FIELD_REASON_REFERENCE, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_REASON_REFERENCE])) {\n $errs[self::FIELD_REASON_REFERENCE] = [];\n }\n $errs[self::FIELD_REASON_REFERENCE][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_REQUEST_IDENTIFIER])) {\n $v = $this->getRequestIdentifier();\n foreach($validationRules[self::FIELD_REQUEST_IDENTIFIER] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_GUIDANCE_RESPONSE, self::FIELD_REQUEST_IDENTIFIER, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_REQUEST_IDENTIFIER])) {\n $errs[self::FIELD_REQUEST_IDENTIFIER] = [];\n }\n $errs[self::FIELD_REQUEST_IDENTIFIER][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_RESULT])) {\n $v = $this->getResult();\n foreach($validationRules[self::FIELD_RESULT] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_GUIDANCE_RESPONSE, self::FIELD_RESULT, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_RESULT])) {\n $errs[self::FIELD_RESULT] = [];\n }\n $errs[self::FIELD_RESULT][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_STATUS])) {\n $v = $this->getStatus();\n foreach($validationRules[self::FIELD_STATUS] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_GUIDANCE_RESPONSE, self::FIELD_STATUS, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_STATUS])) {\n $errs[self::FIELD_STATUS] = [];\n }\n $errs[self::FIELD_STATUS][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_SUBJECT])) {\n $v = $this->getSubject();\n foreach($validationRules[self::FIELD_SUBJECT] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_GUIDANCE_RESPONSE, self::FIELD_SUBJECT, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_SUBJECT])) {\n $errs[self::FIELD_SUBJECT] = [];\n }\n $errs[self::FIELD_SUBJECT][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_CONTAINED])) {\n $v = $this->getContained();\n foreach($validationRules[self::FIELD_CONTAINED] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_DOMAIN_RESOURCE, self::FIELD_CONTAINED, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_CONTAINED])) {\n $errs[self::FIELD_CONTAINED] = [];\n }\n $errs[self::FIELD_CONTAINED][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_EXTENSION])) {\n $v = $this->getExtension();\n foreach($validationRules[self::FIELD_EXTENSION] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_DOMAIN_RESOURCE, self::FIELD_EXTENSION, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_EXTENSION])) {\n $errs[self::FIELD_EXTENSION] = [];\n }\n $errs[self::FIELD_EXTENSION][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_MODIFIER_EXTENSION])) {\n $v = $this->getModifierExtension();\n foreach($validationRules[self::FIELD_MODIFIER_EXTENSION] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_DOMAIN_RESOURCE, self::FIELD_MODIFIER_EXTENSION, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_MODIFIER_EXTENSION])) {\n $errs[self::FIELD_MODIFIER_EXTENSION] = [];\n }\n $errs[self::FIELD_MODIFIER_EXTENSION][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_TEXT])) {\n $v = $this->getText();\n foreach($validationRules[self::FIELD_TEXT] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_DOMAIN_RESOURCE, self::FIELD_TEXT, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_TEXT])) {\n $errs[self::FIELD_TEXT] = [];\n }\n $errs[self::FIELD_TEXT][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_ID])) {\n $v = $this->getId();\n foreach($validationRules[self::FIELD_ID] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_RESOURCE, self::FIELD_ID, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_ID])) {\n $errs[self::FIELD_ID] = [];\n }\n $errs[self::FIELD_ID][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_IMPLICIT_RULES])) {\n $v = $this->getImplicitRules();\n foreach($validationRules[self::FIELD_IMPLICIT_RULES] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_RESOURCE, self::FIELD_IMPLICIT_RULES, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_IMPLICIT_RULES])) {\n $errs[self::FIELD_IMPLICIT_RULES] = [];\n }\n $errs[self::FIELD_IMPLICIT_RULES][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_LANGUAGE])) {\n $v = $this->getLanguage();\n foreach($validationRules[self::FIELD_LANGUAGE] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_RESOURCE, self::FIELD_LANGUAGE, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_LANGUAGE])) {\n $errs[self::FIELD_LANGUAGE] = [];\n }\n $errs[self::FIELD_LANGUAGE][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_META])) {\n $v = $this->getMeta();\n foreach($validationRules[self::FIELD_META] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_RESOURCE, self::FIELD_META, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_META])) {\n $errs[self::FIELD_META] = [];\n }\n $errs[self::FIELD_META][$rule] = $err;\n }\n }\n }\n return $errs;\n }",
"public function get_error_objects() {\n return $this->errors;\n }",
"public function getFormErrors()\n {\n return $this->form->getErrors();\n }",
"public function _getValidationErrors()\n {\n $errs = parent::_getValidationErrors();\n $validationRules = $this->_getValidationRules();\n if (null !== ($v = $this->getAccident())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_ACCIDENT] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getAccidentType())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_ACCIDENT_TYPE] = $fieldErrs;\n }\n }\n if ([] !== ($vs = $this->getAdditionalMaterials())) {\n foreach($vs as $i => $v) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[sprintf('%s.%d', self::FIELD_ADDITIONAL_MATERIALS, $i)] = $fieldErrs;\n }\n }\n }\n if ([] !== ($vs = $this->getCondition())) {\n foreach($vs as $i => $v) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[sprintf('%s.%d', self::FIELD_CONDITION, $i)] = $fieldErrs;\n }\n }\n }\n if ([] !== ($vs = $this->getCoverage())) {\n foreach($vs as $i => $v) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[sprintf('%s.%d', self::FIELD_COVERAGE, $i)] = $fieldErrs;\n }\n }\n }\n if (null !== ($v = $this->getCreated())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_CREATED] = $fieldErrs;\n }\n }\n if ([] !== ($vs = $this->getDiagnosis())) {\n foreach($vs as $i => $v) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[sprintf('%s.%d', self::FIELD_DIAGNOSIS, $i)] = $fieldErrs;\n }\n }\n }\n if (null !== ($v = $this->getEnterer())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_ENTERER] = $fieldErrs;\n }\n }\n if ([] !== ($vs = $this->getException())) {\n foreach($vs as $i => $v) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[sprintf('%s.%d', self::FIELD_EXCEPTION, $i)] = $fieldErrs;\n }\n }\n }\n if (null !== ($v = $this->getFacility())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_FACILITY] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getFundsReserve())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_FUNDS_RESERVE] = $fieldErrs;\n }\n }\n if ([] !== ($vs = $this->getIdentifier())) {\n foreach($vs as $i => $v) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[sprintf('%s.%d', self::FIELD_IDENTIFIER, $i)] = $fieldErrs;\n }\n }\n }\n if ([] !== ($vs = $this->getInterventionException())) {\n foreach($vs as $i => $v) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[sprintf('%s.%d', self::FIELD_INTERVENTION_EXCEPTION, $i)] = $fieldErrs;\n }\n }\n }\n if ([] !== ($vs = $this->getItem())) {\n foreach($vs as $i => $v) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[sprintf('%s.%d', self::FIELD_ITEM, $i)] = $fieldErrs;\n }\n }\n }\n if ([] !== ($vs = $this->getMissingTeeth())) {\n foreach($vs as $i => $v) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[sprintf('%s.%d', self::FIELD_MISSING_TEETH, $i)] = $fieldErrs;\n }\n }\n }\n if (null !== ($v = $this->getOrganization())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_ORGANIZATION] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getOriginalPrescription())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_ORIGINAL_PRESCRIPTION] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getOriginalRuleset())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_ORIGINAL_RULESET] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getPatient())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_PATIENT] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getPayee())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_PAYEE] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getPrescription())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_PRESCRIPTION] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getPriority())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_PRIORITY] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getProvider())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_PROVIDER] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getReferral())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_REFERRAL] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getRuleset())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_RULESET] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getSchool())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_SCHOOL] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getTarget())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_TARGET] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getType())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_TYPE] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getUse())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_USE] = $fieldErrs;\n }\n }\n if (isset($validationRules[self::FIELD_ACCIDENT])) {\n $v = $this->getAccident();\n foreach($validationRules[self::FIELD_ACCIDENT] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLAIM, self::FIELD_ACCIDENT, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_ACCIDENT])) {\n $errs[self::FIELD_ACCIDENT] = [];\n }\n $errs[self::FIELD_ACCIDENT][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_ACCIDENT_TYPE])) {\n $v = $this->getAccidentType();\n foreach($validationRules[self::FIELD_ACCIDENT_TYPE] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLAIM, self::FIELD_ACCIDENT_TYPE, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_ACCIDENT_TYPE])) {\n $errs[self::FIELD_ACCIDENT_TYPE] = [];\n }\n $errs[self::FIELD_ACCIDENT_TYPE][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_ADDITIONAL_MATERIALS])) {\n $v = $this->getAdditionalMaterials();\n foreach($validationRules[self::FIELD_ADDITIONAL_MATERIALS] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLAIM, self::FIELD_ADDITIONAL_MATERIALS, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_ADDITIONAL_MATERIALS])) {\n $errs[self::FIELD_ADDITIONAL_MATERIALS] = [];\n }\n $errs[self::FIELD_ADDITIONAL_MATERIALS][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_CONDITION])) {\n $v = $this->getCondition();\n foreach($validationRules[self::FIELD_CONDITION] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLAIM, self::FIELD_CONDITION, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_CONDITION])) {\n $errs[self::FIELD_CONDITION] = [];\n }\n $errs[self::FIELD_CONDITION][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_COVERAGE])) {\n $v = $this->getCoverage();\n foreach($validationRules[self::FIELD_COVERAGE] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLAIM, self::FIELD_COVERAGE, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_COVERAGE])) {\n $errs[self::FIELD_COVERAGE] = [];\n }\n $errs[self::FIELD_COVERAGE][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_CREATED])) {\n $v = $this->getCreated();\n foreach($validationRules[self::FIELD_CREATED] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLAIM, self::FIELD_CREATED, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_CREATED])) {\n $errs[self::FIELD_CREATED] = [];\n }\n $errs[self::FIELD_CREATED][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_DIAGNOSIS])) {\n $v = $this->getDiagnosis();\n foreach($validationRules[self::FIELD_DIAGNOSIS] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLAIM, self::FIELD_DIAGNOSIS, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_DIAGNOSIS])) {\n $errs[self::FIELD_DIAGNOSIS] = [];\n }\n $errs[self::FIELD_DIAGNOSIS][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_ENTERER])) {\n $v = $this->getEnterer();\n foreach($validationRules[self::FIELD_ENTERER] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLAIM, self::FIELD_ENTERER, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_ENTERER])) {\n $errs[self::FIELD_ENTERER] = [];\n }\n $errs[self::FIELD_ENTERER][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_EXCEPTION])) {\n $v = $this->getException();\n foreach($validationRules[self::FIELD_EXCEPTION] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLAIM, self::FIELD_EXCEPTION, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_EXCEPTION])) {\n $errs[self::FIELD_EXCEPTION] = [];\n }\n $errs[self::FIELD_EXCEPTION][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_FACILITY])) {\n $v = $this->getFacility();\n foreach($validationRules[self::FIELD_FACILITY] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLAIM, self::FIELD_FACILITY, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_FACILITY])) {\n $errs[self::FIELD_FACILITY] = [];\n }\n $errs[self::FIELD_FACILITY][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_FUNDS_RESERVE])) {\n $v = $this->getFundsReserve();\n foreach($validationRules[self::FIELD_FUNDS_RESERVE] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLAIM, self::FIELD_FUNDS_RESERVE, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_FUNDS_RESERVE])) {\n $errs[self::FIELD_FUNDS_RESERVE] = [];\n }\n $errs[self::FIELD_FUNDS_RESERVE][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_IDENTIFIER])) {\n $v = $this->getIdentifier();\n foreach($validationRules[self::FIELD_IDENTIFIER] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLAIM, self::FIELD_IDENTIFIER, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_IDENTIFIER])) {\n $errs[self::FIELD_IDENTIFIER] = [];\n }\n $errs[self::FIELD_IDENTIFIER][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_INTERVENTION_EXCEPTION])) {\n $v = $this->getInterventionException();\n foreach($validationRules[self::FIELD_INTERVENTION_EXCEPTION] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLAIM, self::FIELD_INTERVENTION_EXCEPTION, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_INTERVENTION_EXCEPTION])) {\n $errs[self::FIELD_INTERVENTION_EXCEPTION] = [];\n }\n $errs[self::FIELD_INTERVENTION_EXCEPTION][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_ITEM])) {\n $v = $this->getItem();\n foreach($validationRules[self::FIELD_ITEM] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLAIM, self::FIELD_ITEM, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_ITEM])) {\n $errs[self::FIELD_ITEM] = [];\n }\n $errs[self::FIELD_ITEM][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_MISSING_TEETH])) {\n $v = $this->getMissingTeeth();\n foreach($validationRules[self::FIELD_MISSING_TEETH] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLAIM, self::FIELD_MISSING_TEETH, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_MISSING_TEETH])) {\n $errs[self::FIELD_MISSING_TEETH] = [];\n }\n $errs[self::FIELD_MISSING_TEETH][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_ORGANIZATION])) {\n $v = $this->getOrganization();\n foreach($validationRules[self::FIELD_ORGANIZATION] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLAIM, self::FIELD_ORGANIZATION, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_ORGANIZATION])) {\n $errs[self::FIELD_ORGANIZATION] = [];\n }\n $errs[self::FIELD_ORGANIZATION][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_ORIGINAL_PRESCRIPTION])) {\n $v = $this->getOriginalPrescription();\n foreach($validationRules[self::FIELD_ORIGINAL_PRESCRIPTION] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLAIM, self::FIELD_ORIGINAL_PRESCRIPTION, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_ORIGINAL_PRESCRIPTION])) {\n $errs[self::FIELD_ORIGINAL_PRESCRIPTION] = [];\n }\n $errs[self::FIELD_ORIGINAL_PRESCRIPTION][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_ORIGINAL_RULESET])) {\n $v = $this->getOriginalRuleset();\n foreach($validationRules[self::FIELD_ORIGINAL_RULESET] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLAIM, self::FIELD_ORIGINAL_RULESET, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_ORIGINAL_RULESET])) {\n $errs[self::FIELD_ORIGINAL_RULESET] = [];\n }\n $errs[self::FIELD_ORIGINAL_RULESET][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_PATIENT])) {\n $v = $this->getPatient();\n foreach($validationRules[self::FIELD_PATIENT] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLAIM, self::FIELD_PATIENT, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_PATIENT])) {\n $errs[self::FIELD_PATIENT] = [];\n }\n $errs[self::FIELD_PATIENT][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_PAYEE])) {\n $v = $this->getPayee();\n foreach($validationRules[self::FIELD_PAYEE] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLAIM, self::FIELD_PAYEE, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_PAYEE])) {\n $errs[self::FIELD_PAYEE] = [];\n }\n $errs[self::FIELD_PAYEE][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_PRESCRIPTION])) {\n $v = $this->getPrescription();\n foreach($validationRules[self::FIELD_PRESCRIPTION] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLAIM, self::FIELD_PRESCRIPTION, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_PRESCRIPTION])) {\n $errs[self::FIELD_PRESCRIPTION] = [];\n }\n $errs[self::FIELD_PRESCRIPTION][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_PRIORITY])) {\n $v = $this->getPriority();\n foreach($validationRules[self::FIELD_PRIORITY] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLAIM, self::FIELD_PRIORITY, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_PRIORITY])) {\n $errs[self::FIELD_PRIORITY] = [];\n }\n $errs[self::FIELD_PRIORITY][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_PROVIDER])) {\n $v = $this->getProvider();\n foreach($validationRules[self::FIELD_PROVIDER] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLAIM, self::FIELD_PROVIDER, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_PROVIDER])) {\n $errs[self::FIELD_PROVIDER] = [];\n }\n $errs[self::FIELD_PROVIDER][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_REFERRAL])) {\n $v = $this->getReferral();\n foreach($validationRules[self::FIELD_REFERRAL] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLAIM, self::FIELD_REFERRAL, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_REFERRAL])) {\n $errs[self::FIELD_REFERRAL] = [];\n }\n $errs[self::FIELD_REFERRAL][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_RULESET])) {\n $v = $this->getRuleset();\n foreach($validationRules[self::FIELD_RULESET] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLAIM, self::FIELD_RULESET, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_RULESET])) {\n $errs[self::FIELD_RULESET] = [];\n }\n $errs[self::FIELD_RULESET][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_SCHOOL])) {\n $v = $this->getSchool();\n foreach($validationRules[self::FIELD_SCHOOL] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLAIM, self::FIELD_SCHOOL, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_SCHOOL])) {\n $errs[self::FIELD_SCHOOL] = [];\n }\n $errs[self::FIELD_SCHOOL][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_TARGET])) {\n $v = $this->getTarget();\n foreach($validationRules[self::FIELD_TARGET] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLAIM, self::FIELD_TARGET, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_TARGET])) {\n $errs[self::FIELD_TARGET] = [];\n }\n $errs[self::FIELD_TARGET][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_TYPE])) {\n $v = $this->getType();\n foreach($validationRules[self::FIELD_TYPE] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLAIM, self::FIELD_TYPE, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_TYPE])) {\n $errs[self::FIELD_TYPE] = [];\n }\n $errs[self::FIELD_TYPE][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_USE])) {\n $v = $this->getUse();\n foreach($validationRules[self::FIELD_USE] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLAIM, self::FIELD_USE, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_USE])) {\n $errs[self::FIELD_USE] = [];\n }\n $errs[self::FIELD_USE][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_CONTAINED])) {\n $v = $this->getContained();\n foreach($validationRules[self::FIELD_CONTAINED] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_DOMAIN_RESOURCE, self::FIELD_CONTAINED, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_CONTAINED])) {\n $errs[self::FIELD_CONTAINED] = [];\n }\n $errs[self::FIELD_CONTAINED][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_EXTENSION])) {\n $v = $this->getExtension();\n foreach($validationRules[self::FIELD_EXTENSION] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_DOMAIN_RESOURCE, self::FIELD_EXTENSION, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_EXTENSION])) {\n $errs[self::FIELD_EXTENSION] = [];\n }\n $errs[self::FIELD_EXTENSION][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_MODIFIER_EXTENSION])) {\n $v = $this->getModifierExtension();\n foreach($validationRules[self::FIELD_MODIFIER_EXTENSION] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_DOMAIN_RESOURCE, self::FIELD_MODIFIER_EXTENSION, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_MODIFIER_EXTENSION])) {\n $errs[self::FIELD_MODIFIER_EXTENSION] = [];\n }\n $errs[self::FIELD_MODIFIER_EXTENSION][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_TEXT])) {\n $v = $this->getText();\n foreach($validationRules[self::FIELD_TEXT] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_DOMAIN_RESOURCE, self::FIELD_TEXT, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_TEXT])) {\n $errs[self::FIELD_TEXT] = [];\n }\n $errs[self::FIELD_TEXT][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_ID])) {\n $v = $this->getId();\n foreach($validationRules[self::FIELD_ID] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_RESOURCE, self::FIELD_ID, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_ID])) {\n $errs[self::FIELD_ID] = [];\n }\n $errs[self::FIELD_ID][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_IMPLICIT_RULES])) {\n $v = $this->getImplicitRules();\n foreach($validationRules[self::FIELD_IMPLICIT_RULES] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_RESOURCE, self::FIELD_IMPLICIT_RULES, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_IMPLICIT_RULES])) {\n $errs[self::FIELD_IMPLICIT_RULES] = [];\n }\n $errs[self::FIELD_IMPLICIT_RULES][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_LANGUAGE])) {\n $v = $this->getLanguage();\n foreach($validationRules[self::FIELD_LANGUAGE] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_RESOURCE, self::FIELD_LANGUAGE, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_LANGUAGE])) {\n $errs[self::FIELD_LANGUAGE] = [];\n }\n $errs[self::FIELD_LANGUAGE][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_META])) {\n $v = $this->getMeta();\n foreach($validationRules[self::FIELD_META] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_RESOURCE, self::FIELD_META, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_META])) {\n $errs[self::FIELD_META] = [];\n }\n $errs[self::FIELD_META][$rule] = $err;\n }\n }\n }\n return $errs;\n }",
"private function getFailedList()\n\t{\n\t\treturn $this->failed_list;\n\t}",
"public function getErrors()\n {\n return $this->errors;\n }",
"public function getErrors()\n {\n return $this->errors;\n }",
"public function getErrors()\n {\n return $this->errors;\n }",
"public function getErrors()\n {\n return $this->errors;\n }",
"public function getErrors()\n {\n return $this->errors;\n }",
"public function getErrors()\n {\n return $this->errors;\n }",
"public function getErrors()\n {\n return $this->errors;\n }",
"public function getErrors()\n {\n return $this->errors;\n }",
"public function getErrors()\n {\n return $this->errors;\n }",
"public function getErrors()\n {\n return $this->errors;\n }",
"public function getErrors()\n {\n return $this->errors;\n }",
"public function getErrors()\n {\n return $this->errors;\n }",
"public function getErrors()\n {\n return $this->errors;\n }",
"public function getErrors()\n {\n return $this->errors;\n }",
"public function getErrors()\n {\n return $this->errors;\n }",
"public function getErrors() {\n return $this->errors;\n }",
"public function getErrors() {\n return $this->errors;\n }",
"public function getErrors() {\n return $this->errors;\n }",
"public function getErrors()\n {\n return $this->_errors;\n }",
"public function getErrors()\n {\n return $this->_errors;\n }",
"public function getErrors() {\n return $this->_errors;\n }",
"public function getErrors(): array\n {\n return $this->errors;\n }",
"public function getErrors(): array\n {\n return $this->errors;\n }",
"public function getErrors(): array\n {\n return $this->errors;\n }",
"public function getErrors(): array\n {\n return $this->errors;\n }",
"public function getErrors(): array\n {\n return $this->errors;\n }",
"public function getErrors(): array\n {\n return $this->errors;\n }",
"public function getErrors(): array\n {\n return $this->errors;\n }",
"public static function getValidationArray()\n {\n return static::$_validate;\n }",
"public function getErrors() {\r\n return $this->errors;\r\n }"
] | [
"0.7626338",
"0.7609587",
"0.7609587",
"0.7609587",
"0.7609587",
"0.7609587",
"0.7609587",
"0.7609587",
"0.7609587",
"0.7609587",
"0.7609587",
"0.76035434",
"0.76035434",
"0.76035434",
"0.74372894",
"0.7340564",
"0.72777367",
"0.7199955",
"0.71778286",
"0.716301",
"0.7147537",
"0.7120161",
"0.70899713",
"0.69935393",
"0.6951137",
"0.69184667",
"0.69184667",
"0.6914006",
"0.6858501",
"0.6841249",
"0.6774455",
"0.6773947",
"0.6730771",
"0.6687505",
"0.6682683",
"0.668013",
"0.6644597",
"0.66050965",
"0.65877014",
"0.6574525",
"0.6554485",
"0.65496826",
"0.65083253",
"0.64937663",
"0.64937663",
"0.64937663",
"0.64937663",
"0.64654255",
"0.64614224",
"0.64591354",
"0.6444243",
"0.6419153",
"0.6414417",
"0.64083254",
"0.64079636",
"0.6390411",
"0.636979",
"0.63640934",
"0.6341251",
"0.6334216",
"0.6325982",
"0.632551",
"0.632551",
"0.632551",
"0.632551",
"0.632551",
"0.632551",
"0.632551",
"0.632551",
"0.632551",
"0.632551",
"0.632551",
"0.632551",
"0.632551",
"0.632551",
"0.632551",
"0.6320677",
"0.6320677",
"0.6320677",
"0.63192004",
"0.63192004",
"0.63181764",
"0.63156074",
"0.63156074",
"0.63156074",
"0.63156074",
"0.63156074",
"0.63156074",
"0.63156074",
"0.6308827",
"0.6302611"
] | 0.76089877 | 19 |
This function performs the validation work for complex object models. In addition to checking the current object, all related objects will also be validated. If all pass then true is returned; otherwise an aggregated array of ValidationFailed objects will be returned. | protected function doValidate($columns = null)
{
if (!$this->alreadyInValidation) {
$this->alreadyInValidation = true;
$retval = null;
$failureMap = array();
// We call the validate method on the following object(s) if they
// were passed to this object by their corresponding set
// method. This object relates to these object(s) by a
// foreign key reference.
if ($this->aOperations !== null) {
if (!$this->aOperations->validate($columns)) {
$failureMap = array_merge($failureMap, $this->aOperations->getValidationFailures());
}
}
if ($this->aRCurrencies !== null) {
if (!$this->aRCurrencies->validate($columns)) {
$failureMap = array_merge($failureMap, $this->aRCurrencies->getValidationFailures());
}
}
if ($this->aRRewardTypes !== null) {
if (!$this->aRRewardTypes->validate($columns)) {
$failureMap = array_merge($failureMap, $this->aRRewardTypes->getValidationFailures());
}
}
if ($this->aRRewardExpeditionModes !== null) {
if (!$this->aRRewardExpeditionModes->validate($columns)) {
$failureMap = array_merge($failureMap, $this->aRRewardExpeditionModes->getValidationFailures());
}
}
if ($this->aRRewardTransporters !== null) {
if (!$this->aRRewardTransporters->validate($columns)) {
$failureMap = array_merge($failureMap, $this->aRRewardTransporters->getValidationFailures());
}
}
if (($retval = OperationPrimesPeer::doValidate($this, $columns)) !== true) {
$failureMap = array_merge($failureMap, $retval);
}
if ($this->collOperationPrestationss !== null) {
foreach ($this->collOperationPrestationss as $referrerFK) {
if (!$referrerFK->validate($columns)) {
$failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());
}
}
}
if ($this->collOperationScenariis !== null) {
foreach ($this->collOperationScenariis as $referrerFK) {
if (!$referrerFK->validate($columns)) {
$failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());
}
}
}
if ($this->collLnkOperationPrimeRCountriess !== null) {
foreach ($this->collLnkOperationPrimeRCountriess as $referrerFK) {
if (!$referrerFK->validate($columns)) {
$failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());
}
}
}
$this->alreadyInValidation = false;
}
return (!empty($failureMap) ? $failureMap : true);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function validateAll()\n {\n $result = $this->validate();\n\n foreach ($this->relations() as $relation) {\n\n $relAttr = $relation['attribute'];\n $relModel = $this->$relAttr;\n\n if (ArrayHelper::isIndexed($relModel)) {\n foreach ($relModel as $model) {\n /* @var Model $model */\n $result = $model->validate() && $result;\n\n if ($model->hasErrors()) {\n $this->addErrors($model->getErrors());\n }\n }\n } else {\n /* @var Model $relModel */\n $result = $relModel->validate() && $result;\n\n if ($relModel->hasErrors()) {\n $this->addErrors($relModel->getErrors());\n }\n }\n }\n\n return $result;\n }",
"public function validate()\n {\n if (!$this->_objValidation) {\n return true;\n }\n\n if (!$this->_objData) {\n return false;\n }\n\n $res = $this->validatePreProcess();\n if ($res) {\n foreach ($this->_objData as $k => $v) {\n $res = $res && ValidationUtil::validateObjectPlain($this->_objPath, $v, $this->_objValidation);\n if (!$res) {\n break;\n } \n } \n if ($res) {\n $res = $res && $this->validatePostProcess();\n } \n } \n\n return $res;\n }",
"public function execute(): bool {\r\n\r\n //Check if validation already executed before\r\n if(null !== $this -> validated) {\r\n return $this -> validated;\r\n }\r\n\r\n $passed = true;\r\n\r\n foreach($this -> fieldCollection as $fieldItem) {\r\n\r\n /** @var CollectionAbstract $fieldItem */\r\n $fieldNames = $fieldItem -> getFieldNames();\r\n $ruleSets = $fieldItem -> getRuleCollection();\r\n $middleware = $this -> getMiddleware($fieldItem);\r\n\r\n foreach($fieldNames as $fieldName) {\r\n \r\n //Find the values for each field in a combine instance and process them\r\n $this -> fillCombineValues($fieldName);\r\n\r\n //Retrieve the value and path for the given field name\r\n $path = $this -> getPath($fieldName);\r\n\r\n foreach($path as $info) {\r\n\r\n //Add the value to the validated data after executing the middleware\r\n if(null !== $info['path']) {\r\n\r\n //Execute middleware\r\n foreach($middleware as $middlewareClass) {\r\n $info['value'] = $this -> executeMiddleware($middlewareClass, $fieldName, $info['value']);\r\n }\r\n\r\n $this -> addValidatedData($info['path'], $fieldName, $info['value'], $fieldItem);\r\n }\r\n\r\n foreach($ruleSets as $ruleSet) {\r\n\r\n /** @var RuleSet $ruleSet */\r\n $class = $ruleSet -> getNamespace();\r\n\r\n /** @var RuleAbstract $rule */\r\n $rule = new $class(...$ruleSet -> getParameters());\r\n $rule -> setValidationData($this -> validationData);\r\n $rule -> setFieldName($fieldName);\r\n\r\n //Set custom message if found\r\n $message = $this -> message -> find($fieldName, $rule -> getName());\r\n\r\n if(null !== $message) {\r\n $rule -> setMessage($message);\r\n }\r\n\r\n $valid = $this -> executeRule($rule, $info['value']);\r\n\r\n //Check if the rule is valid or not\r\n if(false === $valid) {\r\n\r\n $this -> addValidationError($info['path'] ?? [$fieldName], $info['value'], $rule);\r\n $passed = false;\r\n\r\n //Break the loop if bailing is globally enabled\r\n if(true === $fieldItem -> isBail()) {\r\n break;\r\n }\r\n }\r\n\r\n //Break the loop if the rule should bail the rest\r\n if(true === $rule -> isBail()) {\r\n break;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n\r\n $this -> validated = $passed;\r\n return $passed;\r\n }",
"public function validate()\r\n {\r\n //clean out the errors in the errors array\r\n $this->errors = array(); //set it equal to a new empty array to clear the items in the array\r\n\r\n // need find a way to check each property\r\n // lets uses a naming convention that any function that begins with 'validate_'\r\n //will be executed in this method\r\n $methods = get_class_methods($this);\r\n $validationResults = array();\r\n foreach($methods as $func)\r\n {\r\n //see if the function begins with the text 'validate_'\r\n if(strpos($func,'validate_')===0)\r\n {\r\n //call the method with the name stored in the $func variable\r\n $validationResults[] = call_user_func([$this,$func]);\r\n }\r\n }\r\n //check to see if any of the property validation functions returned false\r\n return !in_array(false,$validationResults);\r\n\r\n }",
"public function Validate()\n\t{\n\t\t//\n\t\t// Traverse object.\n\t\t//\n\t\tforeach( $this as $condition => $statements )\n\t\t\t$this->_ValidateCondition( $condition, $statements, 0 );\n\t\n\t}",
"public function validate()\n {\n /* @var $model \\yii\\db\\ActiveRecord */\n $valid = true;\n\n foreach ($this->_relationsToSave as $model) {\n $model->{$this->relPrimaryKey} = ($this->owner->primaryKey) ? $this->owner->primaryKey : null;\n\n $attributes = array_diff($model->activeAttributes(), [$this->relPrimaryKey]);\n\n if (!$model->validate($attributes)) {\n $this->owner->addErrors($model->getErrors());\n\n $valid = false;\n }\n }\n\n return $valid;\n }",
"public function validate(){\n\t\t$valid = true;\n\t\t$ref = new ReflectionObject($this);\n\t\tforeach($ref->getProperties() as $prop){\n\t\t\tif(isset($this->_atributosMetadata[$prop->getName()])){\n\t\t\t\t$propMetadata = $this->_atributosMetadata[$prop->getName()];\n\t\t\t\tif($propMetadata->needValidate){\n\t\t\t\t\t$propMetadata->Validate($prop->getValue($this));\n\t\t\t\t\tif($propMetadata->isValid){\n\t\t\t\t\t\t$valid = $valid && $propMetadata->isValid; \n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn $valid;\t\t\n\t}",
"public function validates()\n {\n if( ! $this->hydrated)\n {\n $this->hydrate();\n }\n\n return $this->runValidation($this->elements, $this->rules);\n }",
"public function validate()\n {\n foreach ( $this->rules as $key => $rules ) {\n foreach ( $rules as $type => $rule ) {\n if ( $this->hasErrors( $key ) )\n break;\n $this->validateRule( $key, $type, $rule );\n }\n }\n }",
"public function isObjectDataValid()\n\t{\n\t\tforeach ($this->objectRequiredDataFields AS $requiredField => $_tmp) {\n\t\t\t$checkValue = $this->getObjectData($requiredField);\n\t\t\t$validationReturn = $this->validate($requiredField, $checkValue);\n\n\t\t\tif ($validationReturn != true) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}",
"public function run()\n {\n $rules = $this->filterRelatedRules();\n\n if(empty($rules)) {\n return true;\n }\n\n foreach ($rules as $rule) {\n $can = $this->validate($rule);\n if ($can && !$this->strict) {\n return true;\n } else if (!$can && $this->strict) {\n return false;\n }\n }\n\n return $this->strict;\n }",
"public function validate()\n\t{\n\t\t// Build the validation data\n\t\t$data = array();\n\n\t\tforeach ($this->_meta->fields as $field_name => $field)\n\t\t{\n\t\t\t$data[$field_name] = $this->get($field_name);\n\t\t}\n\n\t\t$data = Validation::factory($data);\n\n\t\t// Add rules\n\t\tforeach ($this->_meta->fields as $field_name => $field)\n\t\t{\n\t\t\tforeach ($field->rules as $rule)\n\t\t\t{\n\t\t\t\t$callback = Arr::get($rule, 0);\n\t\t\t\t$params = Arr::get($rule, 1);\n\n\t\t\t\t$data->rule($field_name, $callback, $params);\n\t\t\t}\n\t\t}\n\n\t\t// Bind :model parameters to this model so the validation callback\n\t\t// can have access to the model\n\t\t$data->bind(':model', $this);\n\n\t\t// If the data does not validate, throw an exception\n\t\tif ( ! $data->check())\n\t\t{\n\t\t\tthrow new DORM_Validation_Exception($this, $data);\n\t\t}\n\t}",
"public function validate()\n {\n $this->resetResult();\n\n // This CompositeValidator has been disabled in full\n if (!$this->getEnabled()) {\n return $this->result;\n }\n\n foreach ($this->getValidators() as $validator) {\n // validate() will return a ValidationResult, and we will combine this with the result we already have\n $this->getResult()->combineAnd($validator->validate());\n }\n\n return $this->result;\n }",
"function is_valid() {\n $valid = True;\n foreach(get_object_vars($this) as $name => $obj) {\n if ($obj != NULL) {\n #validacion errores genericos de los campos\n $obj->required_validate();\n $flag = $obj->is_valid(); \n if (!$flag) \n { \n $valid = False;\n echo $obj->name.\" \";\n }\n #echo $obj->name;\n }\n }\n #busca metodos de validacion definido por usuario\n foreach(get_class_methods($this) as $fname) {\n $pos = strpos($fname, \"clean_\");\n if ($pos !== False) {\n $flag = $this->$fname();\n if (!$flag) \n { \n $valid = False;\n echo $fname.\" \";\n }\n }\n }\n echo $valid;\n return $valid;\n }",
"public function validate() {\n // Validate each form field\n foreach ($this->fields as $field => $value) {\n \n // If the field value is empty\n if (empty($value)) {\n // If the field is set as required, throw error\n if (isset($this->rules[$field]['required'])) {\n $this->errors[$field][] = self::ERROR_REQUIRED;\n }\n }\n // Else, if the field has a value and is declared in Rules\n else if (isset($this->rules[$field])) {\n \n // Remove 'required' from list of callable functions.\n // We already did this check above.\n unset($this->rules[$field]['required']);\n \n foreach ($this->rules[$field] as $rule => $rule_value) {\n /**\n * For each rule specified for an element,\n * call a function with the same name, e.g. 'email()' when\n * checking whether a field value is a valid email address.\n * \n * This replaces the previous switch statement, and reduces\n * the need to iterate through each switch case for every\n * rule. \n */\n call_user_func_array(\n // Function is in this instance, named identical to rule\n array($this, $rule),\n // Pass the Field name, Field value, and Rule value\n array($field, $value, $rule_value)\n );\n }\n }\n }\n \n // Return validation result\n if (empty($this->errors)) {\n return TRUE;\n }\n else {\n return FALSE;\n }\n }",
"public function validate()\n {\n return $this->validateId()\n && $this->validateCreatedAt()\n && $this->validateOnBoardingPercentage()\n && $this->validateCountApplication()\n && $this->validateCountAcceptedApplications();\n }",
"function validate($object = '')\r\n\t{\r\n\t\t// Return if validation has already been run\r\n\t\tif ($this->validated)\r\n\t\t{\r\n\t\t\t// For method chaining\r\n\t\t\treturn $this;\r\n\t\t}\r\n\r\n\t\t// Set validated as having been run\r\n\t\t$this->validated = TRUE;\r\n\r\n\t\t// Clear errors\r\n\t\t$this->error = new stdClass();\r\n\t\t$this->error->all = array();\r\n\t\t$this->error->string = '';\r\n\r\n\t\tforeach ($this->fields as $field)\r\n\t\t{\r\n\t\t\t$this->error->{$field} = '';\r\n\t\t}\r\n\r\n\t\t// Loop through each property to be validated\r\n\t\tforeach ($this->validation as $validation)\r\n\t\t{\r\n\t\t\t// Get validation settings\r\n\t\t\t$field = $validation['field'];\r\n\t\t\t$label = ( ! empty($validation['label'])) ? $validation['label'] : $field;\r\n\t\t\t$rules = $validation['rules'];\r\n\r\n\t\t\t// Will validate differently if this is for a related item\r\n\t\t\t$related = (in_array($field, $this->has_many) OR in_array($field, $this->has_one));\r\n\r\n\t\t\t// Check if property has changed since validate last ran\r\n\t\t\tif ($related OR ! isset($this->stored->{$field}) OR $this->{$field} !== $this->stored->{$field})\r\n\t\t\t{\r\n\t\t\t\t// Only validate if field is related or required or has a value\r\n\t\t\t\tif ( ! $related && ! in_array('required', $rules))\r\n\t\t\t\t{\r\n\t\t\t\t\tif ( ! isset($this->{$field}) OR $this->{$field} === '')\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Loop through each rule to validate this property against\r\n\t\t\t\tforeach ($rules as $rule => $param)\r\n\t\t\t\t{\r\n\t\t\t\t\t// Check for parameter\r\n\t\t\t\t\tif (is_numeric($rule))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$rule = $param;\r\n\t\t\t\t\t\t$param = '';\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t// Clear result\r\n\t\t\t\t\t$result = '';\r\n\r\n\t\t\t\t\t// Check rule exists\r\n\t\t\t\t\tif ($related)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t// Prepare rule to use different language file lines\r\n\t\t\t\t\t\t$rule = 'related_' . $rule;\r\n\r\n\t\t\t\t\t\tif (method_exists($this->model, '_' . $rule))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t// Run related rule from DataMapper or the class extending DataMapper\r\n\t\t\t\t\t\t\t$result = $this->{'_' . $rule}($object, $field, $param);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (method_exists($this->model, '_' . $rule))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t// Run rule from DataMapper or the class extending DataMapper\r\n\t\t\t\t\t\t$result = $this->{'_' . $rule}($field, $param);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (method_exists($this->form_validation, $rule))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t// Run rule from CI Form Validation\r\n\t\t\t\t\t\t$result = $this->form_validation->{$rule}($this->{$field}, $param);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (function_exists($rule))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t// Run rule from PHP\r\n\t\t\t\t\t\t$this->{$field} = $rule($this->{$field});\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t// Add an error message if the rule returned FALSE\r\n\t\t\t\t\tif ($result === FALSE)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t// Get corresponding error from language file\r\n\t\t\t\t\t\tif (FALSE === ($line = $this->lang->line($rule)))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t$line = 'Unable to access an error message corresponding to your field name.';\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t// Check if param is an array\r\n\t\t\t\t\t\tif (is_array($param))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t// Convert into a string so it can be used in the error message\r\n\t\t\t\t\t\t\t$param = implode(', ', $param);\r\n\r\n\t\t\t\t\t\t\t// Replace last \", \" with \" or \"\r\n\t\t\t\t\t\t\tif (FALSE !== ($pos = strrpos($param, ', ')))\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t$param = substr_replace($param, ' or ', $pos, 2);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t// Check if param is a validation field\r\n\t\t\t\t\t\tif (array_key_exists($param, $this->validation))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t// Change it to the label value\r\n\t\t\t\t\t\t\t$param = $this->validation[$param]['label'];\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t// Add error message\r\n\t\t\t\t\t\t$this->error_message($field, sprintf($line, $label, $param));\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Set whether validation passed\r\n\t\t$this->valid = empty($this->error->all);\r\n\r\n\t\t// For method chaining\r\n\t\treturn $this;\r\n\t}",
"public function validate()\n {\n $this->obj->validate();\n\n if(! $this->obj->valid)\n {\n $this->_set_error();\n return FALSE;\n }\n return TRUE;\n }",
"public function validate(){\n $valid = true;\n foreach($this->fields as $field){\n if(!$field->validate()) $valid = false;\n }\n $this->setIsValid($valid);\n return $valid;\n }",
"public function validate(): bool\n {\n $result = true;\n foreach ($this->validation_data as $rule_name => $verifiable_data) {\n if (array_key_exists($rule_name, self::$know_validated_rule)) {\n if (class_exists(self::$know_validated_rule[$rule_name])) {\n /** @var $class BaseRule */\n $class = new self::$know_validated_rule[$rule_name](array_pop($verifiable_data));\n if (!$class->check($this->object, $verifiable_data)) {\n $result = false;\n $this->errors[$rule_name] = $class->getErrors();\n }\n } else {\n throw new ValidationClassNotFoundException(\"Class \". self::$know_validated_rule[$rule_name] . \" not found!\");\n }\n } else {\n throw new ValidationRuleNotFoundException(\"Rule '$rule_name' not found!\");\n }\n }\n return $result;\n }",
"function validate()\n {\n if ($this->_validationCollection == null) return true;\n\n if (! $this->_validationCollection->validate())\n {\n $eCol = $this->_validationCollection->getErrorCollection();\n $valErrors = $eCol->getErrors();\n foreach ($valErrors as $err)\n $this->_errors->addError($err);\n\n return false;\n }\n else return true;\n }",
"public function validate() {\n // loop through validators and run them\n foreach($this->form_fields as $field) {\n $field->valid = TRUE;\n // validate required items\n if ($field->required) {\n if ((strlen($field->value) == 0) || (empty($field->value)) || (is_null($field->value)) ) {\n $field->valid = FALSE; $this->form_errors++; \n if ((isset($field->default_error)) && (!empty($field->default_error))) {\n $field->error = $field->default_error;\n }\n else {\n $field->error = \"This field is required\";\n }\n }\n }\n // run validators for items that are not already failed\n if (($field->valid) && (!empty($field->validator)) && (is_array($field->validator))) {\n\n // skip empty fields\n if (empty($field->value)) { continue; }\n\n foreach($field->validator as $validator) {\n // run the function\n if (call_user_func($validator['func'],$field->value)) {\n $field->valid = TRUE;\n }\n else {\n $field->valid = FALSE; $this->form_errors++; \n if ((isset($validator['message'])) && (!empty($validator['message']))) {\n $field->error = $validator['message'];\n }\n else if ((isset($field->default_error)) && (!empty($field->default_error))) {\n $field->error = $field->default_error;\n }\n else {\n $field->error = \"This field contains an invalid value\";\n }\n // break out of the loop. No need to continue with validations if one has failed\n break;\n }\n }\n }\n $this->form_validated = TRUE;\n // run the post validate method to levy modifications against the validated input\n $this->postValidate();\n }\n return;\n }",
"public function validate() \n\t{\t\t\n\t\tif(!$this->entity) \n\t\t{\n\t\t\t$method = 'validate' . $this->act;\n\n\t\t\t$rules = $this->{$method}();\n\n\t\t\tif(!empty($rules)) \n\t\t\t{\n\t\t\t\t$this->validator = Validator::make($this->input, $rules);\t\n\t\t\n\t\t\t\tif($this->validator->fails()) \n\t\t\t\t{\n\t\t\t\t\t$this->response['validation_errors'][] = $this->validator->errors();\n\t\t\n\t\t\t\t\treturn false;\n\t\t\t\t}\t\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}",
"public function valid() {\n\t\tif ($this->_errors === null) {\n\t\t\t$this->_errors = new ErrorCollection;\n\t\t} else {\n\t\t\t$this->_errors->clear();\n\t\t}\n\n\t\t$this->_validate();\n\n\t\tif ($this->_newRecord) {\n\t\t\t$this->_validateOnCreate();\n\t\t} else {\n\t\t\t$this->_validateOnUpdate();\n\t\t}\n\n\t\treturn count($this->_errors) == 0;\n\t}",
"public function validateByModel()\r\n {\r\n $error = ['correspondence' => []];\r\n \r\n if($this->data['correspondence']['contactByEmail'] == \"1\") {\r\n if(($this->lpa->document->correspondent instanceof Correspondence) && !($this->lpa->document->correspondent->email instanceof EmailAddress)) {\r\n $error['correspondence']['contactByEmail'] = [\"Email address is not provided\"];\r\n }\r\n }\r\n \r\n if($this->data['correspondence']['contactByPhone'] == \"1\") {\r\n if(!($this->lpa->document->correspondent->phone instanceof PhoneNumber)) {\r\n $error['correspondence']['contactByPhone'] = [\"Phone number is not provided\"];\r\n }\r\n }\r\n \r\n $correspondent = new Correspondence([\r\n 'contactByPost' => (bool)$this->data['correspondence']['contactByPost'],\r\n 'contactByInWelsh' => (bool)$this->data['correspondence']['contactInWelsh'],\r\n ]);\r\n \r\n $modelValidation = $correspondent->validate(['contactByPost', 'contactInWelsh']);\r\n \r\n if(count($modelValidation) == 0) {\r\n if(count($error['correspondence']) == 0) {\r\n return ['isValid'=>true, 'messages' => []];\r\n }\r\n else {\r\n return [\r\n 'isValid'=>false,\r\n 'messages' => $error,\r\n ];\r\n }\r\n }\r\n else {\r\n return [\r\n 'isValid'=>false,\r\n 'messages' => array_merge(['correspondence' => $this->modelValidationMessageConverter($modelValidation)], $error),\r\n ];\r\n }\r\n }",
"public function validate(){\n\t\t// Loop through model's rules array.\n\t\tforeach($this->rules() as $field => $rules){\n\t\t\t// Take the value of field this rule is for.\n\t\t\t$value = $this->{$field};\n\t\t\t// Loop through all rules for this field.\n\t\t\tforeach($rules as $rule){\n\t\t\t\t$ruleType = $rule;\n\t\t\t\t// If the rule is an array, not string, read its type from first index.\n\t\t\t\tif(is_array($ruleType)){\n\t\t\t\t\t$ruleType = $ruleType[0];\n\t\t\t\t}\n\n\t\t\t\t// Rule: field is required.\n\t\t\t\tif($ruleType === 'required' && !$value){\n\t\t\t\t\t$this->addError($field, 'required', $rule);\n\t\t\t\t}\n\t\t\t\t// Rule: field value must validate as email.\n\t\t\t\telse if($ruleType === 'email' && !filter_var($value, FILTER_VALIDATE_EMAIL)){\n\t\t\t\t\t$this->addError($field, 'email', $rule);\n\t\t\t\t}\n\t\t\t\t// Rule: string length comparisons.\n\t\t\t\telse if($ruleType === 'length'){\n\t\t\t\t\t// String has rule for minimum length.\n\t\t\t\t\tif(array_key_exists('min', $rule) && $rule['min'] > strlen($value)){\n\t\t\t\t\t\t$this->addError($field, 'min', $rule);\n\t\t\t\t\t}\n\t\t\t\t\t// String has rule for maximum length.\n\t\t\t\t\tif(array_key_exists('max', $rule) && $rule['max'] < strlen($value)){\n\t\t\t\t\t\t$this->addError($field, 'max', $rule);\n\t\t\t\t\t}\n\t\t\t\t\t// String has rule for exact length.\n\t\t\t\t\tif(array_key_exists('equal', $rule) && $rule['equal'] != strlen ($value)){\n\t\t\t\t\t\t$this->addError($field, 'equal', $rule);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// Rule: field value must match comparison field's value.\n\t\t\t\telse if($ruleType === 'compare' && $value != $this->{$rule['field']}){\n\t\t\t\t\t$this->addError($field, 'compare', $rule);\n\t\t\t\t}\n\t\t\t\t// Rule: number comparisons.\n\t\t\t\telse if($ruleType === 'numeric'){\n\t\t\t\t\t// Value must validate to an integer number.\n\t\t\t\t\tif(array_key_exists('integer', $rule) && $rule['integer'] && filter_var($value, FILTER_VALIDATE_INT) === FALSE){\n\t\t\t\t\t\t$this->addError($field, 'integer', $rule);\n\t\t\t\t\t}\n\t\t\t\t\t// Value must validate to float number.\n\t\t\t\t\telse if((!array_key_exists('integer', $rule) || (array_key_exists('integer', $rule) && !$rule['integer'])) && filter_var($value, FILTER_VALIDATE_FLOAT) === FALSE){\n\t\t\t\t\t\t$this->addError($field, 'numeric', $rule);\n\t\t\t\t\t}\n\t\t\t\t\t// Value must be at least a minimum number.\n\t\t\t\t\tif(array_key_exists('min', $rule) && $rule['min'] > floatval($value)){\n\t\t\t\t\t\t$this->addError($field, 'numericmin', $rule);\n\t\t\t\t\t}\n\t\t\t\t\t// Value cannot be larger than a maximum number.\n\t\t\t\t\tif(array_key_exists('max', $rule) && $rule['max'] < floatval($value)){\n\t\t\t\t\t\t$this->addError($field, 'numericmax', $rule);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// Rule: unique database entry.\n\t\t\t\telse if($ruleType === 'unique'){\n\t\t\t\t\t// Check for match in database.\n\t\t\t\t\t$found = $this->findOne([\"$field\" => \"$value\"]);\n\t\t\t\t\tif($found){\n\t\t\t\t\t\t$this->addError($field, 'unique', $rule);\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\t// Rule: on action only.\n\t\t\t\telse if($ruleType === 'on'){\n\t\t\t\t\t// If field is used on create only and request is not for create, field is not used.\n\t\t\t\t\tif($rule['action'] === 'create' && !$this->isCreate()){\n\t\t\t\t\t\t$this->ignoreFields[] = $field;\n\t\t\t\t\t}\n\t\t\t\t\t// IF field is used on update only and request is not for update, field is not used.\n\t\t\t\t\telse if($rule['action'] === 'update' && !$this->isUpdate()){\n\t\t\t\t\t\t$this->ignoreFields[] = $field;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn empty($this->errors);\n\t}",
"public function validate()\n {\n if ($this->isReference()) {\n $dataTypeName = StringHelper::substring(get_class(), strrpos(get_class(), '\\\\') + 1);\n $this->getCheckedRef(get_class(), $dataTypeName)->validate();\n }\n $selectorElements = $this->selectorElements();\n $this->dieOnCircularReference($selectorElements, $this->getProject());\n foreach ($selectorElements as $o) {\n if ($o instanceof BaseSelector) {\n $o->validate();\n }\n }\n }",
"function validate()\n\t{\n\t\t//echo sizeof($this->arr_validators);\n\t\tfor($i = 0; $i < sizeof($this->arr_validators); $i++)\n\t\t{\n\t\t\t$obj_validator = $this->arr_validators[$i];\n\t\t\t$obj_validator->validate();\n\t\t}\n\t}",
"public function validate() {\n if (!$this->_data) {\n return false;\n }\n\n $fields = $this->getFields();\n $messages = $this->getMessages();\n\n foreach ($this->_data as $field => $value) {\n if (empty($this->_rules[$field])) {\n continue;\n }\n\n foreach ($this->_rules[$field] as $rule => $params) {\n $options = $params['options'];\n $arguments = $options;\n array_unshift($arguments, $value);\n\n // Use G11n if it is available\n if (class_exists('Titon\\G11n\\Utility\\Validate')) {\n $class = 'Titon\\G11n\\Utility\\Validate';\n } else {\n $class = 'Titon\\Utility\\Validate';\n }\n\n if (!call_user_func(array($class, 'hasMethod'), $rule)) {\n throw new InvalidValidationRuleException(sprintf('Validation rule %s does not exist', $rule));\n }\n\n // Prepare messages\n $message = $params['message'];\n\n if (!$message && isset($messages[$rule])) {\n $message = $messages[$rule];\n }\n\n if ($message) {\n $message = String::insert($message, array_map(function($value) {\n return is_array($value) ? implode(', ', $value) : $value;\n }, $options + array(\n 'field' => $field,\n 'title' => $fields[$field]\n )));\n } else {\n throw new InvalidValidationRuleException(sprintf('Error message for rule %s does not exist', $rule));\n }\n\n if (!call_user_func_array(array($class, $rule), $arguments)) {\n $this->addError($field, $message);\n break;\n }\n }\n }\n\n return empty($this->_errors);\n }",
"public function execute ()\n {\n\n $retval = true;\n\n // loop through the names and start our validation\n // if 1 or more groups exist, we'll have to do a second pass\n $pass = 1;\n\n while (true)\n {\n\n foreach ($this->names as $name => &$data)\n {\n\n if (isset($data['_is_parent']))\n {\n\n // this is a parent\n foreach ($data as $subname => &$subdata)\n {\n\n if ($subname == '_is_parent')\n {\n\n // this isn't an actual index, but more of a flag\n continue;\n\n }\n\n if ($subdata['validation_status'] == true &&\n !$this->validate($subname, $subdata, $name))\n {\n\n // validation failed\n $retval = false;\n\n }\n\n }\n\n } else\n {\n\n // single parameter\n if ($data['validation_status'] == true &&\n !$this->validate($name, $data, null))\n {\n\n // validation failed\n $retval = false;\n\n }\n\n }\n\n }\n\n if (count($this->groups) == 0 || $pass == 2)\n {\n\n break;\n\n }\n\n // increase our pass indicator\n $pass++;\n\n }\n\n return $retval;\n\n }",
"public function validationElements(){\n $return=TRUE;\n foreach(self::getElements() as $key=>$items){\n if(\n NULL!==$items->getValidators() &&\n is_array($items->getValidators()) &&\n count($items->getValidators())\n ){\n $result=self::validationElement($items);\n $return=(TRUE===$result && TRUE!==$return)?$return:$result;\n }\n \n }\n return $return;\n }",
"public static function applyValidation() {\n foreach (self::$_rules as $rk => $rv) {\n $_element = self::$_rules[$rk];\n if (is_array($_element)) {\n foreach ($_element as $key => $ruleValue) {\n if (!self::$_elements[$rk]['inValid']) {\n $method = \"_\" . $key;\n self::$_inputElement = $rk;\n self::$_elementValue = self::$_values[$rk];\n self::$_validationRule = $key;\n self::$_ruleValue = $ruleValue;\n\n self::$method();\n }\n }\n }\n }\n\n if (count(self::$_response) == 0) {\n return true;\n }\n\n return self::$_response;\n }",
"public function validation_rules() {\r\n\t\t$class = __CLASS__;\r\n\t\treturn $class::_object()->validates;\r\n }",
"public function isValid()\n {\n return $this->validates();\n }",
"public function & validate() {\n\t\t# INitialize\n\t\t$fields =& $this->getFields();\n\t\t$this->validated = true;\n\t\t# Validate fields\n\t\tforeach ($fields as $field) {\n\t\t\t# Any soingle invalid field would cause to return invalid\n\t\t\tif (!$field->validate() && $this->validated) {\n\t\t\t\t# Mark as invalie\n\t\t\t\t$this->validated = false;\n\t\t\t}\n\t\t}\n\t\t# Return vaidation state\n\t\treturn $this->validated;\n\t}",
"public function validate()\n {\n return $this->ensureExtensionLoaded() &&\n $this->validateSourceLocation() &&\n $this->validateCondition() &&\n $this->validateExpressions();\n }",
"public function validate ()\n {\n $errorCount = 0;\n foreach ($this->arrayFieldDefinition as $fieldName => $arrField) {\n if ( $arrField['required'] === true )\n {\n $accessor = $this->arrayFieldDefinition[$fieldName]['accessor'];\n if ( trim ($this->$accessor ()) == \"\" )\n {\n $this->validationFailures[] = $fieldName . \" Is empty. It is a required field\";\n $errorCount++;\n }\n }\n }\n if ( $errorCount > 0 )\n {\n return false;\n }\n return true;\n }",
"public function validate() {\n\n // Tell ourselves that the client has initiated validation.\n $this->hasRanValidation = true;\n\n // Sanitize and filter all of our field data.\n $this->filterFields();\n\n // Validate each field individually.\n foreach ($this->fields as $field) {\n\n // Skip fields with no rules.\n if (!$field->getGumpRules()) {\n continue;\n }\n\n // Validate this field.\n $fieldError = $field->validate();\n\n // Add any errors to our error log.\n if ($fieldError) {\n $this->addError($field, $fieldError);\n }\n }\n }",
"public function validate(): bool\n {\n $result = true;\n foreach ($this->rules as $field_name => $field_rules) {\n foreach ($field_rules as $field_rule => $field_params) {\n\n if (array_key_exists($field_rule, self::$known_rules)) {\n\n if (class_exists(self::$known_rules[$field_rule]) and\n is_subclass_of(self::$known_rules[$field_rule], 'Shulha\\Framework\\Validation\\Rules\\AbstractValidationRule')) {\n\n /** @var $validation_class AbstractValidationRule */\n $validation_class = new self::$known_rules[$field_rule];\n $field_value = isset($this->request->$field_name) ? $this->request->$field_name : null;\n\n if (!$validation_class->check($field_name, $field_value, $field_params)) {\n $result = false;\n $this->errorList[$field_name][] = $validation_class->getError($field_name, $field_value, $field_params);\n }\n } else\n throw new RuleClassNotFoundException(\"Class \" . self::$known_rules[$field_rule] . \" not found or don't extends AbstractValidationRule\");\n } else\n throw new RuleNotFoundException(\"Rule \\\"$field_rule\\\" not found\");\n }\n }\n return $result;\n\n }",
"public function isValid(){\n\t\t//Initally create a valid variable and set it to true\n\t\t$valid = true;\n\t\t//Loop through all of the validation rules in the model\n\t\tforeach (static::$validationRules as $column => $rules) {\n\t\t\t//At the beginning there are no errors in any column\n\t\t\t$this->errors[$column] = null;\n\t\t\t//sperate all the different rules\n\t\t\t$rules = explode(\",\", $rules);\n\t\t\t//Loop over each of the different rules for each column\n\t\t\tforeach($rules as $rule){\n\t\t\t\t//Seperate the value from the rule\n\t\t\t\tif(strstr($rule, \":\")){\n\t\t\t\t\t$rule = explode(\":\", $rule);\n\t\t\t\t\t//rule gets turned into an array\n\t\t\t\t\t//Put the value into a value variable\n\t\t\t\t\t$value = $rule[1];\n\t\t\t\t\t//Put the rule back into the rule variable\n\t\t\t\t\t$rule = $rule[0];\n\t\t\t\t}\n\t\t\t\t//use a switch to go over all of the rules\n\t\t\t\tswitch ($rule) {\n\t\t\t\t\t//These case's must match the ones in the model\n\t\t\t\t\t//Check min length\n\t\t\t\t\tcase 'minlength':\n\t\t\t\t\t\tif(strlen($this->$column) < $value){\n\t\t\t\t\t\t\t$valid = false;\n\t\t\t\t\t\t\t$this->errors[$column] = \"To Short - Must be at least $value characters long\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t// Check max length\n\t\t\t\t\tcase 'maxlength':\n\t\t\t\t\t\tif(strlen($this->$column) > $value){\n\t\t\t\t\t\t\t$valid = false;\n\t\t\t\t\t\t\t$this->error[$column] = \"To Long - Must be no more than $value characters long\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'email':\n\t\t\t\t\t\tif(! filter_var($this->$column, FILTER_VALIDATE_EMAIL)){\n\t\t\t\t\t\t\t$valid = false;\n\t\t\t\t\t\t\t$this->errors[$column] = \"Must be a valid Email\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'unique':\n\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn $valid;\n\t}",
"public function valid()\n {\n return (current($this->objects) !== false);\n }",
"function everythingValid() {\n foreach($this->validation_log as $v) {\n if($v['status'] == self::VALIDATION_ERROR) {\n return false;\n } // if\n } // foreach\n \n return true;\n }",
"public function validate(): bool\n {\n foreach ($this->rules() as $attribute => $rules) {\n\n $value = $this->{$attribute};\n //We loop twice because some rules have array rules within them\n foreach ($rules as $rule) {\n /* If $rule is a string take the $rule and assign it to to $ruleName*/\n $ruleName = $rule;\n /* If $rule is not a string i.e an array, take the first element of the array i.e.\n *$rule[0] and assign it to to $ruleName\n */\n if(!is_string($rule))\n {\n $ruleName = $rule[0];\n }\n /*\n * If any attribute has a rule required and no value exists, add an error to the\n * errors array and pass the attribute and the rule as parameters to the addErrors function\n */\n if($ruleName === self::RULE_REQUIRED && !$value)\n {\n $this->addErrors($attribute, self::RULE_REQUIRED);\n }\n /*\n * If any attribute has a rule email and the value does not pass as valid email, add to the\n * errors array and pass the attribute and the rule as parameters to the addErrors function\n */\n\n if($ruleName === self::RULE_EMAIL && !filter_var($value, FILTER_VALIDATE_EMAIL))\n {\n $this->addErrors($attribute, self::RULE_EMAIL);\n }\n\n /*\n * If any attribute has a rule match and the value does not match with the value passed\n * in the rule array where this rule is found i.e $this->{$rule['match']} which corresponds\n * to password, so in short, $this->password, if they don't match add error to the\n * errors array and pass the attribute and the rule as parameters to the addErrors function\n */\n\n if($ruleName === self::RULE_MATCH && $value !== $this->{$rule['match']})\n {\n $this->addErrors($attribute, self::RULE_MATCH);\n }\n\n /*\n * This control structure if the user input is unique to the database. If it is not,\n * it adds an error to the errors array and pass the attribute and\n * the rule as parameters to the addErrors function\n * The model class that returns the unique set of rules also returns the tableName and the attributes\n * (column names in db) specific to that model class\n * The unique rule is rendered differently to cater for various classes, an array with the unique\n * rule passed along with the self::class that calls the active model class which extends to model\n * and attr is also passed along withe corresponding attribute (this is optional)\n *\n */\n\n if($ruleName === self::RULE_UNIQUE)\n {\n /*\n * Here, the active class is gotten along with the tablename and attribute which we\n * call uniqueAttr specific to the active model class\n */\n $className = $rule['class'];\n $tableName = $className::tableName();\n $uniqueAttr = $rule['attr'] ?? $attribute;\n\n /*\n * We prepare a statement that selects all from the tablename gotten where uniqueAttr\n * is typed param :attr (to avoid sql injection)\n * :attr is bound to $value which is the user input (remember data was loaded before\n * passing it through the validate() function) and executed and object of the result is fetched\n */\n\n $statement = Application::$app->db->prepare(\"SELECT * FROM $tableName WHERE $uniqueAttr = :attr\");\n $statement->bindValue(\":attr\", $value);\n $statement->execute();\n $record = $statement->fetchObject();\n\n /*\n * If a record exists, add an Error, if not it returns true\n */\n if($record)\n {\n $this->addErrors($uniqueAttr, self::RULE_UNIQUE);\n }\n\n }\n /*\n * Added a rule valid start date and valid end date that check if the start date is before\n * the current date and if the end date is before the start date of the project\n * If the rule name has valid_start_date and the value is before (here we use < )\n * the date of today which is passed as a corresponding value of start_date in the\n * RULE_VALID_START_DATE array that is passed. Then add an error for the corresponding\n * attribute and rule passing them as arguments in the addErrors function\n */\n\n if ($ruleName === self::RULE_VALID_START_DATE && $value < $rule['start_date'])\n {\n $this->addErrors('start_date', self::RULE_VALID_START_DATE);\n }\n\n /*\n * If the attribute has rule valid_end_date and the value is before or equal to the\n * day of the project start date. Then add an error for the corresponding\n * attribute and rule passing them as arguments in the addErrors function\n */\n\n if ($ruleName === self::RULE_VALID_END_DATE && $value <= $this->{$rule['end_date']})\n {\n $this->addErrors('end_date', self::RULE_VALID_END_DATE);\n }\n\n }\n }\n /*\n * If all the above conditions are met it means validation passed for the data that was passed\n * to the validate function. If so it means the errors array is empty\n * Then if validate passed, return if empty errors array, as true. If errors array is not empty\n * validate function returns false\n */\n return empty($this->errors);\n\n }",
"function validateAll(){\n foreach($this->fields as $field){\n $val = $_POST[$field['id']];\n if($field['validate']){\n switch($field['type']){\n case \"email\":\n if(!filter_var($val, FILTER_VALIDATE_EMAIL)){\n $this->fields[$field['id']]['class'] .= \" error\";\n $this->has_errors = true;\n }\n break;\n case \"number\":\n if(!is_numeric($val)){\n $this->fields[$field['id']]['class'] .= \" error\";\n $this->has_errors = true;\n }else{\n if(isset($this->fields[$field['id']]['min'])){\n if($this->fields[$field['id']]['min'] > $val){\n $this->fields[$field['id']]['class'] .= \" error\";\n $this->has_errors = true;\n }\n }\n if(isset($this->fields[$field['id']]['max'])){\n if($this->fields[$field['id']]['max'] < $val){\n $this->fields[$field['id']]['class'] .= \" error\";\n $this->has_errors = true;\n }\n }\n }\n break;\n case \"password\":\n if($this->fields[$field['id']]['compare']){\n $compareWith = $this->fields[$field['id']]['compare'];\n if($val != $_POST[$compareWith]){\n $this->fields[$field['id']]['class'] .= \" error\";\n $this->fields[$compareWith]['class'] .= \" error\";\n $this->has_errors = true;\n }else if(!$this->validatePassword($val) || !$this->validatePassword($_POST[$compareWith])){\n $this->fields[$field['id']]['class'] .= \" error\";\n $this->fields[$compareWith]['class'] .= \" error\";\n $this->has_errors = true;\n }\n }else{\n if(!$this->validatePassword($val)){\n $this->fields[$field['id']]['class'] .= \" error\";\n $this->has_errors = true;\n }\n }\n break;\n case \"date\":\n if(!$this->validateDate($val)){\n $this->fields[$field['id']]['class'] .= \" error\";\n $this->has_errors = true;\n }else{\n if(isset($this->fields[$field['id']]['min'])){\n $min = $this->fields[$field['id']]['min'];\n if($this->compareDates($min, $val)){\n $this->fields[$field['id']]['class'] .= \" error\";\n $this->has_errors = true;\n }\n }\n if(isset($this->fields[$field['id']]['max'])){\n $max = $this->fields[$field['id']]['max'];\n if($this->compareDates($val, $max)){\n $this->fields[$field['id']]['class'] .= \" error\";\n $this->has_errors = true;\n }\n }\n }\n break;\n case \"radio\":\n if(!$val){\n $this->fields[$field['id']]['error'] .= \" error\";\n }\n break;\n default:\n if(!$val){\n $this->fields[$field['id']]['class'] .= \" error\";\n }\n }\n }\n }\n return ($this->has_errors ? false : true);\n }",
"function validates($data){\n\t\t$errors = array();\n\t\tforeach($this->validates as $k=>$v){\n\t\t\tif(!isset($data->$k)){\n\t\t\t\t$errors[$k] = $v['message'];\n\t\t\t}else{\n\t\t\t\tif($v['rule'] == 'notEmpty'){\n\t\t\t\t\tif(empty($data->$k)){\n\t\t\t\t\t\t$errors[$k] = $v['message'];\n\t\t\t\t\t} \n\t\t\t\t}elseif(!preg_match( '/^'.$v['rule'] .'$/', $data->$k)){\n\t\t\t\t\t$errors[$k] = $v['message'];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$this->errors = $errors;\n\n\t\tif(isset($this->Form)){\n\t\t\t$this->Form->errors = $errors;\n\t\t}\n\t\tif(empty($errors)){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"public function isValid()\n {\n $this->isSubmitted = true;\n\n foreach($this->getFields() as $name => $field) {\n if (!$field->isValid()) {\n $this->errors = True;\n }\n }\n\n if ($this->processFileUploads() === false) {\n $this->errors = true;\n }\n\n return !$this->errors;\n }",
"protected function _runValidation() {\n\n $this->_forceFail = false;\n\n foreach ($_POST as $inputName => $inputVal) {\n $_POST[$inputName] = trim($_POST[$inputName]);\n\n if (array_key_exists($inputName, $this->_ruleSets)) {\n foreach ($this->_parseRuleString($this->_ruleSets[$inputName]) as $eachRule) {\n $this->_validateRule($inputName, $_POST[$inputName], $eachRule);\n }\n }\n }\n\n if (empty($this->_errorSet) && $this->_forceFail === false) {\n $this->_formSuccess = true;\n }\n return;\n }",
"public function validate() {\n\t\t// field validation:\n\t\t$sw = $this->exists();\n\t\t$this->errors = validation::validate($this->new_data, $this->vrules, $sw);\n\t\tif ($this->errors) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// uniques:\n\t\tif ($this->errors = $this->check_uniques()) {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}",
"public function validate(ModelInterface $obj)\n {\n if ($this->isValidatable($obj)) {\n return $obj->validate();\n }\n\n return true;\n }",
"public function validate($validateCascade = false)\n {\n Logger::getInstance()->po_log(\"PO:validate \" . get_class($this));\n \n // Preprocesamiento para validar\n // http://code.google.com/p/yupp/issues/detail?id=72\n $this->preValidate();\n \n\n // Si tiene restriccion nullable(true) o blank(true) y el valor es nulo o vacio,\n // deberia dar que valida aunque haya otra restriccion que falle para el valor.\n\n $valid = true;\n \n //$this->errors = array(); // Reset de los errores actuales\n $this->errors = new Errors(); // core.validation.Errors\n \n $this->validated = true; // Se setea al ppio para que la cascada no generar loops de validacion,\n // asi ve que esta instancia tiene validated en true y no intenta revalidarla.\n\n if ( is_array($this->constraints) )\n {\n foreach ( $this->constraints as $attr => $constraintArray )\n {\n //Logger::getInstance()->po_log(\"PO:validate B ($attr)\");\n \n // =========================================\n // FIXME: reutilizar validateOnly\n // =========================================\n \n // Si la restriccion es para un hasOne, aunque sea validacion sin cascada,\n // igual con esto pide el valor del hasOne y trata de validarlo contra la restriccion.\n $value = ( (isset($this->attributeValues[$attr]) || array_key_exists($attr, $this->attributeValues)) ? $this->attributeValues[$attr] : NULL );\n \n // ===============================================================\n // TICKET: http://code.google.com/p/yupp/issues/detail?id=20\n // Si el valor es null, pregunta por restriccion nullable,\n // que si da ok, no verifica las demas restricciones.\n // Esto es porque si es nullable(true) y el valor es null,\n // las demas restricciones para el mismo atributo no tienen\n // sentido de verificarse porque es posible que den false\n // (min, inList, etc). Se hace un continue para segur verificando\n // las restricciones de otros atributos.\n\n if ($value === NULL)\n {\n $nullable = $this->getConstraintOfClass($attr, 'Nullable');\n if (isset($nullable) && $nullable->evaluate($value))\n {\n continue; // Deja de ver restricciones para el atributo actual y sigue con el siguiente\n }\n }\n else if ($value === '') // Si el valor es vacio, hace lo mismo que nullable por con Blank\n {\n $blank = $this->getConstraintOfClass($attr, 'BlankConstraint');\n if (isset($blank) && $blank->evaluate($value))\n {\n continue; // Deja de ver restricciones para el atributo actual y sigue con el siguiente\n }\n }\n\n // Ve el resto de las restricciones\n foreach ( $constraintArray as $constraint )\n {\n // TODO: Cuando se validen relaciones, value podria ser un objeto, si la restriccion se puso para una relacion.\n // Mas abajo se usa el value para armar el string de error y falla si es objeto no tiene toString.\n \n if (!$constraint->evaluate($value))\n {\n $valid = false;\n\n // Genera mensaje de error\n YuppLoader::load('core.validation','ValidationMessage');\n $err = ValidationMessage::getMessage( $constraint, $attr, $value );\n \n $this->errors->add($attr, $err);\n }\n }\n }\n }\n \n // http://code.google.com/p/yupp/issues/detail?id=50\n if ($validateCascade)\n {\n foreach ( $this->hasOne as $attr => $clazz )\n {\n $inst = $this->attributeValues[ $attr ];\n if ($inst !== NULL && $inst !== PersistentObject::NOT_LOADED_ASSOC && !$inst->validated)\n {\n if (!$inst->validate(true)) // Sigue validando en cascada\n {\n $valid = false;\n }\n }\n }\n }\n\n return $valid;\n }",
"public function validate ()\n {\n $errorCount = 0;\n\n foreach ($this->arrFieldMapping as $fieldName => $arrField) {\n if ( $arrField['required'] === 'true' )\n {\n $accessor = $this->arrFieldMapping[$fieldName]['accessor'];\n\n if ( trim ($this->$accessor ()) == \"\" )\n {\n $this->validationFailures[] = $fieldName . \" Is empty. It is a required field\";\n $errorCount++;\n }\n }\n }\n\n if ( $errorCount > 0 )\n {\n return false;\n }\n\n return true;\n }",
"public function rules()\n {\n $flowRepository = new FlowRepository();\n if ($this->has('step_run_id') && intval($this->step_run_id)) {\n //通过 预提交\n $this->step = $flowRepository->getCurrentStep($this->step_run_id);\n } else {\n //发起 预提交\n $this->step = $flowRepository->getFlowFirstStep($this->flow_id);\n }\n\n $basicRules = [\n 'flow_id'=>[\n Rule::exists('flows','id')->where('is_active',1)\n ],\n 'step_run_id' => [\n Rule::exists('step_run', 'id')->where('flow_id', $this->flow_id)\n ],\n 'form_data' => [\n 'present',\n 'array',\n ],\n ];\n $fieldsRules = app('validation')->makeStepFormValidationRules($this->step,$this);\n return array_collapse([$basicRules, $fieldsRules]);\n }",
"public function validate()\n {\n foreach ($this->aRule as $aRule) {\n if (count($aRule) < 2) { continue; }\n $sKey = array_shift($aRule);\n $sValidator = array_shift($aRule);\n $Validator = $this->createValidator(\n $sValidator,\n $sKey,\n Arr::get($this->aData, $sKey),\n $aRule,\n Arr::get($this->aMsg, $sKey, array())\n );\n if(true !== ($sValidMsg = $Validator->validator())){\n return $sValidMsg;\n }\n }\n return true;\n }",
"public function validate() : bool\n {\n $validator = Validator::make(\n $this->data, $this->structure\n );\n\n if($validator->fails()) {\n return false;\n }\n\n return $this->validateArray($this->data, $this->structure);\n }",
"public function valid()\n {\n\n if ($this->container['total'] === null) {\n return false;\n }\n if ($this->container['groupid'] === null) {\n return false;\n }\n if ($this->container['groupname'] === null) {\n return false;\n }\n if ($this->container['emailid'] === null) {\n return false;\n }\n if ($this->container['createdon'] === null) {\n return false;\n }\n if ($this->container['autosyncgroup'] === null) {\n return false;\n }\n if ($this->container['everyonegroup'] === null) {\n return false;\n }\n return true;\n }",
"public function doValidate(){\n if (!is_array($this->getValidates())){\n throw new \\Exception(\"dose this function must call setValidate() function first.\");\n }\n\n foreach($this->getValidates() as $k => $v){\n //$v = (ValidateData)$v;\n if (TextUtils::isEmpty($v->getInput()) && $v->getRequire() == true){\n $v->setResult(false);\n }else{\n $v->setResult(true);\n }\n\n if ($v->getResult() && !TextUtils::isEmpty($v->getInput())){\n switch($v->getValidator()){\n case ValidateData::VALIDATOR_CUSTOM:\n $v->setResult($this->check($v->getInput(),$v->getRegexp()));\n break;\n case ValidateData::VALIDATOR_COMPARE:\n $result = false;\n if (!TextUtils::isEmpty($v->getOperator())){\n switch ($v->getOperator()){\n case ValidateData::OPERATOR_EQUIVALENT:\n $result = $v->getInput() == $v->getTo();\n break;\n case ValidateData::OPERATOR_GREATER:\n $result = $v->getInput() > $v->getTo();\n break;\n case ValidateData::OPERATOR_LESS:\n $result = $v->getInput() < $v->getTo();\n break;\n case ValidateData::OPERATOR_EQUIVALENT_GREATER:\n $result = $v->getInput() >= $v->getTo();\n break;\n case ValidateData::OPERATOR_EQUIVALENT_LESS:\n $result = $v->getInput() <= $v->getTo();\n break;\n case ValidateData::OPERATOR_NOT_EQUIVALENT:\n $result = $v->getInput() != $v->getTo();\n break;\n }\n\n }\n $v->setResult($result);\n break;\n case ValidateData::VALIDATOR_LENGTH:\n $len = mb_strlen($v->getInput(),'UTF-8');\n $v->setResult($len >= $v->getMin());\n if ($v->getMax() > $v->getMin()){\n $v->setResult($len <= $v->getMax() && $len >= $v->getMin());\n }\n\n break;\n\n case ValidateData::VALIDATOR_RANGE:\n $v->setResult((int)$v->getInput() >= $v->getMin());\n if ($v->getMax() > $v->getMin()){\n $v->setResult((int)$v->getInput() <= $v->getMax() && (int)$v->getInput() >= $v->getMin());\n }\n\n break;\n default:\n $v->setResult($this->check($v->getInput(),$this->getValidator($v->getValidator())));\n break;\n }\n }\n }\n return $this->getError();\n }",
"public function validate()\n {\n $validator = new Validator;\n $validator->add($this->rules);\n if ($validator->validate($this->attributes)) {\n return TRUE;\n }\n\n $this->errors = $validator->getMessages();\n\n return FALSE;\n }",
"protected function isValid($object)\n {\n if (!is_object($object)) {\n $this->addError('Object expected, %1$s given.', 1241099149, [gettype($object)]);\n return;\n }\n\n if ($this->isValidatedAlready($object) === true) {\n return;\n }\n\n if ($this->options['skipUnInitializedProxies'] && $this->isUnInitializedProxy($object) === true) {\n return;\n }\n\n foreach ($this->propertyValidators as $propertyName => $validators) {\n $propertyValue = $this->getPropertyValue($object, $propertyName);\n $result = $this->checkProperty($propertyValue, $validators);\n if ($result !== null) {\n $this->getResult()->forProperty($propertyName)->merge($result);\n }\n }\n }",
"public function validate(): bool\n {\n if (!$this->isSubmited()) {\n return false;\n }\n\n $valid = true;\n $form_values = $this->values();\n\n foreach ($this->data['fields'] as $index => &$field) {\n foreach ($field['validators'] ?? [] as $validator_name => $validator_value) {\n if (is_array($validator_value)) {\n if (!($validator_name($form_values[$index], $field, $validator_value))) {\n $valid = false;\n break;\n }\n } else {\n if (!($validator_value($form_values[$index], $field))) {\n $valid = false;\n break;\n }\n }\n }\n }\n\n foreach ($this->data['validators'] ?? [] as $validator_name => $validator_value) {\n if (is_array($validator_value)) {\n if (!($validator_name($form_values, $this->data, $validator_value))) {\n $valid = false;\n break;\n }\n } else {\n if (!($validator_value($form_values, $this->data))) {\n $valid = false;\n break;\n }\n }\n }\n\n return $valid;\n }",
"protected function validateAll($includeAllRules = false)\n {\n if ($includeAllRules) {\n /*\n * Include fields that might not have been included\n */\n $fieldData = new Collection(array_fill_keys(array_keys($this->_validations->toArray()), null));\n $fieldData->update($this->_updates->toArray());\n }\n else\n {\n $fieldData = clone $this->_updates;\n }\n\n foreach ($fieldData->toArray() as $field => $val) {\n //Match double fields\n $field2 = $field . '2';\n if (!is_null($fieldData->$field2)) {\n // Compared the two double fields\n if ($val != $fieldData->$field2) {\n $this->log->formError($field, ucfirst($field) . 's did not match');\n } else {\n $this->log->report(ucfirst($field) . 's matched');\n }\n }\n\n // Trim white spaces at end and start\n if ($this->_updates->$field) {\n $this->_updates->$field = trim($val);\n }\n\n // Check if a validation rule exists for the field\n if ($validation = $this->_validations->$field) {\n $this->validate($field, $validation->limit, $validation->regEx);\n }\n }\n return !$this->log->hasError();\n }",
"protected function _isValid()\n {\n $class = get_called_class();\n $methods = get_class_methods($class);\n \n foreach($methods as $method) {\n if(strcasecmp(substr($method, 0, 9), 'validates') === 0)\n {\n $value = $this->_getter(strtolower(substr($method, 9)));\n if($error = $this->{$method}($value) !== true)\n {\n return $error;\n }\n }\n }\n\n return true; \n }",
"public function run() {\n \n foreach( $this->validation_rules as $var=>$opt) {\n \n /*\n $default_opt = [\n 'min' => false,\n 'max' => false,\n 'required' => false,\n ];\n $opt = array_merge($default_opt,$opt);\n */\n \n //if compulsary field is not set then no point validating further\n if(isset($opt['set']) && !$this->is_set($var)) {\n continue;\n } \n \n /* Trim whitespace from beginning and end of variable */\n if( array_key_exists('trim', $opt) ) {\n $this->source[$var] = trim( $this->source[$var] );\n }\n \n $is_required = false;\n \n //if required field is empty then no point validating further\n if( isset($opt['required']) && !$this->not_empty($var) ) {\n continue;\n }\n \n if( isset($opt['required']) ) {\n unset($opt['required']);\n $is_required = true;\n }\n \n if( isset($opt['set']) )\n unset($opt['set']);\n \n if( isset($opt['trim']) )\n unset($opt['trim']);\n \n foreach( $opt as $rule_type=>$rule_val ) {\n $raw_field_value = isset($this->source[$var]) ? $this->source[$var] : false;\n \n /*\n if(is_string($raw_field_value) && strlen($raw_field_value) == 0 && !$is_required)\n continue;\n */\n $result = true;\n if( method_exists($this, 'validate_'.$rule_type) ) {\n $t_params = is_array($rule_val) ? array_merge([$var], $rule_val) : [$var, $rule_val];\n //$result = call_user_func_array([$this, 'validate_'.$rule_type], [$var, $rule_val]);\n $result = call_user_func_array([$this, 'validate_'.$rule_type], $t_params);\n }\n elseif( method_exists($this->caller_obj, $rule_type) ) {\n $t_params = is_array($rule_val) ? array_merge([$this, $raw_field_value], $rule_val) : [$this, $raw_field_value, $rule_val];\n $result = call_user_func_array([$this->caller_obj, $rule_type], $t_params);\n }\n elseif( function_exists($rule_type) ) {\n $t_params = is_array($rule_val) ? array_merge([$this, $raw_field_value], $rule_val) : [$this, $raw_field_value, $rule_val];\n $result = call_user_func_array($rule_type, $t_params);\n }\n \n if($result === false)\n break;\n }\n }\n }",
"abstract public function runValidation();",
"private function collectValidateErrors()\n {\n // collect errors from current model\n $this->addModelErrors();\n }",
"public function isValid () {\n $validator = $this->__app['validator'];\n\n foreach ($this->getValues(true) as $k => $v) {\n if (!isset($this->__fields[$k]['constraints']))\n continue;\n\n foreach ($this->__fields[$k]['constraints'] as $constraint) {\n $possibleError = $validator->validateValue($v, $constraint);\n\n if (count($possibleError) != 0)\n return false;\n }\n }\n\n return true;\n }",
"public function validate(): bool\r\n {\r\n array_walk(\r\n $this->rules,\r\n function ($rules, $field) {\r\n // $all_rules = array_merge(array_keys($rules), array_values($rules));\r\n try {\r\n // if (!isset($this->data[$field])) {\r\n // throw new FieldDoesNotExist(\"$field is requied\");\r\n // }\r\n\r\n // if (empty($this->data($field))) {\r\n // throw new FieldEmpty(\"$field can't be empty\");\r\n // }\r\n\r\n $this->validateField($field);\r\n } catch (FieldDoesNotExist | FieldEmpty $e) {\r\n // if (in_array(\"nullable\", $all_rules)) {\r\n // unset($this->data[$field]);\r\n // return;\r\n // }\r\n $this->addError($field, str_replace(\"_\", \" \", $e->getMessage()));\r\n }\r\n }\r\n );\r\n\r\n $this->valid = !boolval(count($this->getErrors()));\r\n\r\n $this->validated = true;\r\n\r\n return $this->valid;\r\n }",
"public function rules()\n {\n return [\n 'data.*.attributes.object_id' => 'required_with:data.attributes',\n 'data.*.attributes.object_domain' => 'required_with:data.attributes',\n ];\n }",
"public function validation() {\n \t$validator = new Validation();\n \n $validator->add(\n \t\"tel\",\n new TelValidator(\n [\n \n \"required\" => true\n ]\n )\n );\n \n $validator->add(\n \t\"post\",\n new PostValidator(\n [\n \"required\" => true\n ]\n )\n );\n\n \n \n return $this->validate($validator);\n }",
"public function validation()\n {\n $this->validate(new PresenceOf(\n array(\n \"field\" => \"timestamp\",\n \"message\" => \"The field timestamp is required\"\n )\n ));\n\n $this->validate(new Regex(\n array(\n \"field\" => \"ip\",\n \"pattern\" => '/^\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\z/',\n \"message\" => \"The email must be unique\"\n )\n ));\n\n $this->validate(new Numericality(\n array(\n \"field\" => \"load_threshold\",\n \"message\" => \"The load threshold must be numeric\"\n )\n ));\n\n return $this->validationHasFailed() != true;\n }",
"public function getValidationResult();",
"protected function doValidate($columns = null)\n\t{\n\t\tif (!$this->alreadyInValidation) {\n\t\t\t$this->alreadyInValidation = true;\n\t\t\t$retval = null;\n\n\t\t\t$failureMap = array();\n\n\n\t\t\t// We call the validate method on the following object(s) if they\n\t\t\t// were passed to this object by their coresponding set\n\t\t\t// method. This object relates to these object(s) by a\n\t\t\t// foreign key reference.\n\n\t\t\tif ($this->aCampaignTemplate !== null) {\n\t\t\t\tif (!$this->aCampaignTemplate->validate($columns)) {\n\t\t\t\t\t$failureMap = array_merge($failureMap, $this->aCampaignTemplate->getValidationFailures());\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($this->asfGuardUserProfile !== null) {\n\t\t\t\tif (!$this->asfGuardUserProfile->validate($columns)) {\n\t\t\t\t\t$failureMap = array_merge($failureMap, $this->asfGuardUserProfile->getValidationFailures());\n\t\t\t\t}\n\t\t\t}\n\n\n\t\t\tif (($retval = CampaignPeer::doValidate($this, $columns)) !== true) {\n\t\t\t\t$failureMap = array_merge($failureMap, $retval);\n\t\t\t}\n\n\n\t\t\t\tif ($this->collCampaignContactGroups !== null) {\n\t\t\t\t\tforeach ($this->collCampaignContactGroups as $referrerFK) {\n\t\t\t\t\t\tif (!$referrerFK->validate($columns)) {\n\t\t\t\t\t\t\t$failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif ($this->collCampaignContacts !== null) {\n\t\t\t\t\tforeach ($this->collCampaignContacts as $referrerFK) {\n\t\t\t\t\t\tif (!$referrerFK->validate($columns)) {\n\t\t\t\t\t\t\t$failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif ($this->collCampaignContactElements !== null) {\n\t\t\t\t\tforeach ($this->collCampaignContactElements as $referrerFK) {\n\t\t\t\t\t\tif (!$referrerFK->validate($columns)) {\n\t\t\t\t\t\t\t$failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif ($this->collCampaignLinks !== null) {\n\t\t\t\t\tforeach ($this->collCampaignLinks as $referrerFK) {\n\t\t\t\t\t\tif (!$referrerFK->validate($columns)) {\n\t\t\t\t\t\t\t$failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\n\t\t\t$this->alreadyInValidation = false;\n\t\t}\n\n\t\treturn (!empty($failureMap) ? $failureMap : true);\n\t}",
"public function isValid()\n\t{\n\t\t$this->validation_errors = array();\n\t\t\n\t\tif(!$this->getDefinition()->isNullAllowed() && $this->isNull())\n\t\t{\n\t\t\t$this->addValidationError(self::ADT_VALIDATION_ERROR_NULL_NOT_ALLOWED);\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"public function isValid(): bool\n {\n $success = true;\n\n foreach ($this->rules->getRules() as $field => $rules) {\n foreach ($rules as $rule => $args) {\n $fieldError = $this->fieldErrors[$field] ?? null;\n\n if (key_exists($rule, $this->sets) === false) {\n // Rule doesn't exist, throw an exception\n throw new InvalidArgumentException(\"Unknown rule '$rule'\");\n }\n\n if ($this->params->has($field) === false) {\n // The field doesn't exist.\n if ($this->rules->isRequired($field)) {\n // The rule is required but doesn't exist. Set error and\n // continue to the next field\n $this->errors->add($field, $fieldError ?? \"$field is required\");\n $success = false;\n break;\n }\n\n // The rule doesn't exist but isn't required, so let's just\n // continue to the next field\n continue;\n }\n\n // Add the field value as the first argument\n array_unshift($args, $this->params->get($field));\n\n $callback = call_user_func_array($this->sets[$rule], $args);\n\n if ($callback === true) {\n // The validation rule passed, continue to next\n continue;\n }\n\n // Set success to false since the validation failed\n $success = false;\n\n if ($fieldError || is_string($callback)) {\n // We found a custom field error, let's use that\n $this->errors->add($field, $fieldError ?? $callback);\n break;\n }\n\n // No other error messages was found or returned, create a generic one\n $this->errors->add($field, \"Validation for $rule failed\");\n break;\n }\n }\n\n return $success;\n }",
"public function validate()\n {\n $validator = Validator::make($this->getAttributes(), $this->getValidationRules());\n\n if ($validator->fails()) {\n if (config('validate.dump')) {\n dump($this->rules, $this->getAttributes(), $validator->errors());\n }\n\n throw new ValidationException($validator);\n }\n\n return true;\n }",
"function validate() {\n foreach ($this->validate_callbacks as $callback => $info) {\n $info += array(\n 'arguments' => array(),\n );\n if (!call_user_func_array($callback, array_merge(array($this->value), $info['arguments']))) {\n $this->errors[] = $info['message'];\n $this->form->request['invalid_elements'][$this->id] = $this;\n }\n }\n\n return empty($this->errors);\n }",
"public function rules()\n {\n $this->formObject();\n\n return $this->formObject()->rulesForStoring();\n }",
"public function validate()\n {\n foreach ($this->rules() as $attribute => $rules) {\n $value = $this->{$attribute};\n foreach ($rules as $rule) {\n $ruleName = $rule;\n if (!is_string($ruleName)) {\n $ruleName = $rule[0];\n }\n if ($ruleName === self::RULE_REQUIRED && !$value) {\n $this->addErrorForRule($attribute, self::RULE_REQUIRED);\n }\n if ($ruleName === self::RULE_EMAIL && !filter_var($value, FILTER_VALIDATE_EMAIL)) {\n $this->addErrorForRule($attribute, self::RULE_EMAIL);\n }\n if ($ruleName === self::RULE_MIN && strlen($value) < $rule['min']) {\n $this->addErrorForRule($attribute, self::RULE_MIN, $rule);\n }\n if ($ruleName === self::RULE_MAX && strlen($value) > $rule['max']) {\n $this->addErrorForRule($attribute, self::RULE_MAX, $rule);\n }\n if ($ruleName === self::RULE_MATCH && $value !== $this->{$rule['match']}) {\n $rule['match'] = $this->getLabel($rule['match']);\n $this->addErrorForRule($attribute, self::RULE_MATCH, $rule);\n }\n if ($ruleName === self::RULE_UNIQUE) {\n $className = $rule['class'];\n $uniqueAttr = $rule['attribute'] ?? $attribute;\n $tableName = $className::tableName();\n $statement = Application::$app->db->prepare(\"SELECT * FROM $tableName WHERE $uniqueAttr = :attr\");\n $statement->bindValue(\":attr\", $value);\n $statement->execute();\n $record = $statement->fetchObject();\n if ($record) {\n $this->addErrorForRule($attribute, self::RULE_UNIQUE, ['field' => $this->getLabel($attribute)]);\n }\n }\n }\n }\n\n return empty($this->errors);\n }",
"protected function doValidate($columns = null)\n {\n if (!$this->alreadyInValidation) {\n $this->alreadyInValidation = true;\n $retval = null;\n\n $failureMap = array();\n\n\n // We call the validate method on the following object(s) if they\n // were passed to this object by their coresponding set\n // method. This object relates to these object(s) by a\n // foreign key reference.\n\n if ($this->aRuang !== null) {\n if (!$this->aRuang->validate($columns)) {\n $failureMap = array_merge($failureMap, $this->aRuang->getValidationFailures());\n }\n }\n\n if ($this->aSekolahLongitudinal !== null) {\n if (!$this->aSekolahLongitudinal->validate($columns)) {\n $failureMap = array_merge($failureMap, $this->aSekolahLongitudinal->getValidationFailures());\n }\n }\n\n if ($this->aPembelajaranRelatedByBelKe01 !== null) {\n if (!$this->aPembelajaranRelatedByBelKe01->validate($columns)) {\n $failureMap = array_merge($failureMap, $this->aPembelajaranRelatedByBelKe01->getValidationFailures());\n }\n }\n\n if ($this->aPembelajaranRelatedByBelKe02 !== null) {\n if (!$this->aPembelajaranRelatedByBelKe02->validate($columns)) {\n $failureMap = array_merge($failureMap, $this->aPembelajaranRelatedByBelKe02->getValidationFailures());\n }\n }\n\n if ($this->aPembelajaranRelatedByBelKe03 !== null) {\n if (!$this->aPembelajaranRelatedByBelKe03->validate($columns)) {\n $failureMap = array_merge($failureMap, $this->aPembelajaranRelatedByBelKe03->getValidationFailures());\n }\n }\n\n if ($this->aPembelajaranRelatedByBelKe04 !== null) {\n if (!$this->aPembelajaranRelatedByBelKe04->validate($columns)) {\n $failureMap = array_merge($failureMap, $this->aPembelajaranRelatedByBelKe04->getValidationFailures());\n }\n }\n\n if ($this->aPembelajaranRelatedByBelKe05 !== null) {\n if (!$this->aPembelajaranRelatedByBelKe05->validate($columns)) {\n $failureMap = array_merge($failureMap, $this->aPembelajaranRelatedByBelKe05->getValidationFailures());\n }\n }\n\n if ($this->aPembelajaranRelatedByBelKe06 !== null) {\n if (!$this->aPembelajaranRelatedByBelKe06->validate($columns)) {\n $failureMap = array_merge($failureMap, $this->aPembelajaranRelatedByBelKe06->getValidationFailures());\n }\n }\n\n if ($this->aPembelajaranRelatedByBelKe07 !== null) {\n if (!$this->aPembelajaranRelatedByBelKe07->validate($columns)) {\n $failureMap = array_merge($failureMap, $this->aPembelajaranRelatedByBelKe07->getValidationFailures());\n }\n }\n\n if ($this->aPembelajaranRelatedByBelKe08 !== null) {\n if (!$this->aPembelajaranRelatedByBelKe08->validate($columns)) {\n $failureMap = array_merge($failureMap, $this->aPembelajaranRelatedByBelKe08->getValidationFailures());\n }\n }\n\n if ($this->aPembelajaranRelatedByBelKe09 !== null) {\n if (!$this->aPembelajaranRelatedByBelKe09->validate($columns)) {\n $failureMap = array_merge($failureMap, $this->aPembelajaranRelatedByBelKe09->getValidationFailures());\n }\n }\n\n if ($this->aPembelajaranRelatedByBelKe10 !== null) {\n if (!$this->aPembelajaranRelatedByBelKe10->validate($columns)) {\n $failureMap = array_merge($failureMap, $this->aPembelajaranRelatedByBelKe10->getValidationFailures());\n }\n }\n\n if ($this->aPembelajaranRelatedByBelKe11 !== null) {\n if (!$this->aPembelajaranRelatedByBelKe11->validate($columns)) {\n $failureMap = array_merge($failureMap, $this->aPembelajaranRelatedByBelKe11->getValidationFailures());\n }\n }\n\n if ($this->aPembelajaranRelatedByBelKe12 !== null) {\n if (!$this->aPembelajaranRelatedByBelKe12->validate($columns)) {\n $failureMap = array_merge($failureMap, $this->aPembelajaranRelatedByBelKe12->getValidationFailures());\n }\n }\n\n if ($this->aPembelajaranRelatedByBelKe13 !== null) {\n if (!$this->aPembelajaranRelatedByBelKe13->validate($columns)) {\n $failureMap = array_merge($failureMap, $this->aPembelajaranRelatedByBelKe13->getValidationFailures());\n }\n }\n\n if ($this->aPembelajaranRelatedByBelKe14 !== null) {\n if (!$this->aPembelajaranRelatedByBelKe14->validate($columns)) {\n $failureMap = array_merge($failureMap, $this->aPembelajaranRelatedByBelKe14->getValidationFailures());\n }\n }\n\n if ($this->aPembelajaranRelatedByBelKe15 !== null) {\n if (!$this->aPembelajaranRelatedByBelKe15->validate($columns)) {\n $failureMap = array_merge($failureMap, $this->aPembelajaranRelatedByBelKe15->getValidationFailures());\n }\n }\n\n if ($this->aPembelajaranRelatedByBelKe16 !== null) {\n if (!$this->aPembelajaranRelatedByBelKe16->validate($columns)) {\n $failureMap = array_merge($failureMap, $this->aPembelajaranRelatedByBelKe16->getValidationFailures());\n }\n }\n\n if ($this->aPembelajaranRelatedByBelKe17 !== null) {\n if (!$this->aPembelajaranRelatedByBelKe17->validate($columns)) {\n $failureMap = array_merge($failureMap, $this->aPembelajaranRelatedByBelKe17->getValidationFailures());\n }\n }\n\n if ($this->aPembelajaranRelatedByBelKe18 !== null) {\n if (!$this->aPembelajaranRelatedByBelKe18->validate($columns)) {\n $failureMap = array_merge($failureMap, $this->aPembelajaranRelatedByBelKe18->getValidationFailures());\n }\n }\n\n if ($this->aPembelajaranRelatedByBelKe19 !== null) {\n if (!$this->aPembelajaranRelatedByBelKe19->validate($columns)) {\n $failureMap = array_merge($failureMap, $this->aPembelajaranRelatedByBelKe19->getValidationFailures());\n }\n }\n\n if ($this->aPembelajaranRelatedByBelKe20 !== null) {\n if (!$this->aPembelajaranRelatedByBelKe20->validate($columns)) {\n $failureMap = array_merge($failureMap, $this->aPembelajaranRelatedByBelKe20->getValidationFailures());\n }\n }\n\n\n if (($retval = JadwalPeer::doValidate($this, $columns)) !== true) {\n $failureMap = array_merge($failureMap, $retval);\n }\n\n\n\n $this->alreadyInValidation = false;\n }\n\n return (!empty($failureMap) ? $failureMap : true);\n }",
"function validate() {\n // @todo Remove module_load_include() call when moving to Drupal core.\n module_load_include('inc', 'fapitng', '/includes/fapitng.validate');\n foreach ($this->validate_callbacks as $callback => $info) {\n if (!call_user_func_array($callback, array_merge(array($this->value), $info['arguments']))) {\n $this->errors[] = $info['message'];\n }\n }\n if ($this->errors) {\n $this->request['invalid_elements'][$this->id] = $this;\n }\n $this->validateInputElements($this->children);\n\n if (!empty($this->request['invalid_elements'])) {\n $this->request['rebuild'] = TRUE;\n return FALSE;\n }\n return TRUE;\n }",
"function passes() {\n return $this->startValidation();\n }",
"public abstract function validation();",
"public function passes()\n {\n foreach ($this->rules as $attribute => $rules) {\n foreach ($rules as $rule) {\n $this->validate($attribute, $rule);\n }\n }\n\n return count($this->messages) === 0;\n }",
"public function validation()\n {\n $validator = new Validation();\n\n //Validating 'number' field to only contain digits\n $validator->add(\n 'number',\n new Digit(\n [\n 'field' => 'number',\n 'message' => 'You must enter a numeric values for this field',\n ]\n )\n );\n\n //Validating 'street' field to not be null or empty\n $validator->add(\n 'street',\n new PresenceOf(\n [\n 'field' => 'street',\n 'message' => 'You must enter a value before submitting the form',\n ]\n )\n );\n\n //Validating 'zipcode' field to not be null or empty\n $validator->add(\n 'zipcode',\n new PresenceOf(\n [\n 'field' => 'zipcode',\n 'message' => 'You must enter a value before submitting the form',\n ]\n )\n );\n\n //Validating 'city' field to not be null or empty\n $validator->add(\n 'city',\n new PresenceOf(\n [\n 'field' => 'city',\n 'message' => 'You must enter a value before submitting the form',\n ]\n )\n );\n \n // Validate the validator\n return $this->validate($validator);\n }",
"protected function validate()\r\n\t{\r\n\t\tif (!$this->isFetched())\r\n\t\t{\r\n\t\t\treturn;\r\n }\r\n \r\n\t\tif ($this->validationInfo)\r\n\t\t{\r\n\t\t\t$this->validationInfo->validate($this->normalizedValue);\r\n\t\t}\r\n\t\t$this->isValid = true;\r\n\t}",
"public function rules()\n {\n $rulesForm = ValidationRule::form();\n\n $rulesManufacturFormula = [\n 'manufacture_process_id' => ValidationRule::foreignKey('manufacture_processes'),\n 'manufacture_process_name' => 'required|string',\n 'name' => 'required|string',\n 'request_approval_to' => 'required',\n 'raw_materials' => 'required|array',\n 'finished_goods' => 'required|array',\n ];\n\n $rulesManufactureFormulaRawMaterials = [\n 'raw_materials.*.item_id' => ValidationRule::foreignKey('items'),\n 'raw_materials.*.item_name' => 'required|string',\n 'raw_materials.*.quantity' => ValidationRule::quantity(),\n 'raw_materials.*.unit' => ValidationRule::unit(),\n ];\n\n $rulesManufactureFormulaFinishedGoodsGoods = [\n 'finished_goods.*.item_id' => ValidationRule::foreignKey('items'),\n 'finished_goods.*.item_name' => 'required|string',\n 'finished_goods.*.quantity' => ValidationRule::quantity(),\n 'finished_goods.*.unit' => ValidationRule::unit(),\n ];\n\n return array_merge($rulesForm, $rulesManufacturFormula, $rulesManufactureFormulaRawMaterials, $rulesManufactureFormulaFinishedGoodsGoods);\n }",
"protected final function validate()\n {\n $validator = new Validator($this);\n $validator->validate();\n\n return $this->hasErrors() ? false : true;\n }",
"public static function validate()\n {\n parent::validate();\n foreach(static::getRules() as $field => $rules)\n {\n if(array_key_exists('captcha', $rules))\n {\n $captchaResponse = \\helper\\Captcha::recaptchaValidate($_POST[$rules['captcha']], $_POST[$field]);\n // if captcha error...\n if($captchaResponse !== true)\n {\n static::$errors[] = array($field => _('Incorrect captcha solution'));\n }\n }\n }\n return (0 === count(static::$errors));\n }",
"public function isValid(): bool\n {\n return $this->getErrors()->count() === 0;\n }",
"public function validaterecord() {\n if ($this->application_id == 0) {\n $temp = Propertyapplication::find()->where(['application_no' => $this->application_no, 'project_id' => $this->project_id])->one();\n if ($temp != NULL) {\n $this->addError('application_no', 'Form No. already exist.');\n return FALSE;\n }\n } else {\n $temp = Propertyapplication::find()->where(['application_no' => $this->application_no, 'project_id' => $this->project_id])->andFilterWhere(['!=', 'application_id', $this->application_id])->one();\n if ($temp != NULL) {\n $this->addError('application_no', 'Form No. already exist.');\n return FALSE;\n }\n\n if ($this->application_status == 10) {\n $this->addError('application_no', 'Form is already submitted.');\n return false;\n }\n }\n\n if ($this->property_against == 1 && ($this->owner_id == NULL || $this->owner_id == 0)) {\n $this->addError('property_against', 'Form is already submitted.');\n return false;\n }\n\n return true;\n }",
"public function isValid() {\n $paramsList = func_get_args();\n $numParams = func_num_args();\n\n switch($numParams) {\n case 0: \n $result = $this->doRevalidation();\n break;\n case 1:\n if( $paramsList[0] ) { // $isRevalidation = true\n $result = $this->doRevalidation();\n } else {\n $result = $this->doValidation();\n }\n break;\n }\n\n return $result;\n }",
"public function validated();",
"public function rules()\n\t{\n\t\tif($projects = $this->projects){\n\n\t\t\t// Validate on updating\n\t\t}\n\n\t\treturn $this->rules;\n\t}",
"public function validate()\n\t{\n\t\t$result = true;\n\t\tforeach ($this->slices as &$slice) {\n\t\t\t//debug($slice['name'] . ' ('.$slice['from'].'-'.$slice['till'].': '.sizeof($slice['desc']).')');\n\t\t\t$f2 = new HTMLFormTable($slice['desc']);\n\t\t\t$v = new HTMLFormValidate($f2);\n\t\t\t$result = $v->validate() && $result; // recursive inside // this order to force execution\n\t\t\t$slice['desc'] = $v->getDesc();\n\t\t}\n\t\t//debug($this->slices);\n\t\treturn $result;\n\t}",
"public function valid ()\n {\n return $this->inputs->valid();\n }",
"public function validate()\n {\n $errors = [];\n\n if (!\\Zend_Validate::is($this->getNickname(), 'NotEmpty')) {\n $errors[] = __('Please enter a nickname.');\n }\n\n if (!\\Zend_Validate::is($this->getDetail(), 'NotEmpty')) {\n $errors[] = __('Please enter a review.');\n }\n\n if (empty($errors)) {\n return true;\n }\n return $errors;\n }",
"public function validate()\n\t{\n\t\t$this->errors = [];\n\n\t\t$this->validateConfig();\n\n\t\t// there is no point to continue if config is not valid against the schema\n\t\tif($this->isValid()) {\n\t\t\t$this->validateRepetitions();\n\t\t\t$this->validateMode();\n\t\t\t$this->validateClasses();\n\t\t\t$this->validateTestData();\n\t\t}\n\t}",
"private function proccess()\n {\n foreach ($this->validate as $name => $value) {\n $rules = $this->rules[$name];\n \n /* Let's see is this value a required, e.g not empty */\n if (preg_match('~req~', $rules)) {\n if ($this->isEmpty($value)) {\n $this->errors[] = $this->filterName($name) . ' can\\'t be empty, please enter required data.';\n continue; // We will display only one error per input\n }\n }\n \n /**\n * Let's see is this value needs to be integer\n */\n if (preg_match('~int~', $rules)) {\n if (!$this->isInt($value)) {\n $this->errors[] = $this->filterName($name) . ' is not number, please enter number.';\n continue; // We will display only one error per input\n }\n }\n \n /**\n * Let's see is this value needs to be text\n */\n if (preg_match('~text~', $rules)) {\n if (!$this->isText($value)) {\n $this->errors[] = $this->filterName($name) . ' is not text, please enter only letters.';\n continue; // We will display only one error per input\n }\n }\n \n /* This is good input */\n $this->data[$name] = $value;\n }\n }",
"public function valid()\n {\n $allowed_values = [\"Billable\", \"DoNotBill\", \"NoCharge\", \"NoDefault\"];\n if (!in_array($this->container['bill_expenses'], $allowed_values)) {\n return false;\n }\n if (strlen($this->container['billing_attention']) > 50) {\n return false;\n }\n if ($this->container['billing_method'] === null) {\n return false;\n }\n $allowed_values = [\"ActualRates\", \"FixedFee\", \"NotToExceed\", \"OverrideRate\"];\n if (!in_array($this->container['billing_method'], $allowed_values)) {\n return false;\n }\n $allowed_values = [\"WorkRole\", \"StaffMember\"];\n if (!in_array($this->container['billing_rate_type'], $allowed_values)) {\n return false;\n }\n $allowed_values = [\"Billable\", \"DoNotBill\", \"NoCharge\", \"NoDefault\"];\n if (!in_array($this->container['bill_products'], $allowed_values)) {\n return false;\n }\n $allowed_values = [\"Billable\", \"DoNotBill\", \"NoCharge\", \"NoDefault\"];\n if (!in_array($this->container['bill_time'], $allowed_values)) {\n return false;\n }\n if ($this->container['board'] === null) {\n return false;\n }\n $allowed_values = [\"ActualHours\", \"BillableHours\"];\n if (!in_array($this->container['budget_analysis'], $allowed_values)) {\n return false;\n }\n if ($this->container['company'] === null) {\n return false;\n }\n if (strlen($this->container['customer_po']) > 50) {\n return false;\n }\n if ($this->container['estimated_end'] === null) {\n return false;\n }\n if ($this->container['estimated_start'] === null) {\n return false;\n }\n if ($this->container['name'] === null) {\n return false;\n }\n if (strlen($this->container['name']) > 100) {\n return false;\n }\n return true;\n }",
"public function validation()\n {\n if ($this->validationHasFailed() == true) {\n return false;\n }\n }",
"function isValid()\n\t{\n\t\t// Non-user entries are always valid\n\t\t// TO DO Validate individual merged items. \n\t\tif ($this->type == 'static' || $this->type == 'hidden' || $this->type == 'merged')\n\t\t\treturn true;\n\t\t\t\n\t\t// For multi-item lists, should be at least one value\n\t\tif ($this->type == 'checkboxlist') \n\t\t{\n\t\t\tif ($this->required) {\n\t\t\t\t$listValid = is_array($this->value) && count($this->value) > 0;\n\t\t\t\tif (!$listValid) {\n\t\t\t\t\t$this->renderWithErrors = true;\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Continue validaitng lists if not required, or required, but valid so far.\n\t\t}\n\t\t// Not multi-item lists\n\t\telse \n\t\t{\t\t\n\t\t\t// For file uploading, check $_FILES instead\n\t\t\tif ($this->type == 'uploadfile') \n\t\t\t{\t\t\t\t\n\t\t\t\t// Always true if not required\n\t\t\t\tif (!$this->required) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t$fileValid = isset($_FILES[$this->name]) && (isset($_FILES[$this->name]['tmp_name'])) && ($_FILES[$this->name]['tmp_name'] != false);\n\t\t\t\t\n\t\t\t\t// If we want the field to be valid if the form has a value or a file is uploaded,\n\t\t\t\t// then the field is valid if there's any kind of value.\n\t\t\t\tif ($this->validIfValue && $this->value) {\n\t\t\t\t\treturn true;\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (!$fileValid) {\n\t\t\t\t\t$this->renderWithErrors = true;\n\t\t\t\t}\n\t\t\t\treturn $fileValid;\n\t\t\t}\n\t\t\t\t\n\t\t\t// Field is required, but empty\n\t\t\tif ($this->required && $this->value == false) {\n\t\t\t\t$this->renderWithErrors = true;\n\t\t\t\treturn false; \n\t\t\t}\n\t\t\t\t\n\t\t\t// Field is not required, and empty\n\t\t\tif (!$this->required && $this->value == false) \n\t\t\t\treturn true;\t\t\t\t\n\t\t}\n\t\t\n\t\t// Validation functions override internal validation\n\t\tif ($this->validationFn) \t\t\n\t\t{\n\t\t\t// Abort if function doesn't exist.\n\t\t\tif (!function_exists($this->validationFn)) {\n\t\t\t\terror_log('FormBuilder: Function \"'.$this->validationFn.'\" doesn\\'t exist');\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t\n\t\t\t// Allow the function to change the error message if required\n\t\t\t// function HL_validate_CountyField($county, $fieldName = false, $customError = false) {}\n\t\t\t// Setting $customError = 'String' makes the 'String' the error message.\n\t\t\t$customError = false;\n\t\t\t\t\t\t\n\t\t\t$validVal = call_user_func($this->validationFn, $this->value, $this->name, $customError);\n\t\t\t$this->renderWithErrors = !$validVal;\n\n\t\t\t// Have we been passed a different error message?\n\t\t\tif ($customError) {\n\t\t\t\t$this->errorMessage = $customError;\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\treturn $validVal;\n\t\t}\n\t\t\n\t\t// No validation function, see if we have any internal validation\n\t\t// rules. If so, validate the value against those.\n\t\tif ($this->validationRules)\n\t\t{\n\t\t\t$customError = false;\n\t\t\t\n\t\t\t$validVal = $this->validateValueUsingRules($this->value);\n\t\t\t$this->renderWithErrors = !$validVal; \n\t\t\t\t\t\t\n\t\t\treturn $validVal;\n\t\t}\n\t\t\t\n\t\t// No validation rules or functions, so it's all fine.\n\t\treturn true;\n\t}"
] | [
"0.7665337",
"0.7151684",
"0.68512136",
"0.67776966",
"0.668118",
"0.6543617",
"0.65301067",
"0.6456584",
"0.6361544",
"0.6357552",
"0.632348",
"0.63058597",
"0.62689567",
"0.62605214",
"0.62440133",
"0.6210945",
"0.6199374",
"0.6148872",
"0.613738",
"0.610981",
"0.61088693",
"0.6085383",
"0.6050913",
"0.6018093",
"0.599599",
"0.59872717",
"0.5968573",
"0.5967578",
"0.5928499",
"0.59146297",
"0.5880342",
"0.587287",
"0.58566904",
"0.5839553",
"0.5803948",
"0.5798424",
"0.57869375",
"0.57829785",
"0.57805264",
"0.5750854",
"0.5743079",
"0.5740249",
"0.5712205",
"0.570562",
"0.56942856",
"0.5684654",
"0.5672033",
"0.5670811",
"0.56519973",
"0.5650155",
"0.56347084",
"0.5632012",
"0.56310177",
"0.5630664",
"0.5626315",
"0.56259274",
"0.5621392",
"0.5616996",
"0.5612841",
"0.5611099",
"0.56090796",
"0.56040967",
"0.5595879",
"0.55815226",
"0.55809975",
"0.5578848",
"0.55758226",
"0.5572448",
"0.55673385",
"0.556246",
"0.55603504",
"0.5560014",
"0.55590445",
"0.55569434",
"0.55550575",
"0.55547374",
"0.55525976",
"0.55521077",
"0.5548544",
"0.55466855",
"0.5542778",
"0.55288804",
"0.5526276",
"0.5513632",
"0.5512579",
"0.55055904",
"0.5500896",
"0.5500445",
"0.5498786",
"0.5495811",
"0.54948443",
"0.54948324",
"0.5490925",
"0.54883635",
"0.5488317",
"0.5487335",
"0.548312",
"0.54815954",
"0.5480293",
"0.5479154"
] | 0.553215 | 81 |
Retrieves a field from the object by name passed in as a string. | public function getByName($name, $type = BasePeer::TYPE_PHPNAME)
{
$pos = OperationPrimesPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM);
$field = $this->getByPosition($pos);
return $field;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getField($name) { return $this->fields[$name]; }",
"public function getField($field_name);",
"public function getField($name) {\n return $this->getFields()[$name];\n }",
"public function getField($name) {\n\t\treturn $this->fields[$name];\n\t}",
"public function getField($name)\n {\n return $this->fields[$name];\n }",
"public function get($name)\n\t{\n\t\tforeach ($this->getItems() as $field) {\n\t\t\tif ($field->getName() === $name) {\n\t\t\t\treturn $field;\n\t\t\t}\n\t\t}\n\t\t\n\t\tthrow new \\InvalidArgumentException(\"Could not find the field '{$name}'\");\n\t}",
"public function getField($fieldName) {}",
"public function getField($name)\n {\n return $this->fields[$name] ?: $this->addField($name);\n }",
"public function getField($name) {\n return $this->body->getField($name);\n }",
"public function get(string $name): FieldContract;",
"function getField ( $name )\n\t{\n\t\tif ( ake ( $name , $this->_fields ) )\n\t\t{\n\t\t\treturn $this->_fields[$name] ;\n\t\t}\n\t\treturn null ;\n\t}",
"public function get($field);",
"public function get($field);",
"public function getFieldValue(/*string*/ $fieldName);",
"public function __get($name)\n\t{\n\t\tif ($field = $this->_meta->field($name))\n\t\t{\n\t\t\treturn $this->get($name);\n\t\t}\n\t}",
"public function getField(string $name, string $class=null): Field;",
"public function getField($field_name) {\n $retval = NULL;\n // if field exists\n if (array_key_exists($field_name,$this->form_fields)) {\n $retval = $this->form_fields[$field_name];\n }\n return $retval;\n }",
"protected function _getReferenceField($name) {\r\n \treturn $this->_referenceMap[$name]['field'];\r\n }",
"function &getField($name){\n\t\t$fields =& $this->fields();\n\t\tif ( !isset($fields[$name]) ){\n\t\t\treturn null;\n\t\t} else {\n\t\t\treturn $fields[$name];\n\t\t}\n\t}",
"public function __invoke($name)\n {\n return $this->getFieldByName($name);\n }",
"public function getFieldByName($name)\n {\n foreach ($this->fields as $field) {\n if ($field->getName() == $name) {\n return $field;\n }\n }\n\n return null;\n }",
"function getFieldValue($field);",
"public static function field($model, $field, $name = FALSE)\n\t{\n\t\tif (FALSE == ($meta = Jelly_Meta::get($model)))\n\t\t{\n\t\t\treturn FALSE;\n\t\t}\n\t\t\n\t\t// Check to see if the field is aliased\n\t\tif (isset($meta->aliases[$field]))\n\t\t{\n\t\t\t$field = $meta->aliases[$field];\n\t\t}\n\t\t\n\t\tif (isset($meta->fields[$field]))\n\t\t{\n\t\t\tif ($name)\n\t\t\t{\n\t\t\t\treturn $field;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn $meta->fields[$field];\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn NULL;\n\t}",
"public function getField()\n {\n $value = $this->name;\n if (null != $this->field) {\n $value = $this->field;\n }\n return $value;\n }",
"public function __get($name) \n {\n if(isset($this->fields[$name]))\n return $this->fields[$name];\n else\n return null;\n }",
"public function getField(string $key);",
"public function getField($fieldKey){\n $fields = $this->getFields();\n return $fields->{$fieldKey};\n }",
"function get_field($name)\r\n {\r\n if ($name)\r\n {\r\n $tempArray = fetch_to_array(database::query(\"SELECT * FROM system WHERE name='$name'\"),\"\");\r\n if (is_array($tempArray)) return(current($tempArray));\r\n }\r\n else return (false);\r\n }",
"function getfield($field){\n\n\t\treturn($this->record[$field]);\n\t}",
"public function get_field( $args, $name = '' ) {\n\n\t\tif ( empty( $name ) ) {\n\t\t\t$name = isset( $args['type'] ) ? $args['type'] : false;\n\t\t}\n\n\t\treturn $name ? $this->get_object( $name, 'field', $args ) : null;\n\t}",
"public function __get($name)\n {\n if (method_exists($this, \"get\" . ucfirst($name)))\n return call_user_func(array($this, \"get\" . ucfirst($name)));\n else {\n require_once(\"ID3/Exception.php\");\n throw new ID3_Exception(\"Unknown field: \" . $name);\n }\n }",
"public function __get($name)\n\t{\n\t\tif (isset($this->_fields[$name]))\n\t\t\treturn $this->_fields[$name];\n\t\treturn null;\n\t}",
"public function field($field, $name = FALSE)\n\t{\n\t\tif (empty($this->_fields[$field]))\n\t\t{\n\t\t\t$this->_fields[$field] = Jelly_Meta::field($this, $field);\n\t\t}\n\t\t\n\t\tif ($name)\n\t\t{\n\t\t\tif (is_object($this->_fields[$field]))\n\t\t\t{\n\t\t\t\treturn $this->_fields[$field]->name;\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn $this->_fields[$field];\n\t\t}\n\t\t\n\t\treturn NULL;\n\t}",
"public function getDbFieldName($field_name);",
"function get_field($type, $type_id = '', $field = 'name')\n {\n if ($type_id != '') {\n $l = $this->db->get_where($type, array(\n $type . '_id' => $type_id\n ));\n $n = $l->num_rows();\n if ($n > 0) {\n return $l->row()->$field;\n }\n }\n }",
"function news_get_field( $p_news_id, $p_field_name ) {\r\n\t\t$row = news_get_row( $p_news_id );\r\n\t\treturn ( $row[$p_field_name] );\r\n\t}",
"public function getFieldName() {}",
"public function get($field) {\r\n\t\treturn $this -> fields[$field];\r\n\t}",
"public function named(string $name) : Field\n {\n return $this->filter(function (Field $field) use ($name) {\n return $field->getName() == $name;\n })->first();\n }",
"public function get_field_name();",
"public function __get($name){\n\t\t\treturn ($name === 'Fields' || $name === 'Type') ? $this->$name : null;\n\t\t}",
"public function get_field(/* .... */)\n {\n return $this->_field;\n }",
"public function getProperty($field);",
"public function getField();",
"public function getField();",
"public function getField();",
"public function getField(string $name): ?\\ExEss\\Bundle\\CmsBundle\\Component\\Flow\\Response\\Form\\Field\n {\n $card = $this->getCardFor($name);\n\n if (null === $card) {\n return null;\n }\n\n foreach ($this->getGroup($card)->fields as $i => $field) {\n if (isset($field->id) && $field->id === $name) {\n return $field;\n }\n }\n\n return null;\n }",
"public function fetchField();",
"public function get_field_name($name)\n {\n if( ! $this->_model)\n {\n return $name;\n }\n return $this->get_model()->get_field_name($name);\n }",
"public function findField(string $nativeName, string $class=null): Field;",
"public function getFieldValue($fieldname)\n {\n return $this->{'get'.$fieldname}();\n }",
"public function __get($name)\n {\n Precondition::isTrue(isset($this->data[$name]), 'field ' . $name . ' does not exist');\n\n return $this->data[$name];\n }",
"public function extractProperty($object, $field_name)\n {\n if (!isset($object[$field_name]))\n {\n return null;\n }\n return $object[$field_name];\n }",
"public function getField(MultibannerInterface $multibanner, $name);",
"function get_field($id=false, $field=false) {\n\t\tif(!$id && !$field) return false;\n\t\tglobal $wpdb;\n\t\t$query = \"SELECT wposts.$field FROM $wpdb->posts wposts WHERE wposts.ID=$id\";\n\t\t$results = $this->query($query);\n\t\tif(isset($results[0])) return $results[0]->$field;\n\t}",
"public function get(string $field_name)\n {\n return $this->field(INPUT_GET, $field_name);\n }",
"protected static function getField(\n ParticleInterface $particle,\n FieldsCargo $cargo,\n string $name,\n array $args = []\n )/*: mixed*/\n {\n $name = Utils::findFieldName($cargo, $name);\n return $particle->attributes()->$name; // test with null.\n }",
"public function getField($name)\r\n {\r\n $className = $this->retrieveClassName($name);\r\n return new $className;\r\n }",
"function get($field) {\n\t\tif(!is_string($field)) {\n\t\t\ttrigger_error(\"Parameter for model->get() must be a string\", E_USER_WARNING);\n\t\t\treturn null;\n\t\t}\n\n\t\tif (method_exists($this, 'get_'.$field)) {\n\t\t\t$args = func_get_args();\n\t\t\tarray_shift($args);\n\n\t\t\treturn call_user_func_array(array(& $this, 'get_'.$field), $args);\n\t\t}\n\n\t\t$result = $this->find_associated($field);\n\n\t\tif (!is_null($result)) {\n\t\t\treturn $result;\n\t\t}\n\n\t\tif (isset($this->data[$field])) {\n\t\t\treturn $this->data[$field];\n\t\t}\n\n\t}",
"public function getFieldValue($name)\n\t\t{\n\t\t\treturn $this->row[$name];\n\t\t}",
"public function _get($field) {\n\t\tif(property_exists($this, $field)) return $this->{$field}; \n\t\telse return NULL;\n\t}",
"public abstract function FetchField();",
"public function getField($field_name, $check_db_on_fail = true){\n if(isset($this->data[$this->alias][$field_name]))\n return $this->data[$this->alias][$field_name];\n else if($check_db_on_fail && $this->id)\n return $this->field($field_name);\n else\n return null;\n }",
"public function get_field( string $field ) {\n\t\tif ( array_key_exists( $field, $this->data ) ) {\n\t\t\treturn $this->data[ $field ];\n\t\t}\n\n\t\treturn '';\n\t}",
"public function get_field_name($field_name)\n {\n }",
"public function getField(): string;",
"public function getField($fieldName)\n {\n return isset($this->fields[$fieldName]) ? $this->fields[$fieldName] : null;\n }",
"function getFieldName(DataProperty &$property)\n {\n if (!is_object($property)) debug($property); // <-- this throws an exception\n // support [database.]table.field syntax\n if (preg_match('/^(.+)\\.(\\w+)$/', $property->source, $matches)) {\n $table = $matches[1];\n $field = $matches[2];\n return $field;\n }\n }",
"public function getField($slug);",
"public function getField($fieldName)\n {\n if (!isset($this->fields[$fieldName])) {\n return null;\n }\n\n return $this->fields[$fieldName];\n }",
"public function field($fieldName = '') {\n if (!empty($fieldName)) {\n $this->currentField = $fieldName;\n }\n\n if (isset($this->fields[$this->currentField])) {\n return $this->fields[$this->currentField];\n } else {\n return null;\n }\n }",
"public function getField($id)\r\n {\r\n return $this->_fetch($id);\r\n }",
"public function get($name) {\n return $this->$name;\n }",
"public function __get($name)\n {\n if (method_exists($this, $name)) {\n return call_user_func_array(\n array($this, $name), array()\n );\n }\n\n // Try to get its value from a atribute\n if (property_exists($this, $name))\n return $this->$name;\n\n // Try to get its value from a \"record\" atribute\n if (property_exists($this,'record') && property_exists($this->record, $name))\n return $this->record->$name;\n\n // Just for debuggin\n //die(\"$name not found in \" . __CLASS__);\n\n // Nothing found\n return null;\n }",
"public function getSearchField($class, $field);",
"function get($field)\n {\n $fieldLc = strtolower($field);\n if (array_key_exists($fieldLc, self::$translate))\n $fieldLc = self::$translate[$fieldLc];\n\n switch($fieldLc)\n { // act on field name\n case 'name':\n {\n return $this->getName();\n }\n\n case 'nativename':\n {\n return $this->getNativeName();\n }\n\n case 'sorry':\n {\n return $this->getSorry();\n }\n\n case 'cc':\n {\n if (array_key_exists('cc', $this->extras))\n return $this->extras['cc'];\n else\n return null;\n }\n\n\n default:\n { // other fields\n return parent::get($fieldLc);\n } // other fields\n } // act on field name\n }",
"private function getFieldValue($data, $fieldName)\n {\n if ($fieldValue = data_get($data, $fieldName)) {\n return $fieldValue;\n }\n\n return data_get($data, camel_case($fieldName));\n }",
"public function __get($name)\n\t{\n\t\tif ( isset( $this->newFields[$name] ) ) {\n\t\t\treturn $this->newFields[$name];\n\t\t}\n\t\telse if ( isset( $this->fields[$name] ) ) {\n\t\t\treturn $this->fields[$name];\n\t\t}\n\t\telse {\n\t\t\treturn NULL;\n\t\t}\n\t}",
"public function get($field_name)\n\t{\n\t\t$value = Arr::get($this->_values, $field_name);\n\n\t\t// The field's value is not set\n\t\tif ($value === NULL)\n\t\t{\n\t\t\treturn NULL;\n\t\t}\n\n\t\tif ($field = $this->_meta->field($field_name))\n\t\t{\n\t\t\t// If the field is defined, process the value using the field\n\t\t\t// object's `get` method.\n\t\t\t$value = $field->get($value);\n\t\t}\n\n\t\treturn $value;\n\t}",
"private function getField($fieldName)\n {\n $form = $this->form;\n $field = $form->get($fieldName)->getConfig();\n $field->typeName = $this->getFieldTypeName($field);\n return $field;\n }",
"public function getByName($name, $type = BasePeer::TYPE_FIELDNAME)\n {\n $pos = JadwalPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM);\n $field = $this->getByPosition($pos);\n\n return $field;\n }",
"public function getField(): string\n {\n return $this->field;\n }",
"public static function getFieldValue($object, $fieldName) {\n if ( strpos($fieldName, '.') === false ) {\n if ( $object->hasMethod($fieldName) ) {\n // Method on object\n return $object->$fieldName();\n } else {\n // Bog standard field\n return $object->$fieldName;\n }\n }\n // Using dot notation\n list($baseFieldName, $relationFieldName) = explode('.', $fieldName, 2);\n // has_one\n if ( in_array($baseFieldName, array_keys($object->has_one())) ) {\n $field = $object->getComponent($baseFieldName);\n return $this->getFieldValue($field, $relationFieldName);\n }\n // has_many\n if ( in_array($baseFieldName, array_keys($object->has_many())) ) {\n // loop through and get string values for all components\n $tmp = '';\n $components = $object->getComponents($baseFieldName);\n foreach( $components as $component ) {\n $tmp .= $this->getFieldValue($component, $relationFieldName).\"\\n\";\n }\n return $tmp;\n }\n // many_many\n if ( in_array($baseFieldName, array_keys($object->many_many())) ) {\n // loop through and get string values for all components\n $tmp = '';\n $components = $object->getManyManyComponents($baseFieldName);\n foreach( $components as $component ) {\n $tmp .= $this->getFieldValue($component, $relationFieldName).\"\\n\";\n }\n return $tmp;\n }\n // Nope, not able to be indexed :-(\n return '';\n }",
"public function get($name) {\n\t\treturn $this->$name;\n\t}",
"public function getField($name)\n {\n if (!array_key_exists($name, $this->fields)) {\n throw new UnexpectedValueException('Trying to access an undefined field (`' . $name . '`).');\n }\n\n return $this->fields[$name];\n }",
"public function __get(string $field)\n\t{\n\t\treturn $this->getValue($field);\n\t}",
"public function get($campo) {\n return $this->$campo;\n }",
"public function getByName($name, $type = BasePeer::TYPE_FIELDNAME)\n {\n $pos = BangunanPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM);\n $field = $this->getByPosition($pos);\n\n return $field;\n }",
"private function _getField($field, array &$fieldHandleParts = null)\n {\n if (is_numeric($field)) {\n $fieldHandleParts = null;\n return Craft::$app->getFields()->getFieldById($field);\n }\n\n $fieldHandleParts = explode('.', $field);\n return $this->fields[$fieldHandleParts[0]] ?? null;\n }",
"public function __get($field)\n {\n if ($field == 'userId')\n {\n return $this->uid;\n }\n else \n {\n return $this->fields[$field];\n }\n }",
"public function __get($name)\n {\n if(array_key_exists($name, $this->extraFields)){\n return $this->extraFields[$name]->getValue();\n }\n return parent::__get($name);\n }",
"public function get($name)\n\t{\n\t\tif ( $name === 'id' )\n\t\t{\n\t\t\treturn $this->getID();\n\t\t}\n\t\t\n\t\tif ( isset($this->rest[$name]) )\n\t\t{\n\t\t\treturn $this->rest[$name];\n\t\t}\n\t\t\n\t\tif ( ! isset($this->members[$name]) )\n\t\t{\n\t\t\tthrow new DOMemberNotFoundException($name);\n\t\t}\n\t\t\n\t\treturn $this->values[$name];\n\t}",
"private function getFieldFromRequest($fieldName)\n {\n $request = $this->getRequest();\n\n $fieldValue = '';\n if ($request->getMethod() == 'POST') {\n $formData = $request->request->get('form'); // form fields\n if (!empty($formData[$fieldName])) {\n $fieldValue = $formData[$fieldName];\n }\n } elseif ($request->getMethod() == 'GET') {\n if ($request->query->get($fieldName)) {\n $fieldValue = urldecode($request->query->get($fieldName));\n }\n }\n\n return $fieldValue;\n }",
"public function getField(string $name, $default = null);",
"function getField($campo)\n{\n\treturn $this->res2[$campo];\n}",
"public function getFieldObject() {}",
"public function get($name);",
"public function get($name);",
"public function get($name);",
"public function get($name);",
"public function get($name);"
] | [
"0.7681914",
"0.766541",
"0.75596255",
"0.7506295",
"0.743647",
"0.7333994",
"0.72660106",
"0.70515186",
"0.7032121",
"0.7000572",
"0.6946211",
"0.6921556",
"0.6921556",
"0.69073516",
"0.68666327",
"0.6780388",
"0.67717224",
"0.67544067",
"0.67388904",
"0.6735364",
"0.6720807",
"0.6693005",
"0.6691866",
"0.66720134",
"0.6641894",
"0.6622163",
"0.66086143",
"0.65837955",
"0.65748334",
"0.657005",
"0.65302026",
"0.6520417",
"0.65179306",
"0.65065676",
"0.64969975",
"0.64965093",
"0.6479086",
"0.6475329",
"0.64663047",
"0.6456165",
"0.64442337",
"0.64360315",
"0.64312404",
"0.6422848",
"0.6422848",
"0.6422848",
"0.641788",
"0.6412381",
"0.6366905",
"0.63461727",
"0.63396275",
"0.6326589",
"0.63149434",
"0.6313881",
"0.63107723",
"0.6294098",
"0.62888455",
"0.6276602",
"0.62703913",
"0.6238965",
"0.62312984",
"0.6216041",
"0.61817175",
"0.617546",
"0.6170521",
"0.61702144",
"0.61627126",
"0.6156051",
"0.6153172",
"0.6140168",
"0.6134167",
"0.6134069",
"0.6109259",
"0.60856444",
"0.60849303",
"0.60833746",
"0.60813874",
"0.60710675",
"0.60694945",
"0.60685855",
"0.6067233",
"0.6056296",
"0.60436213",
"0.603726",
"0.6034715",
"0.60328007",
"0.6026971",
"0.60032636",
"0.60002637",
"0.59978575",
"0.599586",
"0.59901816",
"0.59867096",
"0.59551495",
"0.5930038",
"0.5928641",
"0.59268045",
"0.59268045",
"0.59268045",
"0.59268045",
"0.59268045"
] | 0.0 | -1 |
Retrieves a field from the object by Position as specified in the xml schema. Zerobased. | public function getByPosition($pos)
{
switch ($pos) {
case 0:
return $this->getOpPrimeId();
break;
case 1:
return $this->getOpId();
break;
case 2:
return $this->getOpPrimeLibelle();
break;
case 3:
return $this->getOpPrimeNumero();
break;
case 4:
return $this->getGdlArtId();
break;
case 5:
return $this->getOperationPrimeCurrencyId();
break;
case 6:
return $this->getOperationPrimeRRewardTypeId();
break;
case 7:
return $this->getOperationPrimeRRewardExpeditionModeId();
break;
case 8:
return $this->getOperationPrimeRRewardTransporterId();
break;
case 9:
return $this->getOperationPrimeFixedAmount();
break;
case 10:
return $this->getOperationPrimeProductPricePourcentage();
break;
case 11:
return $this->getOperationPrimeMaximumAmount();
break;
default:
return null;
break;
} // switch()
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getFieldByPosition($position) {\n\t\tforeach ($this->fields as $field) {\n\t\t\tif ($field instanceof Field && $field->getPosition() == $position) {\n\t\t\t\treturn $field;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public function getFieldByPosition($position) {\n\t\tforeach ($this->fields as $field) {\n\t\t\tif ($field->getPosition() == $position) {\n\t\t\t\treturn $field;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public function getField(int $position): FieldInterface\n {\n return $this->fields[$position] ?? $this->fields[$position] = $this->instantiateField($position);\n }",
"public function get($field);",
"public function get($field);",
"function FetchField($fieldOffset = -1) \n\t{\n\t\tif ($fieldOffset != -1) {\n\t\t\t$this->fieldmeta_offset = $fieldOffset;\n\t\t}\n\t\t$fieldObject = false;\n\t\t$i=0;\n\t\tforeach($this->fieldmeta as $o) {\n\t\t\tif($i==$this->fieldmeta_offset) {\n\t\t\t\t$fieldObject = $o;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t$i++;\n\t\t}\n\t\t$this->fieldmeta_offset++;\n\t\treturn $fieldObject;\n\t}",
"public function getField();",
"public function getField();",
"public function getField();",
"public function getByPosition($pos)\n\t{\n\t\tswitch($pos) {\n\t\t\tcase 0:\n\t\t\t\treturn $this->getId();\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\treturn $this->getUfId();\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\treturn $this->getNome();\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\treturn $this->getSlug();\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\treturn $this->getLongitude();\n\t\t\t\tbreak;\n\t\t\tcase 5:\n\t\t\t\treturn $this->getLatitude();\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\treturn null;\n\t\t\t\tbreak;\n\t\t} // switch()\n\t}",
"function getFieldValue($field);",
"public function get_field(/* .... */)\n {\n return $this->_field;\n }",
"public function fetchField();",
"public function getField($field_name);",
"public function get($field) {\r\n\t\treturn $this -> fields[$field];\r\n\t}",
"public function getByPosition($pos)\n {\n switch ($pos) {\n case 0:\n return $this->getId();\n break;\n case 1:\n return $this->getName();\n break;\n case 2:\n return $this->getIsActive();\n break;\n case 3:\n return $this->getIsClosed();\n break;\n case 4:\n return $this->getFromDate();\n break;\n case 5:\n return $this->getToDate();\n break;\n case 6:\n return $this->getSortableRank();\n break;\n default:\n return null;\n break;\n } // switch()\n }",
"public abstract function FetchField();",
"public function getByPosition($pos)\n {\n switch ($pos) {\n case 0:\n return $this->getId();\n break;\n case 1:\n return $this->getName();\n break;\n case 2:\n return $this->getOpendate();\n break;\n case 3:\n return $this->getClosedate();\n break;\n case 4:\n return $this->getStatus();\n break;\n case 5:\n return $this->getInfotext();\n break;\n case 6:\n return $this->getForbook();\n break;\n case 7:\n return $this->getUserSys();\n break;\n case 8:\n return $this->getConfigSys();\n break;\n case 9:\n return $this->getSplit();\n break;\n case 10:\n return $this->getParentnode();\n break;\n case 11:\n return $this->getSort();\n break;\n default:\n return null;\n break;\n } // switch()\n }",
"function getfield($field){\n\n\t\treturn($this->record[$field]);\n\t}",
"public function getField($name) { return $this->fields[$name]; }",
"public function getByPosition($pos)\n {\n switch ($pos) {\n case 0:\n return $this->getId();\n break;\n case 1:\n return $this->getNickname();\n break;\n case 2:\n return $this->getEmail();\n break;\n case 3:\n return $this->getAge();\n break;\n case 4:\n return $this->getSex();\n break;\n case 5:\n return $this->getCreatedAt();\n break;\n case 6:\n return $this->getUpdatedAt();\n break;\n default:\n return null;\n break;\n } // switch()\n }",
"function getValue(int $field);",
"public function get(string $name): FieldContract;",
"public function getField($fieldName) {}",
"public function getField($name) {\n return $this->body->getField($name);\n }",
"public function get($position)\n\t{\n\t\tif($position < 0 || $position >= $this->length()) {\n\t\t\treturn null;\n\t\t}\n\n\t\t$part = $this->parts[$position];\n\n\t\tif((string)(int)$part == $part) {\n\t\t\t$part = (int)$part;\n\t\t}\n\n\t\treturn $part;\n\t}",
"function getValueFromField()\r\n\t{\r\n\t\treturn $this->row[ key( $this->mapping ) ];\r\n\t}",
"public function _get($field) {\n\t\tif(property_exists($this, $field)) return $this->{$field}; \n\t\telse return NULL;\n\t}",
"public function getFieldObject() {}",
"public function getByPosition($pos)\n {\n switch ($pos) {\n case 0:\n return $this->getFeatureCvtermId();\n break;\n case 1:\n return $this->getFeatureId();\n break;\n case 2:\n return $this->getCvtermId();\n break;\n case 3:\n return $this->getPubId();\n break;\n case 4:\n return $this->getIsNot();\n break;\n case 5:\n return $this->getRank();\n break;\n default:\n return null;\n break;\n } // switch()\n }",
"public function getField()\n {\n return $this->_field;\n }",
"public function getByPosition($pos)\n {\n switch ($pos) {\n case 0:\n return $this->getArticleId();\n break;\n case 1:\n return $this->getDescription();\n break;\n case 2:\n return $this->getPrice();\n break;\n case 3:\n return $this->getCreation();\n break;\n case 4:\n return $this->getVisible();\n break;\n case 5:\n return $this->getShapeId();\n break;\n case 6:\n return $this->getCakeTypeId();\n break;\n default:\n return null;\n break;\n } // switch()\n }",
"public function getByPosition($pos)\n\t{\n\t\tswitch($pos) {\n\t\t\tcase 0:\n\t\t\t\treturn $this->getId();\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\treturn $this->getEmail();\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\treturn $this->getDisplayName();\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\treturn $this->getRealName();\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\treturn $this->getLocation();\n\t\t\t\tbreak;\n\t\t\tcase 5:\n\t\t\t\treturn $this->getWebpage();\n\t\t\t\tbreak;\n\t\t\tcase 6:\n\t\t\t\treturn $this->getCountry();\n\t\t\t\tbreak;\n\t\t\tcase 7:\n\t\t\t\treturn $this->getPostalCode();\n\t\t\t\tbreak;\n\t\t\tcase 8:\n\t\t\t\treturn $this->getBirthday();\n\t\t\t\tbreak;\n\t\t\tcase 9:\n\t\t\t\treturn $this->getGravatarAddress();\n\t\t\t\tbreak;\n\t\t\tcase 10:\n\t\t\t\treturn $this->getInfo();\n\t\t\t\tbreak;\n\t\t\tcase 11:\n\t\t\t\treturn $this->getPlatform();\n\t\t\t\tbreak;\n\t\t\tcase 12:\n\t\t\t\treturn $this->getExperienceScore();\n\t\t\t\tbreak;\n\t\t\tcase 13:\n\t\t\t\treturn $this->getUpVotes();\n\t\t\t\tbreak;\n\t\t\tcase 14:\n\t\t\t\treturn $this->getDownVotes();\n\t\t\t\tbreak;\n\t\t\tcase 15:\n\t\t\t\treturn $this->getIsGuest();\n\t\t\t\tbreak;\n\t\t\tcase 16:\n\t\t\t\treturn $this->getIsAdmin();\n\t\t\t\tbreak;\n\t\t\tcase 17:\n\t\t\t\treturn $this->getTodayVotes();\n\t\t\t\tbreak;\n\t\t\tcase 18:\n\t\t\t\treturn $this->getEmailOn();\n\t\t\t\tbreak;\n\t\t\tcase 19:\n\t\t\t\treturn $this->getLastEmail();\n\t\t\t\tbreak;\n\t\t\tcase 20:\n\t\t\t\treturn $this->getCreatedAt();\n\t\t\t\tbreak;\n\t\t\tcase 21:\n\t\t\t\treturn $this->getUpdatedAt();\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\treturn null;\n\t\t\t\tbreak;\n\t\t} // switch()\n\t}",
"public function getByPosition($pos)\n\t{\n\t\tswitch($pos) {\n\t\t\tcase 0:\n\t\t\t\treturn $this->getId();\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\treturn $this->getSubserial();\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\treturn $this->getAnnounce();\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\treturn $this->getMail();\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\treturn $this->getSerialId();\n\t\t\t\tbreak;\n\t\t\tcase 5:\n\t\t\t\treturn $this->getRank();\n\t\t\t\tbreak;\n\t\t\tcase 6:\n\t\t\t\treturn $this->getPrecinctId();\n\t\t\t\tbreak;\n\t\t\tcase 7:\n\t\t\t\treturn $this->getGenreId();\n\t\t\t\tbreak;\n\t\t\tcase 8:\n\t\t\t\treturn $this->getBroadcastId();\n\t\t\t\tbreak;\n\t\t\tcase 9:\n\t\t\t\treturn $this->getCopyright();\n\t\t\t\tbreak;\n\t\t\tcase 10:\n\t\t\t\treturn $this->getStatusId();\n\t\t\t\tbreak;\n\t\t\tcase 11:\n\t\t\t\treturn $this->getRecorddate();\n\t\t\t\tbreak;\n\t\t\tcase 12:\n\t\t\t\treturn $this->getPublicdate();\n\t\t\t\tbreak;\n\t\t\tcase 13:\n\t\t\t\treturn $this->getEditorial1();\n\t\t\t\tbreak;\n\t\t\tcase 14:\n\t\t\t\treturn $this->getEditorial2();\n\t\t\t\tbreak;\n\t\t\tcase 15:\n\t\t\t\treturn $this->getEditorial3();\n\t\t\t\tbreak;\n\t\t\tcase 16:\n\t\t\t\treturn $this->getAudio();\n\t\t\t\tbreak;\n\t\t\tcase 17:\n\t\t\t\treturn $this->getDuration();\n\t\t\t\tbreak;\n\t\t\tcase 18:\n\t\t\t\treturn $this->getNumView();\n\t\t\t\tbreak;\n\t\t\tcase 19:\n\t\t\t\treturn $this->getComments();\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\treturn null;\n\t\t\t\tbreak;\n\t\t} // switch()\n\t}",
"public function getField() {\n\t\treturn $this->_field;\n\t}",
"public function getFieldValue(/*string*/ $fieldName);",
"function FetchField($off = 0)\n\t{\n\n\t\t$o= new ADOFieldObject();\n\t\t$o->name = @pg_field_name($this->_queryID,$off);\n\t\t$o->type = @pg_field_type($this->_queryID,$off);\n\t\t$o->max_length = @pg_fieldsize($this->_queryID,$off);\n\t\treturn $o;\n\t}",
"public function getField()\n {\n $value = $this->name;\n if (null != $this->field) {\n $value = $this->field;\n }\n return $value;\n }",
"public function getField() {\n\t\treturn $this->field; \n\t}",
"function getValueFromField()\n {\n return $this->current_row[ key( $this->mapping ) ];\n }",
"public function getByPosition($pos)\n\t{\n\t\tswitch($pos) {\n\t\t\tcase 0:\n\t\t\t\treturn $this->getVenueid();\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\treturn $this->getAddress();\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\treturn $this->getAddress2();\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\treturn $this->getCity();\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\treturn $this->getProvince();\n\t\t\t\tbreak;\n\t\t\tcase 5:\n\t\t\t\treturn $this->getCountry();\n\t\t\t\tbreak;\n\t\t\tcase 6:\n\t\t\t\treturn $this->getLatitude();\n\t\t\t\tbreak;\n\t\t\tcase 7:\n\t\t\t\treturn $this->getLongitude();\n\t\t\t\tbreak;\n\t\t\tcase 8:\n\t\t\t\treturn $this->getPhone();\n\t\t\t\tbreak;\n\t\t\tcase 9:\n\t\t\t\treturn $this->getName();\n\t\t\t\tbreak;\n\t\t\tcase 10:\n\t\t\t\treturn $this->getDescription();\n\t\t\t\tbreak;\n\t\t\tcase 11:\n\t\t\t\treturn $this->getWebsite();\n\t\t\t\tbreak;\n\t\t\tcase 12:\n\t\t\t\treturn $this->getTwitter();\n\t\t\t\tbreak;\n\t\t\tcase 13:\n\t\t\t\treturn $this->getFacebook();\n\t\t\t\tbreak;\n\t\t\tcase 14:\n\t\t\t\treturn $this->getRssfeed();\n\t\t\t\tbreak;\n\t\t\tcase 15:\n\t\t\t\treturn $this->getClosed();\n\t\t\t\tbreak;\n\t\t\tcase 16:\n\t\t\t\treturn $this->getLastfmid();\n\t\t\t\tbreak;\n\t\t\tcase 17:\n\t\t\t\treturn $this->getSlug();\n\t\t\t\tbreak;\n\t\t\tcase 18:\n\t\t\t\treturn $this->getHasphotos();\n\t\t\t\tbreak;\n\t\t\tcase 19:\n\t\t\t\treturn $this->getSubmittedbyuser();\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\treturn null;\n\t\t\t\tbreak;\n\t\t} // switch()\n\t}",
"function news_get_field( $p_news_id, $p_field_name ) {\r\n\t\t$row = news_get_row( $p_news_id );\r\n\t\treturn ( $row[$p_field_name] );\r\n\t}",
"public function getField() {\n\t\treturn $this->field;\n\t}",
"function getField ( $name )\n\t{\n\t\tif ( ake ( $name , $this->_fields ) )\n\t\t{\n\t\t\treturn $this->_fields[$name] ;\n\t\t}\n\t\treturn null ;\n\t}",
"function getField(){\n\t\treturn $this->Field;\n\t}",
"public function getLookupField() {}",
"public function getProperty($field);",
"public function getField(){\n return $this->field;\n }",
"public function getField($name) {\n\t\treturn $this->fields[$name];\n\t}",
"function &getField($name){\n\t\t$fields =& $this->fields();\n\t\tif ( !isset($fields[$name]) ){\n\t\t\treturn null;\n\t\t} else {\n\t\t\treturn $fields[$name];\n\t\t}\n\t}",
"public function Get ($field) {\n if ($this->structuredResult === null) return null;\n foreach ($this->structuredResult as $info) {\n if ($info['field'] == $field) {\n return $info['data'];\n }\n }\n return null;\n }",
"public function getField()\n {\n return $this->field;\n }",
"public function getField()\n {\n return $this->field;\n }",
"public function getField()\n {\n return $this->field;\n }",
"public function getField()\n {\n return $this->field;\n }",
"public function field()\n {\n if ($this->fieldInstance === null)\n {\n $field = $this->field ?: $this->id;\n\n $this->fieldInstance = $this->entity->fields()->get($field);\n\n if (null === $this->fieldInstance)\n {\n throw new RuntimeException(\"The field {$field} is not found in {$this->entity->getId()} entity.\");\n }\n\n if ( ! $this->fieldInstance instanceof ColumnInterface)\n {\n throw new LogicException(\"In order to use {$field} as a column it must implement SortableInterface.\");\n }\n }\n\n return $this->fieldInstance;\n }",
"function get_field($id=false, $field=false) {\n\t\tif(!$id && !$field) return false;\n\t\tglobal $wpdb;\n\t\t$query = \"SELECT wposts.$field FROM $wpdb->posts wposts WHERE wposts.ID=$id\";\n\t\t$results = $this->query($query);\n\t\tif(isset($results[0])) return $results[0]->$field;\n\t}",
"public function getByPosition($pos)\n\t{\n\t\tswitch($pos) {\n\t\t\tcase 0:\n\t\t\t\treturn $this->getId();\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\treturn $this->getPartieId();\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\treturn $this->getReplicaPostId();\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\treturn $this->getType();\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\treturn $this->getTitle();\n\t\t\t\tbreak;\n\t\t\tcase 5:\n\t\t\t\treturn $this->getUrl();\n\t\t\t\tbreak;\n\t\t\tcase 6:\n\t\t\t\treturn $this->getText();\n\t\t\t\tbreak;\n\t\t\tcase 7:\n\t\t\t\treturn $this->getPhotoFile();\n\t\t\t\tbreak;\n\t\t\tcase 8:\n\t\t\t\treturn $this->getPhotoUrl();\n\t\t\t\tbreak;\n\t\t\tcase 9:\n\t\t\t\treturn $this->getQuote();\n\t\t\t\tbreak;\n\t\t\tcase 10:\n\t\t\t\treturn $this->getQuoteAuthor();\n\t\t\t\tbreak;\n\t\t\tcase 11:\n\t\t\t\treturn $this->getLinkTitle();\n\t\t\t\tbreak;\n\t\t\tcase 12:\n\t\t\t\treturn $this->getLinkUrl();\n\t\t\t\tbreak;\n\t\t\tcase 13:\n\t\t\t\treturn $this->getLinkImage();\n\t\t\t\tbreak;\n\t\t\tcase 14:\n\t\t\t\treturn $this->getVideoUrl();\n\t\t\t\tbreak;\n\t\t\tcase 15:\n\t\t\t\treturn $this->getTotalIndex();\n\t\t\t\tbreak;\n\t\t\tcase 16:\n\t\t\t\treturn $this->getBestBadge1();\n\t\t\t\tbreak;\n\t\t\tcase 17:\n\t\t\t\treturn $this->getBestBadge2();\n\t\t\t\tbreak;\n\t\t\tcase 18:\n\t\t\t\treturn $this->getIsPublished();\n\t\t\t\tbreak;\n\t\t\tcase 19:\n\t\t\t\treturn $this->getIsFeatured();\n\t\t\t\tbreak;\n\t\t\tcase 20:\n\t\t\t\treturn $this->getCommentsCount();\n\t\t\t\tbreak;\n\t\t\tcase 21:\n\t\t\t\treturn $this->getCreatedAt();\n\t\t\t\tbreak;\n\t\t\tcase 22:\n\t\t\t\treturn $this->getUpdatedAt();\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\treturn null;\n\t\t\t\tbreak;\n\t\t} // switch()\n\t}",
"public function getField($pk = null)\n\t{\n\t\treturn parent::getRecord($pk);\n\t}",
"public function position()\n\t{\n\t\treturn $this->getField('position');\n\t}",
"public function getField($name) {\n return $this->getFields()[$name];\n }",
"public function getByPosition($pos)\n {\n switch ($pos) {\n case 0:\n return $this->getId();\n break;\n case 1:\n return $this->getMcode();\n break;\n case 2:\n return $this->getNameF();\n break;\n case 3:\n return $this->getNameT();\n break;\n case 4:\n return $this->getNameE();\n break;\n case 5:\n return $this->getPosid();\n break;\n case 6:\n return $this->getMdate();\n break;\n case 7:\n return $this->getBirthday();\n break;\n case 8:\n return $this->getNational();\n break;\n case 9:\n return $this->getIdTax();\n break;\n case 10:\n return $this->getIdCard();\n break;\n case 11:\n return $this->getIdCardImg();\n break;\n case 12:\n return $this->getIdCardImgDate();\n break;\n case 13:\n return $this->getZip();\n break;\n case 14:\n return $this->getHomeT();\n break;\n case 15:\n return $this->getOfficeT();\n break;\n case 16:\n return $this->getMobile();\n break;\n case 17:\n return $this->getMcodeAcc();\n break;\n case 18:\n return $this->getBonusrec();\n break;\n case 19:\n return $this->getBankcode();\n break;\n case 20:\n return $this->getBranch();\n break;\n case 21:\n return $this->getAccType();\n break;\n case 22:\n return $this->getAccNo();\n break;\n case 23:\n return $this->getAccNoImg();\n break;\n case 24:\n return $this->getAccNoImgDate();\n break;\n case 25:\n return $this->getAccName();\n break;\n case 26:\n return $this->getAccProv();\n break;\n case 27:\n return $this->getSvCode();\n break;\n case 28:\n return $this->getSpCode();\n break;\n case 29:\n return $this->getSpName();\n break;\n case 30:\n return $this->getSpCode2();\n break;\n case 31:\n return $this->getSpName2();\n break;\n case 32:\n return $this->getUpaCode();\n break;\n case 33:\n return $this->getUpaName();\n break;\n case 34:\n return $this->getLr();\n break;\n case 35:\n return $this->getComplete();\n break;\n case 36:\n return $this->getCompdate();\n break;\n case 37:\n return $this->getModate();\n break;\n case 38:\n return $this->getUsercode();\n break;\n case 39:\n return $this->getNameB();\n break;\n case 40:\n return $this->getSex();\n break;\n case 41:\n return $this->getAge();\n break;\n case 42:\n return $this->getOccupation();\n break;\n case 43:\n return $this->getStatus();\n break;\n case 44:\n return $this->getMarName();\n break;\n case 45:\n return $this->getMarAge();\n break;\n case 46:\n return $this->getEmail();\n break;\n case 47:\n return $this->getBeneficiaries();\n break;\n case 48:\n return $this->getRelation();\n break;\n case 49:\n return $this->getDistrictid();\n break;\n case 50:\n return $this->getAmphurid();\n break;\n case 51:\n return $this->getProvinceid();\n break;\n case 52:\n return $this->getFax();\n break;\n case 53:\n return $this->getInvCode();\n break;\n case 54:\n return $this->getUid();\n break;\n case 55:\n return $this->getOid();\n break;\n case 56:\n return $this->getPosCur();\n break;\n case 57:\n return $this->getPosCur1();\n break;\n case 58:\n return $this->getPosCur2();\n break;\n case 59:\n return $this->getPosCur3();\n break;\n case 60:\n return $this->getPosCur4();\n break;\n case 61:\n return $this->getPosCurTmp();\n break;\n case 62:\n return $this->getRposCur4();\n break;\n case 63:\n return $this->getPosCur3Date();\n break;\n case 64:\n return $this->getMemdesc();\n break;\n case 65:\n return $this->getCmp();\n break;\n case 66:\n return $this->getCmp2();\n break;\n case 67:\n return $this->getCmp3();\n break;\n case 68:\n return $this->getCcmp();\n break;\n case 69:\n return $this->getCcmp2();\n break;\n case 70:\n return $this->getCcmp3();\n break;\n case 71:\n return $this->getAddress();\n break;\n case 72:\n return $this->getStreet();\n break;\n case 73:\n return $this->getBuilding();\n break;\n case 74:\n return $this->getVillage();\n break;\n case 75:\n return $this->getSoi();\n break;\n case 76:\n return $this->getEwallet();\n break;\n case 77:\n return $this->getEatoship();\n break;\n case 78:\n return $this->getEcom();\n break;\n case 79:\n return $this->getBmdate1();\n break;\n case 80:\n return $this->getBmdate2();\n break;\n case 81:\n return $this->getBmdate3();\n break;\n case 82:\n return $this->getCbmdate1();\n break;\n case 83:\n return $this->getCbmdate2();\n break;\n case 84:\n return $this->getCbmdate3();\n break;\n case 85:\n return $this->getOnline();\n break;\n case 86:\n return $this->getCnameF();\n break;\n case 87:\n return $this->getCnameT();\n break;\n case 88:\n return $this->getCnameE();\n break;\n case 89:\n return $this->getCnameB();\n break;\n case 90:\n return $this->getCbirthday();\n break;\n case 91:\n return $this->getCnational();\n break;\n case 92:\n return $this->getCidTax();\n break;\n case 93:\n return $this->getCidCard();\n break;\n case 94:\n return $this->getCaddress();\n break;\n case 95:\n return $this->getCbuilding();\n break;\n case 96:\n return $this->getCvillage();\n break;\n case 97:\n return $this->getCstreet();\n break;\n case 98:\n return $this->getCsoi();\n break;\n case 99:\n return $this->getCzip();\n break;\n case 100:\n return $this->getChomeT();\n break;\n case 101:\n return $this->getCofficeT();\n break;\n case 102:\n return $this->getCmobile();\n break;\n case 103:\n return $this->getCfax();\n break;\n case 104:\n return $this->getCsex();\n break;\n case 105:\n return $this->getCemail();\n break;\n case 106:\n return $this->getCdistrictid();\n break;\n case 107:\n return $this->getCamphurid();\n break;\n case 108:\n return $this->getCprovinceid();\n break;\n case 109:\n return $this->getInameF();\n break;\n case 110:\n return $this->getInameT();\n break;\n case 111:\n return $this->getIrelation();\n break;\n case 112:\n return $this->getIphone();\n break;\n case 113:\n return $this->getIidCard();\n break;\n case 114:\n return $this->getStatusDoc();\n break;\n case 115:\n return $this->getStatusExpire();\n break;\n case 116:\n return $this->getStatusTerminate();\n break;\n case 117:\n return $this->getTerminateDate();\n break;\n case 118:\n return $this->getStatusSuspend();\n break;\n case 119:\n return $this->getSuspendDate();\n break;\n case 120:\n return $this->getStatusBlacklist();\n break;\n case 121:\n return $this->getStatusAto();\n break;\n case 122:\n return $this->getSletter();\n break;\n case 123:\n return $this->getSinvCode();\n break;\n case 124:\n return $this->getTxtoption();\n break;\n case 125:\n return $this->getSetregis();\n break;\n case 126:\n return $this->getSlr();\n break;\n case 127:\n return $this->getLocationbase();\n break;\n case 128:\n return $this->getCidMobile();\n break;\n case 129:\n return $this->getBewallet();\n break;\n case 130:\n return $this->getBvoucher();\n break;\n case 131:\n return $this->getVoucher();\n break;\n case 132:\n return $this->getManager();\n break;\n case 133:\n return $this->getMtype();\n break;\n case 134:\n return $this->getMtype1();\n break;\n case 135:\n return $this->getMtype2();\n break;\n case 136:\n return $this->getMvat();\n break;\n case 137:\n return $this->getUidbase();\n break;\n case 138:\n return $this->getExpDate();\n break;\n case 139:\n return $this->getHeadCode();\n break;\n case 140:\n return $this->getPvL();\n break;\n case 141:\n return $this->getPvC();\n break;\n case 142:\n return $this->getHpvL();\n break;\n case 143:\n return $this->getHpvC();\n break;\n case 144:\n return $this->getPvLNextmonth();\n break;\n case 145:\n return $this->getPvCNextmonth();\n break;\n case 146:\n return $this->getPvLLastmonth1();\n break;\n case 147:\n return $this->getPvCLastmonth1();\n break;\n case 148:\n return $this->getPvLLastmonth2();\n break;\n case 149:\n return $this->getPvCLastmonth2();\n break;\n case 150:\n return $this->getRcodeStar();\n break;\n case 151:\n return $this->getBunit();\n break;\n case 152:\n return $this->getProvince();\n break;\n case 153:\n return $this->getLineId();\n break;\n case 154:\n return $this->getFacebookName();\n break;\n case 155:\n return $this->getTypeCom();\n break;\n case 156:\n return $this->getExpPos();\n break;\n case 157:\n return $this->getExpPos60();\n break;\n case 158:\n return $this->getTripPrivate();\n break;\n case 159:\n return $this->getTripTeam();\n break;\n case 160:\n return $this->getMyfile1();\n break;\n case 161:\n return $this->getMyfile2();\n break;\n case 162:\n return $this->getClineId();\n break;\n case 163:\n return $this->getCfacebookName();\n break;\n case 164:\n return $this->getProfileImg();\n break;\n case 165:\n return $this->getAtocom();\n break;\n case 166:\n return $this->getHpv();\n break;\n default:\n return null;\n break;\n } // switch()\n }",
"public function get_field( $query , $i = 0, $j = 0 ) {\n\t\t$result = $this->query( $query );\n\n\t\tif ( empty( $this->_last_result ) )\n\t\t\treturn null;\n\n\t\tif ( ! isset( $this->_last_result[ $i ] ) )\n\t\t\treturn null;\n\n\t\t$fields = array_values( get_object_vars( $this->_last_result[ $i ] ) );\n\n\t\tif ( ! isset( $fields[ $j ] ) )\n\t\t\treturn null;\n\n\t\treturn $fields[ $j ];\n\t}",
"public function getByPosition($pos)\n\t{\n\t\tswitch($pos) {\n\t\t\tcase 0:\n\t\t\t\treturn $this->getId();\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\treturn $this->getPerfilId();\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\treturn $this->getEnderecoId();\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\treturn $this->getCargoId();\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\treturn $this->getDepartamentoId();\n\t\t\t\tbreak;\n\t\t\tcase 5:\n\t\t\t\treturn $this->getMatricula();\n\t\t\t\tbreak;\n\t\t\tcase 6:\n\t\t\t\treturn $this->getNome();\n\t\t\t\tbreak;\n\t\t\tcase 7:\n\t\t\t\treturn $this->getEmail();\n\t\t\t\tbreak;\n\t\t\tcase 8:\n\t\t\t\treturn $this->getDni();\n\t\t\t\tbreak;\n\t\t\tcase 9:\n\t\t\t\treturn $this->getDataNascimento();\n\t\t\t\tbreak;\n\t\t\tcase 10:\n\t\t\t\treturn $this->getDataContratacao();\n\t\t\t\tbreak;\n\t\t\tcase 11:\n\t\t\t\treturn $this->getCelular();\n\t\t\t\tbreak;\n\t\t\tcase 12:\n\t\t\t\treturn $this->getTelefone();\n\t\t\t\tbreak;\n\t\t\tcase 13:\n\t\t\t\treturn $this->getToken();\n\t\t\t\tbreak;\n\t\t\tcase 14:\n\t\t\t\treturn $this->getNomeUsuario();\n\t\t\t\tbreak;\n\t\t\tcase 15:\n\t\t\t\treturn $this->getSenha();\n\t\t\t\tbreak;\n\t\t\tcase 16:\n\t\t\t\treturn $this->getTokenSenha();\n\t\t\t\tbreak;\n\t\t\tcase 17:\n\t\t\t\treturn $this->getTokenFirebase();\n\t\t\t\tbreak;\n\t\t\tcase 18:\n\t\t\t\treturn $this->getDataRescisao();\n\t\t\t\tbreak;\n\t\t\tcase 19:\n\t\t\t\treturn $this->getAtivo();\n\t\t\t\tbreak;\n\t\t\tcase 20:\n\t\t\t\treturn $this->getTipoAcesso();\n\t\t\t\tbreak;\n\t\t\tcase 21:\n\t\t\t\treturn $this->getEstadoCivil();\n\t\t\t\tbreak;\n\t\t\tcase 22:\n\t\t\t\treturn $this->getNivelAcesso();\n\t\t\t\tbreak;\n\t\t\tcase 23:\n\t\t\t\treturn $this->getUsuarioValidado();\n\t\t\t\tbreak;\n\t\t\tcase 24:\n\t\t\t\treturn $this->getSexo();\n\t\t\t\tbreak;\n\t\t\tcase 25:\n\t\t\t\treturn $this->getDataCadastro();\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\treturn null;\n\t\t\t\tbreak;\n\t\t} // switch()\n\t}",
"public function getByPosition($pos)\n {\n switch ($pos) {\n case 0:\n return $this->getBiblioId();\n break;\n case 1:\n return $this->getTitle();\n break;\n case 2:\n return $this->getSor();\n break;\n case 3:\n return $this->getEdition();\n break;\n case 4:\n return $this->getIsbn_issn();\n break;\n case 5:\n return $this->getPublisherId();\n break;\n case 6:\n return $this->getPublish_year();\n break;\n case 7:\n return $this->getCollation();\n break;\n case 8:\n return $this->getSeries_title();\n break;\n case 9:\n return $this->getCall_number();\n break;\n case 10:\n return $this->getLanguageId();\n break;\n case 11:\n return $this->getSource();\n break;\n case 12:\n return $this->getPublishPlaceId();\n break;\n case 13:\n return $this->getClassification();\n break;\n case 14:\n return $this->getNotes();\n break;\n case 15:\n return $this->getImage();\n break;\n case 16:\n return $this->getFile_att();\n break;\n case 17:\n return $this->getOpac_hide();\n break;\n case 18:\n return $this->getPromoted();\n break;\n case 19:\n return $this->getLabels();\n break;\n case 20:\n return $this->getFrequencyId();\n break;\n case 21:\n return $this->getSpec_detail_info();\n break;\n case 22:\n return $this->getInput_date();\n break;\n case 23:\n return $this->getLast_update();\n break;\n case 24:\n return $this->getUid();\n break;\n default:\n return null;\n break;\n } // switch()\n }",
"public abstract function field_name($offset);",
"public function get($field) {\n return key_exists($field, $this->_properties) ? $this->_properties[$field] : null;\n }",
"public function getPlace($field) {\n\t\tif (is_null($this->place)) {\n\t\t\treturn null;\n\t\t}\n\t\treturn $this->place->$field;\n\t}",
"function GetField($field=0){\n\t\t\treturn @mysql_result($this->result,0,$field);\n\t\t}",
"public function getField($fieldKey){\n $fields = $this->getFields();\n return $fields->{$fieldKey};\n }",
"public function __get ($field) {\n return $this->__fields[$field]['data'];\n }",
"public function get(string $field)\n {\n return $this->getArray()[$field] ?? null;\n }",
"public function getByPosition($pos)\n {\n switch ($pos) {\n case 0:\n return $this->getIDCommande();\n break;\n case 1:\n return $this->getRFCommande();\n break;\n case 2:\n return $this->getIDSociete_FK();\n break;\n case 3:\n return $this->getTMode();\n break;\n case 4:\n return $this->getQuantite();\n break;\n case 5:\n return $this->getAPrix();\n break;\n case 6:\n return $this->getADelai();\n break;\n case 7:\n return $this->getDTECommande();\n break;\n case 8:\n return $this->getPriorite();\n break;\n case 9:\n return $this->getCMDNote();\n break;\n default:\n return null;\n break;\n } // switch()\n }",
"public function getField($id)\r\n {\r\n return $this->_fetch($id);\r\n }",
"public function getByPosition($pos)\n {\n switch ($pos) {\n case 0:\n return $this->getPhadtype();\n break;\n case 1:\n return $this->getPhadid();\n break;\n case 2:\n return $this->getPhadsubid();\n break;\n case 3:\n return $this->getPhadsubidseq();\n break;\n case 4:\n return $this->getPhadcont();\n break;\n case 5:\n return $this->getPhadintl();\n break;\n case 6:\n return $this->getPhadtelenbr();\n break;\n case 7:\n return $this->getPhadteleext();\n break;\n case 8:\n return $this->getPhadintlnbr();\n break;\n case 9:\n return $this->getPhadintlext();\n break;\n case 10:\n return $this->getPhadfaxnbr();\n break;\n case 11:\n return $this->getPhadifaxnbr();\n break;\n case 12:\n return $this->getPhadcellnbr();\n break;\n case 13:\n return $this->getPhadicellnbr();\n break;\n case 14:\n return $this->getPhadhomenbr();\n break;\n case 15:\n return $this->getPhadihomenbr();\n break;\n case 16:\n return $this->getPhadwebaddr();\n break;\n case 17:\n return $this->getPhademailaddr();\n break;\n case 18:\n return $this->getPhadname();\n break;\n case 19:\n return $this->getPhadcontname();\n break;\n case 20:\n return $this->getDateupdtd();\n break;\n case 21:\n return $this->getTimeupdtd();\n break;\n case 22:\n return $this->getDummy();\n break;\n default:\n return null;\n break;\n } // switch()\n }",
"public function getField(string $name, string $class=null): Field;",
"public function findField(string $nativeName, string $class=null): Field;",
"public function offsetGet ($offset) {\n return $this->__fields[$offset]['data'];\n }",
"public function __get($field) {\n\t\tif(array_key_exists($field, $this->_data)) {\n\t\t\treturn $this->_data[$field];\n\t\t}\n\t\telse {\n\t\t\tthrow new \\Bedrock\\Model\\Record\\Exception('The specified field \"' . $field . '\" was not found.');\n\t\t}\n\t}",
"public function __get(string $field)\n\t{\n\t\treturn $this->getValue($field);\n\t}",
"function f($field) {\n\t\treturn($this->fetchfield($field));\n\t}",
"public function getByPosition($pos)\n {\n switch ($pos) {\n case 0:\n return $this->getId();\n break;\n case 1:\n return $this->getRefNo();\n break;\n case 2:\n return $this->getUniquekeyid();\n break;\n case 3:\n return $this->getCustomerId();\n break;\n case 4:\n return $this->getAccountNo();\n break;\n case 5:\n return $this->getServiceType();\n break;\n case 6:\n return $this->getServiceDistrictId();\n break;\n case 7:\n return $this->getBillingCycle();\n break;\n case 8:\n return $this->getDueDate();\n break;\n case 9:\n return $this->getBillingFrom();\n break;\n case 10:\n return $this->getBillingTo();\n break;\n case 11:\n return $this->getBillDate();\n break;\n case 12:\n return $this->getRate();\n break;\n case 13:\n return $this->getMeternumber();\n break;\n case 14:\n return $this->getBillingmethod();\n break;\n case 15:\n return $this->getDateoflastreading();\n break;\n case 16:\n return $this->getDateofcurrentreading();\n break;\n case 17:\n return $this->getDaysusage();\n break;\n case 18:\n return $this->getLastmeterreading();\n break;\n case 19:\n return $this->getCurrentmeterreading();\n break;\n case 20:\n return $this->getUnitsconsumed();\n break;\n case 21:\n return $this->getLastpaymentamount();\n break;\n case 22:\n return $this->getLastpaymentdate();\n break;\n case 23:\n return $this->getMetermaintenancecharge();\n break;\n case 24:\n return $this->getDiscounts();\n break;\n case 25:\n return $this->getOthercharges();\n break;\n case 26:\n return $this->getPenaltycharges();\n break;\n case 27:\n return $this->getTaxcharges();\n break;\n case 28:\n return $this->getCharges();\n break;\n case 29:\n return $this->getRoutinecharges();\n break;\n case 30:\n return $this->getBillservicerate();\n break;\n case 31:\n return $this->getBuildingtype();\n break;\n case 32:\n return $this->getRoute();\n break;\n case 33:\n return $this->getUsagetype();\n break;\n case 34:\n return $this->getServiceCharge();\n break;\n case 35:\n return $this->getPreviousBalance();\n break;\n case 36:\n return $this->getPaymentReceived();\n break;\n case 37:\n return $this->getLastPaymentReceivedDate();\n break;\n case 38:\n return $this->getCurrentCharge();\n break;\n case 39:\n return $this->getTotalDue();\n break;\n case 40:\n return $this->getInvoiceNo();\n break;\n case 41:\n return $this->getReceiptNo();\n break;\n case 42:\n return $this->getDateCreated();\n break;\n case 43:\n return $this->getCreator();\n break;\n case 44:\n return $this->getStatus();\n break;\n default:\n return null;\n break;\n } // switch()\n }",
"public function getByPosition($pos)\n\t{\n\t\tswitch($pos) {\n\t\t\tcase 0:\n\t\t\t\treturn $this->getId();\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\treturn $this->getUsername();\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\treturn $this->getEmail();\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\treturn $this->getPassword();\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\treturn $this->getPoints();\n\t\t\t\tbreak;\n\t\t\tcase 5:\n\t\t\t\treturn $this->getCreatedAt();\n\t\t\t\tbreak;\n\t\t\tcase 6:\n\t\t\t\treturn $this->getLastActivityAt();\n\t\t\t\tbreak;\n\t\t\tcase 7:\n\t\t\t\treturn $this->getType();\n\t\t\t\tbreak;\n\t\t\tcase 8:\n\t\t\t\treturn $this->getHidden();\n\t\t\t\tbreak;\n\t\t\tcase 9:\n\t\t\t\treturn $this->getName();\n\t\t\t\tbreak;\n\t\t\tcase 10:\n\t\t\t\treturn $this->getGender();\n\t\t\t\tbreak;\n\t\t\tcase 11:\n\t\t\t\treturn $this->getHometown();\n\t\t\t\tbreak;\n\t\t\tcase 12:\n\t\t\t\treturn $this->getHomePhone();\n\t\t\t\tbreak;\n\t\t\tcase 13:\n\t\t\t\treturn $this->getMobilePhone();\n\t\t\t\tbreak;\n\t\t\tcase 14:\n\t\t\t\treturn $this->getBirthdate();\n\t\t\t\tbreak;\n\t\t\tcase 15:\n\t\t\t\treturn $this->getAddress();\n\t\t\t\tbreak;\n\t\t\tcase 16:\n\t\t\t\treturn $this->getRelationshipStatus();\n\t\t\t\tbreak;\n\t\t\tcase 17:\n\t\t\t\treturn $this->getShowEmail();\n\t\t\t\tbreak;\n\t\t\tcase 18:\n\t\t\t\treturn $this->getShowGender();\n\t\t\t\tbreak;\n\t\t\tcase 19:\n\t\t\t\treturn $this->getShowHometown();\n\t\t\t\tbreak;\n\t\t\tcase 20:\n\t\t\t\treturn $this->getShowHomePhone();\n\t\t\t\tbreak;\n\t\t\tcase 21:\n\t\t\t\treturn $this->getShowMobilePhone();\n\t\t\t\tbreak;\n\t\t\tcase 22:\n\t\t\t\treturn $this->getShowBirthdate();\n\t\t\t\tbreak;\n\t\t\tcase 23:\n\t\t\t\treturn $this->getShowAddress();\n\t\t\t\tbreak;\n\t\t\tcase 24:\n\t\t\t\treturn $this->getShowRelationshipStatus();\n\t\t\t\tbreak;\n\t\t\tcase 25:\n\t\t\t\treturn $this->getPasswordRecoverKey();\n\t\t\t\tbreak;\n\t\t\tcase 26:\n\t\t\t\treturn $this->getCookieKey();\n\t\t\t\tbreak;\n\t\t\tcase 27:\n\t\t\t\treturn $this->getCredit();\n\t\t\t\tbreak;\n\t\t\tcase 28:\n\t\t\t\treturn $this->getInvisible();\n\t\t\t\tbreak;\n\t\t\tcase 29:\n\t\t\t\treturn $this->getNotification();\n\t\t\t\tbreak;\n\t\t\tcase 30:\n\t\t\t\treturn $this->getPhoneNumber();\n\t\t\t\tbreak;\n\t\t\tcase 31:\n\t\t\t\treturn $this->getLogin();\n\t\t\t\tbreak;\n\t\t\tcase 32:\n\t\t\t\treturn $this->getCreditCard();\n\t\t\t\tbreak;\n\t\t\tcase 33:\n\t\t\t\treturn $this->getCreditCardToken();\n\t\t\t\tbreak;\n\t\t\tcase 34:\n\t\t\t\treturn $this->getFirstCharge();\n\t\t\t\tbreak;\n\t\t\tcase 35:\n\t\t\t\treturn $this->getWhereFindUs();\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\treturn null;\n\t\t\t\tbreak;\n\t\t} // switch()\n\t}",
"public function getByPosition($pos)\n\t{\n\t\tswitch($pos) {\n\t\t\tcase 0:\n\t\t\t\treturn $this->getId();\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\treturn $this->getSlug();\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\treturn $this->getName();\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\treturn $this->getCommentaire();\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\treturn $this->getSubject();\n\t\t\t\tbreak;\n\t\t\tcase 5:\n\t\t\t\treturn $this->getTemplateId();\n\t\t\t\tbreak;\n\t\t\tcase 6:\n\t\t\t\treturn $this->getContent();\n\t\t\t\tbreak;\n\t\t\tcase 7:\n\t\t\t\treturn $this->getPreparedContent();\n\t\t\t\tbreak;\n\t\t\tcase 8:\n\t\t\t\treturn $this->getTextContent();\n\t\t\t\tbreak;\n\t\t\tcase 9:\n\t\t\t\treturn $this->getPreparedTextContent();\n\t\t\t\tbreak;\n\t\t\tcase 10:\n\t\t\t\treturn $this->getStatus();\n\t\t\t\tbreak;\n\t\t\tcase 11:\n\t\t\t\treturn $this->getFromName();\n\t\t\t\tbreak;\n\t\t\tcase 12:\n\t\t\t\treturn $this->getFromEmail();\n\t\t\t\tbreak;\n\t\t\tcase 13:\n\t\t\t\treturn $this->getScheduledAt();\n\t\t\t\tbreak;\n\t\t\tcase 14:\n\t\t\t\treturn $this->getScheduleType();\n\t\t\t\tbreak;\n\t\t\tcase 15:\n\t\t\t\treturn $this->getTestType();\n\t\t\t\tbreak;\n\t\t\tcase 16:\n\t\t\t\treturn $this->getTestUserList();\n\t\t\t\tbreak;\n\t\t\tcase 17:\n\t\t\t\treturn $this->getTarget();\n\t\t\t\tbreak;\n\t\t\tcase 18:\n\t\t\t\treturn $this->getReplyToEmail();\n\t\t\t\tbreak;\n\t\t\tcase 19:\n\t\t\t\treturn $this->getReturnPathEmail();\n\t\t\t\tbreak;\n\t\t\tcase 20:\n\t\t\t\treturn $this->getReturnPathServer();\n\t\t\t\tbreak;\n\t\t\tcase 21:\n\t\t\t\treturn $this->getReturnPathLogin();\n\t\t\t\tbreak;\n\t\t\tcase 22:\n\t\t\t\treturn $this->getReturnPathPassword();\n\t\t\t\tbreak;\n\t\t\tcase 23:\n\t\t\t\treturn $this->getIsArchived();\n\t\t\t\tbreak;\n\t\t\tcase 24:\n\t\t\t\treturn $this->getGoogleAnalyticsEnabled();\n\t\t\t\tbreak;\n\t\t\tcase 25:\n\t\t\t\treturn $this->getGoogleAnalyticsSource();\n\t\t\t\tbreak;\n\t\t\tcase 26:\n\t\t\t\treturn $this->getGoogleAnalyticsMedium();\n\t\t\t\tbreak;\n\t\t\tcase 27:\n\t\t\t\treturn $this->getGoogleAnalyticsCampaignType();\n\t\t\t\tbreak;\n\t\t\tcase 28:\n\t\t\t\treturn $this->getGoogleAnalyticsCampaignContent();\n\t\t\t\tbreak;\n\t\t\tcase 29:\n\t\t\t\treturn $this->getGoogleAnalyticsContent();\n\t\t\t\tbreak;\n\t\t\tcase 30:\n\t\t\t\treturn $this->getLitmusTestId();\n\t\t\t\tbreak;\n\t\t\tcase 31:\n\t\t\t\treturn $this->getWebTrackerEnabled();\n\t\t\t\tbreak;\n\t\t\tcase 32:\n\t\t\t\treturn $this->getCreatedAt();\n\t\t\t\tbreak;\n\t\t\tcase 33:\n\t\t\t\treturn $this->getCreatedBy();\n\t\t\t\tbreak;\n\t\t\tcase 34:\n\t\t\t\treturn $this->getUpdatedAt();\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\treturn null;\n\t\t\t\tbreak;\n\t\t} // switch()\n\t}",
"public function __get($field)\n {\n if ($field == 'userId')\n {\n return $this->uid;\n }\n else \n {\n return $this->fields[$field];\n }\n }",
"public function getField()\n {\n return $this->reflectionProperty;\n }",
"public function getField($name)\n {\n return $this->fields[$name];\n }",
"public function getField(string $key);",
"protected function _getReferenceField($name) {\r\n \treturn $this->_referenceMap[$name]['field'];\r\n }",
"public function __get($field){\n if ($field == 'usuario_id'){\n return $this->codigo;\n }\n else{\n return $this->fields[$field];\n }\n }",
"public function getByPosition($pos)\n\t{\n\t\tswitch($pos) {\n\t\t\tcase 0:\n\t\t\t\treturn $this->getCoUsuario();\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\treturn $this->getNuCpf();\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\treturn $this->getDsPassword();\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\treturn $this->getNoUsuario();\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\treturn $this->getDsLogin();\n\t\t\t\tbreak;\n\t\t\tcase 5:\n\t\t\t\treturn $this->getDtUltimoLogin();\n\t\t\t\tbreak;\n\t\t\tcase 6:\n\t\t\t\treturn $this->getDsEmail();\n\t\t\t\tbreak;\n\t\t\tcase 7:\n\t\t\t\treturn $this->getCoPerfil();\n\t\t\t\tbreak;\n\t\t\tcase 8:\n\t\t\t\treturn $this->getNuCelular();\n\t\t\t\tbreak;\n\t\t\tcase 9:\n\t\t\t\treturn $this->getNuTelefone();\n\t\t\t\tbreak;\n\t\t\tcase 10:\n\t\t\t\treturn $this->getStUsuario();\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\treturn null;\n\t\t\t\tbreak;\n\t\t} // switch()\n\t}",
"public function getField($field_name) {\n $retval = NULL;\n // if field exists\n if (array_key_exists($field_name,$this->form_fields)) {\n $retval = $this->form_fields[$field_name];\n }\n return $retval;\n }",
"public function __get($field)\n\t{\n\t\treturn $this->get($field);\n\t}",
"public function getByPosition($pos)\n {\n switch ($pos) {\n case 0:\n return $this->getId();\n break;\n case 1:\n return $this->getCode();\n break;\n case 2:\n return $this->getCategory();\n break;\n case 3:\n return $this->getAddress();\n break;\n case 4:\n return $this->getAddress2();\n break;\n case 5:\n return $this->getZipcode();\n break;\n case 6:\n return $this->getCity();\n break;\n case 7:\n return $this->getGeoCoordinateX();\n break;\n case 8:\n return $this->getGeoCoordinateY();\n break;\n case 9:\n return $this->getDistanceCamping();\n break;\n case 10:\n return $this->getImage();\n break;\n case 11:\n return $this->getPriority();\n break;\n case 12:\n return $this->getTel();\n break;\n case 13:\n return $this->getFax();\n break;\n case 14:\n return $this->getEmail();\n break;\n case 15:\n return $this->getWebsite();\n break;\n case 16:\n return $this->getCreatedAt();\n break;\n case 17:\n return $this->getUpdatedAt();\n break;\n case 18:\n return $this->getActive();\n break;\n default:\n return null;\n break;\n } // switch()\n }",
"public function extractProperty($object, $field_name)\n {\n if (!isset($object[$field_name]))\n {\n return null;\n }\n return $object[$field_name];\n }",
"function get_field( $field, $query = null ){\r\n\t\tif( $row = $this->get_row( $query ) and isset( $row[$field] ) )\r\n\t\t\treturn $row[$field];\r\n\r\n\t}",
"public function __get($name) \n {\n if(isset($this->fields[$name]))\n return $this->fields[$name];\n else\n return null;\n }",
"public function __get($field) {\n\t\tif($field == 'userId'){\n\t\t\treturn $this-uid;\n\t\t}else{\n\t\t\treturn $this->fields($field);\n\t\t}\n\t}",
"public function getByPosition($pos)\n\t{\n\t\tswitch($pos) {\n\t\t\tcase 0:\n\t\t\t\treturn $this->getId();\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\treturn $this->getHazardousCargoFlag();\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\treturn $this->getRequestDate();\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\treturn $this->getRequestReasonDesc();\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\treturn $this->getAgencyName();\n\t\t\t\tbreak;\n\t\t\tcase 5:\n\t\t\t\treturn $this->getReqFirstName();\n\t\t\t\tbreak;\n\t\t\tcase 6:\n\t\t\t\treturn $this->getReqLastName();\n\t\t\t\tbreak;\n\t\t\tcase 7:\n\t\t\t\treturn $this->getAgencyDivision();\n\t\t\t\tbreak;\n\t\t\tcase 8:\n\t\t\t\treturn $this->getReqAddress1();\n\t\t\t\tbreak;\n\t\t\tcase 9:\n\t\t\t\treturn $this->getReqAddress2();\n\t\t\t\tbreak;\n\t\t\tcase 10:\n\t\t\t\treturn $this->getReqCity();\n\t\t\t\tbreak;\n\t\t\tcase 11:\n\t\t\t\treturn $this->getReqState();\n\t\t\t\tbreak;\n\t\t\tcase 12:\n\t\t\t\treturn $this->getReqCountry();\n\t\t\t\tbreak;\n\t\t\tcase 13:\n\t\t\t\treturn $this->getReqZipcode();\n\t\t\t\tbreak;\n\t\t\tcase 14:\n\t\t\t\treturn $this->getReqOfficePhone();\n\t\t\t\tbreak;\n\t\t\tcase 15:\n\t\t\t\treturn $this->getReqOfficeComment();\n\t\t\t\tbreak;\n\t\t\tcase 16:\n\t\t\t\treturn $this->getReqMobilePhone();\n\t\t\t\tbreak;\n\t\t\tcase 17:\n\t\t\t\treturn $this->getReqMobileComment();\n\t\t\t\tbreak;\n\t\t\tcase 18:\n\t\t\t\treturn $this->getReqFaxPhone();\n\t\t\t\tbreak;\n\t\t\tcase 19:\n\t\t\t\treturn $this->getReqFaxComment();\n\t\t\t\tbreak;\n\t\t\tcase 20:\n\t\t\t\treturn $this->getReqPagerPhone();\n\t\t\t\tbreak;\n\t\t\tcase 21:\n\t\t\t\treturn $this->getReqPagerComment();\n\t\t\t\tbreak;\n\t\t\tcase 22:\n\t\t\t\treturn $this->getReqOtherPhone1();\n\t\t\t\tbreak;\n\t\t\tcase 23:\n\t\t\t\treturn $this->getReqOtherComment1();\n\t\t\t\tbreak;\n\t\t\tcase 24:\n\t\t\t\treturn $this->getReqOtherPhone2();\n\t\t\t\tbreak;\n\t\t\tcase 25:\n\t\t\t\treturn $this->getReqOtherComment2();\n\t\t\t\tbreak;\n\t\t\tcase 26:\n\t\t\t\treturn $this->getReqOtherPhone3();\n\t\t\t\tbreak;\n\t\t\tcase 27:\n\t\t\t\treturn $this->getReqOtherComment3();\n\t\t\t\tbreak;\n\t\t\tcase 28:\n\t\t\t\treturn $this->getReqEmail();\n\t\t\t\tbreak;\n\t\t\tcase 29:\n\t\t\t\treturn $this->getReqAltEmail();\n\t\t\t\tbreak;\n\t\t\tcase 30:\n\t\t\t\treturn $this->getContactNotes();\n\t\t\t\tbreak;\n\t\t\tcase 31:\n\t\t\t\treturn $this->getOriginCity();\n\t\t\t\tbreak;\n\t\t\tcase 32:\n\t\t\t\treturn $this->getOriginState();\n\t\t\t\tbreak;\n\t\t\tcase 33:\n\t\t\t\treturn $this->getDestCity();\n\t\t\t\tbreak;\n\t\t\tcase 34:\n\t\t\t\treturn $this->getDestState();\n\t\t\t\tbreak;\n\t\t\tcase 35:\n\t\t\t\treturn $this->getPreferredDate();\n\t\t\t\tbreak;\n\t\t\tcase 36:\n\t\t\t\treturn $this->getAlternativeDate();\n\t\t\t\tbreak;\n\t\t\tcase 37:\n\t\t\t\treturn $this->getTransportType();\n\t\t\t\tbreak;\n\t\t\tcase 38:\n\t\t\t\treturn $this->getRequestPostedDate();\n\t\t\t\tbreak;\n\t\t\tcase 39:\n\t\t\t\treturn $this->getRequestPostedToAfaOrgId();\n\t\t\t\tbreak;\n\t\t\tcase 40:\n\t\t\t\treturn $this->getRequesProcessedDate();\n\t\t\t\tbreak;\n\t\t\tcase 41:\n\t\t\t\treturn $this->getRequestDisposition();\n\t\t\t\tbreak;\n\t\t\tcase 42:\n\t\t\t\treturn $this->getCallerName();\n\t\t\t\tbreak;\n\t\t\tcase 43:\n\t\t\t\treturn $this->getCallerPhone();\n\t\t\t\tbreak;\n\t\t\tcase 44:\n\t\t\t\treturn $this->getRequestPostResults();\n\t\t\t\tbreak;\n\t\t\tcase 45:\n\t\t\t\treturn $this->getRequesterVpoUserId();\n\t\t\t\tbreak;\n\t\t\tcase 46:\n\t\t\t\treturn $this->getSource();\n\t\t\t\tbreak;\n\t\t\tcase 47:\n\t\t\t\treturn $this->getSoapPostFromAfaOrgId();\n\t\t\t\tbreak;\n\t\t\tcase 48:\n\t\t\t\treturn $this->getSoapPostRequestId();\n\t\t\t\tbreak;\n\t\t\tcase 49:\n\t\t\t\treturn $this->getRequestProcessedBy();\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\treturn null;\n\t\t\t\tbreak;\n\t\t} // switch()\n\t}",
"public function getFieldValue($fieldname)\n {\n return $this->{'get'.$fieldname}();\n }",
"public function get($name)\n\t{\n\t\tforeach ($this->getItems() as $field) {\n\t\t\tif ($field->getName() === $name) {\n\t\t\t\treturn $field;\n\t\t\t}\n\t\t}\n\t\t\n\t\tthrow new \\InvalidArgumentException(\"Could not find the field '{$name}'\");\n\t}"
] | [
"0.7545976",
"0.75359285",
"0.7077807",
"0.6612748",
"0.6612748",
"0.64956087",
"0.636723",
"0.636723",
"0.636723",
"0.63647276",
"0.63587666",
"0.6347094",
"0.63450897",
"0.6245128",
"0.6218534",
"0.61854213",
"0.6178202",
"0.6170745",
"0.6168906",
"0.616421",
"0.61340445",
"0.6110954",
"0.6106454",
"0.6100525",
"0.60361487",
"0.6025418",
"0.60021317",
"0.59943795",
"0.59859234",
"0.5978035",
"0.5948798",
"0.5910388",
"0.59047645",
"0.5898982",
"0.588357",
"0.58378357",
"0.58299947",
"0.58223593",
"0.58207476",
"0.58124816",
"0.579856",
"0.5795882",
"0.57857907",
"0.577888",
"0.5769984",
"0.5750526",
"0.57414347",
"0.57389444",
"0.57362556",
"0.5728887",
"0.5723234",
"0.5710284",
"0.5710284",
"0.5710284",
"0.5710284",
"0.57025206",
"0.5698156",
"0.5677562",
"0.56711686",
"0.56697696",
"0.566798",
"0.56678385",
"0.5666906",
"0.5650293",
"0.56452924",
"0.564492",
"0.5639601",
"0.5637987",
"0.56372017",
"0.5633988",
"0.56338793",
"0.56279415",
"0.5608056",
"0.5595381",
"0.5587293",
"0.55834526",
"0.55825347",
"0.5582439",
"0.5578176",
"0.55761003",
"0.55747664",
"0.5563594",
"0.5561325",
"0.5559331",
"0.5553669",
"0.55470735",
"0.55443245",
"0.55374855",
"0.5537252",
"0.5535843",
"0.55260664",
"0.55232495",
"0.5517788",
"0.551541",
"0.55138373",
"0.5512239",
"0.5501605",
"0.5476425",
"0.54673314",
"0.5464418",
"0.5464156"
] | 0.0 | -1 |
Exports the object as an array. You can specify the key type of the array by passing one of the class type constants. | public function toArray($keyType = BasePeer::TYPE_PHPNAME, $includeLazyLoadColumns = true, $alreadyDumpedObjects = array(), $includeForeignObjects = false)
{
if (isset($alreadyDumpedObjects['OperationPrimes'][$this->getPrimaryKey()])) {
return '*RECURSION*';
}
$alreadyDumpedObjects['OperationPrimes'][$this->getPrimaryKey()] = true;
$keys = OperationPrimesPeer::getFieldNames($keyType);
$result = array(
$keys[0] => $this->getOpPrimeId(),
$keys[1] => $this->getOpId(),
$keys[2] => $this->getOpPrimeLibelle(),
$keys[3] => $this->getOpPrimeNumero(),
$keys[4] => $this->getGdlArtId(),
$keys[5] => $this->getOperationPrimeCurrencyId(),
$keys[6] => $this->getOperationPrimeRRewardTypeId(),
$keys[7] => $this->getOperationPrimeRRewardExpeditionModeId(),
$keys[8] => $this->getOperationPrimeRRewardTransporterId(),
$keys[9] => $this->getOperationPrimeFixedAmount(),
$keys[10] => $this->getOperationPrimeProductPricePourcentage(),
$keys[11] => $this->getOperationPrimeMaximumAmount(),
);
$virtualColumns = $this->virtualColumns;
foreach ($virtualColumns as $key => $virtualColumn) {
$result[$key] = $virtualColumn;
}
if ($includeForeignObjects) {
if (null !== $this->aOperations) {
$result['Operations'] = $this->aOperations->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true);
}
if (null !== $this->aRCurrencies) {
$result['RCurrencies'] = $this->aRCurrencies->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true);
}
if (null !== $this->aRRewardTypes) {
$result['RRewardTypes'] = $this->aRRewardTypes->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true);
}
if (null !== $this->aRRewardExpeditionModes) {
$result['RRewardExpeditionModes'] = $this->aRRewardExpeditionModes->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true);
}
if (null !== $this->aRRewardTransporters) {
$result['RRewardTransporters'] = $this->aRRewardTransporters->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true);
}
if (null !== $this->collOperationPrestationss) {
$result['OperationPrestationss'] = $this->collOperationPrestationss->toArray(null, true, $keyType, $includeLazyLoadColumns, $alreadyDumpedObjects);
}
if (null !== $this->collOperationScenariis) {
$result['OperationScenariis'] = $this->collOperationScenariis->toArray(null, true, $keyType, $includeLazyLoadColumns, $alreadyDumpedObjects);
}
if (null !== $this->collLnkOperationPrimeRCountriess) {
$result['LnkOperationPrimeRCountriess'] = $this->collLnkOperationPrimeRCountriess->toArray(null, true, $keyType, $includeLazyLoadColumns, $alreadyDumpedObjects);
}
}
return $result;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function export() {\n\t\t$data = array();\n\t\tforeach ($this->store as $key => $value) {\n\t\t\tif ($value instanceof ELSWAK_Object) {\n\t\t\t\t$data[$key] = $value->_export();\n\t\t\t} elseif ($value instanceof ELSWAK_Array) {\n\t\t\t\t$data[$key] = $value->export();\n\t\t\t} else {\n\t\t\t\t$data[$key] = $value;\n\t\t\t}\n\t\t}\n\t\treturn $data;\n\t}",
"public function toArray(ExportInterface $export);",
"public function export(bool $private = FALSE, bool $meta = FALSE) {\n\t\t$keys = [];\n\t\t$ret = [];\n\n\t\tif ($private) {\n\t\t\t$keys = static::$PRIVATE;\n\t\t} else {\n\t\t\t$keys = static::$PUBLIC;\n\t\t}\n\n\t\tif (!empty(array_intersect(EXP_RESERVED, $keys))) {\n\t\t\tthrow new ExportableException(\n\t\t\t\t\"Reserved key '\".EXP_CLASSNAME.\"' used in object.\"\n\t\t\t);\n\t\t}\n\n\t\tif ($meta) { // Add metadata.\n\t\t\t$ret[EXP_CLASSNAME] = get_class($this);\n\t\t\t$ret[EXP_VISIBILITY] = $private ? 'private' : 'public';\n\t\t}\n\n\t\tforeach ($keys as $k) {\n\t\t\t$current = $this->__exportable_get($k);\n\t\t\tswitch (gettype($current)) {\n\t\t\t\tcase 'object':\n\t\t\t\t\t$ret[$k] = $this->exp_obj(\n\t\t\t\t\t\t$current, $private, $meta\n\t\t\t\t\t);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'array':\n\t\t\t\t\t$ret[$k] = $this->exp_array(\n\t\t\t\t\t\t$current, $private, $meta\n\t\t\t\t\t);\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t$ret[$k] = $current;\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn $ret;\n\t}",
"public function toArray(): array\n {\n return ['foo' => 'bar'];\n }",
"public static function toArray() {\n return [\n 'name' => static::getName(),\n 'identifier' => static::getIdentifier()\n ];\n }",
"public function toArray() {}",
"public function toArray() {}",
"public function toArray() {}",
"public function toArray() {}",
"public function toArray() {}",
"public function toArray() {}",
"public function toArray() {}",
"public function toArray() {}",
"public function toArray() {}",
"public function toArray() {}",
"public function toArray() {}",
"public function toArray() {}",
"public function toArray() {}",
"public function toArray() {}",
"public function toArray() {}",
"public function toArray() {}",
"public function getExportFields(): array;",
"public function toArray(): array\n {\n }",
"function exportArray($foo, $indent = 0, $withNumericKeys = false, $oneLine = false, $return = false) {\n return Ac_Util_Php::exportArray($foo, $indent, $withNumericKeys, $oneLine, $return);\n }",
"public function toArray()\n {\n $type = $this->getType();\n $array = [\n 'type' => $type,\n ];\n if ('function' == $type) {\n $array['function'] = $this->getFunction();\n } else {\n $array['class'] = $this->getClass();\n $array['method'] = $this->getMethod();\n }\n return $array;\n }",
"function toArray($object);",
"public function toArray($cls) {\n return get_object_vars($cls);\n }",
"abstract public function to_array();",
"public function AsArray();",
"public function asArray();",
"public function asArray();",
"public function asArray();",
"public function asArray();",
"public function asArray();",
"public function asArray();",
"public function to_array()\n {\n }",
"public function to_array()\n {\n }",
"public function to_array()\n {\n }",
"public function to_array()\n {\n }",
"public function to_array()\n {\n }",
"public function to_array()\n {\n }",
"public function toArray(): array;",
"public function toArray(): array;",
"public function toArray(): array;",
"public function toArray(): array;",
"public function toArray(): array;",
"public function toArray(): array;",
"public function toArray(): array;",
"public function toArray(): array;",
"public function toArray(): array;",
"public function toArray(): array;",
"public function toArray(): array;",
"public function toArray(): array;",
"public function toArray(): array;",
"public function toArray(): array;",
"public function toArray(): array;",
"public function toArray(): array;",
"public function toArray(): array;",
"public function toArray(): array;",
"public function toArray(): array;",
"public function toArray(): array;",
"public function toArray(): array;",
"public function toArray(): array;",
"public function toArray(): array;",
"public function toArray(): array;",
"public function getExportableValues() {\n\t\telgg_deprecated_notice(__METHOD__ . ' has been deprecated by toObject()', 1.9);\n\t\treturn array(\n\t\t\t'id',\n\t\t\t'entity_guid',\n\t\t\t'name',\n\t\t\t'value',\n\t\t\t'value_type',\n\t\t\t'owner_guid',\n\t\t\t'type',\n\t\t);\n\t}",
"public function toArray():array;",
"public function toArray();",
"public function toArray();",
"public function toArray();",
"public function toArray();",
"public function toArray();",
"public function toArray();",
"public function toArray();",
"public function toArray();",
"public function toArray();",
"public function toArray();",
"public function toArray();",
"public function toArray();",
"public function toArray();",
"public function toArray();",
"public function toArray();",
"public function toArray();",
"public function toArray();",
"public function toArray();",
"public function toArray();",
"public function toArray();",
"public function toArray();",
"public function toArray();",
"public function toArray();",
"public function toArray();",
"public function toArray();",
"public function toArray();",
"public function toArray();",
"public function toArray();",
"public function toArray();",
"public function toArray();",
"public function toArray();",
"public function toArray();",
"public function toArray();",
"public function toArray();"
] | [
"0.67233455",
"0.66456866",
"0.60928863",
"0.6017422",
"0.601661",
"0.5997924",
"0.5997924",
"0.5997924",
"0.5997924",
"0.59974253",
"0.59974253",
"0.599724",
"0.599724",
"0.599724",
"0.599724",
"0.599724",
"0.599724",
"0.599724",
"0.599724",
"0.599724",
"0.599724",
"0.59879005",
"0.5908961",
"0.5906724",
"0.5904289",
"0.5903895",
"0.58997583",
"0.58923936",
"0.58859396",
"0.58742285",
"0.58742285",
"0.58742285",
"0.58742285",
"0.58742285",
"0.58742285",
"0.58720154",
"0.58720154",
"0.5871945",
"0.58716905",
"0.58716905",
"0.58716905",
"0.5846925",
"0.5846925",
"0.5846925",
"0.5846925",
"0.5846925",
"0.5846925",
"0.5846925",
"0.5846925",
"0.5846925",
"0.5846925",
"0.5846925",
"0.5846925",
"0.5846925",
"0.5846925",
"0.5846925",
"0.5846925",
"0.5846925",
"0.5846925",
"0.5846925",
"0.5846925",
"0.5846925",
"0.5846925",
"0.5846925",
"0.5846925",
"0.5822771",
"0.5813231",
"0.58034784",
"0.58034784",
"0.58034784",
"0.58034784",
"0.58034784",
"0.58034784",
"0.58034784",
"0.58034784",
"0.58034784",
"0.58034784",
"0.58034784",
"0.58034784",
"0.58034784",
"0.58034784",
"0.58034784",
"0.58034784",
"0.58034784",
"0.58034784",
"0.58034784",
"0.58034784",
"0.58034784",
"0.58034784",
"0.58034784",
"0.58034784",
"0.58034784",
"0.58034784",
"0.58034784",
"0.58034784",
"0.58034784",
"0.58034784",
"0.58034784",
"0.58034784",
"0.58034784",
"0.58034784"
] | 0.0 | -1 |
Sets a field from the object by name passed in as a string. | public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME)
{
$pos = OperationPrimesPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM);
$this->setByPosition($pos, $value);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function setField(string $name, $value);",
"public function setField(string $name, Field $field);",
"public function setField($name, $value);",
"public function __set($name, $value) {\n if($value instanceof Field){\n if(!isset($value->name)){\n $value->name = $name;\n }\n if(!isset($value->id)){\n $value->id = $name;\n }\n $this->{$name} = $value;\n }\n }",
"public function setField($field);",
"public function setField($field);",
"public function __set($name, $value)\n {\n if (method_exists($this, \"set\" . ucfirst($name)))\n call_user_func\n (array($this, \"set\" . ucfirst($name)), $value);\n else {\n require_once(\"ID3/Exception.php\");\n throw new ID3_Exception(\"Unknown field: \" . $name);\n }\n }",
"public function __set($name, $value)\n {\n $this->fields[$name] = $value;\n }",
"protected function set($obj, $name) {\r\n\t\tif (isset($obj->{$name})) {\r\n\t\t\t$this->$name = $obj->{$name};\r\n\t\t}\r\n\t}",
"public function set($field, $value);",
"public function set($field, $value);",
"function setFieldName($fieldName) {\n\t\t$this->fieldName = $fieldName;\n\t}",
"public function __set($name, $value) {\n if (ctype_alnum($name) && (ctype_digit($name[0]) == FALSE)) {\n $this->$name = $this->db->quote($value);\n $this->properties[$name] = $value;\n }\n }",
"function setFieldName($fieldname, $name)\n\t{\n\t\tif (isset($this->table->fields[$fieldname]))\n\t\t{\n\t\t\t$this->table->fields[$fieldname]->label = $name;\n\t\t\t\n\t\t}\n\t\telse\n\t\t\ttrigger_error(\"No field exists with the name: $fieldname\");\n\t}",
"public function __set(string $name, $field)\n {\n if (is_array($field) === true) {\n // use the array key as name if the name is not set\n $field['name'] = $field['name'] ?? $name;\n $field = Field::factory($field['type'], $field, $this);\n }\n\n return parent::__set($field->name(), $field);\n }",
"public function setField(string $field): void\n {\n $this->field = $field;\n }",
"public function setName($_name)\n {\n if (is_string($_name)) {\n \t$this->_name = $_name;\n }\n }",
"function setField($field) {\r\r\n\t\t$this->field = $field;\r\r\n\t}",
"public function __set($name, $value)\n\t{\n\t\tif ($field = $this->_meta->field($name))\n\t\t{\n\t\t\t$this->set(array($name => $value));\n\t\t}\n\t}",
"public function set_field( string $field, $data ) {\n\t\t$this->data[ $field ] = $data;\n\t}",
"public function SetField($val, $field)\n {\n $this->{$field} = $val;\n //echo $field.'<br>';\n }",
"public function set($field, $value) {\n $this->$field = $value;\n }",
"public function setName($string)\r\n {\r\n $this->_name = $string;\r\n }",
"function setField (&$data, $key, $value)\n{\n if (is_object ($data))\n $data->$key = $value;\n else if (is_array ($data))\n $data[$key] = $value;\n else throw new \\InvalidArgumentException;\n}",
"private function setName($name) {\n if (is_string($name)) {\n $this->name = $name;\n }\n }",
"public function setField($value) {\n\t\t$this->_field = $value;\n\t}",
"public function setName($name, $value)\t{\n\n\t\t\t$this->{$name} = $value;\n\t\t\t\t\n\t\t\t//if (ctype_alnum($name) == true)\n\t\t\t\n\t\t\t//(die('The name of the store should only contain letters');\n\t\t\t\n\t\t\t//$this->name = $name;\n\t\t}",
"function setFieldParam($fieldname, $name, $value)\n\t{\n\t\tif (is_array($fieldname))\n\t\t\tforeach ($fieldname as $fieldn)\n\t\t\t{\n\t\t\t\tif (isset($this->table->fields[$fieldn]))\n\t\t\t\t\t$this->table->fields[$fieldn]->$name = $value;\n\t\t\t\telse\n\t\t\t\t\ttrigger_error(\"No field exists with the name: $fieldn\");\n\t\t\t}\n\t\telse\n\t\t{\n\t\t\tif (isset($this->table->fields[$fieldname]))\n\t\t\t{\n\t\t\t\t$this->table->fields[$fieldname]->$name = $value;\n\t\t\t}\n\t\t\telse\n\t\t\t\ttrigger_error(\"No field exists with the name: $fieldname\");\n\t\t}\n\t}",
"public function __set($name, $value ) {\r\n \r\n // first check whether the given name is valid attribute or not\r\n // for that we are gonna use a switch statement\r\n switch($name) {\r\n \r\n case \"username\" :\r\n $this -> first_name = $value;\r\n break;\r\n default : return \"Invalid\"; // when the passes attribute doesnt exist\r\n }\r\n }",
"public function __set($name, $value)\n {\n $this->obj->$name = $value;\n }",
"public function __set($field, $value) {\r\n $this->$field = $value;\r\n }",
"public function __set($field, $value) {\r\n $this->$field = $value;\r\n }",
"public function setValue($fieldname, $value);",
"public function setField($name, $value)\n\t{\n\t\tif ($this->verify_fields) {\n\t\t\tif (in_array($name, $this->_string_fields)) {\n\t\t\t\t$this->_post_fields[$name] = $value;\n\t\t\t} else {\n\t\t\t\tforeach($this->_pattern_fields as $pattern) {\n\t\t\t\t\tif (preg_match(\"/\" . $pattern . \"/\", $name)) {\n\t\t\t\t\t\t$this->_post_fields[$name] = $value;\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tthrow new PayPalException(\"Error: no field $name exists in the PayPal API.\");\n\t\t\t}\n\t\t} else {\n\t\t\t$this->_post_fields[$name] = $value;\n\t\t}\n\t}",
"function __set ( $name , $value )\n {\n $this->$name=$value;\n }",
"public function setField($field)\n {\n $this->_field = $field;\n }",
"public function __set($name, $value);",
"public function __set($name, $value);",
"public function __set($name, $value)\n\t{\n\t\tif( isset($this->fields[$name]) ) {\n\t\t\t$this->newFields[$name] = $value;\n\t\t} else {\n\t\t\t$this->fields[$name] = $value;\n\t\t}\n\t\treturn $value;\n\t}",
"public function setFieldFromData($name)\n {\n $value = $this->getFieldFormData($name);\n\n return $this->setFieldValue($name, $value);\n }",
"function setField($field, $value)\n {\n $this->_data[$field] = $value;\n }",
"public function set($name, $value);",
"public function set($name, $value);",
"public function set($name, $value);",
"public function __set($_name, $_value);",
"function __set( $name, $value ) {\n\t\t$this->$name = $value;\n\t}",
"public function __set($name, $value){\n $this->$name=$value;\n }",
"public function setField($field) {\n\t\t$this->_field = $field;\n\t}",
"public function set($name, $value){}",
"public function set($field, $value) {\r\n\t\t$this -> fields[$field] = $value;\r\n\t}",
"public function register_field($name)\n {\n $this->$name();\n }",
"function __set($name,$value) {\n\t\t$this->object[$name]=$value;\n\t}",
"public function setName($x) { $this->name = $x; }",
"public function setName($name) {\n\t\t$this->_name = (string)$name;\n\t}",
"function __set($name, $value)\r\n\t{\r\n\t\t$this->{$name} = $value;\r\n\t}",
"function __set($name, $value) {\n $this->$name = $value;\n }",
"public function setPropertyValue(string $field_name, $value): void;",
"public function __set($field, $value){\n if (array_key_exists($field, $this->fields)){\n $this->fields[$field] = $value;\n }\n }",
"public function __set($field, $value){\n if (array_key_exists($field, $this->fields)){\n $this->fields[$field] = $value;\n }\n }",
"public function __set($name, $value){\n $this->$name = $value;\n }",
"public function __set($name, $value) \r\n {\r\n $this->filterFields[$name] = $value;\r\n }",
"public function __set($name, $value){\n switch ($name) {\n case '_patente':\n $this->_patente = $value;\n case '_marca':\n $this->_marca= $value;\n case '_color':\n $this->_color= $value;\n case '_precio':\n $this->_precio= $value;\n default:\n \"No se existe la varible\";\n break;\n }\n $this->$name = $value;\n }",
"public function __set($name, $value)\n\t{\n\t\t$this->setField($name, $value);\n\t}",
"public function __set($fieldName, $fieldValue) {\n\t\t$this->document->$fieldName = json_decode(json_encode($fieldValue));\n\t}",
"private function setAttributeValueFromField(string $field_name) {\n // We need to unaltered field data value here not the field value returned\n // by $this->get($field_name)->value (magic getter).\n $field_value = $this->get($field_name)->getValue();\n // Property not found so let's save it as an attribute value.\n $attribute_value = $this->fieldAttributeConverter()->getAttributeValueFromField($this->entityTypeId, $field_name, $field_value);\n if ($attribute_value !== NULL) {\n $attribute_name = $this->fieldAttributeConverter()->getAttributeName($field_name);\n // Do not leave empty attributes. If generated attribute value is an\n // empty string let's remove it from the entity.\n // (Apigee Edge MGMT UI does not allow to save an entity with empty\n // attribute value, the API does.)\n if ($attribute_value === '') {\n $this->decorated->deleteAttribute($attribute_name);\n }\n else {\n $this->decorated->setAttribute($attribute_name, $attribute_value);\n }\n }\n }",
"public function setName ($name){\n\t\tif($name){\n\t\t\t$this->Item['name'] = substr($name, 0,100);\n\t\t}\n\t}",
"protected function _setValue($name, $value) {}",
"public function set_field($field_slug, $args) {\n\n // Verify if the field has valid parameters\n if ( isset($args['field_name']) && isset($args['field_type']) ) {\n\n self::$the_fields[$field_slug] = $args;\n \n }\n\n }",
"public function setName(?string $name): void\n {\n $this->name['value'] = $name;\n }",
"public function setName(?string $name): void\n {\n $this->name['value'] = $name;\n }",
"public function setName(?string $name): void\n {\n $this->name['value'] = $name;\n }",
"function __set($attr_name, $value) {\n // in $attr_name, replace _ with \" \"\n $attr_name = str_replace('_', ' ', $attr_name);\n $attr_name = ucwords($attr_name);\n $attr_name = str_replace(' ', '', $attr_name);\n $function = \"set$attr_name\";\n //var_dump($function);\n $this->$function($value);\n }",
"public function setCustomField($name, $value){\r\n\t\t$this->_customFields[$name] = $value;\r\n\t}",
"function set($name, $value) {\n $this->vars[$name] = $value; //is_object($value) ? $value->fetch() : $value;\n }",
"public function setName($name)\n {\n $this->_name = (string)$name;\n }",
"public function __set($field, $value){\n\t\tif(array_key_exists($field, $this->fields)){\n\t\t\t$this->fields[$field]=$value;\n\t\t}\n\t}",
"public function setName($x) {\n $this->name = $x;\n }",
"public function setByName($name, $value, $type = BasePeer::TYPE_FIELDNAME)\n {\n $pos = JadwalPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM);\n\n $this->setByPosition($pos, $value);\n }",
"protected function _setName($name, $value) {}",
"public function __set($name, $value) {\n $this->$name = $value;\n }",
"public function setterForField($fieldName, $entity = null)\n {\n if (is_null($entity)) {\n $entity = $this->createEntity();\n } else if (is_string($entity)) {\n $entity = $this->createEntity($entity);\n }\n\n $fieldName = $this->getFieldName($fieldName, $entity);\n\n if ($fieldName) {\n $setterName = 'set' . ucfirst($fieldName);\n if (method_exists($entity, $setterName)) {\n return $setterName;\n }\n }\n\n return null;\n }",
"static public function set($name, $value) {}",
"public function __set($name,$value)\n\t{\n\t\tif (isset($this->searchFields[$name]))\n\t\t\t$this->searchFields[$name]['value'] = $value;\n\t\telse\n\t\t\tparent::__set($name,$value);\n\t}",
"public function __set($field, $value)\n {\n if (array_key_exists($field, $this->fields))\n {\n $this->fields[$field] = $value;\n }\n }",
"public function __set($field, $value)\n {\n if (array_key_exists($field, $this->fields))\n {\n $this->fields[$field] = $value;\n }\n }",
"public function setField(Field $field) {\n\t\t$this->field = $field; \n\t}",
"public function __set($name, $value)\n {\n $this->$name = $value;\n }",
"public function __set($name, $value)\n {\n $this->$name = $value;\n }",
"public function __set($name, $value)\n {\n $this->$name = $value;\n }",
"public function setName(string $name);",
"public function setName(string $name);",
"function setName( &$value )\r\n {\r\n $this->Name = $value;\r\n }",
"function setName( &$value )\r\n {\r\n $this->Name = $value;\r\n }",
"function setName($value) {\n $this->name = $value;\n }",
"public function __set($field, $value) {\n\t\t$this[$field] = $value;\n\t}",
"protected function _setNameValue($key, $name) {}",
"public function setByName($name, $value, $type = BasePeer::TYPE_FIELDNAME)\n {\n $pos = BangunanPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM);\n\n $this->setByPosition($pos, $value);\n }",
"public function set(string $name, $object)\n {\n $this->instances[$name] = $object;\n }",
"public function setName($name){\n $this->_name = $name;\n }",
"function set_name($name) { \n $this->name = $name;\n }",
"public function setName(string $name)\n\t{\n\t\t$this->name=$name; \n\t\t$this->keyModified['name'] = 1; \n\n\t}"
] | [
"0.7794071",
"0.7765753",
"0.7621745",
"0.7159486",
"0.6848369",
"0.6848369",
"0.66906244",
"0.6660367",
"0.6613256",
"0.66118556",
"0.66118556",
"0.6599802",
"0.65166557",
"0.6498437",
"0.6475633",
"0.64500886",
"0.6437298",
"0.64018905",
"0.6397115",
"0.6375107",
"0.6358418",
"0.6350787",
"0.6337682",
"0.6322612",
"0.6289266",
"0.62556",
"0.62420875",
"0.623825",
"0.6233245",
"0.6213884",
"0.6211773",
"0.6211773",
"0.6211605",
"0.62028426",
"0.6199358",
"0.6183685",
"0.6182402",
"0.6182402",
"0.6181121",
"0.6169351",
"0.6169184",
"0.61679536",
"0.61679536",
"0.61679536",
"0.6162005",
"0.6146888",
"0.61426634",
"0.6138673",
"0.6132274",
"0.6129792",
"0.6115682",
"0.6112377",
"0.6110397",
"0.6082812",
"0.60805905",
"0.60791576",
"0.60666513",
"0.6061112",
"0.6061112",
"0.6057102",
"0.6055295",
"0.6049472",
"0.59973615",
"0.5992511",
"0.5989639",
"0.5988527",
"0.59876233",
"0.59830916",
"0.5979021",
"0.5979021",
"0.5979021",
"0.5970349",
"0.5967478",
"0.59655935",
"0.5958559",
"0.5956774",
"0.59411275",
"0.5937868",
"0.5936302",
"0.5920576",
"0.58932954",
"0.58871716",
"0.58769655",
"0.5870456",
"0.5870456",
"0.5865628",
"0.5864162",
"0.5864162",
"0.5864162",
"0.585903",
"0.585903",
"0.58581287",
"0.58581287",
"0.58531785",
"0.58526534",
"0.58384407",
"0.5833566",
"0.5824581",
"0.58199096",
"0.5819392",
"0.5817607"
] | 0.0 | -1 |
Sets a field from the object by Position as specified in the xml schema. Zerobased. | public function setByPosition($pos, $value)
{
switch ($pos) {
case 0:
$this->setOpPrimeId($value);
break;
case 1:
$this->setOpId($value);
break;
case 2:
$this->setOpPrimeLibelle($value);
break;
case 3:
$this->setOpPrimeNumero($value);
break;
case 4:
$this->setGdlArtId($value);
break;
case 5:
$this->setOperationPrimeCurrencyId($value);
break;
case 6:
$this->setOperationPrimeRRewardTypeId($value);
break;
case 7:
$this->setOperationPrimeRRewardExpeditionModeId($value);
break;
case 8:
$this->setOperationPrimeRRewardTransporterId($value);
break;
case 9:
$this->setOperationPrimeFixedAmount($value);
break;
case 10:
$this->setOperationPrimeProductPricePourcentage($value);
break;
case 11:
$this->setOperationPrimeMaximumAmount($value);
break;
} // switch()
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function set(array $array, $pos = 0){\n foreach($this as $field => $valor){\n if(isset($array[$pos])){\n $this->$field = $array[$pos];\n }\n $pos++;\n }\n }",
"public function setByPosition($pos, $value)\n\t{\n\t\tswitch($pos) {\n\t\t\tcase 0:\n\t\t\t\t$this->setId($value);\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\t$this->setUfId($value);\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\t$this->setNome($value);\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\t$this->setSlug($value);\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\t$this->setLongitude($value);\n\t\t\t\tbreak;\n\t\t\tcase 5:\n\t\t\t\t$this->setLatitude($value);\n\t\t\t\tbreak;\n\t\t} // switch()\n\t}",
"public function setField($field);",
"public function setField($field);",
"public function testSetPosition ( ) {\n $this->markTestIncomplete (\n 'This test has not been implemented yet.'\n );\n\n }",
"public function setByPosition($pos, $value)\n\t{\n\t\tswitch($pos) {\n\t\t\tcase 0:\n\t\t\t\t$this->setId($value);\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\t$this->setEmail($value);\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\t$this->setDisplayName($value);\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\t$this->setRealName($value);\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\t$this->setLocation($value);\n\t\t\t\tbreak;\n\t\t\tcase 5:\n\t\t\t\t$this->setWebpage($value);\n\t\t\t\tbreak;\n\t\t\tcase 6:\n\t\t\t\t$this->setCountry($value);\n\t\t\t\tbreak;\n\t\t\tcase 7:\n\t\t\t\t$this->setPostalCode($value);\n\t\t\t\tbreak;\n\t\t\tcase 8:\n\t\t\t\t$this->setBirthday($value);\n\t\t\t\tbreak;\n\t\t\tcase 9:\n\t\t\t\t$this->setGravatarAddress($value);\n\t\t\t\tbreak;\n\t\t\tcase 10:\n\t\t\t\t$this->setInfo($value);\n\t\t\t\tbreak;\n\t\t\tcase 11:\n\t\t\t\t$this->setPlatform($value);\n\t\t\t\tbreak;\n\t\t\tcase 12:\n\t\t\t\t$this->setExperienceScore($value);\n\t\t\t\tbreak;\n\t\t\tcase 13:\n\t\t\t\t$this->setUpVotes($value);\n\t\t\t\tbreak;\n\t\t\tcase 14:\n\t\t\t\t$this->setDownVotes($value);\n\t\t\t\tbreak;\n\t\t\tcase 15:\n\t\t\t\t$this->setIsGuest($value);\n\t\t\t\tbreak;\n\t\t\tcase 16:\n\t\t\t\t$this->setIsAdmin($value);\n\t\t\t\tbreak;\n\t\t\tcase 17:\n\t\t\t\t$this->setTodayVotes($value);\n\t\t\t\tbreak;\n\t\t\tcase 18:\n\t\t\t\t$this->setEmailOn($value);\n\t\t\t\tbreak;\n\t\t\tcase 19:\n\t\t\t\t$this->setLastEmail($value);\n\t\t\t\tbreak;\n\t\t\tcase 20:\n\t\t\t\t$this->setCreatedAt($value);\n\t\t\t\tbreak;\n\t\t\tcase 21:\n\t\t\t\t$this->setUpdatedAt($value);\n\t\t\t\tbreak;\n\t\t} // switch()\n\t}",
"#[@fromDia(xpath= 'dia:attribute[@name=\"pos\"]/dia:point/@val', value= 'array')]\n public function setPosition($position) {\n $this->setPoint('pos', $position);\n }",
"protected abstract function setFields();",
"public function setByPosition($pos, $value)\n {\n switch ($pos) {\n case 0:\n $this->setId($value);\n break;\n case 1:\n $this->setName($value);\n break;\n case 2:\n $this->setIsActive($value);\n break;\n case 3:\n $this->setIsClosed($value);\n break;\n case 4:\n $this->setFromDate($value);\n break;\n case 5:\n $this->setToDate($value);\n break;\n case 6:\n $this->setSortableRank($value);\n break;\n } // switch()\n }",
"public function setPosition() {\n }",
"public function setByPosition($pos, $value)\n\t{\n\t\tswitch($pos) {\n\t\t\tcase 0:\n\t\t\t\t$this->setId($value);\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\t$this->setSubserial($value);\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\t$this->setAnnounce($value);\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\t$this->setMail($value);\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\t$this->setSerialId($value);\n\t\t\t\tbreak;\n\t\t\tcase 5:\n\t\t\t\t$this->setRank($value);\n\t\t\t\tbreak;\n\t\t\tcase 6:\n\t\t\t\t$this->setPrecinctId($value);\n\t\t\t\tbreak;\n\t\t\tcase 7:\n\t\t\t\t$this->setGenreId($value);\n\t\t\t\tbreak;\n\t\t\tcase 8:\n\t\t\t\t$this->setBroadcastId($value);\n\t\t\t\tbreak;\n\t\t\tcase 9:\n\t\t\t\t$this->setCopyright($value);\n\t\t\t\tbreak;\n\t\t\tcase 10:\n\t\t\t\t$this->setStatusId($value);\n\t\t\t\tbreak;\n\t\t\tcase 11:\n\t\t\t\t$this->setRecorddate($value);\n\t\t\t\tbreak;\n\t\t\tcase 12:\n\t\t\t\t$this->setPublicdate($value);\n\t\t\t\tbreak;\n\t\t\tcase 13:\n\t\t\t\t$this->setEditorial1($value);\n\t\t\t\tbreak;\n\t\t\tcase 14:\n\t\t\t\t$this->setEditorial2($value);\n\t\t\t\tbreak;\n\t\t\tcase 15:\n\t\t\t\t$this->setEditorial3($value);\n\t\t\t\tbreak;\n\t\t\tcase 16:\n\t\t\t\t$this->setAudio($value);\n\t\t\t\tbreak;\n\t\t\tcase 17:\n\t\t\t\t$this->setDuration($value);\n\t\t\t\tbreak;\n\t\t\tcase 18:\n\t\t\t\t$this->setNumView($value);\n\t\t\t\tbreak;\n\t\t\tcase 19:\n\t\t\t\t$this->setComments($value);\n\t\t\t\tbreak;\n\t\t} // switch()\n\t}",
"public function setByPosition($pos, $value)\n {\n switch ($pos) {\n case 0:\n $this->setId($value);\n break;\n case 1:\n $this->setRefNo($value);\n break;\n case 2:\n $this->setUniquekeyid($value);\n break;\n case 3:\n $this->setCustomerId($value);\n break;\n case 4:\n $this->setAccountNo($value);\n break;\n case 5:\n $this->setServiceType($value);\n break;\n case 6:\n $this->setServiceDistrictId($value);\n break;\n case 7:\n $this->setBillingCycle($value);\n break;\n case 8:\n $this->setDueDate($value);\n break;\n case 9:\n $this->setBillingFrom($value);\n break;\n case 10:\n $this->setBillingTo($value);\n break;\n case 11:\n $this->setBillDate($value);\n break;\n case 12:\n $this->setRate($value);\n break;\n case 13:\n $this->setMeternumber($value);\n break;\n case 14:\n $this->setBillingmethod($value);\n break;\n case 15:\n $this->setDateoflastreading($value);\n break;\n case 16:\n $this->setDateofcurrentreading($value);\n break;\n case 17:\n $this->setDaysusage($value);\n break;\n case 18:\n $this->setLastmeterreading($value);\n break;\n case 19:\n $this->setCurrentmeterreading($value);\n break;\n case 20:\n $this->setUnitsconsumed($value);\n break;\n case 21:\n $this->setLastpaymentamount($value);\n break;\n case 22:\n $this->setLastpaymentdate($value);\n break;\n case 23:\n $this->setMetermaintenancecharge($value);\n break;\n case 24:\n $this->setDiscounts($value);\n break;\n case 25:\n $this->setOthercharges($value);\n break;\n case 26:\n $this->setPenaltycharges($value);\n break;\n case 27:\n $this->setTaxcharges($value);\n break;\n case 28:\n $this->setCharges($value);\n break;\n case 29:\n $this->setRoutinecharges($value);\n break;\n case 30:\n $this->setBillservicerate($value);\n break;\n case 31:\n $this->setBuildingtype($value);\n break;\n case 32:\n $this->setRoute($value);\n break;\n case 33:\n $this->setUsagetype($value);\n break;\n case 34:\n $this->setServiceCharge($value);\n break;\n case 35:\n $this->setPreviousBalance($value);\n break;\n case 36:\n $this->setPaymentReceived($value);\n break;\n case 37:\n $this->setLastPaymentReceivedDate($value);\n break;\n case 38:\n $this->setCurrentCharge($value);\n break;\n case 39:\n $this->setTotalDue($value);\n break;\n case 40:\n $this->setInvoiceNo($value);\n break;\n case 41:\n $this->setReceiptNo($value);\n break;\n case 42:\n $this->setDateCreated($value);\n break;\n case 43:\n $this->setCreator($value);\n break;\n case 44:\n $this->setStatus($value);\n break;\n } // switch()\n\n return $this;\n }",
"public function setByPosition($pos, $value)\n {\n switch ($pos) {\n case 0:\n $this->setid($value);\n break;\n case 1:\n $this->setcreateDatetime($value);\n break;\n case 2:\n $this->setcreatePersonId($value);\n break;\n case 3:\n $this->setmodifyDatetime($value);\n break;\n case 4:\n $this->setmodifyPersonId($value);\n break;\n case 5:\n $this->setdeleted($value);\n break;\n case 6:\n $this->setClass($value);\n break;\n case 7:\n $this->setgroupId($value);\n break;\n case 8:\n $this->setcode($value);\n break;\n case 9:\n $this->setname($value);\n break;\n case 10:\n $this->settitle($value);\n break;\n case 11:\n $this->setflatCode($value);\n break;\n case 12:\n $this->setsex($value);\n break;\n case 13:\n $this->setage($value);\n break;\n case 14:\n $this->setageBu($value);\n break;\n case 15:\n $this->setageBc($value);\n break;\n case 16:\n $this->setageEu($value);\n break;\n case 17:\n $this->setageEc($value);\n break;\n case 18:\n $this->setoffice($value);\n break;\n case 19:\n $this->setshowInForm($value);\n break;\n case 20:\n $this->setgenTimeTable($value);\n break;\n case 21:\n $this->setserviceId($value);\n break;\n case 22:\n $this->setquotaTypeId($value);\n break;\n case 23:\n $this->setcontext($value);\n break;\n case 24:\n $this->setamount($value);\n break;\n case 25:\n $this->setamountEvaluation($value);\n break;\n case 26:\n $this->setdefaultStatus($value);\n break;\n case 27:\n $this->setdefaultDirectionDate($value);\n break;\n case 28:\n $this->setdefaultPlannedEndDate($value);\n break;\n case 29:\n $this->setdefaultEndDate($value);\n break;\n case 30:\n $this->setdefaultExecPersonId($value);\n break;\n case 31:\n $this->setdefaultPersonInEvent($value);\n break;\n case 32:\n $this->setdefaultPersonInEditor($value);\n break;\n case 33:\n $this->setmaxOccursInEvent($value);\n break;\n case 34:\n $this->setshowTime($value);\n break;\n case 35:\n $this->setisMes($value);\n break;\n case 36:\n $this->setnomenclativeServiceId($value);\n break;\n case 37:\n $this->setisPreferable($value);\n break;\n case 38:\n $this->setprescribedTypeId($value);\n break;\n case 39:\n $this->setsheduleId($value);\n break;\n case 40:\n $this->setisRequiredCoordination($value);\n break;\n case 41:\n $this->setisRequiredTissue($value);\n break;\n case 42:\n $this->settestTubeTypeId($value);\n break;\n case 43:\n $this->setjobTypeId($value);\n break;\n case 44:\n $this->setmnem($value);\n break;\n } // switch()\n }",
"public function set($field, $value);",
"public function set($field, $value);",
"public function setField(string $name, Field $field);",
"public function setByPosition($pos, $value)\n\t{\n\t\tswitch($pos) {\n\t\t\tcase 0:\n\t\t\t\t$this->setId($value);\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\t$this->setPartieId($value);\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\t$this->setReplicaPostId($value);\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\t$this->setType($value);\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\t$this->setTitle($value);\n\t\t\t\tbreak;\n\t\t\tcase 5:\n\t\t\t\t$this->setUrl($value);\n\t\t\t\tbreak;\n\t\t\tcase 6:\n\t\t\t\t$this->setText($value);\n\t\t\t\tbreak;\n\t\t\tcase 7:\n\t\t\t\t$this->setPhotoFile($value);\n\t\t\t\tbreak;\n\t\t\tcase 8:\n\t\t\t\t$this->setPhotoUrl($value);\n\t\t\t\tbreak;\n\t\t\tcase 9:\n\t\t\t\t$this->setQuote($value);\n\t\t\t\tbreak;\n\t\t\tcase 10:\n\t\t\t\t$this->setQuoteAuthor($value);\n\t\t\t\tbreak;\n\t\t\tcase 11:\n\t\t\t\t$this->setLinkTitle($value);\n\t\t\t\tbreak;\n\t\t\tcase 12:\n\t\t\t\t$this->setLinkUrl($value);\n\t\t\t\tbreak;\n\t\t\tcase 13:\n\t\t\t\t$this->setLinkImage($value);\n\t\t\t\tbreak;\n\t\t\tcase 14:\n\t\t\t\t$this->setVideoUrl($value);\n\t\t\t\tbreak;\n\t\t\tcase 15:\n\t\t\t\t$this->setTotalIndex($value);\n\t\t\t\tbreak;\n\t\t\tcase 16:\n\t\t\t\t$this->setBestBadge1($value);\n\t\t\t\tbreak;\n\t\t\tcase 17:\n\t\t\t\t$this->setBestBadge2($value);\n\t\t\t\tbreak;\n\t\t\tcase 18:\n\t\t\t\t$this->setIsPublished($value);\n\t\t\t\tbreak;\n\t\t\tcase 19:\n\t\t\t\t$this->setIsFeatured($value);\n\t\t\t\tbreak;\n\t\t\tcase 20:\n\t\t\t\t$this->setCommentsCount($value);\n\t\t\t\tbreak;\n\t\t\tcase 21:\n\t\t\t\t$this->setCreatedAt($value);\n\t\t\t\tbreak;\n\t\t\tcase 22:\n\t\t\t\t$this->setUpdatedAt($value);\n\t\t\t\tbreak;\n\t\t} // switch()\n\t}",
"public function setByPosition($pos, $value)\n {\n switch ($pos) {\n case 0:\n $this->setId($value);\n break;\n case 1:\n $this->setCode($value);\n break;\n case 2:\n $this->setCategory($value);\n break;\n case 3:\n $this->setAddress($value);\n break;\n case 4:\n $this->setAddress2($value);\n break;\n case 5:\n $this->setZipcode($value);\n break;\n case 6:\n $this->setCity($value);\n break;\n case 7:\n $this->setGeoCoordinateX($value);\n break;\n case 8:\n $this->setGeoCoordinateY($value);\n break;\n case 9:\n $this->setDistanceCamping($value);\n break;\n case 10:\n $this->setImage($value);\n break;\n case 11:\n $this->setPriority($value);\n break;\n case 12:\n $this->setTel($value);\n break;\n case 13:\n $this->setFax($value);\n break;\n case 14:\n $this->setEmail($value);\n break;\n case 15:\n $this->setWebsite($value);\n break;\n case 16:\n $this->setCreatedAt($value);\n break;\n case 17:\n $this->setUpdatedAt($value);\n break;\n case 18:\n $this->setActive($value);\n break;\n } // switch()\n }",
"public function setPosition($position);",
"public function setByPosition($pos, $value)\n {\n switch ($pos) {\n case 0:\n $this->setId($value);\n break;\n case 1:\n $this->setMcode($value);\n break;\n case 2:\n $this->setNameF($value);\n break;\n case 3:\n $this->setNameT($value);\n break;\n case 4:\n $this->setNameE($value);\n break;\n case 5:\n $this->setPosid($value);\n break;\n case 6:\n $this->setMdate($value);\n break;\n case 7:\n $this->setBirthday($value);\n break;\n case 8:\n $this->setNational($value);\n break;\n case 9:\n $this->setIdTax($value);\n break;\n case 10:\n $this->setIdCard($value);\n break;\n case 11:\n $this->setIdCardImg($value);\n break;\n case 12:\n $this->setIdCardImgDate($value);\n break;\n case 13:\n $this->setZip($value);\n break;\n case 14:\n $this->setHomeT($value);\n break;\n case 15:\n $this->setOfficeT($value);\n break;\n case 16:\n $this->setMobile($value);\n break;\n case 17:\n $this->setMcodeAcc($value);\n break;\n case 18:\n $this->setBonusrec($value);\n break;\n case 19:\n $this->setBankcode($value);\n break;\n case 20:\n $this->setBranch($value);\n break;\n case 21:\n $this->setAccType($value);\n break;\n case 22:\n $this->setAccNo($value);\n break;\n case 23:\n $this->setAccNoImg($value);\n break;\n case 24:\n $this->setAccNoImgDate($value);\n break;\n case 25:\n $this->setAccName($value);\n break;\n case 26:\n $this->setAccProv($value);\n break;\n case 27:\n $this->setSvCode($value);\n break;\n case 28:\n $this->setSpCode($value);\n break;\n case 29:\n $this->setSpName($value);\n break;\n case 30:\n $this->setSpCode2($value);\n break;\n case 31:\n $this->setSpName2($value);\n break;\n case 32:\n $this->setUpaCode($value);\n break;\n case 33:\n $this->setUpaName($value);\n break;\n case 34:\n $this->setLr($value);\n break;\n case 35:\n $this->setComplete($value);\n break;\n case 36:\n $this->setCompdate($value);\n break;\n case 37:\n $this->setModate($value);\n break;\n case 38:\n $this->setUsercode($value);\n break;\n case 39:\n $this->setNameB($value);\n break;\n case 40:\n $this->setSex($value);\n break;\n case 41:\n $this->setAge($value);\n break;\n case 42:\n $this->setOccupation($value);\n break;\n case 43:\n $this->setStatus($value);\n break;\n case 44:\n $this->setMarName($value);\n break;\n case 45:\n $this->setMarAge($value);\n break;\n case 46:\n $this->setEmail($value);\n break;\n case 47:\n $this->setBeneficiaries($value);\n break;\n case 48:\n $this->setRelation($value);\n break;\n case 49:\n $this->setDistrictid($value);\n break;\n case 50:\n $this->setAmphurid($value);\n break;\n case 51:\n $this->setProvinceid($value);\n break;\n case 52:\n $this->setFax($value);\n break;\n case 53:\n $this->setInvCode($value);\n break;\n case 54:\n $this->setUid($value);\n break;\n case 55:\n $this->setOid($value);\n break;\n case 56:\n $this->setPosCur($value);\n break;\n case 57:\n $this->setPosCur1($value);\n break;\n case 58:\n $this->setPosCur2($value);\n break;\n case 59:\n $this->setPosCur3($value);\n break;\n case 60:\n $this->setPosCur4($value);\n break;\n case 61:\n $this->setPosCurTmp($value);\n break;\n case 62:\n $this->setRposCur4($value);\n break;\n case 63:\n $this->setPosCur3Date($value);\n break;\n case 64:\n $this->setMemdesc($value);\n break;\n case 65:\n $this->setCmp($value);\n break;\n case 66:\n $this->setCmp2($value);\n break;\n case 67:\n $this->setCmp3($value);\n break;\n case 68:\n $this->setCcmp($value);\n break;\n case 69:\n $this->setCcmp2($value);\n break;\n case 70:\n $this->setCcmp3($value);\n break;\n case 71:\n $this->setAddress($value);\n break;\n case 72:\n $this->setStreet($value);\n break;\n case 73:\n $this->setBuilding($value);\n break;\n case 74:\n $this->setVillage($value);\n break;\n case 75:\n $this->setSoi($value);\n break;\n case 76:\n $this->setEwallet($value);\n break;\n case 77:\n $this->setEatoship($value);\n break;\n case 78:\n $this->setEcom($value);\n break;\n case 79:\n $this->setBmdate1($value);\n break;\n case 80:\n $this->setBmdate2($value);\n break;\n case 81:\n $this->setBmdate3($value);\n break;\n case 82:\n $this->setCbmdate1($value);\n break;\n case 83:\n $this->setCbmdate2($value);\n break;\n case 84:\n $this->setCbmdate3($value);\n break;\n case 85:\n $this->setOnline($value);\n break;\n case 86:\n $this->setCnameF($value);\n break;\n case 87:\n $this->setCnameT($value);\n break;\n case 88:\n $this->setCnameE($value);\n break;\n case 89:\n $this->setCnameB($value);\n break;\n case 90:\n $this->setCbirthday($value);\n break;\n case 91:\n $this->setCnational($value);\n break;\n case 92:\n $this->setCidTax($value);\n break;\n case 93:\n $this->setCidCard($value);\n break;\n case 94:\n $this->setCaddress($value);\n break;\n case 95:\n $this->setCbuilding($value);\n break;\n case 96:\n $this->setCvillage($value);\n break;\n case 97:\n $this->setCstreet($value);\n break;\n case 98:\n $this->setCsoi($value);\n break;\n case 99:\n $this->setCzip($value);\n break;\n case 100:\n $this->setChomeT($value);\n break;\n case 101:\n $this->setCofficeT($value);\n break;\n case 102:\n $this->setCmobile($value);\n break;\n case 103:\n $this->setCfax($value);\n break;\n case 104:\n $this->setCsex($value);\n break;\n case 105:\n $this->setCemail($value);\n break;\n case 106:\n $this->setCdistrictid($value);\n break;\n case 107:\n $this->setCamphurid($value);\n break;\n case 108:\n $this->setCprovinceid($value);\n break;\n case 109:\n $this->setInameF($value);\n break;\n case 110:\n $this->setInameT($value);\n break;\n case 111:\n $this->setIrelation($value);\n break;\n case 112:\n $this->setIphone($value);\n break;\n case 113:\n $this->setIidCard($value);\n break;\n case 114:\n $this->setStatusDoc($value);\n break;\n case 115:\n $this->setStatusExpire($value);\n break;\n case 116:\n $this->setStatusTerminate($value);\n break;\n case 117:\n $this->setTerminateDate($value);\n break;\n case 118:\n $this->setStatusSuspend($value);\n break;\n case 119:\n $this->setSuspendDate($value);\n break;\n case 120:\n $this->setStatusBlacklist($value);\n break;\n case 121:\n $this->setStatusAto($value);\n break;\n case 122:\n $this->setSletter($value);\n break;\n case 123:\n $this->setSinvCode($value);\n break;\n case 124:\n $this->setTxtoption($value);\n break;\n case 125:\n $this->setSetregis($value);\n break;\n case 126:\n $this->setSlr($value);\n break;\n case 127:\n $this->setLocationbase($value);\n break;\n case 128:\n $this->setCidMobile($value);\n break;\n case 129:\n $this->setBewallet($value);\n break;\n case 130:\n $this->setBvoucher($value);\n break;\n case 131:\n $this->setVoucher($value);\n break;\n case 132:\n $this->setManager($value);\n break;\n case 133:\n $this->setMtype($value);\n break;\n case 134:\n $this->setMtype1($value);\n break;\n case 135:\n $this->setMtype2($value);\n break;\n case 136:\n $this->setMvat($value);\n break;\n case 137:\n $this->setUidbase($value);\n break;\n case 138:\n $this->setExpDate($value);\n break;\n case 139:\n $this->setHeadCode($value);\n break;\n case 140:\n $this->setPvL($value);\n break;\n case 141:\n $this->setPvC($value);\n break;\n case 142:\n $this->setHpvL($value);\n break;\n case 143:\n $this->setHpvC($value);\n break;\n case 144:\n $this->setPvLNextmonth($value);\n break;\n case 145:\n $this->setPvCNextmonth($value);\n break;\n case 146:\n $this->setPvLLastmonth1($value);\n break;\n case 147:\n $this->setPvCLastmonth1($value);\n break;\n case 148:\n $this->setPvLLastmonth2($value);\n break;\n case 149:\n $this->setPvCLastmonth2($value);\n break;\n case 150:\n $this->setRcodeStar($value);\n break;\n case 151:\n $this->setBunit($value);\n break;\n case 152:\n $this->setProvince($value);\n break;\n case 153:\n $this->setLineId($value);\n break;\n case 154:\n $this->setFacebookName($value);\n break;\n case 155:\n $this->setTypeCom($value);\n break;\n case 156:\n $this->setExpPos($value);\n break;\n case 157:\n $this->setExpPos60($value);\n break;\n case 158:\n $this->setTripPrivate($value);\n break;\n case 159:\n $this->setTripTeam($value);\n break;\n case 160:\n $this->setMyfile1($value);\n break;\n case 161:\n $this->setMyfile2($value);\n break;\n case 162:\n $this->setClineId($value);\n break;\n case 163:\n $this->setCfacebookName($value);\n break;\n case 164:\n $this->setProfileImg($value);\n break;\n case 165:\n $this->setAtocom($value);\n break;\n case 166:\n $this->setHpv($value);\n break;\n } // switch()\n\n return $this;\n }",
"public function setByPosition($pos, $value)\n\t{\n\t\tswitch($pos) {\n\t\t\tcase 0:\n\t\t\t\t$this->setId($value);\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\t$this->setUsername($value);\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\t$this->setEmail($value);\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\t$this->setPassword($value);\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\t$this->setPoints($value);\n\t\t\t\tbreak;\n\t\t\tcase 5:\n\t\t\t\t$this->setCreatedAt($value);\n\t\t\t\tbreak;\n\t\t\tcase 6:\n\t\t\t\t$this->setLastActivityAt($value);\n\t\t\t\tbreak;\n\t\t\tcase 7:\n\t\t\t\t$this->setType($value);\n\t\t\t\tbreak;\n\t\t\tcase 8:\n\t\t\t\t$this->setHidden($value);\n\t\t\t\tbreak;\n\t\t\tcase 9:\n\t\t\t\t$this->setName($value);\n\t\t\t\tbreak;\n\t\t\tcase 10:\n\t\t\t\t$this->setGender($value);\n\t\t\t\tbreak;\n\t\t\tcase 11:\n\t\t\t\t$this->setHometown($value);\n\t\t\t\tbreak;\n\t\t\tcase 12:\n\t\t\t\t$this->setHomePhone($value);\n\t\t\t\tbreak;\n\t\t\tcase 13:\n\t\t\t\t$this->setMobilePhone($value);\n\t\t\t\tbreak;\n\t\t\tcase 14:\n\t\t\t\t$this->setBirthdate($value);\n\t\t\t\tbreak;\n\t\t\tcase 15:\n\t\t\t\t$this->setAddress($value);\n\t\t\t\tbreak;\n\t\t\tcase 16:\n\t\t\t\t$this->setRelationshipStatus($value);\n\t\t\t\tbreak;\n\t\t\tcase 17:\n\t\t\t\t$this->setShowEmail($value);\n\t\t\t\tbreak;\n\t\t\tcase 18:\n\t\t\t\t$this->setShowGender($value);\n\t\t\t\tbreak;\n\t\t\tcase 19:\n\t\t\t\t$this->setShowHometown($value);\n\t\t\t\tbreak;\n\t\t\tcase 20:\n\t\t\t\t$this->setShowHomePhone($value);\n\t\t\t\tbreak;\n\t\t\tcase 21:\n\t\t\t\t$this->setShowMobilePhone($value);\n\t\t\t\tbreak;\n\t\t\tcase 22:\n\t\t\t\t$this->setShowBirthdate($value);\n\t\t\t\tbreak;\n\t\t\tcase 23:\n\t\t\t\t$this->setShowAddress($value);\n\t\t\t\tbreak;\n\t\t\tcase 24:\n\t\t\t\t$this->setShowRelationshipStatus($value);\n\t\t\t\tbreak;\n\t\t\tcase 25:\n\t\t\t\t$this->setPasswordRecoverKey($value);\n\t\t\t\tbreak;\n\t\t\tcase 26:\n\t\t\t\t$this->setCookieKey($value);\n\t\t\t\tbreak;\n\t\t\tcase 27:\n\t\t\t\t$this->setCredit($value);\n\t\t\t\tbreak;\n\t\t\tcase 28:\n\t\t\t\t$this->setInvisible($value);\n\t\t\t\tbreak;\n\t\t\tcase 29:\n\t\t\t\t$this->setNotification($value);\n\t\t\t\tbreak;\n\t\t\tcase 30:\n\t\t\t\t$this->setPhoneNumber($value);\n\t\t\t\tbreak;\n\t\t\tcase 31:\n\t\t\t\t$this->setLogin($value);\n\t\t\t\tbreak;\n\t\t\tcase 32:\n\t\t\t\t$this->setCreditCard($value);\n\t\t\t\tbreak;\n\t\t\tcase 33:\n\t\t\t\t$this->setCreditCardToken($value);\n\t\t\t\tbreak;\n\t\t\tcase 34:\n\t\t\t\t$this->setFirstCharge($value);\n\t\t\t\tbreak;\n\t\t\tcase 35:\n\t\t\t\t$this->setWhereFindUs($value);\n\t\t\t\tbreak;\n\t\t} // switch()\n\t}",
"public function setByPosition($pos, $value)\n {\n switch ($pos) {\n case 0:\n $this->setFeatureCvtermId($value);\n break;\n case 1:\n $this->setFeatureId($value);\n break;\n case 2:\n $this->setCvtermId($value);\n break;\n case 3:\n $this->setPubId($value);\n break;\n case 4:\n $this->setIsNot($value);\n break;\n case 5:\n $this->setRank($value);\n break;\n } // switch()\n }",
"public function setByPosition($pos, $value)\n\t{\n\t\tswitch($pos) {\n\t\t\tcase 0:\n\t\t\t\t$this->setId($value);\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\t$this->setPerfilId($value);\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\t$this->setEnderecoId($value);\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\t$this->setCargoId($value);\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\t$this->setDepartamentoId($value);\n\t\t\t\tbreak;\n\t\t\tcase 5:\n\t\t\t\t$this->setMatricula($value);\n\t\t\t\tbreak;\n\t\t\tcase 6:\n\t\t\t\t$this->setNome($value);\n\t\t\t\tbreak;\n\t\t\tcase 7:\n\t\t\t\t$this->setEmail($value);\n\t\t\t\tbreak;\n\t\t\tcase 8:\n\t\t\t\t$this->setDni($value);\n\t\t\t\tbreak;\n\t\t\tcase 9:\n\t\t\t\t$this->setDataNascimento($value);\n\t\t\t\tbreak;\n\t\t\tcase 10:\n\t\t\t\t$this->setDataContratacao($value);\n\t\t\t\tbreak;\n\t\t\tcase 11:\n\t\t\t\t$this->setCelular($value);\n\t\t\t\tbreak;\n\t\t\tcase 12:\n\t\t\t\t$this->setTelefone($value);\n\t\t\t\tbreak;\n\t\t\tcase 13:\n\t\t\t\t$this->setToken($value);\n\t\t\t\tbreak;\n\t\t\tcase 14:\n\t\t\t\t$this->setNomeUsuario($value);\n\t\t\t\tbreak;\n\t\t\tcase 15:\n\t\t\t\t$this->setSenha($value);\n\t\t\t\tbreak;\n\t\t\tcase 16:\n\t\t\t\t$this->setTokenSenha($value);\n\t\t\t\tbreak;\n\t\t\tcase 17:\n\t\t\t\t$this->setTokenFirebase($value);\n\t\t\t\tbreak;\n\t\t\tcase 18:\n\t\t\t\t$this->setDataRescisao($value);\n\t\t\t\tbreak;\n\t\t\tcase 19:\n\t\t\t\t$this->setAtivo($value);\n\t\t\t\tbreak;\n\t\t\tcase 20:\n\t\t\t\t$this->setTipoAcesso($value);\n\t\t\t\tbreak;\n\t\t\tcase 21:\n\t\t\t\t$this->setEstadoCivil($value);\n\t\t\t\tbreak;\n\t\t\tcase 22:\n\t\t\t\t$this->setNivelAcesso($value);\n\t\t\t\tbreak;\n\t\t\tcase 23:\n\t\t\t\t$this->setUsuarioValidado($value);\n\t\t\t\tbreak;\n\t\t\tcase 24:\n\t\t\t\t$this->setSexo($value);\n\t\t\t\tbreak;\n\t\t\tcase 25:\n\t\t\t\t$this->setDataCadastro($value);\n\t\t\t\tbreak;\n\t\t} // switch()\n\t}",
"public function setByPosition($pos, $value)\n\t{\n\t\tswitch($pos) {\n\t\t\tcase 0:\n\t\t\t\t$this->setVenueid($value);\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\t$this->setAddress($value);\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\t$this->setAddress2($value);\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\t$this->setCity($value);\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\t$this->setProvince($value);\n\t\t\t\tbreak;\n\t\t\tcase 5:\n\t\t\t\t$this->setCountry($value);\n\t\t\t\tbreak;\n\t\t\tcase 6:\n\t\t\t\t$this->setLatitude($value);\n\t\t\t\tbreak;\n\t\t\tcase 7:\n\t\t\t\t$this->setLongitude($value);\n\t\t\t\tbreak;\n\t\t\tcase 8:\n\t\t\t\t$this->setPhone($value);\n\t\t\t\tbreak;\n\t\t\tcase 9:\n\t\t\t\t$this->setName($value);\n\t\t\t\tbreak;\n\t\t\tcase 10:\n\t\t\t\t$this->setDescription($value);\n\t\t\t\tbreak;\n\t\t\tcase 11:\n\t\t\t\t$this->setWebsite($value);\n\t\t\t\tbreak;\n\t\t\tcase 12:\n\t\t\t\t$this->setTwitter($value);\n\t\t\t\tbreak;\n\t\t\tcase 13:\n\t\t\t\t$this->setFacebook($value);\n\t\t\t\tbreak;\n\t\t\tcase 14:\n\t\t\t\t$this->setRssfeed($value);\n\t\t\t\tbreak;\n\t\t\tcase 15:\n\t\t\t\t$this->setClosed($value);\n\t\t\t\tbreak;\n\t\t\tcase 16:\n\t\t\t\t$this->setLastfmid($value);\n\t\t\t\tbreak;\n\t\t\tcase 17:\n\t\t\t\t$this->setSlug($value);\n\t\t\t\tbreak;\n\t\t\tcase 18:\n\t\t\t\t$this->setHasphotos($value);\n\t\t\t\tbreak;\n\t\t\tcase 19:\n\t\t\t\t$this->setSubmittedbyuser($value);\n\t\t\t\tbreak;\n\t\t} // switch()\n\t}",
"public function setByPosition($pos, $value)\n\t{\n\t\tswitch($pos) {\n\t\t\tcase 0:\n\t\t\t\t$this->setId($value);\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\t$this->setHazardousCargoFlag($value);\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\t$this->setRequestDate($value);\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\t$this->setRequestReasonDesc($value);\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\t$this->setAgencyName($value);\n\t\t\t\tbreak;\n\t\t\tcase 5:\n\t\t\t\t$this->setReqFirstName($value);\n\t\t\t\tbreak;\n\t\t\tcase 6:\n\t\t\t\t$this->setReqLastName($value);\n\t\t\t\tbreak;\n\t\t\tcase 7:\n\t\t\t\t$this->setAgencyDivision($value);\n\t\t\t\tbreak;\n\t\t\tcase 8:\n\t\t\t\t$this->setReqAddress1($value);\n\t\t\t\tbreak;\n\t\t\tcase 9:\n\t\t\t\t$this->setReqAddress2($value);\n\t\t\t\tbreak;\n\t\t\tcase 10:\n\t\t\t\t$this->setReqCity($value);\n\t\t\t\tbreak;\n\t\t\tcase 11:\n\t\t\t\t$this->setReqState($value);\n\t\t\t\tbreak;\n\t\t\tcase 12:\n\t\t\t\t$this->setReqCountry($value);\n\t\t\t\tbreak;\n\t\t\tcase 13:\n\t\t\t\t$this->setReqZipcode($value);\n\t\t\t\tbreak;\n\t\t\tcase 14:\n\t\t\t\t$this->setReqOfficePhone($value);\n\t\t\t\tbreak;\n\t\t\tcase 15:\n\t\t\t\t$this->setReqOfficeComment($value);\n\t\t\t\tbreak;\n\t\t\tcase 16:\n\t\t\t\t$this->setReqMobilePhone($value);\n\t\t\t\tbreak;\n\t\t\tcase 17:\n\t\t\t\t$this->setReqMobileComment($value);\n\t\t\t\tbreak;\n\t\t\tcase 18:\n\t\t\t\t$this->setReqFaxPhone($value);\n\t\t\t\tbreak;\n\t\t\tcase 19:\n\t\t\t\t$this->setReqFaxComment($value);\n\t\t\t\tbreak;\n\t\t\tcase 20:\n\t\t\t\t$this->setReqPagerPhone($value);\n\t\t\t\tbreak;\n\t\t\tcase 21:\n\t\t\t\t$this->setReqPagerComment($value);\n\t\t\t\tbreak;\n\t\t\tcase 22:\n\t\t\t\t$this->setReqOtherPhone1($value);\n\t\t\t\tbreak;\n\t\t\tcase 23:\n\t\t\t\t$this->setReqOtherComment1($value);\n\t\t\t\tbreak;\n\t\t\tcase 24:\n\t\t\t\t$this->setReqOtherPhone2($value);\n\t\t\t\tbreak;\n\t\t\tcase 25:\n\t\t\t\t$this->setReqOtherComment2($value);\n\t\t\t\tbreak;\n\t\t\tcase 26:\n\t\t\t\t$this->setReqOtherPhone3($value);\n\t\t\t\tbreak;\n\t\t\tcase 27:\n\t\t\t\t$this->setReqOtherComment3($value);\n\t\t\t\tbreak;\n\t\t\tcase 28:\n\t\t\t\t$this->setReqEmail($value);\n\t\t\t\tbreak;\n\t\t\tcase 29:\n\t\t\t\t$this->setReqAltEmail($value);\n\t\t\t\tbreak;\n\t\t\tcase 30:\n\t\t\t\t$this->setContactNotes($value);\n\t\t\t\tbreak;\n\t\t\tcase 31:\n\t\t\t\t$this->setOriginCity($value);\n\t\t\t\tbreak;\n\t\t\tcase 32:\n\t\t\t\t$this->setOriginState($value);\n\t\t\t\tbreak;\n\t\t\tcase 33:\n\t\t\t\t$this->setDestCity($value);\n\t\t\t\tbreak;\n\t\t\tcase 34:\n\t\t\t\t$this->setDestState($value);\n\t\t\t\tbreak;\n\t\t\tcase 35:\n\t\t\t\t$this->setPreferredDate($value);\n\t\t\t\tbreak;\n\t\t\tcase 36:\n\t\t\t\t$this->setAlternativeDate($value);\n\t\t\t\tbreak;\n\t\t\tcase 37:\n\t\t\t\t$this->setTransportType($value);\n\t\t\t\tbreak;\n\t\t\tcase 38:\n\t\t\t\t$this->setRequestPostedDate($value);\n\t\t\t\tbreak;\n\t\t\tcase 39:\n\t\t\t\t$this->setRequestPostedToAfaOrgId($value);\n\t\t\t\tbreak;\n\t\t\tcase 40:\n\t\t\t\t$this->setRequesProcessedDate($value);\n\t\t\t\tbreak;\n\t\t\tcase 41:\n\t\t\t\t$this->setRequestDisposition($value);\n\t\t\t\tbreak;\n\t\t\tcase 42:\n\t\t\t\t$this->setCallerName($value);\n\t\t\t\tbreak;\n\t\t\tcase 43:\n\t\t\t\t$this->setCallerPhone($value);\n\t\t\t\tbreak;\n\t\t\tcase 44:\n\t\t\t\t$this->setRequestPostResults($value);\n\t\t\t\tbreak;\n\t\t\tcase 45:\n\t\t\t\t$this->setRequesterVpoUserId($value);\n\t\t\t\tbreak;\n\t\t\tcase 46:\n\t\t\t\t$this->setSource($value);\n\t\t\t\tbreak;\n\t\t\tcase 47:\n\t\t\t\t$this->setSoapPostFromAfaOrgId($value);\n\t\t\t\tbreak;\n\t\t\tcase 48:\n\t\t\t\t$this->setSoapPostRequestId($value);\n\t\t\t\tbreak;\n\t\t\tcase 49:\n\t\t\t\t$this->setRequestProcessedBy($value);\n\t\t\t\tbreak;\n\t\t} // switch()\n\t}",
"public function setByPosition($pos, $value)\n {\n switch ($pos) {\n case 0:\n $this->setPhadtype($value);\n break;\n case 1:\n $this->setPhadid($value);\n break;\n case 2:\n $this->setPhadsubid($value);\n break;\n case 3:\n $this->setPhadsubidseq($value);\n break;\n case 4:\n $this->setPhadcont($value);\n break;\n case 5:\n $this->setPhadintl($value);\n break;\n case 6:\n $this->setPhadtelenbr($value);\n break;\n case 7:\n $this->setPhadteleext($value);\n break;\n case 8:\n $this->setPhadintlnbr($value);\n break;\n case 9:\n $this->setPhadintlext($value);\n break;\n case 10:\n $this->setPhadfaxnbr($value);\n break;\n case 11:\n $this->setPhadifaxnbr($value);\n break;\n case 12:\n $this->setPhadcellnbr($value);\n break;\n case 13:\n $this->setPhadicellnbr($value);\n break;\n case 14:\n $this->setPhadhomenbr($value);\n break;\n case 15:\n $this->setPhadihomenbr($value);\n break;\n case 16:\n $this->setPhadwebaddr($value);\n break;\n case 17:\n $this->setPhademailaddr($value);\n break;\n case 18:\n $this->setPhadname($value);\n break;\n case 19:\n $this->setPhadcontname($value);\n break;\n case 20:\n $this->setDateupdtd($value);\n break;\n case 21:\n $this->setTimeupdtd($value);\n break;\n case 22:\n $this->setDummy($value);\n break;\n } // switch()\n\n return $this;\n }",
"public function setByPosition($pos, $value)\n\t{\n\t\tswitch($pos) {\n\t\t\tcase 0:\n\t\t\t\t$this->setId($value);\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\t$this->setSlug($value);\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\t$this->setName($value);\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\t$this->setCommentaire($value);\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\t$this->setSubject($value);\n\t\t\t\tbreak;\n\t\t\tcase 5:\n\t\t\t\t$this->setTemplateId($value);\n\t\t\t\tbreak;\n\t\t\tcase 6:\n\t\t\t\t$this->setContent($value);\n\t\t\t\tbreak;\n\t\t\tcase 7:\n\t\t\t\t$this->setPreparedContent($value);\n\t\t\t\tbreak;\n\t\t\tcase 8:\n\t\t\t\t$this->setTextContent($value);\n\t\t\t\tbreak;\n\t\t\tcase 9:\n\t\t\t\t$this->setPreparedTextContent($value);\n\t\t\t\tbreak;\n\t\t\tcase 10:\n\t\t\t\t$this->setStatus($value);\n\t\t\t\tbreak;\n\t\t\tcase 11:\n\t\t\t\t$this->setFromName($value);\n\t\t\t\tbreak;\n\t\t\tcase 12:\n\t\t\t\t$this->setFromEmail($value);\n\t\t\t\tbreak;\n\t\t\tcase 13:\n\t\t\t\t$this->setScheduledAt($value);\n\t\t\t\tbreak;\n\t\t\tcase 14:\n\t\t\t\t$this->setScheduleType($value);\n\t\t\t\tbreak;\n\t\t\tcase 15:\n\t\t\t\t$this->setTestType($value);\n\t\t\t\tbreak;\n\t\t\tcase 16:\n\t\t\t\t$this->setTestUserList($value);\n\t\t\t\tbreak;\n\t\t\tcase 17:\n\t\t\t\t$this->setTarget($value);\n\t\t\t\tbreak;\n\t\t\tcase 18:\n\t\t\t\t$this->setReplyToEmail($value);\n\t\t\t\tbreak;\n\t\t\tcase 19:\n\t\t\t\t$this->setReturnPathEmail($value);\n\t\t\t\tbreak;\n\t\t\tcase 20:\n\t\t\t\t$this->setReturnPathServer($value);\n\t\t\t\tbreak;\n\t\t\tcase 21:\n\t\t\t\t$this->setReturnPathLogin($value);\n\t\t\t\tbreak;\n\t\t\tcase 22:\n\t\t\t\t$this->setReturnPathPassword($value);\n\t\t\t\tbreak;\n\t\t\tcase 23:\n\t\t\t\t$this->setIsArchived($value);\n\t\t\t\tbreak;\n\t\t\tcase 24:\n\t\t\t\t$this->setGoogleAnalyticsEnabled($value);\n\t\t\t\tbreak;\n\t\t\tcase 25:\n\t\t\t\t$this->setGoogleAnalyticsSource($value);\n\t\t\t\tbreak;\n\t\t\tcase 26:\n\t\t\t\t$this->setGoogleAnalyticsMedium($value);\n\t\t\t\tbreak;\n\t\t\tcase 27:\n\t\t\t\t$this->setGoogleAnalyticsCampaignType($value);\n\t\t\t\tbreak;\n\t\t\tcase 28:\n\t\t\t\t$this->setGoogleAnalyticsCampaignContent($value);\n\t\t\t\tbreak;\n\t\t\tcase 29:\n\t\t\t\t$this->setGoogleAnalyticsContent($value);\n\t\t\t\tbreak;\n\t\t\tcase 30:\n\t\t\t\t$this->setLitmusTestId($value);\n\t\t\t\tbreak;\n\t\t\tcase 31:\n\t\t\t\t$this->setWebTrackerEnabled($value);\n\t\t\t\tbreak;\n\t\t\tcase 32:\n\t\t\t\t$this->setCreatedAt($value);\n\t\t\t\tbreak;\n\t\t\tcase 33:\n\t\t\t\t$this->setCreatedBy($value);\n\t\t\t\tbreak;\n\t\t\tcase 34:\n\t\t\t\t$this->setUpdatedAt($value);\n\t\t\t\tbreak;\n\t\t} // switch()\n\t}",
"public function setByPosition($pos, $value)\n {\n switch ($pos) {\n case 0:\n $this->setId($value);\n break;\n case 1:\n $this->setName($value);\n break;\n case 2:\n $this->setOpendate($value);\n break;\n case 3:\n $this->setClosedate($value);\n break;\n case 4:\n $this->setStatus($value);\n break;\n case 5:\n $this->setInfotext($value);\n break;\n case 6:\n $this->setForbook($value);\n break;\n case 7:\n $this->setUserSys($value);\n break;\n case 8:\n $this->setConfigSys($value);\n break;\n case 9:\n $this->setSplit($value);\n break;\n case 10:\n $this->setParentnode($value);\n break;\n case 11:\n $this->setSort($value);\n break;\n } // switch()\n\n return $this;\n }",
"public function setField($name, $value);",
"function setField($field) {\r\r\n\t\t$this->field = $field;\r\r\n\t}",
"public function setField($value) {\n\t\t$this->_field = $value;\n\t}",
"function setField($Field){\n\t\t$this->Field = $Field;\n\t}",
"public function setField($field) {\n\t\t$this->_field = $field;\n\t}",
"function setPosition($s)\n\t{\n\t\t$this->Info['Position'] = $s;\n\t\tupdateTableByUser('Developer', 'Position', $s, $this->Username);\n\t}",
"function set_position($newposition) {\n\t\t$this->position = $newposition;\n\t}",
"public function setPosition( $position )\n\t\t{\n\t\t\t$this->_position = $position;\n\t\t}",
"public function setByPosition($pos, $value)\n {\n switch ($pos) {\n case 0:\n $this->setBiblioId($value);\n break;\n case 1:\n $this->setTitle($value);\n break;\n case 2:\n $this->setSor($value);\n break;\n case 3:\n $this->setEdition($value);\n break;\n case 4:\n $this->setIsbn_issn($value);\n break;\n case 5:\n $this->setPublisherId($value);\n break;\n case 6:\n $this->setPublish_year($value);\n break;\n case 7:\n $this->setCollation($value);\n break;\n case 8:\n $this->setSeries_title($value);\n break;\n case 9:\n $this->setCall_number($value);\n break;\n case 10:\n $this->setLanguageId($value);\n break;\n case 11:\n $this->setSource($value);\n break;\n case 12:\n $this->setPublishPlaceId($value);\n break;\n case 13:\n $this->setClassification($value);\n break;\n case 14:\n $this->setNotes($value);\n break;\n case 15:\n $this->setImage($value);\n break;\n case 16:\n $this->setFile_att($value);\n break;\n case 17:\n $this->setOpac_hide($value);\n break;\n case 18:\n $this->setPromoted($value);\n break;\n case 19:\n $this->setLabels($value);\n break;\n case 20:\n $this->setFrequencyId($value);\n break;\n case 21:\n $this->setSpec_detail_info($value);\n break;\n case 22:\n $this->setInput_date($value);\n break;\n case 23:\n $this->setLast_update($value);\n break;\n case 24:\n $this->setUid($value);\n break;\n } // switch()\n\n return $this;\n }",
"public function setField($field)\n {\n $this->_field = $field;\n }",
"public function setField(Field $field) {\n\t\t$this->field = $field; \n\t}",
"public function setPosX($posX);",
"public function setPos($pos)\n {\n $this->pos = $pos;\n }",
"public function setField(string $name, $value);",
"function setPosition($value) {\n $this->_position = intval($value);\n }",
"public function setOrderField($x) { $this->orderField = $x; }",
"function setValue(int $field, $value) : void;",
"public function setByPosition($pos, $value)\n {\n switch ($pos) {\n case 0:\n $this->setId($value);\n break;\n case 1:\n $this->setNickname($value);\n break;\n case 2:\n $this->setEmail($value);\n break;\n case 3:\n $this->setAge($value);\n break;\n case 4:\n $this->setSex($value);\n break;\n case 5:\n $this->setCreatedAt($value);\n break;\n case 6:\n $this->setUpdatedAt($value);\n break;\n } // switch()\n\n return $this;\n }",
"public function setPosition($position) {\n\t\t$this->position = $position;\n\t}",
"public function setByPosition($pos, $value)\n\t{\n\t\tswitch($pos) {\n\t\t\tcase 0:\n\t\t\t\t$this->setCoUsuario($value);\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\t$this->setNuCpf($value);\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\t$this->setDsPassword($value);\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\t$this->setNoUsuario($value);\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\t$this->setDsLogin($value);\n\t\t\t\tbreak;\n\t\t\tcase 5:\n\t\t\t\t$this->setDtUltimoLogin($value);\n\t\t\t\tbreak;\n\t\t\tcase 6:\n\t\t\t\t$this->setDsEmail($value);\n\t\t\t\tbreak;\n\t\t\tcase 7:\n\t\t\t\t$this->setCoPerfil($value);\n\t\t\t\tbreak;\n\t\t\tcase 8:\n\t\t\t\t$this->setNuCelular($value);\n\t\t\t\tbreak;\n\t\t\tcase 9:\n\t\t\t\t$this->setNuTelefone($value);\n\t\t\t\tbreak;\n\t\t\tcase 10:\n\t\t\t\t$this->setStUsuario($value);\n\t\t\t\tbreak;\n\t\t} // switch()\n\t}",
"public function SetField($val, $field)\n {\n $this->{$field} = $val;\n //echo $field.'<br>';\n }",
"public function __set ($field, $val) {\n if (isset($this->__fields[$field]['set'])) {\n $this->__fields[$field]['data'] = $this->__fields[$field]['set']($val);\n } else {\n $this->__fields[$field]['data'] = $val;\n }\n }",
"public function setByPosition($pos, $value)\n {\n switch ($pos) {\n case 0:\n $this->setSessionid($value);\n break;\n case 1:\n $this->setRecno($value);\n break;\n case 2:\n $this->setDate($value);\n break;\n case 3:\n $this->setTime($value);\n break;\n case 4:\n $this->setType($value);\n break;\n case 5:\n $this->setCustid($value);\n break;\n case 6:\n $this->setShiptoid($value);\n break;\n case 7:\n $this->setCustname($value);\n break;\n case 8:\n $this->setOrderno($value);\n break;\n case 9:\n $this->setCustpo($value);\n break;\n case 10:\n $this->setCustref($value);\n break;\n case 11:\n $this->setStatus($value);\n break;\n case 12:\n $this->setOrderdate($value);\n break;\n case 13:\n $this->setCareof($value);\n break;\n case 14:\n $this->setQuotdate($value);\n break;\n case 15:\n $this->setInvdate($value);\n break;\n case 16:\n $this->setShipdate($value);\n break;\n case 17:\n $this->setRevdate($value);\n break;\n case 18:\n $this->setExpdate($value);\n break;\n case 19:\n $this->setHasdocuments($value);\n break;\n case 20:\n $this->setHastracking($value);\n break;\n case 21:\n $this->setSubtotal($value);\n break;\n case 22:\n $this->setSalestax($value);\n break;\n case 23:\n $this->setFreight($value);\n break;\n case 24:\n $this->setMisccost($value);\n break;\n case 25:\n $this->setOrdertotal($value);\n break;\n case 26:\n $this->setHasnotes($value);\n break;\n case 27:\n $this->setEditord($value);\n break;\n case 28:\n $this->setError($value);\n break;\n case 29:\n $this->setErrormsg($value);\n break;\n case 30:\n $this->setSconame($value);\n break;\n case 31:\n $this->setShipname($value);\n break;\n case 32:\n $this->setShipaddress($value);\n break;\n case 33:\n $this->setShipaddress2($value);\n break;\n case 34:\n $this->setShipcity($value);\n break;\n case 35:\n $this->setShipstate($value);\n break;\n case 36:\n $this->setShipzip($value);\n break;\n case 37:\n $this->setShipcountry($value);\n break;\n case 38:\n $this->setContact($value);\n break;\n case 39:\n $this->setPhintl($value);\n break;\n case 40:\n $this->setPhone($value);\n break;\n case 41:\n $this->setExtension($value);\n break;\n case 42:\n $this->setFaxnbr($value);\n break;\n case 43:\n $this->setEmail($value);\n break;\n case 44:\n $this->setReleasenbr($value);\n break;\n case 45:\n $this->setShipviacd($value);\n break;\n case 46:\n $this->setShipviadesc($value);\n break;\n case 47:\n $this->setPricecode($value);\n break;\n case 48:\n $this->setPricecodedesc($value);\n break;\n case 49:\n $this->setPricedisp($value);\n break;\n case 50:\n $this->setTaxcode($value);\n break;\n case 51:\n $this->setTaxcodedesc($value);\n break;\n case 52:\n $this->setTaxcodedisp($value);\n break;\n case 53:\n $this->setTermcode($value);\n break;\n case 54:\n $this->setTermtype($value);\n break;\n case 55:\n $this->setTermcodedesc($value);\n break;\n case 56:\n $this->setRqstdate($value);\n break;\n case 57:\n $this->setShipcom($value);\n break;\n case 58:\n $this->setSp1($value);\n break;\n case 59:\n $this->setSp1name($value);\n break;\n case 60:\n $this->setSp2($value);\n break;\n case 61:\n $this->setSp2name($value);\n break;\n case 62:\n $this->setSp2disp($value);\n break;\n case 63:\n $this->setSp3($value);\n break;\n case 64:\n $this->setSp3name($value);\n break;\n case 65:\n $this->setSp3disp($value);\n break;\n case 66:\n $this->setFob($value);\n break;\n case 67:\n $this->setDeliverydesc($value);\n break;\n case 68:\n $this->setWhse($value);\n break;\n case 69:\n $this->setCardnumber($value);\n break;\n case 70:\n $this->setCardexpire($value);\n break;\n case 71:\n $this->setCardcode($value);\n break;\n case 72:\n $this->setCardapproval($value);\n break;\n case 73:\n $this->setTotalcost($value);\n break;\n case 74:\n $this->setTotaldiscount($value);\n break;\n case 75:\n $this->setPaymenttype($value);\n break;\n case 76:\n $this->setSrcdatefrom($value);\n break;\n case 77:\n $this->setSrcdatethru($value);\n break;\n case 78:\n $this->setBillname($value);\n break;\n case 79:\n $this->setBilladdress($value);\n break;\n case 80:\n $this->setBilladdress2($value);\n break;\n case 81:\n $this->setBilladdress3($value);\n break;\n case 82:\n $this->setBillcountry($value);\n break;\n case 83:\n $this->setBillcity($value);\n break;\n case 84:\n $this->setBillstate($value);\n break;\n case 85:\n $this->setBillzip($value);\n break;\n case 86:\n $this->setPrntfmt($value);\n break;\n case 87:\n $this->setPrntfmtdisp($value);\n break;\n case 88:\n $this->setDummy($value);\n break;\n } // switch()\n\n return $this;\n }",
"public function setByPosition($pos, $value)\n {\n switch ($pos) {\n case 0:\n $this->setShnttype($value);\n break;\n case 1:\n $this->setShnttypedesc($value);\n break;\n case 2:\n $this->setOehhnbr($value);\n break;\n case 3:\n $this->setShntyear($value);\n break;\n case 4:\n $this->setOedhline($value);\n break;\n case 5:\n $this->setShntlotser($value);\n break;\n case 6:\n $this->setShntpickticket($value);\n break;\n case 7:\n $this->setShntpackticket($value);\n break;\n case 8:\n $this->setShntinvoice($value);\n break;\n case 9:\n $this->setShntacknow($value);\n break;\n case 10:\n $this->setShntseq($value);\n break;\n case 11:\n $this->setShntnote($value);\n break;\n case 12:\n $this->setShntkey2($value);\n break;\n case 13:\n $this->setShntform($value);\n break;\n case 14:\n $this->setDateupdtd($value);\n break;\n case 15:\n $this->setTimeupdtd($value);\n break;\n case 16:\n $this->setDummy($value);\n break;\n } // switch()\n\n return $this;\n }",
"public function setByPosition($pos, $value)\n {\n switch ($pos) {\n case 0:\n $this->setIDCommande($value);\n break;\n case 1:\n $this->setRFCommande($value);\n break;\n case 2:\n $this->setIDSociete_FK($value);\n break;\n case 3:\n $this->setTMode($value);\n break;\n case 4:\n $this->setQuantite($value);\n break;\n case 5:\n $this->setAPrix($value);\n break;\n case 6:\n $this->setADelai($value);\n break;\n case 7:\n $this->setDTECommande($value);\n break;\n case 8:\n $this->setPriorite($value);\n break;\n case 9:\n $this->setCMDNote($value);\n break;\n } // switch()\n\n return $this;\n }",
"function callbackSetValue($object,$field) {\n \n\n //echo get_class($object);\n switch ($field) {\n case 'name':\n // name does not set dirty flag - its a simple rename..\n $value = $object->get_text();\n if (@$this->$field == $value) {\n return;\n }\n $this->$field = $value;\n //print_r($this->data['TABLES'][$table]['FIELDS']);\n $this->table->database->dirty=true;\n break;\n case 'length':\n case 'default':\n $value = $object->get_text();\n if (@$this->$field == $value) {\n return;\n }\n // echo \"CHANGE?\";\n $this->$field = $value;\n //print_r($this->data['TABLES'][$table]['FIELDS']);\n $this->table->database->dirty=true;\n $this->dirty = true;\n break;\n case 'notnull':\n case 'isIndex':\n case 'sequence':\n case 'unique': \n $value = (int) $object->get_active();\n if (@$this->$field == $value) {\n return;\n }\n //echo \"CHANGE?\";\n $this->$field = $value;\n //print_r($this->data['TABLES'][$table]['FIELDS']);\n $this->table->database->dirty=true;\n $this->table->database->save();\n $this->setVisable();\n $this->dirty = true;\n break;\n default: \n echo \"opps forgot :$field\\n\";\n \n \n }\n //print_r(func_get_args());\n }",
"protected function setFieldValue ($field) {\n if ($this->$field instanceof Newforms_File)\n $this->$field->setValue('');\n if (!$this->__bound) return;\n if (is_array($this->__Data)) {\n if (isset($this->__Data[$field])) {\n $this->$field->setValue ($this->__Data[$field]);\n return;\n }\n return;\n }\n if (is_object ($this->__Data)) {\n if (isset($this->__Data->$field)) {\n $this->$field->setValue ($this->__Data->$field);\n return;\n }\n return;\n }\n }",
"public function setByPosition($pos, $value)\n {\n switch ($pos) {\n case 0:\n $this->setArticleId($value);\n break;\n case 1:\n $this->setDescription($value);\n break;\n case 2:\n $this->setPrice($value);\n break;\n case 3:\n $this->setCreation($value);\n break;\n case 4:\n $this->setVisible($value);\n break;\n case 5:\n $this->setShapeId($value);\n break;\n case 6:\n $this->setCakeTypeId($value);\n break;\n } // switch()\n\n return $this;\n }",
"public function assignPos(Position $position);",
"function setField($field, $value)\n {\n $this->_data[$field] = $value;\n }",
"public function setByPosition($pos, $value)\n {\n switch ($pos) {\n case 0:\n $this->setPothnbr($value);\n break;\n case 1:\n $this->setPothstat($value);\n break;\n case 2:\n $this->setPothrcptdate($value);\n break;\n case 3:\n $this->setIntbwhse($value);\n break;\n case 4:\n $this->setPothglpd($value);\n break;\n case 5:\n $this->setPothairship($value);\n break;\n case 6:\n $this->setPotherinreview($value);\n break;\n case 7:\n $this->setPothexchctry($value);\n break;\n case 8:\n $this->setPothexchrate($value);\n break;\n case 9:\n $this->setIntbwhseorig($value);\n break;\n case 10:\n $this->setPothlandcost($value);\n break;\n case 11:\n $this->setPothrcptnbr($value);\n break;\n case 12:\n $this->setPothlandbasedon($value);\n break;\n case 13:\n $this->setPothinvcnbr($value);\n break;\n case 14:\n $this->setPothinvcdate($value);\n break;\n case 15:\n $this->setPothfrtamt($value);\n break;\n case 16:\n $this->setPothmiscamt($value);\n break;\n case 17:\n $this->setDateupdtd($value);\n break;\n case 18:\n $this->setTimeupdtd($value);\n break;\n case 19:\n $this->setDummy($value);\n break;\n } // switch()\n\n return $this;\n }",
"public function setByPosition($pos, $value)\n {\n switch ($pos) {\n case 0:\n $this->setSekolahId($value);\n break;\n case 1:\n $this->setSemesterId($value);\n break;\n case 2:\n $this->setSumberAirId($value);\n break;\n case 3:\n $this->setSumberAirMinumId($value);\n break;\n case 4:\n $this->setCreateDate($value);\n break;\n case 5:\n $this->setLastUpdate($value);\n break;\n case 6:\n $this->setSoftDelete($value);\n break;\n case 7:\n $this->setLastSync($value);\n break;\n case 8:\n $this->setUpdaterId($value);\n break;\n case 9:\n $this->setKetersediaanAir($value);\n break;\n case 10:\n $this->setKecukupanAir($value);\n break;\n case 11:\n $this->setMinumSiswa($value);\n break;\n case 12:\n $this->setMemprosesAir($value);\n break;\n case 13:\n $this->setSiswaBawaAir($value);\n break;\n case 14:\n $this->setToiletSiswaLaki($value);\n break;\n case 15:\n $this->setToiletSiswaPerempuan($value);\n break;\n case 16:\n $this->setToiletSiswaKk($value);\n break;\n case 17:\n $this->setToiletSiswaKecil($value);\n break;\n case 18:\n $this->setJmlJambanLG($value);\n break;\n case 19:\n $this->setJmlJambanLTg($value);\n break;\n case 20:\n $this->setJmlJambanPG($value);\n break;\n case 21:\n $this->setJmlJambanPTg($value);\n break;\n case 22:\n $this->setJmlJambanLpG($value);\n break;\n case 23:\n $this->setJmlJambanLpTg($value);\n break;\n case 24:\n $this->setTempatCuciTangan($value);\n break;\n case 25:\n $this->setTempatCuciTanganRusak($value);\n break;\n case 26:\n $this->setASabunAirMengalir($value);\n break;\n case 27:\n $this->setJambanDifabel($value);\n break;\n case 28:\n $this->setTipeJamban($value);\n break;\n case 29:\n $this->setASediaPembalut($value);\n break;\n case 30:\n $this->setKegiatanCuciTangan($value);\n break;\n case 31:\n $this->setPembuanganAirLimbah($value);\n break;\n case 32:\n $this->setAKurasSeptitank($value);\n break;\n case 33:\n $this->setAMemilikiSolokan($value);\n break;\n case 34:\n $this->setATempatSampahKelas($value);\n break;\n case 35:\n $this->setATempatSampahTutupP($value);\n break;\n case 36:\n $this->setACerminJambanP($value);\n break;\n case 37:\n $this->setAMemilikiTps($value);\n break;\n case 38:\n $this->setATpsAngkutRutin($value);\n break;\n case 39:\n $this->setAAnggaranSanitasi($value);\n break;\n case 40:\n $this->setAMelibatkanSanitasiSiswa($value);\n break;\n case 41:\n $this->setAKemitraanSanDaerah($value);\n break;\n case 42:\n $this->setAKemitraanSanPuskesmas($value);\n break;\n case 43:\n $this->setAKemitraanSanSwasta($value);\n break;\n case 44:\n $this->setAKemitraanSanNonPem($value);\n break;\n case 45:\n $this->setKieGuruCuciTangan($value);\n break;\n case 46:\n $this->setKieGuruHaid($value);\n break;\n case 47:\n $this->setKieGuruPerawatanToilet($value);\n break;\n case 48:\n $this->setKieGuruKeamananPangan($value);\n break;\n case 49:\n $this->setKieGuruMinumAir($value);\n break;\n case 50:\n $this->setKieKelasCuciTangan($value);\n break;\n case 51:\n $this->setKieKelasHaid($value);\n break;\n case 52:\n $this->setKieKelasPerawatanToilet($value);\n break;\n case 53:\n $this->setKieKelasKeamananPangan($value);\n break;\n case 54:\n $this->setKieKelasMinumAir($value);\n break;\n case 55:\n $this->setKieToiletCuciTangan($value);\n break;\n case 56:\n $this->setKieToiletHaid($value);\n break;\n case 57:\n $this->setKieToiletPerawatanToilet($value);\n break;\n case 58:\n $this->setKieToiletKeamananPangan($value);\n break;\n case 59:\n $this->setKieToiletMinumAir($value);\n break;\n case 60:\n $this->setKieSelasarCuciTangan($value);\n break;\n case 61:\n $this->setKieSelasarHaid($value);\n break;\n case 62:\n $this->setKieSelasarPerawatanToilet($value);\n break;\n case 63:\n $this->setKieSelasarKeamananPangan($value);\n break;\n case 64:\n $this->setKieSelasarMinumAir($value);\n break;\n case 65:\n $this->setKieUksCuciTangan($value);\n break;\n case 66:\n $this->setKieUksHaid($value);\n break;\n case 67:\n $this->setKieUksPerawatanToilet($value);\n break;\n case 68:\n $this->setKieUksKeamananPangan($value);\n break;\n case 69:\n $this->setKieUksMinumAir($value);\n break;\n case 70:\n $this->setKieKantinCuciTangan($value);\n break;\n case 71:\n $this->setKieKantinHaid($value);\n break;\n case 72:\n $this->setKieKantinPerawatanToilet($value);\n break;\n case 73:\n $this->setKieKantinKeamananPangan($value);\n break;\n case 74:\n $this->setKieKantinMinumAir($value);\n break;\n } // switch()\n }",
"public function setPosition($position)\n {\n $this->position = $position;\n }",
"public function setPosition($position)\n {\n $this->position = $position;\n }",
"public function __set($field, $value){\n\t\tif(array_key_exists($field, $this->fields)){\n\t\t\t$this->fields[$field]=$value;\n\t\t}\n\t}",
"public function set($field, $value) {\r\n\t\t$this -> fields[$field] = $value;\r\n\t}",
"public function __set($field, $value){\n if (array_key_exists($field, $this->fields)){\n $this->fields[$field] = $value;\n }\n }",
"public function __set($field, $value){\n if (array_key_exists($field, $this->fields)){\n $this->fields[$field] = $value;\n }\n }",
"public function setField( WebLab_Data_Field $field ) {\n $this->_field = $field;\n }",
"function setRefFields($val) {\n $this->_refFields = $val;\n }",
"public function set_position($position){\n $position = (array)$position;\n if(count($position) === 2){\n $this->posX = $position['x'];\n $this->posY = $position['y'];\n }\n return null;\n }",
"public function __set($field, $value) {\r\n $this->$field = $value;\r\n }",
"public function __set($field, $value) {\r\n $this->$field = $value;\r\n }",
"public function setByPosition ($pos, $value)\n {\n switch ($pos) {\n case 0:\n $this->setCalendarUid ($value);\n break;\n case 1:\n $this->setCalendarHolidayName ($value);\n break;\n case 2:\n $this->setCalendarHolidayStart ($value);\n break;\n case 3:\n $this->setCalendarHolidayEnd ($value);\n break;\n } // switch()\n }",
"public function setValue($fieldname, $value);",
"public static function setPosition($position)\n {\n self::$position = $position;\n }",
"public function __set($name, $value) {\n if($value instanceof Field){\n if(!isset($value->name)){\n $value->name = $name;\n }\n if(!isset($value->id)){\n $value->id = $name;\n }\n $this->{$name} = $value;\n }\n }",
"public static function setPosition(int $x, int $y) {}",
"public function setByPosition($pos, $value)\n\t{\n\t\tswitch($pos) {\n\t\t\tcase 0:\n\t\t\t\t$this->setCoParticipante($value);\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\t$this->setCoUsuarioElabora($value);\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\t$this->setCoForense($value);\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\t$this->setCoInformeRecomendaciones($value);\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\t$this->setCoInformeIncidente($value);\n\t\t\t\tbreak;\n\t\t\tcase 5:\n\t\t\t\t$this->setCoInformeForense($value);\n\t\t\t\tbreak;\n\t\t\tcase 6:\n\t\t\t\t$this->setCoInformeDepuracion($value);\n\t\t\t\tbreak;\n\t\t\tcase 7:\n\t\t\t\t$this->setCoMantenimiento($value);\n\t\t\t\tbreak;\n\t\t\tcase 8:\n\t\t\t\t$this->setCoDoumentoNormativo($value);\n\t\t\t\tbreak;\n\t\t} // switch()\n\t}",
"public function set_field( string $field, $data ) {\n\t\t$this->data[ $field ] = $data;\n\t}",
"public function setByPosition($pos, $value)\n {\n switch ($pos) {\n case 0:\n $this->setIdBangunan($value);\n break;\n case 1:\n $this->setJenisPrasaranaId($value);\n break;\n case 2:\n $this->setSekolahId($value);\n break;\n case 3:\n $this->setIdTanah($value);\n break;\n case 4:\n $this->setPtkId($value);\n break;\n case 5:\n $this->setIdHapusBuku($value);\n break;\n case 6:\n $this->setKepemilikanSarprasId($value);\n break;\n case 7:\n $this->setKdKl($value);\n break;\n case 8:\n $this->setKdSatker($value);\n break;\n case 9:\n $this->setKdBrg($value);\n break;\n case 10:\n $this->setNup($value);\n break;\n case 11:\n $this->setKodeEselon1($value);\n break;\n case 12:\n $this->setNamaEselon1($value);\n break;\n case 13:\n $this->setKodeSubSatker($value);\n break;\n case 14:\n $this->setNamaSubSatker($value);\n break;\n case 15:\n $this->setNama($value);\n break;\n case 16:\n $this->setPanjang($value);\n break;\n case 17:\n $this->setLebar($value);\n break;\n case 18:\n $this->setNilaiPerolehanAset($value);\n break;\n case 19:\n $this->setJmlLantai($value);\n break;\n case 20:\n $this->setThnDibangun($value);\n break;\n case 21:\n $this->setLuasTapakBangunan($value);\n break;\n case 22:\n $this->setVolPondasiM3($value);\n break;\n case 23:\n $this->setVolSloopKolomBalokM3($value);\n break;\n case 24:\n $this->setPanjKudakudaM($value);\n break;\n case 25:\n $this->setVolKudakudaM3($value);\n break;\n case 26:\n $this->setPanjKasoM($value);\n break;\n case 27:\n $this->setPanjRengM($value);\n break;\n case 28:\n $this->setLuasTutupAtapM2($value);\n break;\n case 29:\n $this->setKdSatkerTanah($value);\n break;\n case 30:\n $this->setNmSatkerTanah($value);\n break;\n case 31:\n $this->setKdBrgTanah($value);\n break;\n case 32:\n $this->setNmBrgTanah($value);\n break;\n case 33:\n $this->setNupBrgTanah($value);\n break;\n case 34:\n $this->setTglSkPemakai($value);\n break;\n case 35:\n $this->setTglHapusBuku($value);\n break;\n case 36:\n $this->setKetBangunan($value);\n break;\n case 37:\n $this->setAsalData($value);\n break;\n case 38:\n $this->setCreateDate($value);\n break;\n case 39:\n $this->setLastUpdate($value);\n break;\n case 40:\n $this->setSoftDelete($value);\n break;\n case 41:\n $this->setLastSync($value);\n break;\n case 42:\n $this->setUpdaterId($value);\n break;\n } // switch()\n }",
"public function setByPosition($pos, $value)\n {\n switch ($pos) {\n case 0:\n $this->setSekolahId($value);\n break;\n case 1:\n $this->setSemesterId($value);\n break;\n case 2:\n $this->setIdRuang($value);\n break;\n case 3:\n $this->setHari($value);\n break;\n case 4:\n $this->setBelKe01($value);\n break;\n case 5:\n $this->setBelKe02($value);\n break;\n case 6:\n $this->setBelKe03($value);\n break;\n case 7:\n $this->setBelKe04($value);\n break;\n case 8:\n $this->setBelKe05($value);\n break;\n case 9:\n $this->setBelKe06($value);\n break;\n case 10:\n $this->setBelKe07($value);\n break;\n case 11:\n $this->setBelKe08($value);\n break;\n case 12:\n $this->setBelKe09($value);\n break;\n case 13:\n $this->setBelKe10($value);\n break;\n case 14:\n $this->setBelKe11($value);\n break;\n case 15:\n $this->setBelKe12($value);\n break;\n case 16:\n $this->setBelKe13($value);\n break;\n case 17:\n $this->setBelKe14($value);\n break;\n case 18:\n $this->setBelKe15($value);\n break;\n case 19:\n $this->setBelKe16($value);\n break;\n case 20:\n $this->setBelKe17($value);\n break;\n case 21:\n $this->setBelKe18($value);\n break;\n case 22:\n $this->setBelKe19($value);\n break;\n case 23:\n $this->setBelKe20($value);\n break;\n case 24:\n $this->setCreateDate($value);\n break;\n case 25:\n $this->setLastUpdate($value);\n break;\n case 26:\n $this->setSoftDelete($value);\n break;\n case 27:\n $this->setLastSync($value);\n break;\n case 28:\n $this->setUpdaterId($value);\n break;\n } // switch()\n }",
"public function setPositionAttribute($input)\n {\n $this->attributes['position'] = $input ? $input : null;\n }",
"public function __set($fieldName, $fieldValue) {\n\t\t$this->document->$fieldName = json_decode(json_encode($fieldValue));\n\t}",
"public function testSetFieldValueWithProxy()\n {\n $document = new Album('ten');\n $this->documentManager->persist($document);\n $this->documentManager->flush();\n $this->documentManager->clear();\n\n //get the proxy\n $proxy = $this->documentManager->getReference(\n 'Zoop\\Shard\\Test\\ODMCore\\TestAsset\\Document\\Album',\n $document->getId()\n );\n\n //get metadata\n $metadata = $this->documentManager->getClassMetadata('Zoop\\Shard\\Test\\ODMCore\\TestAsset\\Document\\Album');\n\n //set a field\n $metadata->setFieldValue($proxy, 'name', 'nevermind');\n\n //flush changes\n $this->documentManager->flush();\n $this->documentManager->clear();\n\n //check that changes did get flushed\n $proxy = $this->documentManager->getReference(\n 'Zoop\\Shard\\Test\\ODMCore\\TestAsset\\Document\\Album',\n $document->getId()\n );\n\n $this->assertEquals('nevermind', $proxy->getName());\n }",
"public function set($field, $value) {\n $this->$field = $value;\n }",
"private function setPositionInstance($x, $y = null)\n {\n if (is_array($x) && $y === null) {\n $this->position = new Position($x[0], $y[1]);\n } else {\n $this->position = new Position($x, $y);\n }\n\n }",
"public function setByPosition($pos, $value)\n {\n switch ($pos) {\n case 0:\n $this->setProdId($value);\n break;\n case 1:\n $this->setProdPriceId($value);\n break;\n case 2:\n $this->setProdName($value);\n break;\n case 3:\n $this->setProdAlt1($value);\n break;\n case 4:\n $this->setProdAlt2($value);\n break;\n case 5:\n $this->setProdAlt3($value);\n break;\n case 6:\n $this->setProdAlt4($value);\n break;\n case 7:\n $this->setProdCode($value);\n break;\n case 8:\n $this->setProdCategory($value);\n break;\n case 9:\n $this->setProdCategoryShipping($value);\n break;\n case 10:\n $this->setProdWriteup($value);\n break;\n case 11:\n $this->setProdLength($value);\n break;\n case 12:\n $this->setProdWingspan($value);\n break;\n case 13:\n $this->setProdHeight($value);\n break;\n case 14:\n $this->setProdScale($value);\n break;\n case 15:\n $this->setProdLinks($value);\n break;\n case 16:\n $this->setProdLinkdescription($value);\n break;\n case 17:\n $this->setProdFront($value);\n break;\n case 18:\n $this->setProdKeywords($value);\n break;\n case 19:\n $this->setProdKeywordsWriteup($value);\n break;\n case 20:\n $this->setProdTitle($value);\n break;\n case 21:\n $this->setProdDescription($value);\n break;\n case 22:\n $this->setProdGeneral($value);\n break;\n case 23:\n $this->setProdEra($value);\n break;\n case 24:\n $this->setProdCompany($value);\n break;\n case 25:\n $this->setProdRelated($value);\n break;\n case 26:\n $this->setProdRelatedPa($value);\n break;\n case 27:\n $this->setProdRelatedM3($value);\n break;\n case 28:\n $this->setProdRelated2($value);\n break;\n case 29:\n $this->setProdSaveas($value);\n break;\n case 30:\n $this->setProdAircraftreg($value);\n break;\n case 31:\n $this->setMb($value);\n break;\n case 32:\n $this->setPa($value);\n break;\n case 33:\n $this->setM3($value);\n break;\n } // switch()\n\n return $this;\n }",
"public function setField(string $field): void\n {\n $this->field = $field;\n }",
"public function set($offset, $value);",
"private function setAttributeFieldValue()\n {\n // Get all our attribute objects\n $proxiedAttrs = $this->getAttributes();\n \n $data = [];\n foreach ($proxiedAttrs as $attrObjArr) {\n foreach ($attrObjArr as $attrObj) {\n $dataKey = $attrObj->getFieldName();\n $dataVal = $this->getRequest()->postVar($dataKey);\n $data[$dataKey] = $dataVal;\n }\n }\n \n $json = $this->dbObject('AttributeData')->toJson($data);\n $this->setField('AttributeData', $json);\n }",
"public function setX($x) {}",
"public function setPatternedField(string $field, $value): ObjectInterface;",
"function position( $x, $y )\n\t{\n\t\t$this->x = $x;\n\t\t$this->y = $y;\n\t}",
"protected function tempPosition()\n {\n $this->{$this->getPositionColumn()} = static::$insanePosition;\n $this->save();\n }",
"public function setByPosition($pos, $value)\n {\n switch ($pos) {\n case 0:\n $this->setIdmontacargas($value);\n break;\n case 1:\n $this->setIdsucursal($value);\n break;\n case 2:\n $this->setMontacargasModelo($value);\n break;\n case 3:\n $this->setMontacargasMarca($value);\n break;\n case 4:\n $this->setMontacargasC($value);\n break;\n case 5:\n $this->setMontacargasK($value);\n break;\n case 6:\n $this->setMontacargasP($value);\n break;\n case 7:\n $this->setMontacargasT($value);\n break;\n case 8:\n $this->setMontacargasE($value);\n break;\n case 9:\n $this->setMontacargasVolts($value);\n break;\n case 10:\n $this->setMontacargasAmperaje($value);\n break;\n case 11:\n $this->setMontacargasNombre($value);\n break;\n case 12:\n $this->setMontacargasNumserie($value);\n break;\n case 13:\n $this->setMontacargasComprador($value);\n break;\n case 14:\n $this->setMontacargasCiclosmant($value);\n break;\n case 15:\n $this->setMontacargasCiclosiniciales($value);\n break;\n case 16:\n $this->setMontacargasBaja($value);\n break;\n } // switch()\n }",
"protected function _updatefields() {}",
"protected function setLocalField($field, $value) {\n if ($field == 'union_name') {\n $field = 'organization_name';\n }\n #converts phone field so it's found in union's telecommunication_number\n if ($field == 'union_phone_no') {\n $field = 'contact_number';\n }\n return parent::setLocalField($field, $value);\n }",
"public function __set($field, $value)\n {\n if (array_key_exists($field, $this->fields))\n {\n $this->fields[$field] = $value;\n }\n }",
"public function __set($field, $value)\n {\n if (array_key_exists($field, $this->fields))\n {\n $this->fields[$field] = $value;\n }\n }",
"public function setField(FieldInterface $field);",
"public function set_position(INT $_position){\n $this->_position = $_position;\n\n return $this;\n }"
] | [
"0.652872",
"0.6344248",
"0.62873644",
"0.62873644",
"0.6219781",
"0.6219009",
"0.6206481",
"0.61697066",
"0.61684006",
"0.61590666",
"0.6144966",
"0.6099289",
"0.60849416",
"0.6078718",
"0.6078718",
"0.6074964",
"0.60702604",
"0.6067187",
"0.60593385",
"0.60496074",
"0.60372424",
"0.60160863",
"0.60149866",
"0.6000247",
"0.59826845",
"0.5980759",
"0.5931327",
"0.592245",
"0.59187764",
"0.591333",
"0.58820283",
"0.58541125",
"0.5845118",
"0.58441395",
"0.583067",
"0.58090925",
"0.5797752",
"0.5796813",
"0.5778026",
"0.5772964",
"0.57712066",
"0.5757976",
"0.57554543",
"0.5744829",
"0.57221454",
"0.5718847",
"0.5711291",
"0.5705501",
"0.5687979",
"0.5682525",
"0.5626613",
"0.5616455",
"0.5613292",
"0.56123006",
"0.56100005",
"0.5570588",
"0.5558833",
"0.5553655",
"0.55491954",
"0.5508179",
"0.55074584",
"0.55074584",
"0.5507106",
"0.5506831",
"0.5496715",
"0.5496715",
"0.54844",
"0.54800266",
"0.5476657",
"0.5475935",
"0.5475935",
"0.5460758",
"0.54565054",
"0.54476994",
"0.5446393",
"0.54309726",
"0.5418309",
"0.5409579",
"0.54048645",
"0.53761345",
"0.537347",
"0.53710383",
"0.53691876",
"0.5355027",
"0.5354407",
"0.53453946",
"0.5344439",
"0.5343185",
"0.5339842",
"0.53394294",
"0.53351206",
"0.53321743",
"0.53191465",
"0.5303766",
"0.526409",
"0.5263707",
"0.52535397",
"0.52535397",
"0.5219668",
"0.5214239"
] | 0.56779337 | 50 |
Populates the object using an array. This is particularly useful when populating an object from one of the request arrays (e.g. $_POST). This method goes through the column names, checking to see whether a matching key exists in populated array. If so the setByName() method is called for that column. You can specify the key type of the array by additionally passing one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. The default key type is the column's BasePeer::TYPE_PHPNAME | public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME)
{
$keys = OperationPrimesPeer::getFieldNames($keyType);
if (array_key_exists($keys[0], $arr)) $this->setOpPrimeId($arr[$keys[0]]);
if (array_key_exists($keys[1], $arr)) $this->setOpId($arr[$keys[1]]);
if (array_key_exists($keys[2], $arr)) $this->setOpPrimeLibelle($arr[$keys[2]]);
if (array_key_exists($keys[3], $arr)) $this->setOpPrimeNumero($arr[$keys[3]]);
if (array_key_exists($keys[4], $arr)) $this->setGdlArtId($arr[$keys[4]]);
if (array_key_exists($keys[5], $arr)) $this->setOperationPrimeCurrencyId($arr[$keys[5]]);
if (array_key_exists($keys[6], $arr)) $this->setOperationPrimeRRewardTypeId($arr[$keys[6]]);
if (array_key_exists($keys[7], $arr)) $this->setOperationPrimeRRewardExpeditionModeId($arr[$keys[7]]);
if (array_key_exists($keys[8], $arr)) $this->setOperationPrimeRRewardTransporterId($arr[$keys[8]]);
if (array_key_exists($keys[9], $arr)) $this->setOperationPrimeFixedAmount($arr[$keys[9]]);
if (array_key_exists($keys[10], $arr)) $this->setOperationPrimeProductPricePourcentage($arr[$keys[10]]);
if (array_key_exists($keys[11], $arr)) $this->setOperationPrimeMaximumAmount($arr[$keys[11]]);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function fromArray($arr, $keyType = TableMap::TYPE_PHPNAME)\n {\n $keys = AliMemberTableMap::getFieldNames($keyType);\n\n if (array_key_exists($keys[0], $arr)) {\n $this->setId($arr[$keys[0]]);\n }\n if (array_key_exists($keys[1], $arr)) {\n $this->setMcode($arr[$keys[1]]);\n }\n if (array_key_exists($keys[2], $arr)) {\n $this->setNameF($arr[$keys[2]]);\n }\n if (array_key_exists($keys[3], $arr)) {\n $this->setNameT($arr[$keys[3]]);\n }\n if (array_key_exists($keys[4], $arr)) {\n $this->setNameE($arr[$keys[4]]);\n }\n if (array_key_exists($keys[5], $arr)) {\n $this->setPosid($arr[$keys[5]]);\n }\n if (array_key_exists($keys[6], $arr)) {\n $this->setMdate($arr[$keys[6]]);\n }\n if (array_key_exists($keys[7], $arr)) {\n $this->setBirthday($arr[$keys[7]]);\n }\n if (array_key_exists($keys[8], $arr)) {\n $this->setNational($arr[$keys[8]]);\n }\n if (array_key_exists($keys[9], $arr)) {\n $this->setIdTax($arr[$keys[9]]);\n }\n if (array_key_exists($keys[10], $arr)) {\n $this->setIdCard($arr[$keys[10]]);\n }\n if (array_key_exists($keys[11], $arr)) {\n $this->setIdCardImg($arr[$keys[11]]);\n }\n if (array_key_exists($keys[12], $arr)) {\n $this->setIdCardImgDate($arr[$keys[12]]);\n }\n if (array_key_exists($keys[13], $arr)) {\n $this->setZip($arr[$keys[13]]);\n }\n if (array_key_exists($keys[14], $arr)) {\n $this->setHomeT($arr[$keys[14]]);\n }\n if (array_key_exists($keys[15], $arr)) {\n $this->setOfficeT($arr[$keys[15]]);\n }\n if (array_key_exists($keys[16], $arr)) {\n $this->setMobile($arr[$keys[16]]);\n }\n if (array_key_exists($keys[17], $arr)) {\n $this->setMcodeAcc($arr[$keys[17]]);\n }\n if (array_key_exists($keys[18], $arr)) {\n $this->setBonusrec($arr[$keys[18]]);\n }\n if (array_key_exists($keys[19], $arr)) {\n $this->setBankcode($arr[$keys[19]]);\n }\n if (array_key_exists($keys[20], $arr)) {\n $this->setBranch($arr[$keys[20]]);\n }\n if (array_key_exists($keys[21], $arr)) {\n $this->setAccType($arr[$keys[21]]);\n }\n if (array_key_exists($keys[22], $arr)) {\n $this->setAccNo($arr[$keys[22]]);\n }\n if (array_key_exists($keys[23], $arr)) {\n $this->setAccNoImg($arr[$keys[23]]);\n }\n if (array_key_exists($keys[24], $arr)) {\n $this->setAccNoImgDate($arr[$keys[24]]);\n }\n if (array_key_exists($keys[25], $arr)) {\n $this->setAccName($arr[$keys[25]]);\n }\n if (array_key_exists($keys[26], $arr)) {\n $this->setAccProv($arr[$keys[26]]);\n }\n if (array_key_exists($keys[27], $arr)) {\n $this->setSvCode($arr[$keys[27]]);\n }\n if (array_key_exists($keys[28], $arr)) {\n $this->setSpCode($arr[$keys[28]]);\n }\n if (array_key_exists($keys[29], $arr)) {\n $this->setSpName($arr[$keys[29]]);\n }\n if (array_key_exists($keys[30], $arr)) {\n $this->setSpCode2($arr[$keys[30]]);\n }\n if (array_key_exists($keys[31], $arr)) {\n $this->setSpName2($arr[$keys[31]]);\n }\n if (array_key_exists($keys[32], $arr)) {\n $this->setUpaCode($arr[$keys[32]]);\n }\n if (array_key_exists($keys[33], $arr)) {\n $this->setUpaName($arr[$keys[33]]);\n }\n if (array_key_exists($keys[34], $arr)) {\n $this->setLr($arr[$keys[34]]);\n }\n if (array_key_exists($keys[35], $arr)) {\n $this->setComplete($arr[$keys[35]]);\n }\n if (array_key_exists($keys[36], $arr)) {\n $this->setCompdate($arr[$keys[36]]);\n }\n if (array_key_exists($keys[37], $arr)) {\n $this->setModate($arr[$keys[37]]);\n }\n if (array_key_exists($keys[38], $arr)) {\n $this->setUsercode($arr[$keys[38]]);\n }\n if (array_key_exists($keys[39], $arr)) {\n $this->setNameB($arr[$keys[39]]);\n }\n if (array_key_exists($keys[40], $arr)) {\n $this->setSex($arr[$keys[40]]);\n }\n if (array_key_exists($keys[41], $arr)) {\n $this->setAge($arr[$keys[41]]);\n }\n if (array_key_exists($keys[42], $arr)) {\n $this->setOccupation($arr[$keys[42]]);\n }\n if (array_key_exists($keys[43], $arr)) {\n $this->setStatus($arr[$keys[43]]);\n }\n if (array_key_exists($keys[44], $arr)) {\n $this->setMarName($arr[$keys[44]]);\n }\n if (array_key_exists($keys[45], $arr)) {\n $this->setMarAge($arr[$keys[45]]);\n }\n if (array_key_exists($keys[46], $arr)) {\n $this->setEmail($arr[$keys[46]]);\n }\n if (array_key_exists($keys[47], $arr)) {\n $this->setBeneficiaries($arr[$keys[47]]);\n }\n if (array_key_exists($keys[48], $arr)) {\n $this->setRelation($arr[$keys[48]]);\n }\n if (array_key_exists($keys[49], $arr)) {\n $this->setDistrictid($arr[$keys[49]]);\n }\n if (array_key_exists($keys[50], $arr)) {\n $this->setAmphurid($arr[$keys[50]]);\n }\n if (array_key_exists($keys[51], $arr)) {\n $this->setProvinceid($arr[$keys[51]]);\n }\n if (array_key_exists($keys[52], $arr)) {\n $this->setFax($arr[$keys[52]]);\n }\n if (array_key_exists($keys[53], $arr)) {\n $this->setInvCode($arr[$keys[53]]);\n }\n if (array_key_exists($keys[54], $arr)) {\n $this->setUid($arr[$keys[54]]);\n }\n if (array_key_exists($keys[55], $arr)) {\n $this->setOid($arr[$keys[55]]);\n }\n if (array_key_exists($keys[56], $arr)) {\n $this->setPosCur($arr[$keys[56]]);\n }\n if (array_key_exists($keys[57], $arr)) {\n $this->setPosCur1($arr[$keys[57]]);\n }\n if (array_key_exists($keys[58], $arr)) {\n $this->setPosCur2($arr[$keys[58]]);\n }\n if (array_key_exists($keys[59], $arr)) {\n $this->setPosCur3($arr[$keys[59]]);\n }\n if (array_key_exists($keys[60], $arr)) {\n $this->setPosCur4($arr[$keys[60]]);\n }\n if (array_key_exists($keys[61], $arr)) {\n $this->setPosCurTmp($arr[$keys[61]]);\n }\n if (array_key_exists($keys[62], $arr)) {\n $this->setRposCur4($arr[$keys[62]]);\n }\n if (array_key_exists($keys[63], $arr)) {\n $this->setPosCur3Date($arr[$keys[63]]);\n }\n if (array_key_exists($keys[64], $arr)) {\n $this->setMemdesc($arr[$keys[64]]);\n }\n if (array_key_exists($keys[65], $arr)) {\n $this->setCmp($arr[$keys[65]]);\n }\n if (array_key_exists($keys[66], $arr)) {\n $this->setCmp2($arr[$keys[66]]);\n }\n if (array_key_exists($keys[67], $arr)) {\n $this->setCmp3($arr[$keys[67]]);\n }\n if (array_key_exists($keys[68], $arr)) {\n $this->setCcmp($arr[$keys[68]]);\n }\n if (array_key_exists($keys[69], $arr)) {\n $this->setCcmp2($arr[$keys[69]]);\n }\n if (array_key_exists($keys[70], $arr)) {\n $this->setCcmp3($arr[$keys[70]]);\n }\n if (array_key_exists($keys[71], $arr)) {\n $this->setAddress($arr[$keys[71]]);\n }\n if (array_key_exists($keys[72], $arr)) {\n $this->setStreet($arr[$keys[72]]);\n }\n if (array_key_exists($keys[73], $arr)) {\n $this->setBuilding($arr[$keys[73]]);\n }\n if (array_key_exists($keys[74], $arr)) {\n $this->setVillage($arr[$keys[74]]);\n }\n if (array_key_exists($keys[75], $arr)) {\n $this->setSoi($arr[$keys[75]]);\n }\n if (array_key_exists($keys[76], $arr)) {\n $this->setEwallet($arr[$keys[76]]);\n }\n if (array_key_exists($keys[77], $arr)) {\n $this->setEatoship($arr[$keys[77]]);\n }\n if (array_key_exists($keys[78], $arr)) {\n $this->setEcom($arr[$keys[78]]);\n }\n if (array_key_exists($keys[79], $arr)) {\n $this->setBmdate1($arr[$keys[79]]);\n }\n if (array_key_exists($keys[80], $arr)) {\n $this->setBmdate2($arr[$keys[80]]);\n }\n if (array_key_exists($keys[81], $arr)) {\n $this->setBmdate3($arr[$keys[81]]);\n }\n if (array_key_exists($keys[82], $arr)) {\n $this->setCbmdate1($arr[$keys[82]]);\n }\n if (array_key_exists($keys[83], $arr)) {\n $this->setCbmdate2($arr[$keys[83]]);\n }\n if (array_key_exists($keys[84], $arr)) {\n $this->setCbmdate3($arr[$keys[84]]);\n }\n if (array_key_exists($keys[85], $arr)) {\n $this->setOnline($arr[$keys[85]]);\n }\n if (array_key_exists($keys[86], $arr)) {\n $this->setCnameF($arr[$keys[86]]);\n }\n if (array_key_exists($keys[87], $arr)) {\n $this->setCnameT($arr[$keys[87]]);\n }\n if (array_key_exists($keys[88], $arr)) {\n $this->setCnameE($arr[$keys[88]]);\n }\n if (array_key_exists($keys[89], $arr)) {\n $this->setCnameB($arr[$keys[89]]);\n }\n if (array_key_exists($keys[90], $arr)) {\n $this->setCbirthday($arr[$keys[90]]);\n }\n if (array_key_exists($keys[91], $arr)) {\n $this->setCnational($arr[$keys[91]]);\n }\n if (array_key_exists($keys[92], $arr)) {\n $this->setCidTax($arr[$keys[92]]);\n }\n if (array_key_exists($keys[93], $arr)) {\n $this->setCidCard($arr[$keys[93]]);\n }\n if (array_key_exists($keys[94], $arr)) {\n $this->setCaddress($arr[$keys[94]]);\n }\n if (array_key_exists($keys[95], $arr)) {\n $this->setCbuilding($arr[$keys[95]]);\n }\n if (array_key_exists($keys[96], $arr)) {\n $this->setCvillage($arr[$keys[96]]);\n }\n if (array_key_exists($keys[97], $arr)) {\n $this->setCstreet($arr[$keys[97]]);\n }\n if (array_key_exists($keys[98], $arr)) {\n $this->setCsoi($arr[$keys[98]]);\n }\n if (array_key_exists($keys[99], $arr)) {\n $this->setCzip($arr[$keys[99]]);\n }\n if (array_key_exists($keys[100], $arr)) {\n $this->setChomeT($arr[$keys[100]]);\n }\n if (array_key_exists($keys[101], $arr)) {\n $this->setCofficeT($arr[$keys[101]]);\n }\n if (array_key_exists($keys[102], $arr)) {\n $this->setCmobile($arr[$keys[102]]);\n }\n if (array_key_exists($keys[103], $arr)) {\n $this->setCfax($arr[$keys[103]]);\n }\n if (array_key_exists($keys[104], $arr)) {\n $this->setCsex($arr[$keys[104]]);\n }\n if (array_key_exists($keys[105], $arr)) {\n $this->setCemail($arr[$keys[105]]);\n }\n if (array_key_exists($keys[106], $arr)) {\n $this->setCdistrictid($arr[$keys[106]]);\n }\n if (array_key_exists($keys[107], $arr)) {\n $this->setCamphurid($arr[$keys[107]]);\n }\n if (array_key_exists($keys[108], $arr)) {\n $this->setCprovinceid($arr[$keys[108]]);\n }\n if (array_key_exists($keys[109], $arr)) {\n $this->setInameF($arr[$keys[109]]);\n }\n if (array_key_exists($keys[110], $arr)) {\n $this->setInameT($arr[$keys[110]]);\n }\n if (array_key_exists($keys[111], $arr)) {\n $this->setIrelation($arr[$keys[111]]);\n }\n if (array_key_exists($keys[112], $arr)) {\n $this->setIphone($arr[$keys[112]]);\n }\n if (array_key_exists($keys[113], $arr)) {\n $this->setIidCard($arr[$keys[113]]);\n }\n if (array_key_exists($keys[114], $arr)) {\n $this->setStatusDoc($arr[$keys[114]]);\n }\n if (array_key_exists($keys[115], $arr)) {\n $this->setStatusExpire($arr[$keys[115]]);\n }\n if (array_key_exists($keys[116], $arr)) {\n $this->setStatusTerminate($arr[$keys[116]]);\n }\n if (array_key_exists($keys[117], $arr)) {\n $this->setTerminateDate($arr[$keys[117]]);\n }\n if (array_key_exists($keys[118], $arr)) {\n $this->setStatusSuspend($arr[$keys[118]]);\n }\n if (array_key_exists($keys[119], $arr)) {\n $this->setSuspendDate($arr[$keys[119]]);\n }\n if (array_key_exists($keys[120], $arr)) {\n $this->setStatusBlacklist($arr[$keys[120]]);\n }\n if (array_key_exists($keys[121], $arr)) {\n $this->setStatusAto($arr[$keys[121]]);\n }\n if (array_key_exists($keys[122], $arr)) {\n $this->setSletter($arr[$keys[122]]);\n }\n if (array_key_exists($keys[123], $arr)) {\n $this->setSinvCode($arr[$keys[123]]);\n }\n if (array_key_exists($keys[124], $arr)) {\n $this->setTxtoption($arr[$keys[124]]);\n }\n if (array_key_exists($keys[125], $arr)) {\n $this->setSetregis($arr[$keys[125]]);\n }\n if (array_key_exists($keys[126], $arr)) {\n $this->setSlr($arr[$keys[126]]);\n }\n if (array_key_exists($keys[127], $arr)) {\n $this->setLocationbase($arr[$keys[127]]);\n }\n if (array_key_exists($keys[128], $arr)) {\n $this->setCidMobile($arr[$keys[128]]);\n }\n if (array_key_exists($keys[129], $arr)) {\n $this->setBewallet($arr[$keys[129]]);\n }\n if (array_key_exists($keys[130], $arr)) {\n $this->setBvoucher($arr[$keys[130]]);\n }\n if (array_key_exists($keys[131], $arr)) {\n $this->setVoucher($arr[$keys[131]]);\n }\n if (array_key_exists($keys[132], $arr)) {\n $this->setManager($arr[$keys[132]]);\n }\n if (array_key_exists($keys[133], $arr)) {\n $this->setMtype($arr[$keys[133]]);\n }\n if (array_key_exists($keys[134], $arr)) {\n $this->setMtype1($arr[$keys[134]]);\n }\n if (array_key_exists($keys[135], $arr)) {\n $this->setMtype2($arr[$keys[135]]);\n }\n if (array_key_exists($keys[136], $arr)) {\n $this->setMvat($arr[$keys[136]]);\n }\n if (array_key_exists($keys[137], $arr)) {\n $this->setUidbase($arr[$keys[137]]);\n }\n if (array_key_exists($keys[138], $arr)) {\n $this->setExpDate($arr[$keys[138]]);\n }\n if (array_key_exists($keys[139], $arr)) {\n $this->setHeadCode($arr[$keys[139]]);\n }\n if (array_key_exists($keys[140], $arr)) {\n $this->setPvL($arr[$keys[140]]);\n }\n if (array_key_exists($keys[141], $arr)) {\n $this->setPvC($arr[$keys[141]]);\n }\n if (array_key_exists($keys[142], $arr)) {\n $this->setHpvL($arr[$keys[142]]);\n }\n if (array_key_exists($keys[143], $arr)) {\n $this->setHpvC($arr[$keys[143]]);\n }\n if (array_key_exists($keys[144], $arr)) {\n $this->setPvLNextmonth($arr[$keys[144]]);\n }\n if (array_key_exists($keys[145], $arr)) {\n $this->setPvCNextmonth($arr[$keys[145]]);\n }\n if (array_key_exists($keys[146], $arr)) {\n $this->setPvLLastmonth1($arr[$keys[146]]);\n }\n if (array_key_exists($keys[147], $arr)) {\n $this->setPvCLastmonth1($arr[$keys[147]]);\n }\n if (array_key_exists($keys[148], $arr)) {\n $this->setPvLLastmonth2($arr[$keys[148]]);\n }\n if (array_key_exists($keys[149], $arr)) {\n $this->setPvCLastmonth2($arr[$keys[149]]);\n }\n if (array_key_exists($keys[150], $arr)) {\n $this->setRcodeStar($arr[$keys[150]]);\n }\n if (array_key_exists($keys[151], $arr)) {\n $this->setBunit($arr[$keys[151]]);\n }\n if (array_key_exists($keys[152], $arr)) {\n $this->setProvince($arr[$keys[152]]);\n }\n if (array_key_exists($keys[153], $arr)) {\n $this->setLineId($arr[$keys[153]]);\n }\n if (array_key_exists($keys[154], $arr)) {\n $this->setFacebookName($arr[$keys[154]]);\n }\n if (array_key_exists($keys[155], $arr)) {\n $this->setTypeCom($arr[$keys[155]]);\n }\n if (array_key_exists($keys[156], $arr)) {\n $this->setExpPos($arr[$keys[156]]);\n }\n if (array_key_exists($keys[157], $arr)) {\n $this->setExpPos60($arr[$keys[157]]);\n }\n if (array_key_exists($keys[158], $arr)) {\n $this->setTripPrivate($arr[$keys[158]]);\n }\n if (array_key_exists($keys[159], $arr)) {\n $this->setTripTeam($arr[$keys[159]]);\n }\n if (array_key_exists($keys[160], $arr)) {\n $this->setMyfile1($arr[$keys[160]]);\n }\n if (array_key_exists($keys[161], $arr)) {\n $this->setMyfile2($arr[$keys[161]]);\n }\n if (array_key_exists($keys[162], $arr)) {\n $this->setClineId($arr[$keys[162]]);\n }\n if (array_key_exists($keys[163], $arr)) {\n $this->setCfacebookName($arr[$keys[163]]);\n }\n if (array_key_exists($keys[164], $arr)) {\n $this->setProfileImg($arr[$keys[164]]);\n }\n if (array_key_exists($keys[165], $arr)) {\n $this->setAtocom($arr[$keys[165]]);\n }\n if (array_key_exists($keys[166], $arr)) {\n $this->setHpv($arr[$keys[166]]);\n }\n }",
"public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME)\n\t{\n\t\t$keys = UserPeer::getFieldNames($keyType);\n\n\t\tif (array_key_exists($keys[0], $arr)) $this->setId($arr[$keys[0]]);\n\t\tif (array_key_exists($keys[1], $arr)) $this->setUsername($arr[$keys[1]]);\n\t\tif (array_key_exists($keys[2], $arr)) $this->setEmail($arr[$keys[2]]);\n\t\tif (array_key_exists($keys[3], $arr)) $this->setPassword($arr[$keys[3]]);\n\t\tif (array_key_exists($keys[4], $arr)) $this->setPoints($arr[$keys[4]]);\n\t\tif (array_key_exists($keys[5], $arr)) $this->setCreatedAt($arr[$keys[5]]);\n\t\tif (array_key_exists($keys[6], $arr)) $this->setLastActivityAt($arr[$keys[6]]);\n\t\tif (array_key_exists($keys[7], $arr)) $this->setType($arr[$keys[7]]);\n\t\tif (array_key_exists($keys[8], $arr)) $this->setHidden($arr[$keys[8]]);\n\t\tif (array_key_exists($keys[9], $arr)) $this->setName($arr[$keys[9]]);\n\t\tif (array_key_exists($keys[10], $arr)) $this->setGender($arr[$keys[10]]);\n\t\tif (array_key_exists($keys[11], $arr)) $this->setHometown($arr[$keys[11]]);\n\t\tif (array_key_exists($keys[12], $arr)) $this->setHomePhone($arr[$keys[12]]);\n\t\tif (array_key_exists($keys[13], $arr)) $this->setMobilePhone($arr[$keys[13]]);\n\t\tif (array_key_exists($keys[14], $arr)) $this->setBirthdate($arr[$keys[14]]);\n\t\tif (array_key_exists($keys[15], $arr)) $this->setAddress($arr[$keys[15]]);\n\t\tif (array_key_exists($keys[16], $arr)) $this->setRelationshipStatus($arr[$keys[16]]);\n\t\tif (array_key_exists($keys[17], $arr)) $this->setShowEmail($arr[$keys[17]]);\n\t\tif (array_key_exists($keys[18], $arr)) $this->setShowGender($arr[$keys[18]]);\n\t\tif (array_key_exists($keys[19], $arr)) $this->setShowHometown($arr[$keys[19]]);\n\t\tif (array_key_exists($keys[20], $arr)) $this->setShowHomePhone($arr[$keys[20]]);\n\t\tif (array_key_exists($keys[21], $arr)) $this->setShowMobilePhone($arr[$keys[21]]);\n\t\tif (array_key_exists($keys[22], $arr)) $this->setShowBirthdate($arr[$keys[22]]);\n\t\tif (array_key_exists($keys[23], $arr)) $this->setShowAddress($arr[$keys[23]]);\n\t\tif (array_key_exists($keys[24], $arr)) $this->setShowRelationshipStatus($arr[$keys[24]]);\n\t\tif (array_key_exists($keys[25], $arr)) $this->setPasswordRecoverKey($arr[$keys[25]]);\n\t\tif (array_key_exists($keys[26], $arr)) $this->setCookieKey($arr[$keys[26]]);\n\t\tif (array_key_exists($keys[27], $arr)) $this->setCredit($arr[$keys[27]]);\n\t\tif (array_key_exists($keys[28], $arr)) $this->setInvisible($arr[$keys[28]]);\n\t\tif (array_key_exists($keys[29], $arr)) $this->setNotification($arr[$keys[29]]);\n\t\tif (array_key_exists($keys[30], $arr)) $this->setPhoneNumber($arr[$keys[30]]);\n\t\tif (array_key_exists($keys[31], $arr)) $this->setLogin($arr[$keys[31]]);\n\t\tif (array_key_exists($keys[32], $arr)) $this->setCreditCard($arr[$keys[32]]);\n\t\tif (array_key_exists($keys[33], $arr)) $this->setCreditCardToken($arr[$keys[33]]);\n\t\tif (array_key_exists($keys[34], $arr)) $this->setFirstCharge($arr[$keys[34]]);\n\t\tif (array_key_exists($keys[35], $arr)) $this->setWhereFindUs($arr[$keys[35]]);\n\t}",
"public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME)\n\t{\n\t\t$keys = UserPeer::getFieldNames($keyType);\n\n\t\tif (array_key_exists($keys[0], $arr)) $this->setId($arr[$keys[0]]);\n\t\tif (array_key_exists($keys[1], $arr)) $this->setEmail($arr[$keys[1]]);\n\t\tif (array_key_exists($keys[2], $arr)) $this->setDisplayName($arr[$keys[2]]);\n\t\tif (array_key_exists($keys[3], $arr)) $this->setRealName($arr[$keys[3]]);\n\t\tif (array_key_exists($keys[4], $arr)) $this->setLocation($arr[$keys[4]]);\n\t\tif (array_key_exists($keys[5], $arr)) $this->setWebpage($arr[$keys[5]]);\n\t\tif (array_key_exists($keys[6], $arr)) $this->setCountry($arr[$keys[6]]);\n\t\tif (array_key_exists($keys[7], $arr)) $this->setPostalCode($arr[$keys[7]]);\n\t\tif (array_key_exists($keys[8], $arr)) $this->setBirthday($arr[$keys[8]]);\n\t\tif (array_key_exists($keys[9], $arr)) $this->setGravatarAddress($arr[$keys[9]]);\n\t\tif (array_key_exists($keys[10], $arr)) $this->setInfo($arr[$keys[10]]);\n\t\tif (array_key_exists($keys[11], $arr)) $this->setPlatform($arr[$keys[11]]);\n\t\tif (array_key_exists($keys[12], $arr)) $this->setExperienceScore($arr[$keys[12]]);\n\t\tif (array_key_exists($keys[13], $arr)) $this->setUpVotes($arr[$keys[13]]);\n\t\tif (array_key_exists($keys[14], $arr)) $this->setDownVotes($arr[$keys[14]]);\n\t\tif (array_key_exists($keys[15], $arr)) $this->setIsGuest($arr[$keys[15]]);\n\t\tif (array_key_exists($keys[16], $arr)) $this->setIsAdmin($arr[$keys[16]]);\n\t\tif (array_key_exists($keys[17], $arr)) $this->setTodayVotes($arr[$keys[17]]);\n\t\tif (array_key_exists($keys[18], $arr)) $this->setEmailOn($arr[$keys[18]]);\n\t\tif (array_key_exists($keys[19], $arr)) $this->setLastEmail($arr[$keys[19]]);\n\t\tif (array_key_exists($keys[20], $arr)) $this->setCreatedAt($arr[$keys[20]]);\n\t\tif (array_key_exists($keys[21], $arr)) $this->setUpdatedAt($arr[$keys[21]]);\n\t}",
"public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME)\n\t{\n\t\t$keys = VenuePeer::getFieldNames($keyType);\n\n\t\tif (array_key_exists($keys[0], $arr)) $this->setVenueid($arr[$keys[0]]);\n\t\tif (array_key_exists($keys[1], $arr)) $this->setAddress($arr[$keys[1]]);\n\t\tif (array_key_exists($keys[2], $arr)) $this->setAddress2($arr[$keys[2]]);\n\t\tif (array_key_exists($keys[3], $arr)) $this->setCity($arr[$keys[3]]);\n\t\tif (array_key_exists($keys[4], $arr)) $this->setProvince($arr[$keys[4]]);\n\t\tif (array_key_exists($keys[5], $arr)) $this->setCountry($arr[$keys[5]]);\n\t\tif (array_key_exists($keys[6], $arr)) $this->setLatitude($arr[$keys[6]]);\n\t\tif (array_key_exists($keys[7], $arr)) $this->setLongitude($arr[$keys[7]]);\n\t\tif (array_key_exists($keys[8], $arr)) $this->setPhone($arr[$keys[8]]);\n\t\tif (array_key_exists($keys[9], $arr)) $this->setName($arr[$keys[9]]);\n\t\tif (array_key_exists($keys[10], $arr)) $this->setDescription($arr[$keys[10]]);\n\t\tif (array_key_exists($keys[11], $arr)) $this->setWebsite($arr[$keys[11]]);\n\t\tif (array_key_exists($keys[12], $arr)) $this->setTwitter($arr[$keys[12]]);\n\t\tif (array_key_exists($keys[13], $arr)) $this->setFacebook($arr[$keys[13]]);\n\t\tif (array_key_exists($keys[14], $arr)) $this->setRssfeed($arr[$keys[14]]);\n\t\tif (array_key_exists($keys[15], $arr)) $this->setClosed($arr[$keys[15]]);\n\t\tif (array_key_exists($keys[16], $arr)) $this->setLastfmid($arr[$keys[16]]);\n\t\tif (array_key_exists($keys[17], $arr)) $this->setSlug($arr[$keys[17]]);\n\t\tif (array_key_exists($keys[18], $arr)) $this->setHasphotos($arr[$keys[18]]);\n\t\tif (array_key_exists($keys[19], $arr)) $this->setSubmittedbyuser($arr[$keys[19]]);\n\t}",
"public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME)\n\t{\n\t\t$keys = MmPeer::getFieldNames($keyType);\n\n\t\tif (array_key_exists($keys[0], $arr)) $this->setId($arr[$keys[0]]);\n\t\tif (array_key_exists($keys[1], $arr)) $this->setSubserial($arr[$keys[1]]);\n\t\tif (array_key_exists($keys[2], $arr)) $this->setAnnounce($arr[$keys[2]]);\n\t\tif (array_key_exists($keys[3], $arr)) $this->setMail($arr[$keys[3]]);\n\t\tif (array_key_exists($keys[4], $arr)) $this->setSerialId($arr[$keys[4]]);\n\t\tif (array_key_exists($keys[5], $arr)) $this->setRank($arr[$keys[5]]);\n\t\tif (array_key_exists($keys[6], $arr)) $this->setPrecinctId($arr[$keys[6]]);\n\t\tif (array_key_exists($keys[7], $arr)) $this->setGenreId($arr[$keys[7]]);\n\t\tif (array_key_exists($keys[8], $arr)) $this->setBroadcastId($arr[$keys[8]]);\n\t\tif (array_key_exists($keys[9], $arr)) $this->setCopyright($arr[$keys[9]]);\n\t\tif (array_key_exists($keys[10], $arr)) $this->setStatusId($arr[$keys[10]]);\n\t\tif (array_key_exists($keys[11], $arr)) $this->setRecorddate($arr[$keys[11]]);\n\t\tif (array_key_exists($keys[12], $arr)) $this->setPublicdate($arr[$keys[12]]);\n\t\tif (array_key_exists($keys[13], $arr)) $this->setEditorial1($arr[$keys[13]]);\n\t\tif (array_key_exists($keys[14], $arr)) $this->setEditorial2($arr[$keys[14]]);\n\t\tif (array_key_exists($keys[15], $arr)) $this->setEditorial3($arr[$keys[15]]);\n\t\tif (array_key_exists($keys[16], $arr)) $this->setAudio($arr[$keys[16]]);\n\t\tif (array_key_exists($keys[17], $arr)) $this->setDuration($arr[$keys[17]]);\n\t\tif (array_key_exists($keys[18], $arr)) $this->setNumView($arr[$keys[18]]);\n\t\tif (array_key_exists($keys[19], $arr)) $this->setComments($arr[$keys[19]]);\n\t}",
"public function fromArray($arr, $keyType = TableMap::TYPE_PHPNAME)\n {\n $keys = UserTableMap::getFieldNames($keyType);\n\n if (array_key_exists($keys[0], $arr)) {\n $this->setId($arr[$keys[0]]);\n }\n if (array_key_exists($keys[1], $arr)) {\n $this->setNickname($arr[$keys[1]]);\n }\n if (array_key_exists($keys[2], $arr)) {\n $this->setEmail($arr[$keys[2]]);\n }\n if (array_key_exists($keys[3], $arr)) {\n $this->setAge($arr[$keys[3]]);\n }\n if (array_key_exists($keys[4], $arr)) {\n $this->setSex($arr[$keys[4]]);\n }\n if (array_key_exists($keys[5], $arr)) {\n $this->setCreatedAt($arr[$keys[5]]);\n }\n if (array_key_exists($keys[6], $arr)) {\n $this->setUpdatedAt($arr[$keys[6]]);\n }\n }",
"public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME)\n {\n $keys = EventPeer::getFieldNames($keyType);\n\n if (array_key_exists($keys[0], $arr)) $this->setId($arr[$keys[0]]);\n if (array_key_exists($keys[1], $arr)) $this->setCode($arr[$keys[1]]);\n if (array_key_exists($keys[2], $arr)) $this->setCategory($arr[$keys[2]]);\n if (array_key_exists($keys[3], $arr)) $this->setAddress($arr[$keys[3]]);\n if (array_key_exists($keys[4], $arr)) $this->setAddress2($arr[$keys[4]]);\n if (array_key_exists($keys[5], $arr)) $this->setZipcode($arr[$keys[5]]);\n if (array_key_exists($keys[6], $arr)) $this->setCity($arr[$keys[6]]);\n if (array_key_exists($keys[7], $arr)) $this->setGeoCoordinateX($arr[$keys[7]]);\n if (array_key_exists($keys[8], $arr)) $this->setGeoCoordinateY($arr[$keys[8]]);\n if (array_key_exists($keys[9], $arr)) $this->setDistanceCamping($arr[$keys[9]]);\n if (array_key_exists($keys[10], $arr)) $this->setImage($arr[$keys[10]]);\n if (array_key_exists($keys[11], $arr)) $this->setPriority($arr[$keys[11]]);\n if (array_key_exists($keys[12], $arr)) $this->setTel($arr[$keys[12]]);\n if (array_key_exists($keys[13], $arr)) $this->setFax($arr[$keys[13]]);\n if (array_key_exists($keys[14], $arr)) $this->setEmail($arr[$keys[14]]);\n if (array_key_exists($keys[15], $arr)) $this->setWebsite($arr[$keys[15]]);\n if (array_key_exists($keys[16], $arr)) $this->setCreatedAt($arr[$keys[16]]);\n if (array_key_exists($keys[17], $arr)) $this->setUpdatedAt($arr[$keys[17]]);\n if (array_key_exists($keys[18], $arr)) $this->setActive($arr[$keys[18]]);\n }",
"public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME)\n\t{\n\t\t$keys = CampaignPeer::getFieldNames($keyType);\n\n\t\tif (array_key_exists($keys[0], $arr)) $this->setId($arr[$keys[0]]);\n\t\tif (array_key_exists($keys[1], $arr)) $this->setSlug($arr[$keys[1]]);\n\t\tif (array_key_exists($keys[2], $arr)) $this->setName($arr[$keys[2]]);\n\t\tif (array_key_exists($keys[3], $arr)) $this->setCommentaire($arr[$keys[3]]);\n\t\tif (array_key_exists($keys[4], $arr)) $this->setSubject($arr[$keys[4]]);\n\t\tif (array_key_exists($keys[5], $arr)) $this->setTemplateId($arr[$keys[5]]);\n\t\tif (array_key_exists($keys[6], $arr)) $this->setContent($arr[$keys[6]]);\n\t\tif (array_key_exists($keys[7], $arr)) $this->setPreparedContent($arr[$keys[7]]);\n\t\tif (array_key_exists($keys[8], $arr)) $this->setTextContent($arr[$keys[8]]);\n\t\tif (array_key_exists($keys[9], $arr)) $this->setPreparedTextContent($arr[$keys[9]]);\n\t\tif (array_key_exists($keys[10], $arr)) $this->setStatus($arr[$keys[10]]);\n\t\tif (array_key_exists($keys[11], $arr)) $this->setFromName($arr[$keys[11]]);\n\t\tif (array_key_exists($keys[12], $arr)) $this->setFromEmail($arr[$keys[12]]);\n\t\tif (array_key_exists($keys[13], $arr)) $this->setScheduledAt($arr[$keys[13]]);\n\t\tif (array_key_exists($keys[14], $arr)) $this->setScheduleType($arr[$keys[14]]);\n\t\tif (array_key_exists($keys[15], $arr)) $this->setTestType($arr[$keys[15]]);\n\t\tif (array_key_exists($keys[16], $arr)) $this->setTestUserList($arr[$keys[16]]);\n\t\tif (array_key_exists($keys[17], $arr)) $this->setTarget($arr[$keys[17]]);\n\t\tif (array_key_exists($keys[18], $arr)) $this->setReplyToEmail($arr[$keys[18]]);\n\t\tif (array_key_exists($keys[19], $arr)) $this->setReturnPathEmail($arr[$keys[19]]);\n\t\tif (array_key_exists($keys[20], $arr)) $this->setReturnPathServer($arr[$keys[20]]);\n\t\tif (array_key_exists($keys[21], $arr)) $this->setReturnPathLogin($arr[$keys[21]]);\n\t\tif (array_key_exists($keys[22], $arr)) $this->setReturnPathPassword($arr[$keys[22]]);\n\t\tif (array_key_exists($keys[23], $arr)) $this->setIsArchived($arr[$keys[23]]);\n\t\tif (array_key_exists($keys[24], $arr)) $this->setGoogleAnalyticsEnabled($arr[$keys[24]]);\n\t\tif (array_key_exists($keys[25], $arr)) $this->setGoogleAnalyticsSource($arr[$keys[25]]);\n\t\tif (array_key_exists($keys[26], $arr)) $this->setGoogleAnalyticsMedium($arr[$keys[26]]);\n\t\tif (array_key_exists($keys[27], $arr)) $this->setGoogleAnalyticsCampaignType($arr[$keys[27]]);\n\t\tif (array_key_exists($keys[28], $arr)) $this->setGoogleAnalyticsCampaignContent($arr[$keys[28]]);\n\t\tif (array_key_exists($keys[29], $arr)) $this->setGoogleAnalyticsContent($arr[$keys[29]]);\n\t\tif (array_key_exists($keys[30], $arr)) $this->setLitmusTestId($arr[$keys[30]]);\n\t\tif (array_key_exists($keys[31], $arr)) $this->setWebTrackerEnabled($arr[$keys[31]]);\n\t\tif (array_key_exists($keys[32], $arr)) $this->setCreatedAt($arr[$keys[32]]);\n\t\tif (array_key_exists($keys[33], $arr)) $this->setCreatedBy($arr[$keys[33]]);\n\t\tif (array_key_exists($keys[34], $arr)) $this->setUpdatedAt($arr[$keys[34]]);\n\t}",
"protected function setUpdateArray() {\n $column_names = getColumnNames($this->table_name);\n foreach ($column_names as $column_name) {\n if (isset($_POST[$column_name])) {\n $this->update[$column_name] = Mysql::SQLValue($_POST[$column_name]);\n } else if (isset($_GET[$column_name])) {\n $this->update[$column_name] = Mysql::SQLValue($_GET[$column_name]);\n }\n }\n }",
"public function fromArray ($arr, $keyType = BasePeer::TYPE_PHPNAME)\n {\n $keys = CalendarHolidaysPeer::getFieldNames ($keyType);\n if ( array_key_exists ($keys[0], $arr) )\n {\n $this->setCalendarUid ($arr[$keys[0]]);\n }\n if ( array_key_exists ($keys[1], $arr) )\n {\n $this->setCalendarHolidayName ($arr[$keys[1]]);\n }\n if ( array_key_exists ($keys[2], $arr) )\n {\n $this->setCalendarHolidayStart ($arr[$keys[2]]);\n }\n if ( array_key_exists ($keys[3], $arr) )\n {\n $this->setCalendarHolidayEnd ($arr[$keys[3]]);\n }\n }",
"public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME)\n\t{\n\t\t$keys = CidadePeer::getFieldNames($keyType);\n\n\t\tif (array_key_exists($keys[0], $arr)) $this->setId($arr[$keys[0]]);\n\t\tif (array_key_exists($keys[1], $arr)) $this->setUfId($arr[$keys[1]]);\n\t\tif (array_key_exists($keys[2], $arr)) $this->setNome($arr[$keys[2]]);\n\t\tif (array_key_exists($keys[3], $arr)) $this->setSlug($arr[$keys[3]]);\n\t\tif (array_key_exists($keys[4], $arr)) $this->setLongitude($arr[$keys[4]]);\n\t\tif (array_key_exists($keys[5], $arr)) $this->setLatitude($arr[$keys[5]]);\n\t}",
"public function loadFromArray($array){\n\t\t\tforeach ($array as $key => $value) {//iterate given array key=>values\n\t\t\t\tif(in_array($key, $this->columns) || in_array($key, $this->keys)){//if this key belongs to the valid columns\n\t\t\t\t\t$this->__set($key, $value);//save it\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME)\n\t{\n\t\t$keys = UsuarioPeer::getFieldNames($keyType);\n\n\t\tif (array_key_exists($keys[0], $arr)) $this->setId($arr[$keys[0]]);\n\t\tif (array_key_exists($keys[1], $arr)) $this->setPerfilId($arr[$keys[1]]);\n\t\tif (array_key_exists($keys[2], $arr)) $this->setEnderecoId($arr[$keys[2]]);\n\t\tif (array_key_exists($keys[3], $arr)) $this->setCargoId($arr[$keys[3]]);\n\t\tif (array_key_exists($keys[4], $arr)) $this->setDepartamentoId($arr[$keys[4]]);\n\t\tif (array_key_exists($keys[5], $arr)) $this->setMatricula($arr[$keys[5]]);\n\t\tif (array_key_exists($keys[6], $arr)) $this->setNome($arr[$keys[6]]);\n\t\tif (array_key_exists($keys[7], $arr)) $this->setEmail($arr[$keys[7]]);\n\t\tif (array_key_exists($keys[8], $arr)) $this->setDni($arr[$keys[8]]);\n\t\tif (array_key_exists($keys[9], $arr)) $this->setDataNascimento($arr[$keys[9]]);\n\t\tif (array_key_exists($keys[10], $arr)) $this->setDataContratacao($arr[$keys[10]]);\n\t\tif (array_key_exists($keys[11], $arr)) $this->setCelular($arr[$keys[11]]);\n\t\tif (array_key_exists($keys[12], $arr)) $this->setTelefone($arr[$keys[12]]);\n\t\tif (array_key_exists($keys[13], $arr)) $this->setToken($arr[$keys[13]]);\n\t\tif (array_key_exists($keys[14], $arr)) $this->setNomeUsuario($arr[$keys[14]]);\n\t\tif (array_key_exists($keys[15], $arr)) $this->setSenha($arr[$keys[15]]);\n\t\tif (array_key_exists($keys[16], $arr)) $this->setTokenSenha($arr[$keys[16]]);\n\t\tif (array_key_exists($keys[17], $arr)) $this->setTokenFirebase($arr[$keys[17]]);\n\t\tif (array_key_exists($keys[18], $arr)) $this->setDataRescisao($arr[$keys[18]]);\n\t\tif (array_key_exists($keys[19], $arr)) $this->setAtivo($arr[$keys[19]]);\n\t\tif (array_key_exists($keys[20], $arr)) $this->setTipoAcesso($arr[$keys[20]]);\n\t\tif (array_key_exists($keys[21], $arr)) $this->setEstadoCivil($arr[$keys[21]]);\n\t\tif (array_key_exists($keys[22], $arr)) $this->setNivelAcesso($arr[$keys[22]]);\n\t\tif (array_key_exists($keys[23], $arr)) $this->setUsuarioValidado($arr[$keys[23]]);\n\t\tif (array_key_exists($keys[24], $arr)) $this->setSexo($arr[$keys[24]]);\n\t\tif (array_key_exists($keys[25], $arr)) $this->setDataCadastro($arr[$keys[25]]);\n\t}",
"function setFields($array)\r\n\t{\r\n\t\t$db = new \\Fmw\\Core\\Db();\r\n\t\t$fields = $db->getColumns($this->getTabName($this->defTab));\r\n\t\tif ($fields) {\r\n\t\t\t$colName = false;\r\n\r\n\t\t\tforeach ($fields as $field) {\r\n\t\t\t\t$colName = $field['Field'];\r\n\r\n\t\t\t\tif (isset($array[$field['Field']])) {\r\n\r\n\t\t\t\t\tif ($field['Type'] == 'text') {\r\n\t\t\t\t\t\tif (isFormatedText($field['Field'])) {\r\n\t\t\t\t\t\t\t$array[$colName] = $array[$colName];\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t$this->$colName = $array[$colName];\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME)\n {\n $keys = YearPeer::getFieldNames($keyType);\n\n if (array_key_exists($keys[0], $arr)) $this->setId($arr[$keys[0]]);\n if (array_key_exists($keys[1], $arr)) $this->setName($arr[$keys[1]]);\n if (array_key_exists($keys[2], $arr)) $this->setIsActive($arr[$keys[2]]);\n if (array_key_exists($keys[3], $arr)) $this->setIsClosed($arr[$keys[3]]);\n if (array_key_exists($keys[4], $arr)) $this->setFromDate($arr[$keys[4]]);\n if (array_key_exists($keys[5], $arr)) $this->setToDate($arr[$keys[5]]);\n if (array_key_exists($keys[6], $arr)) $this->setSortableRank($arr[$keys[6]]);\n }",
"public function fromArray($arr, $keyType = TableMap::TYPE_PHPNAME)\n {\n $keys = PhoneBookTableMap::getFieldNames($keyType);\n\n if (array_key_exists($keys[0], $arr)) {\n $this->setPhadtype($arr[$keys[0]]);\n }\n if (array_key_exists($keys[1], $arr)) {\n $this->setPhadid($arr[$keys[1]]);\n }\n if (array_key_exists($keys[2], $arr)) {\n $this->setPhadsubid($arr[$keys[2]]);\n }\n if (array_key_exists($keys[3], $arr)) {\n $this->setPhadsubidseq($arr[$keys[3]]);\n }\n if (array_key_exists($keys[4], $arr)) {\n $this->setPhadcont($arr[$keys[4]]);\n }\n if (array_key_exists($keys[5], $arr)) {\n $this->setPhadintl($arr[$keys[5]]);\n }\n if (array_key_exists($keys[6], $arr)) {\n $this->setPhadtelenbr($arr[$keys[6]]);\n }\n if (array_key_exists($keys[7], $arr)) {\n $this->setPhadteleext($arr[$keys[7]]);\n }\n if (array_key_exists($keys[8], $arr)) {\n $this->setPhadintlnbr($arr[$keys[8]]);\n }\n if (array_key_exists($keys[9], $arr)) {\n $this->setPhadintlext($arr[$keys[9]]);\n }\n if (array_key_exists($keys[10], $arr)) {\n $this->setPhadfaxnbr($arr[$keys[10]]);\n }\n if (array_key_exists($keys[11], $arr)) {\n $this->setPhadifaxnbr($arr[$keys[11]]);\n }\n if (array_key_exists($keys[12], $arr)) {\n $this->setPhadcellnbr($arr[$keys[12]]);\n }\n if (array_key_exists($keys[13], $arr)) {\n $this->setPhadicellnbr($arr[$keys[13]]);\n }\n if (array_key_exists($keys[14], $arr)) {\n $this->setPhadhomenbr($arr[$keys[14]]);\n }\n if (array_key_exists($keys[15], $arr)) {\n $this->setPhadihomenbr($arr[$keys[15]]);\n }\n if (array_key_exists($keys[16], $arr)) {\n $this->setPhadwebaddr($arr[$keys[16]]);\n }\n if (array_key_exists($keys[17], $arr)) {\n $this->setPhademailaddr($arr[$keys[17]]);\n }\n if (array_key_exists($keys[18], $arr)) {\n $this->setPhadname($arr[$keys[18]]);\n }\n if (array_key_exists($keys[19], $arr)) {\n $this->setPhadcontname($arr[$keys[19]]);\n }\n if (array_key_exists($keys[20], $arr)) {\n $this->setDateupdtd($arr[$keys[20]]);\n }\n if (array_key_exists($keys[21], $arr)) {\n $this->setTimeupdtd($arr[$keys[21]]);\n }\n if (array_key_exists($keys[22], $arr)) {\n $this->setDummy($arr[$keys[22]]);\n }\n }",
"public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME)\n {\n $keys = ActionTypePeer::getFieldNames($keyType);\n\n if (array_key_exists($keys[0], $arr)) $this->setid($arr[$keys[0]]);\n if (array_key_exists($keys[1], $arr)) $this->setcreateDatetime($arr[$keys[1]]);\n if (array_key_exists($keys[2], $arr)) $this->setcreatePersonId($arr[$keys[2]]);\n if (array_key_exists($keys[3], $arr)) $this->setmodifyDatetime($arr[$keys[3]]);\n if (array_key_exists($keys[4], $arr)) $this->setmodifyPersonId($arr[$keys[4]]);\n if (array_key_exists($keys[5], $arr)) $this->setdeleted($arr[$keys[5]]);\n if (array_key_exists($keys[6], $arr)) $this->setClass($arr[$keys[6]]);\n if (array_key_exists($keys[7], $arr)) $this->setgroupId($arr[$keys[7]]);\n if (array_key_exists($keys[8], $arr)) $this->setcode($arr[$keys[8]]);\n if (array_key_exists($keys[9], $arr)) $this->setname($arr[$keys[9]]);\n if (array_key_exists($keys[10], $arr)) $this->settitle($arr[$keys[10]]);\n if (array_key_exists($keys[11], $arr)) $this->setflatCode($arr[$keys[11]]);\n if (array_key_exists($keys[12], $arr)) $this->setsex($arr[$keys[12]]);\n if (array_key_exists($keys[13], $arr)) $this->setage($arr[$keys[13]]);\n if (array_key_exists($keys[14], $arr)) $this->setageBu($arr[$keys[14]]);\n if (array_key_exists($keys[15], $arr)) $this->setageBc($arr[$keys[15]]);\n if (array_key_exists($keys[16], $arr)) $this->setageEu($arr[$keys[16]]);\n if (array_key_exists($keys[17], $arr)) $this->setageEc($arr[$keys[17]]);\n if (array_key_exists($keys[18], $arr)) $this->setoffice($arr[$keys[18]]);\n if (array_key_exists($keys[19], $arr)) $this->setshowInForm($arr[$keys[19]]);\n if (array_key_exists($keys[20], $arr)) $this->setgenTimeTable($arr[$keys[20]]);\n if (array_key_exists($keys[21], $arr)) $this->setserviceId($arr[$keys[21]]);\n if (array_key_exists($keys[22], $arr)) $this->setquotaTypeId($arr[$keys[22]]);\n if (array_key_exists($keys[23], $arr)) $this->setcontext($arr[$keys[23]]);\n if (array_key_exists($keys[24], $arr)) $this->setamount($arr[$keys[24]]);\n if (array_key_exists($keys[25], $arr)) $this->setamountEvaluation($arr[$keys[25]]);\n if (array_key_exists($keys[26], $arr)) $this->setdefaultStatus($arr[$keys[26]]);\n if (array_key_exists($keys[27], $arr)) $this->setdefaultDirectionDate($arr[$keys[27]]);\n if (array_key_exists($keys[28], $arr)) $this->setdefaultPlannedEndDate($arr[$keys[28]]);\n if (array_key_exists($keys[29], $arr)) $this->setdefaultEndDate($arr[$keys[29]]);\n if (array_key_exists($keys[30], $arr)) $this->setdefaultExecPersonId($arr[$keys[30]]);\n if (array_key_exists($keys[31], $arr)) $this->setdefaultPersonInEvent($arr[$keys[31]]);\n if (array_key_exists($keys[32], $arr)) $this->setdefaultPersonInEditor($arr[$keys[32]]);\n if (array_key_exists($keys[33], $arr)) $this->setmaxOccursInEvent($arr[$keys[33]]);\n if (array_key_exists($keys[34], $arr)) $this->setshowTime($arr[$keys[34]]);\n if (array_key_exists($keys[35], $arr)) $this->setisMes($arr[$keys[35]]);\n if (array_key_exists($keys[36], $arr)) $this->setnomenclativeServiceId($arr[$keys[36]]);\n if (array_key_exists($keys[37], $arr)) $this->setisPreferable($arr[$keys[37]]);\n if (array_key_exists($keys[38], $arr)) $this->setprescribedTypeId($arr[$keys[38]]);\n if (array_key_exists($keys[39], $arr)) $this->setsheduleId($arr[$keys[39]]);\n if (array_key_exists($keys[40], $arr)) $this->setisRequiredCoordination($arr[$keys[40]]);\n if (array_key_exists($keys[41], $arr)) $this->setisRequiredTissue($arr[$keys[41]]);\n if (array_key_exists($keys[42], $arr)) $this->settestTubeTypeId($arr[$keys[42]]);\n if (array_key_exists($keys[43], $arr)) $this->setjobTypeId($arr[$keys[43]]);\n if (array_key_exists($keys[44], $arr)) $this->setmnem($arr[$keys[44]]);\n }",
"public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME)\n\t{\n\t\t$keys = UsuarioPeer::getFieldNames($keyType);\n\n\t\tif (array_key_exists($keys[0], $arr)) $this->setCoUsuario($arr[$keys[0]]);\n\t\tif (array_key_exists($keys[1], $arr)) $this->setNuCpf($arr[$keys[1]]);\n\t\tif (array_key_exists($keys[2], $arr)) $this->setDsPassword($arr[$keys[2]]);\n\t\tif (array_key_exists($keys[3], $arr)) $this->setNoUsuario($arr[$keys[3]]);\n\t\tif (array_key_exists($keys[4], $arr)) $this->setDsLogin($arr[$keys[4]]);\n\t\tif (array_key_exists($keys[5], $arr)) $this->setDtUltimoLogin($arr[$keys[5]]);\n\t\tif (array_key_exists($keys[6], $arr)) $this->setDsEmail($arr[$keys[6]]);\n\t\tif (array_key_exists($keys[7], $arr)) $this->setCoPerfil($arr[$keys[7]]);\n\t\tif (array_key_exists($keys[8], $arr)) $this->setNuCelular($arr[$keys[8]]);\n\t\tif (array_key_exists($keys[9], $arr)) $this->setNuTelefone($arr[$keys[9]]);\n\t\tif (array_key_exists($keys[10], $arr)) $this->setStUsuario($arr[$keys[10]]);\n\t}",
"protected function hydrate($array){\r\n\t\tforeach ($array as $key => $value) {\r\n\t\t\t$methodName = 'set'.ucfirst($key);\r\n\t\t\tif(method_exists($this, $methodName)){\r\n\t\t\t\t$this->$methodName($value);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public function fromArray($arr, $keyType = TableMap::TYPE_PHPNAME)\n {\n $keys = BiblioTableMap::getFieldNames($keyType);\n\n if (array_key_exists($keys[0], $arr)) {\n $this->setBiblioId($arr[$keys[0]]);\n }\n if (array_key_exists($keys[1], $arr)) {\n $this->setTitle($arr[$keys[1]]);\n }\n if (array_key_exists($keys[2], $arr)) {\n $this->setSor($arr[$keys[2]]);\n }\n if (array_key_exists($keys[3], $arr)) {\n $this->setEdition($arr[$keys[3]]);\n }\n if (array_key_exists($keys[4], $arr)) {\n $this->setIsbn_issn($arr[$keys[4]]);\n }\n if (array_key_exists($keys[5], $arr)) {\n $this->setPublisherId($arr[$keys[5]]);\n }\n if (array_key_exists($keys[6], $arr)) {\n $this->setPublish_year($arr[$keys[6]]);\n }\n if (array_key_exists($keys[7], $arr)) {\n $this->setCollation($arr[$keys[7]]);\n }\n if (array_key_exists($keys[8], $arr)) {\n $this->setSeries_title($arr[$keys[8]]);\n }\n if (array_key_exists($keys[9], $arr)) {\n $this->setCall_number($arr[$keys[9]]);\n }\n if (array_key_exists($keys[10], $arr)) {\n $this->setLanguageId($arr[$keys[10]]);\n }\n if (array_key_exists($keys[11], $arr)) {\n $this->setSource($arr[$keys[11]]);\n }\n if (array_key_exists($keys[12], $arr)) {\n $this->setPublishPlaceId($arr[$keys[12]]);\n }\n if (array_key_exists($keys[13], $arr)) {\n $this->setClassification($arr[$keys[13]]);\n }\n if (array_key_exists($keys[14], $arr)) {\n $this->setNotes($arr[$keys[14]]);\n }\n if (array_key_exists($keys[15], $arr)) {\n $this->setImage($arr[$keys[15]]);\n }\n if (array_key_exists($keys[16], $arr)) {\n $this->setFile_att($arr[$keys[16]]);\n }\n if (array_key_exists($keys[17], $arr)) {\n $this->setOpac_hide($arr[$keys[17]]);\n }\n if (array_key_exists($keys[18], $arr)) {\n $this->setPromoted($arr[$keys[18]]);\n }\n if (array_key_exists($keys[19], $arr)) {\n $this->setLabels($arr[$keys[19]]);\n }\n if (array_key_exists($keys[20], $arr)) {\n $this->setFrequencyId($arr[$keys[20]]);\n }\n if (array_key_exists($keys[21], $arr)) {\n $this->setSpec_detail_info($arr[$keys[21]]);\n }\n if (array_key_exists($keys[22], $arr)) {\n $this->setInput_date($arr[$keys[22]]);\n }\n if (array_key_exists($keys[23], $arr)) {\n $this->setLast_update($arr[$keys[23]]);\n }\n if (array_key_exists($keys[24], $arr)) {\n $this->setUid($arr[$keys[24]]);\n }\n }",
"public function fromArray($arr, $keyType = TableMap::TYPE_PHPNAME)\n {\n $keys = KluBillTableMap::getFieldNames($keyType);\n\n if (array_key_exists($keys[0], $arr)) {\n $this->setId($arr[$keys[0]]);\n }\n if (array_key_exists($keys[1], $arr)) {\n $this->setRefNo($arr[$keys[1]]);\n }\n if (array_key_exists($keys[2], $arr)) {\n $this->setUniquekeyid($arr[$keys[2]]);\n }\n if (array_key_exists($keys[3], $arr)) {\n $this->setCustomerId($arr[$keys[3]]);\n }\n if (array_key_exists($keys[4], $arr)) {\n $this->setAccountNo($arr[$keys[4]]);\n }\n if (array_key_exists($keys[5], $arr)) {\n $this->setServiceType($arr[$keys[5]]);\n }\n if (array_key_exists($keys[6], $arr)) {\n $this->setServiceDistrictId($arr[$keys[6]]);\n }\n if (array_key_exists($keys[7], $arr)) {\n $this->setBillingCycle($arr[$keys[7]]);\n }\n if (array_key_exists($keys[8], $arr)) {\n $this->setDueDate($arr[$keys[8]]);\n }\n if (array_key_exists($keys[9], $arr)) {\n $this->setBillingFrom($arr[$keys[9]]);\n }\n if (array_key_exists($keys[10], $arr)) {\n $this->setBillingTo($arr[$keys[10]]);\n }\n if (array_key_exists($keys[11], $arr)) {\n $this->setBillDate($arr[$keys[11]]);\n }\n if (array_key_exists($keys[12], $arr)) {\n $this->setRate($arr[$keys[12]]);\n }\n if (array_key_exists($keys[13], $arr)) {\n $this->setMeternumber($arr[$keys[13]]);\n }\n if (array_key_exists($keys[14], $arr)) {\n $this->setBillingmethod($arr[$keys[14]]);\n }\n if (array_key_exists($keys[15], $arr)) {\n $this->setDateoflastreading($arr[$keys[15]]);\n }\n if (array_key_exists($keys[16], $arr)) {\n $this->setDateofcurrentreading($arr[$keys[16]]);\n }\n if (array_key_exists($keys[17], $arr)) {\n $this->setDaysusage($arr[$keys[17]]);\n }\n if (array_key_exists($keys[18], $arr)) {\n $this->setLastmeterreading($arr[$keys[18]]);\n }\n if (array_key_exists($keys[19], $arr)) {\n $this->setCurrentmeterreading($arr[$keys[19]]);\n }\n if (array_key_exists($keys[20], $arr)) {\n $this->setUnitsconsumed($arr[$keys[20]]);\n }\n if (array_key_exists($keys[21], $arr)) {\n $this->setLastpaymentamount($arr[$keys[21]]);\n }\n if (array_key_exists($keys[22], $arr)) {\n $this->setLastpaymentdate($arr[$keys[22]]);\n }\n if (array_key_exists($keys[23], $arr)) {\n $this->setMetermaintenancecharge($arr[$keys[23]]);\n }\n if (array_key_exists($keys[24], $arr)) {\n $this->setDiscounts($arr[$keys[24]]);\n }\n if (array_key_exists($keys[25], $arr)) {\n $this->setOthercharges($arr[$keys[25]]);\n }\n if (array_key_exists($keys[26], $arr)) {\n $this->setPenaltycharges($arr[$keys[26]]);\n }\n if (array_key_exists($keys[27], $arr)) {\n $this->setTaxcharges($arr[$keys[27]]);\n }\n if (array_key_exists($keys[28], $arr)) {\n $this->setCharges($arr[$keys[28]]);\n }\n if (array_key_exists($keys[29], $arr)) {\n $this->setRoutinecharges($arr[$keys[29]]);\n }\n if (array_key_exists($keys[30], $arr)) {\n $this->setBillservicerate($arr[$keys[30]]);\n }\n if (array_key_exists($keys[31], $arr)) {\n $this->setBuildingtype($arr[$keys[31]]);\n }\n if (array_key_exists($keys[32], $arr)) {\n $this->setRoute($arr[$keys[32]]);\n }\n if (array_key_exists($keys[33], $arr)) {\n $this->setUsagetype($arr[$keys[33]]);\n }\n if (array_key_exists($keys[34], $arr)) {\n $this->setServiceCharge($arr[$keys[34]]);\n }\n if (array_key_exists($keys[35], $arr)) {\n $this->setPreviousBalance($arr[$keys[35]]);\n }\n if (array_key_exists($keys[36], $arr)) {\n $this->setPaymentReceived($arr[$keys[36]]);\n }\n if (array_key_exists($keys[37], $arr)) {\n $this->setLastPaymentReceivedDate($arr[$keys[37]]);\n }\n if (array_key_exists($keys[38], $arr)) {\n $this->setCurrentCharge($arr[$keys[38]]);\n }\n if (array_key_exists($keys[39], $arr)) {\n $this->setTotalDue($arr[$keys[39]]);\n }\n if (array_key_exists($keys[40], $arr)) {\n $this->setInvoiceNo($arr[$keys[40]]);\n }\n if (array_key_exists($keys[41], $arr)) {\n $this->setReceiptNo($arr[$keys[41]]);\n }\n if (array_key_exists($keys[42], $arr)) {\n $this->setDateCreated($arr[$keys[42]]);\n }\n if (array_key_exists($keys[43], $arr)) {\n $this->setCreator($arr[$keys[43]]);\n }\n if (array_key_exists($keys[44], $arr)) {\n $this->setStatus($arr[$keys[44]]);\n }\n }",
"public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME)\n {\n $keys = MontacargasPeer::getFieldNames($keyType);\n\n if (array_key_exists($keys[0], $arr)) $this->setIdmontacargas($arr[$keys[0]]);\n if (array_key_exists($keys[1], $arr)) $this->setIdsucursal($arr[$keys[1]]);\n if (array_key_exists($keys[2], $arr)) $this->setMontacargasModelo($arr[$keys[2]]);\n if (array_key_exists($keys[3], $arr)) $this->setMontacargasMarca($arr[$keys[3]]);\n if (array_key_exists($keys[4], $arr)) $this->setMontacargasC($arr[$keys[4]]);\n if (array_key_exists($keys[5], $arr)) $this->setMontacargasK($arr[$keys[5]]);\n if (array_key_exists($keys[6], $arr)) $this->setMontacargasP($arr[$keys[6]]);\n if (array_key_exists($keys[7], $arr)) $this->setMontacargasT($arr[$keys[7]]);\n if (array_key_exists($keys[8], $arr)) $this->setMontacargasE($arr[$keys[8]]);\n if (array_key_exists($keys[9], $arr)) $this->setMontacargasVolts($arr[$keys[9]]);\n if (array_key_exists($keys[10], $arr)) $this->setMontacargasAmperaje($arr[$keys[10]]);\n if (array_key_exists($keys[11], $arr)) $this->setMontacargasNombre($arr[$keys[11]]);\n if (array_key_exists($keys[12], $arr)) $this->setMontacargasNumserie($arr[$keys[12]]);\n if (array_key_exists($keys[13], $arr)) $this->setMontacargasComprador($arr[$keys[13]]);\n if (array_key_exists($keys[14], $arr)) $this->setMontacargasCiclosmant($arr[$keys[14]]);\n if (array_key_exists($keys[15], $arr)) $this->setMontacargasCiclosiniciales($arr[$keys[15]]);\n if (array_key_exists($keys[16], $arr)) $this->setMontacargasBaja($arr[$keys[16]]);\n }",
"public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME)\n\t{\n\t\t$pos = MmPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM);\n\t\treturn $this->setByPosition($pos, $value);\n\t}",
"public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME)\n {\n parent::fromArray($arr, $keyType);\n\n if (isset(CollectorProfilePeer::$extraFieldNames[$keyType]))\n {\n $keys = CollectorProfilePeer::$extraFieldNames[$keyType];\n\n if (array_key_exists($keys[0], $arr)) $this->setAboutMe($arr[$keys[0]]);\n if (array_key_exists($keys[1], $arr)) $this->setAboutCompany($arr[$keys[1]]);\n if (array_key_exists($keys[2], $arr)) $this->setAboutCollections($arr[$keys[2]]);\n if (array_key_exists($keys[3], $arr)) $this->setAboutWhatYouCollect($arr[$keys[3]]);\n if (array_key_exists($keys[4], $arr)) $this->setAboutWhatYouSell($arr[$keys[4]]);\n if (array_key_exists($keys[5], $arr)) $this->setAboutMostExpensiveItem($arr[$keys[5]]);\n if (array_key_exists($keys[6], $arr)) $this->setAboutAnnuallySpend($arr[$keys[6]]);\n if (array_key_exists($keys[7], $arr)) $this->setAboutPurchasesPerYear($arr[$keys[7]]);\n if (array_key_exists($keys[8], $arr)) $this->setAboutNewItemEvery($arr[$keys[8]]);\n if (array_key_exists($keys[9], $arr)) $this->setAboutInterests($arr[$keys[9]]);\n }\n }",
"public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME)\n\t{\n\t\t$keys = VpoRequestPeer::getFieldNames($keyType);\n\n\t\tif (array_key_exists($keys[0], $arr)) $this->setId($arr[$keys[0]]);\n\t\tif (array_key_exists($keys[1], $arr)) $this->setHazardousCargoFlag($arr[$keys[1]]);\n\t\tif (array_key_exists($keys[2], $arr)) $this->setRequestDate($arr[$keys[2]]);\n\t\tif (array_key_exists($keys[3], $arr)) $this->setRequestReasonDesc($arr[$keys[3]]);\n\t\tif (array_key_exists($keys[4], $arr)) $this->setAgencyName($arr[$keys[4]]);\n\t\tif (array_key_exists($keys[5], $arr)) $this->setReqFirstName($arr[$keys[5]]);\n\t\tif (array_key_exists($keys[6], $arr)) $this->setReqLastName($arr[$keys[6]]);\n\t\tif (array_key_exists($keys[7], $arr)) $this->setAgencyDivision($arr[$keys[7]]);\n\t\tif (array_key_exists($keys[8], $arr)) $this->setReqAddress1($arr[$keys[8]]);\n\t\tif (array_key_exists($keys[9], $arr)) $this->setReqAddress2($arr[$keys[9]]);\n\t\tif (array_key_exists($keys[10], $arr)) $this->setReqCity($arr[$keys[10]]);\n\t\tif (array_key_exists($keys[11], $arr)) $this->setReqState($arr[$keys[11]]);\n\t\tif (array_key_exists($keys[12], $arr)) $this->setReqCountry($arr[$keys[12]]);\n\t\tif (array_key_exists($keys[13], $arr)) $this->setReqZipcode($arr[$keys[13]]);\n\t\tif (array_key_exists($keys[14], $arr)) $this->setReqOfficePhone($arr[$keys[14]]);\n\t\tif (array_key_exists($keys[15], $arr)) $this->setReqOfficeComment($arr[$keys[15]]);\n\t\tif (array_key_exists($keys[16], $arr)) $this->setReqMobilePhone($arr[$keys[16]]);\n\t\tif (array_key_exists($keys[17], $arr)) $this->setReqMobileComment($arr[$keys[17]]);\n\t\tif (array_key_exists($keys[18], $arr)) $this->setReqFaxPhone($arr[$keys[18]]);\n\t\tif (array_key_exists($keys[19], $arr)) $this->setReqFaxComment($arr[$keys[19]]);\n\t\tif (array_key_exists($keys[20], $arr)) $this->setReqPagerPhone($arr[$keys[20]]);\n\t\tif (array_key_exists($keys[21], $arr)) $this->setReqPagerComment($arr[$keys[21]]);\n\t\tif (array_key_exists($keys[22], $arr)) $this->setReqOtherPhone1($arr[$keys[22]]);\n\t\tif (array_key_exists($keys[23], $arr)) $this->setReqOtherComment1($arr[$keys[23]]);\n\t\tif (array_key_exists($keys[24], $arr)) $this->setReqOtherPhone2($arr[$keys[24]]);\n\t\tif (array_key_exists($keys[25], $arr)) $this->setReqOtherComment2($arr[$keys[25]]);\n\t\tif (array_key_exists($keys[26], $arr)) $this->setReqOtherPhone3($arr[$keys[26]]);\n\t\tif (array_key_exists($keys[27], $arr)) $this->setReqOtherComment3($arr[$keys[27]]);\n\t\tif (array_key_exists($keys[28], $arr)) $this->setReqEmail($arr[$keys[28]]);\n\t\tif (array_key_exists($keys[29], $arr)) $this->setReqAltEmail($arr[$keys[29]]);\n\t\tif (array_key_exists($keys[30], $arr)) $this->setContactNotes($arr[$keys[30]]);\n\t\tif (array_key_exists($keys[31], $arr)) $this->setOriginCity($arr[$keys[31]]);\n\t\tif (array_key_exists($keys[32], $arr)) $this->setOriginState($arr[$keys[32]]);\n\t\tif (array_key_exists($keys[33], $arr)) $this->setDestCity($arr[$keys[33]]);\n\t\tif (array_key_exists($keys[34], $arr)) $this->setDestState($arr[$keys[34]]);\n\t\tif (array_key_exists($keys[35], $arr)) $this->setPreferredDate($arr[$keys[35]]);\n\t\tif (array_key_exists($keys[36], $arr)) $this->setAlternativeDate($arr[$keys[36]]);\n\t\tif (array_key_exists($keys[37], $arr)) $this->setTransportType($arr[$keys[37]]);\n\t\tif (array_key_exists($keys[38], $arr)) $this->setRequestPostedDate($arr[$keys[38]]);\n\t\tif (array_key_exists($keys[39], $arr)) $this->setRequestPostedToAfaOrgId($arr[$keys[39]]);\n\t\tif (array_key_exists($keys[40], $arr)) $this->setRequesProcessedDate($arr[$keys[40]]);\n\t\tif (array_key_exists($keys[41], $arr)) $this->setRequestDisposition($arr[$keys[41]]);\n\t\tif (array_key_exists($keys[42], $arr)) $this->setCallerName($arr[$keys[42]]);\n\t\tif (array_key_exists($keys[43], $arr)) $this->setCallerPhone($arr[$keys[43]]);\n\t\tif (array_key_exists($keys[44], $arr)) $this->setRequestPostResults($arr[$keys[44]]);\n\t\tif (array_key_exists($keys[45], $arr)) $this->setRequesterVpoUserId($arr[$keys[45]]);\n\t\tif (array_key_exists($keys[46], $arr)) $this->setSource($arr[$keys[46]]);\n\t\tif (array_key_exists($keys[47], $arr)) $this->setSoapPostFromAfaOrgId($arr[$keys[47]]);\n\t\tif (array_key_exists($keys[48], $arr)) $this->setSoapPostRequestId($arr[$keys[48]]);\n\t\tif (array_key_exists($keys[49], $arr)) $this->setRequestProcessedBy($arr[$keys[49]]);\n\t}",
"public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME)\n\t{\n\t\t$keys = C060InventarioPeer::getFieldNames($keyType);\n\n\t\tif (array_key_exists($keys[0], $arr)) $this->setCoEquipo($arr[$keys[0]]);\n\t\tif (array_key_exists($keys[1], $arr)) $this->setCoRegion($arr[$keys[1]]);\n\t\tif (array_key_exists($keys[2], $arr)) $this->setCoNegocio($arr[$keys[2]]);\n\t\tif (array_key_exists($keys[3], $arr)) $this->setCoDivision($arr[$keys[3]]);\n\t\tif (array_key_exists($keys[4], $arr)) $this->setCoTipo($arr[$keys[4]]);\n\t\tif (array_key_exists($keys[5], $arr)) $this->setCoCustodio($arr[$keys[5]]);\n\t\tif (array_key_exists($keys[6], $arr)) $this->setTxEtiquetaSti($arr[$keys[6]]);\n\t\tif (array_key_exists($keys[7], $arr)) $this->setCoEstado($arr[$keys[7]]);\n\t\tif (array_key_exists($keys[8], $arr)) $this->setTxNombreEquipo($arr[$keys[8]]);\n\t\tif (array_key_exists($keys[9], $arr)) $this->setTxFunsionEquipo($arr[$keys[9]]);\n\t\tif (array_key_exists($keys[10], $arr)) $this->setCoSo($arr[$keys[10]]);\n\t\tif (array_key_exists($keys[11], $arr)) $this->setTxEtiquetaActivo($arr[$keys[11]]);\n\t\tif (array_key_exists($keys[12], $arr)) $this->setTxSerialHardware($arr[$keys[12]]);\n\t\tif (array_key_exists($keys[13], $arr)) $this->setTxMarcaHardware($arr[$keys[13]]);\n\t\tif (array_key_exists($keys[14], $arr)) $this->setTxModeloHardware($arr[$keys[14]]);\n\t\tif (array_key_exists($keys[15], $arr)) $this->setCoCiudad($arr[$keys[15]]);\n\t\tif (array_key_exists($keys[16], $arr)) $this->setCoEdificio($arr[$keys[16]]);\n\t\tif (array_key_exists($keys[17], $arr)) $this->setTxDireccionUbicacion($arr[$keys[17]]);\n\t\tif (array_key_exists($keys[18], $arr)) $this->setTxDetalleUbicacion($arr[$keys[18]]);\n\t\tif (array_key_exists($keys[19], $arr)) $this->setCoCentroDato($arr[$keys[19]]);\n\t\tif (array_key_exists($keys[20], $arr)) $this->setCoRack($arr[$keys[20]]);\n\t\tif (array_key_exists($keys[21], $arr)) $this->setTxUbicacionLlave($arr[$keys[21]]);\n\t\tif (array_key_exists($keys[22], $arr)) $this->setInRespaldoAutomatizado($arr[$keys[22]]);\n\t\tif (array_key_exists($keys[23], $arr)) $this->setInBloqueoInactividad($arr[$keys[23]]);\n\t\tif (array_key_exists($keys[24], $arr)) $this->setInAdiministradoresPersonalizados($arr[$keys[24]]);\n\t\tif (array_key_exists($keys[25], $arr)) $this->setInPoliticaPassword($arr[$keys[25]]);\n\t\tif (array_key_exists($keys[26], $arr)) $this->setInSincronizacionReloj($arr[$keys[26]]);\n\t\tif (array_key_exists($keys[27], $arr)) $this->setInMonitoreado($arr[$keys[27]]);\n\t\tif (array_key_exists($keys[28], $arr)) $this->setInInfActualizada($arr[$keys[28]]);\n\t\tif (array_key_exists($keys[29], $arr)) $this->setInLogActivo($arr[$keys[29]]);\n\t\tif (array_key_exists($keys[30], $arr)) $this->setCoNivelCriticidad($arr[$keys[30]]);\n\t\tif (array_key_exists($keys[31], $arr)) $this->setTxObservaciones($arr[$keys[31]]);\n\t\tif (array_key_exists($keys[32], $arr)) $this->setTxRutaRespaldoConfiguraciones($arr[$keys[32]]);\n\t\tif (array_key_exists($keys[33], $arr)) $this->setCoNumInventario($arr[$keys[33]]);\n\t}",
"public function processArray($input){\n\t\tforeach (static::$columns as $column) {\n\t\t\tif(isset($input[$column])){\n\t\t\t\t$this->$column = $input[$column];\n \t\t\t}\n\t\t}\n\t}",
"public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME)\n {\n $pos = MontacargasPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM);\n\n $this->setByPosition($pos, $value);\n }",
"public function fromArray($array) {\n \n foreach ( $array as $key => $value ) {\n \n if ( $this->$key instanceof PersistentCollection ) {\n \n $value = new ArrayCollection(\n array_unique(array_merge($this->$key->toArray(), $value->toArray()), \\SORT_REGULAR)\n );\n \n }\n \n $this->$key = $value; \n }\n \n //return $this;\n }",
"public function fromArray($array) {\n \n foreach ( $array as $key => $value ) {\n \n if ( $this->$key instanceof PersistentCollection ) {\n \n $value = new ArrayCollection(\n array_unique(array_merge($this->$key->toArray(), $value->toArray()), \\SORT_REGULAR)\n );\n \n }\n \n $this->$key = $value; \n }\n \n //return $this;\n }",
"public function assignByArray($array) {\n\t\t$result=array();\n\t\tforeach ($array as $fieldId=>$value) {\n\t\t\t$result[self::$FIELD_NAMES[$fieldId]]=$value;\n\t\t}\n\t\t$this->assignByHash($result);\n\t}",
"public function assignByArray($array) {\n\t\t$result=array();\n\t\tforeach ($array as $fieldId=>$value) {\n\t\t\t$result[self::$FIELD_NAMES[$fieldId]]=$value;\n\t\t}\n\t\t$this->assignByHash($result);\n\t}",
"public function fromArray($arr, $keyType = TableMap::TYPE_PHPNAME)\n {\n $keys = IssuesTableMap::getFieldNames($keyType);\n\n if (array_key_exists($keys[0], $arr)) {\n $this->setId($arr[$keys[0]]);\n }\n if (array_key_exists($keys[1], $arr)) {\n $this->setName($arr[$keys[1]]);\n }\n if (array_key_exists($keys[2], $arr)) {\n $this->setOpendate($arr[$keys[2]]);\n }\n if (array_key_exists($keys[3], $arr)) {\n $this->setClosedate($arr[$keys[3]]);\n }\n if (array_key_exists($keys[4], $arr)) {\n $this->setStatus($arr[$keys[4]]);\n }\n if (array_key_exists($keys[5], $arr)) {\n $this->setInfotext($arr[$keys[5]]);\n }\n if (array_key_exists($keys[6], $arr)) {\n $this->setForbook($arr[$keys[6]]);\n }\n if (array_key_exists($keys[7], $arr)) {\n $this->setUserSys($arr[$keys[7]]);\n }\n if (array_key_exists($keys[8], $arr)) {\n $this->setConfigSys($arr[$keys[8]]);\n }\n if (array_key_exists($keys[9], $arr)) {\n $this->setSplit($arr[$keys[9]]);\n }\n if (array_key_exists($keys[10], $arr)) {\n $this->setParentnode($arr[$keys[10]]);\n }\n if (array_key_exists($keys[11], $arr)) {\n $this->setSort($arr[$keys[11]]);\n }\n }",
"public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME)\n\t{\n\t\t$pos = CampaignPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM);\n\t\treturn $this->setByPosition($pos, $value);\n\t}",
"public function setFromArray(array $data)\n\t{\n\t\t//原来是array_intersect_key($data, $this->getArrayCopy()),现在取消参数列表检查,因此直接使用data\n\t\tforeach ($data as $columnName => $value) {\n\t\t\t$this[$columnName] = $value;\n\t\t}\n\n\t\treturn $this;\n\t}",
"function setValues($array){\r\n\t\tforeach($array as $key => $val){\r\n\t\t\t$key = lcfirst(str_replace(\" \",\"\",ucwords(str_replace(\"_\",\" \",$key))));\r\n\t\t\tif(property_exists($this,$key))\r\n\t\t\t\t$this->$key = $val;\r\n\t\t}\r\n\t}",
"function setValues($array){\r\n\t\tforeach($array as $key => $val){\r\n\t\t\t$key = lcfirst(str_replace(\" \",\"\",ucwords(str_replace(\"_\",\" \",$key))));\r\n\t\t\tif(property_exists($this,$key))\r\n\t\t\t\t$this->$key = $val;\r\n\t\t}\r\n\t}",
"public function fromArray($arr, $keyType = TableMap::TYPE_PHPNAME)\n {\n $keys = PoReceivingHeadTableMap::getFieldNames($keyType);\n\n if (array_key_exists($keys[0], $arr)) {\n $this->setPothnbr($arr[$keys[0]]);\n }\n if (array_key_exists($keys[1], $arr)) {\n $this->setPothstat($arr[$keys[1]]);\n }\n if (array_key_exists($keys[2], $arr)) {\n $this->setPothrcptdate($arr[$keys[2]]);\n }\n if (array_key_exists($keys[3], $arr)) {\n $this->setIntbwhse($arr[$keys[3]]);\n }\n if (array_key_exists($keys[4], $arr)) {\n $this->setPothglpd($arr[$keys[4]]);\n }\n if (array_key_exists($keys[5], $arr)) {\n $this->setPothairship($arr[$keys[5]]);\n }\n if (array_key_exists($keys[6], $arr)) {\n $this->setPotherinreview($arr[$keys[6]]);\n }\n if (array_key_exists($keys[7], $arr)) {\n $this->setPothexchctry($arr[$keys[7]]);\n }\n if (array_key_exists($keys[8], $arr)) {\n $this->setPothexchrate($arr[$keys[8]]);\n }\n if (array_key_exists($keys[9], $arr)) {\n $this->setIntbwhseorig($arr[$keys[9]]);\n }\n if (array_key_exists($keys[10], $arr)) {\n $this->setPothlandcost($arr[$keys[10]]);\n }\n if (array_key_exists($keys[11], $arr)) {\n $this->setPothrcptnbr($arr[$keys[11]]);\n }\n if (array_key_exists($keys[12], $arr)) {\n $this->setPothlandbasedon($arr[$keys[12]]);\n }\n if (array_key_exists($keys[13], $arr)) {\n $this->setPothinvcnbr($arr[$keys[13]]);\n }\n if (array_key_exists($keys[14], $arr)) {\n $this->setPothinvcdate($arr[$keys[14]]);\n }\n if (array_key_exists($keys[15], $arr)) {\n $this->setPothfrtamt($arr[$keys[15]]);\n }\n if (array_key_exists($keys[16], $arr)) {\n $this->setPothmiscamt($arr[$keys[16]]);\n }\n if (array_key_exists($keys[17], $arr)) {\n $this->setDateupdtd($arr[$keys[17]]);\n }\n if (array_key_exists($keys[18], $arr)) {\n $this->setTimeupdtd($arr[$keys[18]]);\n }\n if (array_key_exists($keys[19], $arr)) {\n $this->setDummy($arr[$keys[19]]);\n }\n }",
"public function populate($row){\n foreach ($row as $key => $value){\n $this->$key = $value;\n }\n }",
"public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME)\n\t{\n\t\t$keys = PostPeer::getFieldNames($keyType);\n\n\t\tif (array_key_exists($keys[0], $arr)) $this->setId($arr[$keys[0]]);\n\t\tif (array_key_exists($keys[1], $arr)) $this->setPartieId($arr[$keys[1]]);\n\t\tif (array_key_exists($keys[2], $arr)) $this->setReplicaPostId($arr[$keys[2]]);\n\t\tif (array_key_exists($keys[3], $arr)) $this->setType($arr[$keys[3]]);\n\t\tif (array_key_exists($keys[4], $arr)) $this->setTitle($arr[$keys[4]]);\n\t\tif (array_key_exists($keys[5], $arr)) $this->setUrl($arr[$keys[5]]);\n\t\tif (array_key_exists($keys[6], $arr)) $this->setText($arr[$keys[6]]);\n\t\tif (array_key_exists($keys[7], $arr)) $this->setPhotoFile($arr[$keys[7]]);\n\t\tif (array_key_exists($keys[8], $arr)) $this->setPhotoUrl($arr[$keys[8]]);\n\t\tif (array_key_exists($keys[9], $arr)) $this->setQuote($arr[$keys[9]]);\n\t\tif (array_key_exists($keys[10], $arr)) $this->setQuoteAuthor($arr[$keys[10]]);\n\t\tif (array_key_exists($keys[11], $arr)) $this->setLinkTitle($arr[$keys[11]]);\n\t\tif (array_key_exists($keys[12], $arr)) $this->setLinkUrl($arr[$keys[12]]);\n\t\tif (array_key_exists($keys[13], $arr)) $this->setLinkImage($arr[$keys[13]]);\n\t\tif (array_key_exists($keys[14], $arr)) $this->setVideoUrl($arr[$keys[14]]);\n\t\tif (array_key_exists($keys[15], $arr)) $this->setTotalIndex($arr[$keys[15]]);\n\t\tif (array_key_exists($keys[16], $arr)) $this->setBestBadge1($arr[$keys[16]]);\n\t\tif (array_key_exists($keys[17], $arr)) $this->setBestBadge2($arr[$keys[17]]);\n\t\tif (array_key_exists($keys[18], $arr)) $this->setIsPublished($arr[$keys[18]]);\n\t\tif (array_key_exists($keys[19], $arr)) $this->setIsFeatured($arr[$keys[19]]);\n\t\tif (array_key_exists($keys[20], $arr)) $this->setCommentsCount($arr[$keys[20]]);\n\t\tif (array_key_exists($keys[21], $arr)) $this->setCreatedAt($arr[$keys[21]]);\n\t\tif (array_key_exists($keys[22], $arr)) $this->setUpdatedAt($arr[$keys[22]]);\n\t}",
"public function fromArray($arr, $keyType = TableMap::TYPE_PHPNAME)\n {\n $keys = CommandeTableMap::getFieldNames($keyType);\n\n if (array_key_exists($keys[0], $arr)) {\n $this->setIDCommande($arr[$keys[0]]);\n }\n if (array_key_exists($keys[1], $arr)) {\n $this->setRFCommande($arr[$keys[1]]);\n }\n if (array_key_exists($keys[2], $arr)) {\n $this->setIDSociete_FK($arr[$keys[2]]);\n }\n if (array_key_exists($keys[3], $arr)) {\n $this->setTMode($arr[$keys[3]]);\n }\n if (array_key_exists($keys[4], $arr)) {\n $this->setQuantite($arr[$keys[4]]);\n }\n if (array_key_exists($keys[5], $arr)) {\n $this->setAPrix($arr[$keys[5]]);\n }\n if (array_key_exists($keys[6], $arr)) {\n $this->setADelai($arr[$keys[6]]);\n }\n if (array_key_exists($keys[7], $arr)) {\n $this->setDTECommande($arr[$keys[7]]);\n }\n if (array_key_exists($keys[8], $arr)) {\n $this->setPriorite($arr[$keys[8]]);\n }\n if (array_key_exists($keys[9], $arr)) {\n $this->setCMDNote($arr[$keys[9]]);\n }\n }",
"public function fromArray($arr, $keyType = TableMap::TYPE_PHPNAME)\n {\n $keys = ArticleTableMap::getFieldNames($keyType);\n\n if (array_key_exists($keys[0], $arr)) {\n $this->setArticleId($arr[$keys[0]]);\n }\n if (array_key_exists($keys[1], $arr)) {\n $this->setDescription($arr[$keys[1]]);\n }\n if (array_key_exists($keys[2], $arr)) {\n $this->setPrice($arr[$keys[2]]);\n }\n if (array_key_exists($keys[3], $arr)) {\n $this->setCreation($arr[$keys[3]]);\n }\n if (array_key_exists($keys[4], $arr)) {\n $this->setVisible($arr[$keys[4]]);\n }\n if (array_key_exists($keys[5], $arr)) {\n $this->setShapeId($arr[$keys[5]]);\n }\n if (array_key_exists($keys[6], $arr)) {\n $this->setCakeTypeId($arr[$keys[6]]);\n }\n }",
"function set(array $array){\n foreach($this as $atributo => $valor){\n if(isset($array[$atributo])){\n $this->$atributo = $array[$atributo];\n }\n }\n }",
"public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME)\n\t{\n\t\t$pos = UserPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM);\n\t\treturn $this->setByPosition($pos, $value);\n\t}",
"public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME)\n\t{\n\t\t$pos = UserPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM);\n\t\treturn $this->setByPosition($pos, $value);\n\t}",
"public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME)\n {\n parent::fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME);\n $this->initCmsI18ns();\n if (isset($arr['CmsI18ns'])) {\n foreach ($arr['CmsI18ns'] as $cmsI18n) {\n $translation = new CmsI18n();\n $translation->fromArray($cmsI18n);\n $this->addCmsI18n($translation);\n }\n }\n }",
"public function fromArray($arr, $keyType = TableMap::TYPE_PHPNAME)\n {\n $keys = OrdrhedTableMap::getFieldNames($keyType);\n\n if (array_key_exists($keys[0], $arr)) {\n $this->setSessionid($arr[$keys[0]]);\n }\n if (array_key_exists($keys[1], $arr)) {\n $this->setRecno($arr[$keys[1]]);\n }\n if (array_key_exists($keys[2], $arr)) {\n $this->setDate($arr[$keys[2]]);\n }\n if (array_key_exists($keys[3], $arr)) {\n $this->setTime($arr[$keys[3]]);\n }\n if (array_key_exists($keys[4], $arr)) {\n $this->setType($arr[$keys[4]]);\n }\n if (array_key_exists($keys[5], $arr)) {\n $this->setCustid($arr[$keys[5]]);\n }\n if (array_key_exists($keys[6], $arr)) {\n $this->setShiptoid($arr[$keys[6]]);\n }\n if (array_key_exists($keys[7], $arr)) {\n $this->setCustname($arr[$keys[7]]);\n }\n if (array_key_exists($keys[8], $arr)) {\n $this->setOrderno($arr[$keys[8]]);\n }\n if (array_key_exists($keys[9], $arr)) {\n $this->setCustpo($arr[$keys[9]]);\n }\n if (array_key_exists($keys[10], $arr)) {\n $this->setCustref($arr[$keys[10]]);\n }\n if (array_key_exists($keys[11], $arr)) {\n $this->setStatus($arr[$keys[11]]);\n }\n if (array_key_exists($keys[12], $arr)) {\n $this->setOrderdate($arr[$keys[12]]);\n }\n if (array_key_exists($keys[13], $arr)) {\n $this->setCareof($arr[$keys[13]]);\n }\n if (array_key_exists($keys[14], $arr)) {\n $this->setQuotdate($arr[$keys[14]]);\n }\n if (array_key_exists($keys[15], $arr)) {\n $this->setInvdate($arr[$keys[15]]);\n }\n if (array_key_exists($keys[16], $arr)) {\n $this->setShipdate($arr[$keys[16]]);\n }\n if (array_key_exists($keys[17], $arr)) {\n $this->setRevdate($arr[$keys[17]]);\n }\n if (array_key_exists($keys[18], $arr)) {\n $this->setExpdate($arr[$keys[18]]);\n }\n if (array_key_exists($keys[19], $arr)) {\n $this->setHasdocuments($arr[$keys[19]]);\n }\n if (array_key_exists($keys[20], $arr)) {\n $this->setHastracking($arr[$keys[20]]);\n }\n if (array_key_exists($keys[21], $arr)) {\n $this->setSubtotal($arr[$keys[21]]);\n }\n if (array_key_exists($keys[22], $arr)) {\n $this->setSalestax($arr[$keys[22]]);\n }\n if (array_key_exists($keys[23], $arr)) {\n $this->setFreight($arr[$keys[23]]);\n }\n if (array_key_exists($keys[24], $arr)) {\n $this->setMisccost($arr[$keys[24]]);\n }\n if (array_key_exists($keys[25], $arr)) {\n $this->setOrdertotal($arr[$keys[25]]);\n }\n if (array_key_exists($keys[26], $arr)) {\n $this->setHasnotes($arr[$keys[26]]);\n }\n if (array_key_exists($keys[27], $arr)) {\n $this->setEditord($arr[$keys[27]]);\n }\n if (array_key_exists($keys[28], $arr)) {\n $this->setError($arr[$keys[28]]);\n }\n if (array_key_exists($keys[29], $arr)) {\n $this->setErrormsg($arr[$keys[29]]);\n }\n if (array_key_exists($keys[30], $arr)) {\n $this->setSconame($arr[$keys[30]]);\n }\n if (array_key_exists($keys[31], $arr)) {\n $this->setShipname($arr[$keys[31]]);\n }\n if (array_key_exists($keys[32], $arr)) {\n $this->setShipaddress($arr[$keys[32]]);\n }\n if (array_key_exists($keys[33], $arr)) {\n $this->setShipaddress2($arr[$keys[33]]);\n }\n if (array_key_exists($keys[34], $arr)) {\n $this->setShipcity($arr[$keys[34]]);\n }\n if (array_key_exists($keys[35], $arr)) {\n $this->setShipstate($arr[$keys[35]]);\n }\n if (array_key_exists($keys[36], $arr)) {\n $this->setShipzip($arr[$keys[36]]);\n }\n if (array_key_exists($keys[37], $arr)) {\n $this->setShipcountry($arr[$keys[37]]);\n }\n if (array_key_exists($keys[38], $arr)) {\n $this->setContact($arr[$keys[38]]);\n }\n if (array_key_exists($keys[39], $arr)) {\n $this->setPhintl($arr[$keys[39]]);\n }\n if (array_key_exists($keys[40], $arr)) {\n $this->setPhone($arr[$keys[40]]);\n }\n if (array_key_exists($keys[41], $arr)) {\n $this->setExtension($arr[$keys[41]]);\n }\n if (array_key_exists($keys[42], $arr)) {\n $this->setFaxnbr($arr[$keys[42]]);\n }\n if (array_key_exists($keys[43], $arr)) {\n $this->setEmail($arr[$keys[43]]);\n }\n if (array_key_exists($keys[44], $arr)) {\n $this->setReleasenbr($arr[$keys[44]]);\n }\n if (array_key_exists($keys[45], $arr)) {\n $this->setShipviacd($arr[$keys[45]]);\n }\n if (array_key_exists($keys[46], $arr)) {\n $this->setShipviadesc($arr[$keys[46]]);\n }\n if (array_key_exists($keys[47], $arr)) {\n $this->setPricecode($arr[$keys[47]]);\n }\n if (array_key_exists($keys[48], $arr)) {\n $this->setPricecodedesc($arr[$keys[48]]);\n }\n if (array_key_exists($keys[49], $arr)) {\n $this->setPricedisp($arr[$keys[49]]);\n }\n if (array_key_exists($keys[50], $arr)) {\n $this->setTaxcode($arr[$keys[50]]);\n }\n if (array_key_exists($keys[51], $arr)) {\n $this->setTaxcodedesc($arr[$keys[51]]);\n }\n if (array_key_exists($keys[52], $arr)) {\n $this->setTaxcodedisp($arr[$keys[52]]);\n }\n if (array_key_exists($keys[53], $arr)) {\n $this->setTermcode($arr[$keys[53]]);\n }\n if (array_key_exists($keys[54], $arr)) {\n $this->setTermtype($arr[$keys[54]]);\n }\n if (array_key_exists($keys[55], $arr)) {\n $this->setTermcodedesc($arr[$keys[55]]);\n }\n if (array_key_exists($keys[56], $arr)) {\n $this->setRqstdate($arr[$keys[56]]);\n }\n if (array_key_exists($keys[57], $arr)) {\n $this->setShipcom($arr[$keys[57]]);\n }\n if (array_key_exists($keys[58], $arr)) {\n $this->setSp1($arr[$keys[58]]);\n }\n if (array_key_exists($keys[59], $arr)) {\n $this->setSp1name($arr[$keys[59]]);\n }\n if (array_key_exists($keys[60], $arr)) {\n $this->setSp2($arr[$keys[60]]);\n }\n if (array_key_exists($keys[61], $arr)) {\n $this->setSp2name($arr[$keys[61]]);\n }\n if (array_key_exists($keys[62], $arr)) {\n $this->setSp2disp($arr[$keys[62]]);\n }\n if (array_key_exists($keys[63], $arr)) {\n $this->setSp3($arr[$keys[63]]);\n }\n if (array_key_exists($keys[64], $arr)) {\n $this->setSp3name($arr[$keys[64]]);\n }\n if (array_key_exists($keys[65], $arr)) {\n $this->setSp3disp($arr[$keys[65]]);\n }\n if (array_key_exists($keys[66], $arr)) {\n $this->setFob($arr[$keys[66]]);\n }\n if (array_key_exists($keys[67], $arr)) {\n $this->setDeliverydesc($arr[$keys[67]]);\n }\n if (array_key_exists($keys[68], $arr)) {\n $this->setWhse($arr[$keys[68]]);\n }\n if (array_key_exists($keys[69], $arr)) {\n $this->setCardnumber($arr[$keys[69]]);\n }\n if (array_key_exists($keys[70], $arr)) {\n $this->setCardexpire($arr[$keys[70]]);\n }\n if (array_key_exists($keys[71], $arr)) {\n $this->setCardcode($arr[$keys[71]]);\n }\n if (array_key_exists($keys[72], $arr)) {\n $this->setCardapproval($arr[$keys[72]]);\n }\n if (array_key_exists($keys[73], $arr)) {\n $this->setTotalcost($arr[$keys[73]]);\n }\n if (array_key_exists($keys[74], $arr)) {\n $this->setTotaldiscount($arr[$keys[74]]);\n }\n if (array_key_exists($keys[75], $arr)) {\n $this->setPaymenttype($arr[$keys[75]]);\n }\n if (array_key_exists($keys[76], $arr)) {\n $this->setSrcdatefrom($arr[$keys[76]]);\n }\n if (array_key_exists($keys[77], $arr)) {\n $this->setSrcdatethru($arr[$keys[77]]);\n }\n if (array_key_exists($keys[78], $arr)) {\n $this->setBillname($arr[$keys[78]]);\n }\n if (array_key_exists($keys[79], $arr)) {\n $this->setBilladdress($arr[$keys[79]]);\n }\n if (array_key_exists($keys[80], $arr)) {\n $this->setBilladdress2($arr[$keys[80]]);\n }\n if (array_key_exists($keys[81], $arr)) {\n $this->setBilladdress3($arr[$keys[81]]);\n }\n if (array_key_exists($keys[82], $arr)) {\n $this->setBillcountry($arr[$keys[82]]);\n }\n if (array_key_exists($keys[83], $arr)) {\n $this->setBillcity($arr[$keys[83]]);\n }\n if (array_key_exists($keys[84], $arr)) {\n $this->setBillstate($arr[$keys[84]]);\n }\n if (array_key_exists($keys[85], $arr)) {\n $this->setBillzip($arr[$keys[85]]);\n }\n if (array_key_exists($keys[86], $arr)) {\n $this->setPrntfmt($arr[$keys[86]]);\n }\n if (array_key_exists($keys[87], $arr)) {\n $this->setPrntfmtdisp($arr[$keys[87]]);\n }\n if (array_key_exists($keys[88], $arr)) {\n $this->setDummy($arr[$keys[88]]);\n }\n }",
"public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME)\n\t{\n\t\t$keys = J019tParticipantesPeer::getFieldNames($keyType);\n\n\t\tif (array_key_exists($keys[0], $arr)) $this->setCoParticipante($arr[$keys[0]]);\n\t\tif (array_key_exists($keys[1], $arr)) $this->setCoUsuarioElabora($arr[$keys[1]]);\n\t\tif (array_key_exists($keys[2], $arr)) $this->setCoForense($arr[$keys[2]]);\n\t\tif (array_key_exists($keys[3], $arr)) $this->setCoInformeRecomendaciones($arr[$keys[3]]);\n\t\tif (array_key_exists($keys[4], $arr)) $this->setCoInformeIncidente($arr[$keys[4]]);\n\t\tif (array_key_exists($keys[5], $arr)) $this->setCoInformeForense($arr[$keys[5]]);\n\t\tif (array_key_exists($keys[6], $arr)) $this->setCoInformeDepuracion($arr[$keys[6]]);\n\t\tif (array_key_exists($keys[7], $arr)) $this->setCoMantenimiento($arr[$keys[7]]);\n\t\tif (array_key_exists($keys[8], $arr)) $this->setCoDoumentoNormativo($arr[$keys[8]]);\n\t}",
"public function set_values_from_array(array $Data) {\n foreach ($Data as $field => $value) {\n if (!isset ($this->$field)) continue;\n $this->$field->setValue ($value);\n }\n }",
"public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME)\n {\n $pos = EventPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM);\n\n $this->setByPosition($pos, $value);\n }",
"public function fromArray($arr, $keyType = TableMap::TYPE_PHPNAME)\n {\n $keys = TblProdInfoTableMap::getFieldNames($keyType);\n\n if (array_key_exists($keys[0], $arr)) {\n $this->setProdId($arr[$keys[0]]);\n }\n if (array_key_exists($keys[1], $arr)) {\n $this->setProdPriceId($arr[$keys[1]]);\n }\n if (array_key_exists($keys[2], $arr)) {\n $this->setProdName($arr[$keys[2]]);\n }\n if (array_key_exists($keys[3], $arr)) {\n $this->setProdAlt1($arr[$keys[3]]);\n }\n if (array_key_exists($keys[4], $arr)) {\n $this->setProdAlt2($arr[$keys[4]]);\n }\n if (array_key_exists($keys[5], $arr)) {\n $this->setProdAlt3($arr[$keys[5]]);\n }\n if (array_key_exists($keys[6], $arr)) {\n $this->setProdAlt4($arr[$keys[6]]);\n }\n if (array_key_exists($keys[7], $arr)) {\n $this->setProdCode($arr[$keys[7]]);\n }\n if (array_key_exists($keys[8], $arr)) {\n $this->setProdCategory($arr[$keys[8]]);\n }\n if (array_key_exists($keys[9], $arr)) {\n $this->setProdCategoryShipping($arr[$keys[9]]);\n }\n if (array_key_exists($keys[10], $arr)) {\n $this->setProdWriteup($arr[$keys[10]]);\n }\n if (array_key_exists($keys[11], $arr)) {\n $this->setProdLength($arr[$keys[11]]);\n }\n if (array_key_exists($keys[12], $arr)) {\n $this->setProdWingspan($arr[$keys[12]]);\n }\n if (array_key_exists($keys[13], $arr)) {\n $this->setProdHeight($arr[$keys[13]]);\n }\n if (array_key_exists($keys[14], $arr)) {\n $this->setProdScale($arr[$keys[14]]);\n }\n if (array_key_exists($keys[15], $arr)) {\n $this->setProdLinks($arr[$keys[15]]);\n }\n if (array_key_exists($keys[16], $arr)) {\n $this->setProdLinkdescription($arr[$keys[16]]);\n }\n if (array_key_exists($keys[17], $arr)) {\n $this->setProdFront($arr[$keys[17]]);\n }\n if (array_key_exists($keys[18], $arr)) {\n $this->setProdKeywords($arr[$keys[18]]);\n }\n if (array_key_exists($keys[19], $arr)) {\n $this->setProdKeywordsWriteup($arr[$keys[19]]);\n }\n if (array_key_exists($keys[20], $arr)) {\n $this->setProdTitle($arr[$keys[20]]);\n }\n if (array_key_exists($keys[21], $arr)) {\n $this->setProdDescription($arr[$keys[21]]);\n }\n if (array_key_exists($keys[22], $arr)) {\n $this->setProdGeneral($arr[$keys[22]]);\n }\n if (array_key_exists($keys[23], $arr)) {\n $this->setProdEra($arr[$keys[23]]);\n }\n if (array_key_exists($keys[24], $arr)) {\n $this->setProdCompany($arr[$keys[24]]);\n }\n if (array_key_exists($keys[25], $arr)) {\n $this->setProdRelated($arr[$keys[25]]);\n }\n if (array_key_exists($keys[26], $arr)) {\n $this->setProdRelatedPa($arr[$keys[26]]);\n }\n if (array_key_exists($keys[27], $arr)) {\n $this->setProdRelatedM3($arr[$keys[27]]);\n }\n if (array_key_exists($keys[28], $arr)) {\n $this->setProdRelated2($arr[$keys[28]]);\n }\n if (array_key_exists($keys[29], $arr)) {\n $this->setProdSaveas($arr[$keys[29]]);\n }\n if (array_key_exists($keys[30], $arr)) {\n $this->setProdAircraftreg($arr[$keys[30]]);\n }\n if (array_key_exists($keys[31], $arr)) {\n $this->setMb($arr[$keys[31]]);\n }\n if (array_key_exists($keys[32], $arr)) {\n $this->setPa($arr[$keys[32]]);\n }\n if (array_key_exists($keys[33], $arr)) {\n $this->setM3($arr[$keys[33]]);\n }\n }",
"public function fromArray($array) {\n \n foreach ( $array as $key => $value ) {\n \n $this->$key = $value; \n }\n \n //return $this;\n }",
"public function setColumns(array $columns);",
"public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME)\n\t{\n\t\t$pos = PostPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM);\n\t\treturn $this->setByPosition($pos, $value);\n\t}",
"private function _setColumns()\n {\n $this->columns = new Pike_Grid_DataSource_Columns();\n\n foreach ($this->_query->getFields() as $field) {\n $this->columns->add($field, null, $field);\n }\n }",
"public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME)\n\t{\n\t\t$pos = VenuePeer::translateFieldName($name, $type, BasePeer::TYPE_NUM);\n\t\treturn $this->setByPosition($pos, $value);\n\t}",
"public function fromArray($arr, $keyType = BasePeer::TYPE_FIELDNAME)\n {\n $keys = BangunanPeer::getFieldNames($keyType);\n\n if (array_key_exists($keys[0], $arr)) $this->setIdBangunan($arr[$keys[0]]);\n if (array_key_exists($keys[1], $arr)) $this->setJenisPrasaranaId($arr[$keys[1]]);\n if (array_key_exists($keys[2], $arr)) $this->setSekolahId($arr[$keys[2]]);\n if (array_key_exists($keys[3], $arr)) $this->setIdTanah($arr[$keys[3]]);\n if (array_key_exists($keys[4], $arr)) $this->setPtkId($arr[$keys[4]]);\n if (array_key_exists($keys[5], $arr)) $this->setIdHapusBuku($arr[$keys[5]]);\n if (array_key_exists($keys[6], $arr)) $this->setKepemilikanSarprasId($arr[$keys[6]]);\n if (array_key_exists($keys[7], $arr)) $this->setKdKl($arr[$keys[7]]);\n if (array_key_exists($keys[8], $arr)) $this->setKdSatker($arr[$keys[8]]);\n if (array_key_exists($keys[9], $arr)) $this->setKdBrg($arr[$keys[9]]);\n if (array_key_exists($keys[10], $arr)) $this->setNup($arr[$keys[10]]);\n if (array_key_exists($keys[11], $arr)) $this->setKodeEselon1($arr[$keys[11]]);\n if (array_key_exists($keys[12], $arr)) $this->setNamaEselon1($arr[$keys[12]]);\n if (array_key_exists($keys[13], $arr)) $this->setKodeSubSatker($arr[$keys[13]]);\n if (array_key_exists($keys[14], $arr)) $this->setNamaSubSatker($arr[$keys[14]]);\n if (array_key_exists($keys[15], $arr)) $this->setNama($arr[$keys[15]]);\n if (array_key_exists($keys[16], $arr)) $this->setPanjang($arr[$keys[16]]);\n if (array_key_exists($keys[17], $arr)) $this->setLebar($arr[$keys[17]]);\n if (array_key_exists($keys[18], $arr)) $this->setNilaiPerolehanAset($arr[$keys[18]]);\n if (array_key_exists($keys[19], $arr)) $this->setJmlLantai($arr[$keys[19]]);\n if (array_key_exists($keys[20], $arr)) $this->setThnDibangun($arr[$keys[20]]);\n if (array_key_exists($keys[21], $arr)) $this->setLuasTapakBangunan($arr[$keys[21]]);\n if (array_key_exists($keys[22], $arr)) $this->setVolPondasiM3($arr[$keys[22]]);\n if (array_key_exists($keys[23], $arr)) $this->setVolSloopKolomBalokM3($arr[$keys[23]]);\n if (array_key_exists($keys[24], $arr)) $this->setPanjKudakudaM($arr[$keys[24]]);\n if (array_key_exists($keys[25], $arr)) $this->setVolKudakudaM3($arr[$keys[25]]);\n if (array_key_exists($keys[26], $arr)) $this->setPanjKasoM($arr[$keys[26]]);\n if (array_key_exists($keys[27], $arr)) $this->setPanjRengM($arr[$keys[27]]);\n if (array_key_exists($keys[28], $arr)) $this->setLuasTutupAtapM2($arr[$keys[28]]);\n if (array_key_exists($keys[29], $arr)) $this->setKdSatkerTanah($arr[$keys[29]]);\n if (array_key_exists($keys[30], $arr)) $this->setNmSatkerTanah($arr[$keys[30]]);\n if (array_key_exists($keys[31], $arr)) $this->setKdBrgTanah($arr[$keys[31]]);\n if (array_key_exists($keys[32], $arr)) $this->setNmBrgTanah($arr[$keys[32]]);\n if (array_key_exists($keys[33], $arr)) $this->setNupBrgTanah($arr[$keys[33]]);\n if (array_key_exists($keys[34], $arr)) $this->setTglSkPemakai($arr[$keys[34]]);\n if (array_key_exists($keys[35], $arr)) $this->setTglHapusBuku($arr[$keys[35]]);\n if (array_key_exists($keys[36], $arr)) $this->setKetBangunan($arr[$keys[36]]);\n if (array_key_exists($keys[37], $arr)) $this->setAsalData($arr[$keys[37]]);\n if (array_key_exists($keys[38], $arr)) $this->setCreateDate($arr[$keys[38]]);\n if (array_key_exists($keys[39], $arr)) $this->setLastUpdate($arr[$keys[39]]);\n if (array_key_exists($keys[40], $arr)) $this->setSoftDelete($arr[$keys[40]]);\n if (array_key_exists($keys[41], $arr)) $this->setLastSync($arr[$keys[41]]);\n if (array_key_exists($keys[42], $arr)) $this->setUpdaterId($arr[$keys[42]]);\n }",
"public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME)\n\t{\n\t\t$pos = C060InventarioPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM);\n\t\treturn $this->setByPosition($pos, $value);\n\t}",
"public function exchangeArray(array $data)\n {\n foreach ($data as $name => $value) {\n if(property_exists($this, $name)) {\n if(strstr($name,'_id')\n && empty($value)){\n $this->$name = null;\n }else{\n $this->$name = $value;\n }\n }\n }\n }",
"public function setColumns(array $columns);",
"public function init_from_array($array)\n { \n foreach($array as $key => $val)\n { \n $this->set($key,$val);\n }\n }",
"public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME)\n\t{\n\t\t$pos = CidadePeer::translateFieldName($name, $type, BasePeer::TYPE_NUM);\n\t\treturn $this->setByPosition($pos, $value);\n\t}",
"public function fromArray($arr, $keyType = BasePeer::TYPE_FIELDNAME)\n {\n $keys = JadwalPeer::getFieldNames($keyType);\n\n if (array_key_exists($keys[0], $arr)) $this->setSekolahId($arr[$keys[0]]);\n if (array_key_exists($keys[1], $arr)) $this->setSemesterId($arr[$keys[1]]);\n if (array_key_exists($keys[2], $arr)) $this->setIdRuang($arr[$keys[2]]);\n if (array_key_exists($keys[3], $arr)) $this->setHari($arr[$keys[3]]);\n if (array_key_exists($keys[4], $arr)) $this->setBelKe01($arr[$keys[4]]);\n if (array_key_exists($keys[5], $arr)) $this->setBelKe02($arr[$keys[5]]);\n if (array_key_exists($keys[6], $arr)) $this->setBelKe03($arr[$keys[6]]);\n if (array_key_exists($keys[7], $arr)) $this->setBelKe04($arr[$keys[7]]);\n if (array_key_exists($keys[8], $arr)) $this->setBelKe05($arr[$keys[8]]);\n if (array_key_exists($keys[9], $arr)) $this->setBelKe06($arr[$keys[9]]);\n if (array_key_exists($keys[10], $arr)) $this->setBelKe07($arr[$keys[10]]);\n if (array_key_exists($keys[11], $arr)) $this->setBelKe08($arr[$keys[11]]);\n if (array_key_exists($keys[12], $arr)) $this->setBelKe09($arr[$keys[12]]);\n if (array_key_exists($keys[13], $arr)) $this->setBelKe10($arr[$keys[13]]);\n if (array_key_exists($keys[14], $arr)) $this->setBelKe11($arr[$keys[14]]);\n if (array_key_exists($keys[15], $arr)) $this->setBelKe12($arr[$keys[15]]);\n if (array_key_exists($keys[16], $arr)) $this->setBelKe13($arr[$keys[16]]);\n if (array_key_exists($keys[17], $arr)) $this->setBelKe14($arr[$keys[17]]);\n if (array_key_exists($keys[18], $arr)) $this->setBelKe15($arr[$keys[18]]);\n if (array_key_exists($keys[19], $arr)) $this->setBelKe16($arr[$keys[19]]);\n if (array_key_exists($keys[20], $arr)) $this->setBelKe17($arr[$keys[20]]);\n if (array_key_exists($keys[21], $arr)) $this->setBelKe18($arr[$keys[21]]);\n if (array_key_exists($keys[22], $arr)) $this->setBelKe19($arr[$keys[22]]);\n if (array_key_exists($keys[23], $arr)) $this->setBelKe20($arr[$keys[23]]);\n if (array_key_exists($keys[24], $arr)) $this->setCreateDate($arr[$keys[24]]);\n if (array_key_exists($keys[25], $arr)) $this->setLastUpdate($arr[$keys[25]]);\n if (array_key_exists($keys[26], $arr)) $this->setSoftDelete($arr[$keys[26]]);\n if (array_key_exists($keys[27], $arr)) $this->setLastSync($arr[$keys[27]]);\n if (array_key_exists($keys[28], $arr)) $this->setUpdaterId($arr[$keys[28]]);\n }",
"function setValues($array){\r\n\t\tforeach($array as $key => $val)\r\n\t\t\tif(property_exists($this,$key))\r\n\t\t\t\t$this->$key = $val;\r\n\t}",
"protected function _configureColumns()\n {\n if (empty($this->columns)) {\n $this->guessColumns();\n }\n $this->_sourceColumns = $this->columns;;\n\n $columnsByKey = [];\n foreach ($this->columns as $column) {\n $columnKey = $this->_getColumnKey($column);\n for ($j = 0; true; $j++) {\n $suffix = ($j) ? '_' . $j : '';\n $columnKey .= $suffix;\n if (!array_key_exists($columnKey, $columnsByKey)) {\n break;\n }\n }\n $columnsByKey[$columnKey] = $column;\n }\n\n $this->columns = $columnsByKey;\n }",
"private function initColumnArrays()\n {\n foreach ($this->columns as $key => $column) {\n $dql = $this->accessor->getValue($column, 'dql');\n $data = $this->accessor->getValue($column, 'data');\n\n $currentPart = $this->entityShortName;\n $currentAlias = $currentPart;\n $metadata = $this->metadata;\n\n if (true === $this->accessor->getValue($column, 'customDql')) {\n $columnAlias = str_replace('.', '_', $data);\n\n // Select\n $selectDql = preg_replace('/\\{([\\w]+)\\}/', '$1', $dql);\n $this->addSelectColumn(null, $selectDql.' '.$columnAlias);\n // Order on alias column name\n $this->addOrderColumn($column, null, $columnAlias);\n // Fix subqueries alias duplication\n $searchDql = preg_replace('/\\{([\\w]+)\\}/', '$1_search', $dql);\n $this->addSearchColumn($column, null, $searchDql);\n } elseif (true === $this->accessor->getValue($column, 'selectColumn')) {\n $parts = explode('.', $dql);\n\n while (count($parts) > 1) {\n $previousPart = $currentPart;\n $previousAlias = $currentAlias;\n\n $currentPart = array_shift($parts);\n $currentAlias = ($previousPart === $this->entityShortName ? '' : $previousPart.'_').$currentPart;\n\n if (!array_key_exists($previousAlias.'.'.$currentPart, $this->joins)) {\n $this->addJoin($previousAlias.'.'.$currentPart, $currentAlias, $this->accessor->getValue($column, 'joinType'));\n }\n\n $metadata = $this->setIdentifierFromAssociation($currentAlias, $currentPart, $metadata);\n }\n\n $this->addSelectColumn($currentAlias, $this->getIdentifier($metadata));\n $this->addSelectColumn($currentAlias, $parts[0]);\n $this->addSearchOrderColumn($column, $currentAlias, $parts[0]);\n } else {\n // Add Order-Field for VirtualColumn\n if ($this->accessor->isReadable($column, 'orderColumn') && true === $this->accessor->getValue($column, 'orderable')) {\n $orderColumn = $this->accessor->getValue($column, 'orderColumn');\n $orderParts = explode('.', $orderColumn);\n if (count($orderParts) < 2) {\n $orderColumn = $this->entityShortName.'.'.$orderColumn;\n }\n $this->orderColumns[] = $orderColumn;\n } else {\n $this->orderColumns[] = null;\n }\n\n // Add Search-Field for VirtualColumn\n if ($this->accessor->isReadable($column, 'searchColumn') && true === $this->accessor->getValue($column, 'searchable')) {\n $searchColumn = $this->accessor->getValue($column, 'searchColumn');\n $searchParts = explode('.', $searchColumn);\n if (count($searchParts) < 2) {\n $searchColumn = $this->entityShortName.'.'.$searchColumn;\n }\n $this->searchColumns[] = $searchColumn;\n } else {\n $this->searchColumns[] = null;\n }\n }\n }\n\n return $this;\n }",
"public function getByName($name, $type = BasePeer::TYPE_PHPNAME)\n\t{\n\t\t$pos = MmPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM);\n\t\treturn $this->getByPosition($pos);\n\t}",
"public function init()\r\n\t{\r\n\t\tif (count($this->table_fields) < 1)\r\n\t\t\treturn false;\r\n\t\tforeach ($this->table_fields as $table_field) {\r\n\t\t\tif ($table_field->get_primary_key()) {\r\n\t\t\t\t$this->id_field = $table_field->get_name();\r\n\t\t\t}\r\n\t\t\tif ($table_field->get_name_key()) {\r\n\t\t\t\t$this->name_fields[] = $table_field->get_name();\r\n\t\t\t}\r\n\t\t\tif ($table_field->get_unike_key()) {\r\n\t\t\t\t$this->unike_keys[] = $table_field->get_name();\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"function set(array $array, $pos = 0){\n foreach($this as $field => $valor){\n if(isset($array[$pos])){\n $this->$field = $array[$pos];\n }\n $pos++;\n }\n }",
"protected function _setupMapperArray()\n\t{\n\t\t$this->mapperArray = array();\n\t\t\n\t\t$this->mapperArray['property_id'] = 'properties_id';\n\t\t$this->mapperArray['sort_order'] = 'sort_order';\n\t\t\n\t\t$this->mapperArray['name'] = 'properties_name';\n\t\t$this->mapperArray['admin_name'] = 'properties_admin_name';\n\t}",
"public function testSetByName()\n {\n $book = new Book();\n $types = [\n TableMap::TYPE_PHPNAME => 'Title',\n TableMap::TYPE_CAMELNAME => 'title',\n TableMap::TYPE_COLNAME => 'book.title',\n TableMap::TYPE_FIELDNAME => 'title',\n TableMap::TYPE_NUM => 1\n ];\n\n $title = 'Harry Potter and the Order of the Phoenix';\n foreach ($types as $type => $name) {\n $book->setByName($name, $title, $type);\n $result = $book->getTitle();\n $this->assertEquals($title, $result);\n }\n }",
"public function setHeader($array) {\n $this->colName= $array;\n $this->headerWritten= FALSE;\n }",
"public function exchangeArray(array $array)\n {\n $values = get_object_vars($this);\n\n foreach (array_keys($values) as $property) {\n if (array_key_exists($property, $array)) {\n $this->$property = $array[$property];\n }\n }\n }",
"public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME)\n {\n $keys = FeatureCvtermPeer::getFieldNames($keyType);\n\n if (array_key_exists($keys[0], $arr)) $this->setFeatureCvtermId($arr[$keys[0]]);\n if (array_key_exists($keys[1], $arr)) $this->setFeatureId($arr[$keys[1]]);\n if (array_key_exists($keys[2], $arr)) $this->setCvtermId($arr[$keys[2]]);\n if (array_key_exists($keys[3], $arr)) $this->setPubId($arr[$keys[3]]);\n if (array_key_exists($keys[4], $arr)) $this->setIsNot($arr[$keys[4]]);\n if (array_key_exists($keys[5], $arr)) $this->setRank($arr[$keys[5]]);\n }",
"public function fromArray($arr, $keyType = TableMap::TYPE_PHPNAME)\n {\n $keys = SalesHistoryNotesTableMap::getFieldNames($keyType);\n\n if (array_key_exists($keys[0], $arr)) {\n $this->setShnttype($arr[$keys[0]]);\n }\n if (array_key_exists($keys[1], $arr)) {\n $this->setShnttypedesc($arr[$keys[1]]);\n }\n if (array_key_exists($keys[2], $arr)) {\n $this->setOehhnbr($arr[$keys[2]]);\n }\n if (array_key_exists($keys[3], $arr)) {\n $this->setShntyear($arr[$keys[3]]);\n }\n if (array_key_exists($keys[4], $arr)) {\n $this->setOedhline($arr[$keys[4]]);\n }\n if (array_key_exists($keys[5], $arr)) {\n $this->setShntlotser($arr[$keys[5]]);\n }\n if (array_key_exists($keys[6], $arr)) {\n $this->setShntpickticket($arr[$keys[6]]);\n }\n if (array_key_exists($keys[7], $arr)) {\n $this->setShntpackticket($arr[$keys[7]]);\n }\n if (array_key_exists($keys[8], $arr)) {\n $this->setShntinvoice($arr[$keys[8]]);\n }\n if (array_key_exists($keys[9], $arr)) {\n $this->setShntacknow($arr[$keys[9]]);\n }\n if (array_key_exists($keys[10], $arr)) {\n $this->setShntseq($arr[$keys[10]]);\n }\n if (array_key_exists($keys[11], $arr)) {\n $this->setShntnote($arr[$keys[11]]);\n }\n if (array_key_exists($keys[12], $arr)) {\n $this->setShntkey2($arr[$keys[12]]);\n }\n if (array_key_exists($keys[13], $arr)) {\n $this->setShntform($arr[$keys[13]]);\n }\n if (array_key_exists($keys[14], $arr)) {\n $this->setDateupdtd($arr[$keys[14]]);\n }\n if (array_key_exists($keys[15], $arr)) {\n $this->setTimeupdtd($arr[$keys[15]]);\n }\n if (array_key_exists($keys[16], $arr)) {\n $this->setDummy($arr[$keys[16]]);\n }\n }",
"protected function initColumns()\n\t{\n\t\tif($this->columns===array())\n\t\t{\n\t\t\tif($this->dataProvider instanceof NActiveDataProvider)\n\t\t\t\t$this->columns=$this->dataProvider->model->attributeNames();\n\t\t\telse if($this->dataProvider instanceof IDataProvider)\n\t\t\t{\n\t\t\t\t// use the keys of the first row of data as the default columns\n\t\t\t\t$data=$this->dataProvider->getData();\n\t\t\t\tif(isset($data[0]) && is_array($data[0]))\n\t\t\t\t\t$this->columns=array_keys($data[0]);\n\t\t\t}\n\t\t}\n\t\t$id=$this->getId();\n\t\tforeach($this->columns as $i=>$column)\n\t\t{\n\t\t\tif ($column['name'] && (!isset($column['export']) || @$column['export']!=false)) {\n\t\t\t\tif(is_string($column))\n\t\t\t\t\t$column=$this->createDataColumn($column);\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif(!isset($column['class']))\n\t\t\t\t\t\t$column['class']='NDataColumn';\n\t\t\t\t\t$column=Yii::createComponent($column, $this);\n\t\t\t\t}\n\t\t\t\tif(!$column->visible)\n\t\t\t\t{\n\t\t\t\t\tunset($this->columns[$i]);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif($column->id===null)\n\t\t\t\t\t$column->id=$id.'_c'.$i;\n\t\t\t\t$this->columns[$i]=$column;\n\t\t\t} else {\n\t\t\t\tunset($this->columns[$i]);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t}\n\n\t\tforeach($this->columns as $column)\n\t\t\t\t$column->init();\n\t}",
"public function fromArray ($fieldsArr)\n\t{\n\t\tforeach ($fieldsArr as $name => $value) {\n\t\t\t$this->$name = $value;\n\t\t}\n\t}",
"public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME)\n\t{\n\t\t$pos = UsuarioPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM);\n\t\treturn $this->setByPosition($pos, $value);\n\t}",
"public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME)\n\t{\n\t\t$pos = UsuarioPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM);\n\t\treturn $this->setByPosition($pos, $value);\n\t}",
"public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME)\n\t{\n\t\t$pos = J019tParticipantesPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM);\n\t\treturn $this->setByPosition($pos, $value);\n\t}",
"public function populate(array $options = [])\n {\n foreach ($options as $key => $value) {\n // NB: This can in the future be changed to automatically use setters and enforce validation\n $this->$key = $value;\n }\n }",
"public function hydrate(array $data){ \n \tforeach ($data as $key => $value){\n \t\t$method = 'set'.ucfirst($key); \n \tif (method_exists($this, $method)){\n \t$this->$method($value);\n }\n }\n\t}",
"public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME)\n {\n $pos = YearPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM);\n\n $this->setByPosition($pos, $value);\n }",
"public function exchangeArray(array $array) {\n\t\t$this->setId($array['id']);\n\t\t$this->setName($array['name']);\n\t}",
"protected function initColumns()\n {\n if (empty($this->columns)) {\n $this->guessColumns();\n }\n\n foreach ($this->columns as $i => $column) {\n if (is_string($column)) {\n $column = $this->createDataColumn($column);\n } else {\n $column = Yii::createObject(array_merge([\n 'class' => $this->dataColumnClass ?: DataColumn::className(),\n 'grid' => $this,\n ], $column));\n }\n if (!$column->visible) {\n unset($this->columns[$i]);\n $this->allColumns[$i] = $column;\n continue;\n }\n $this->columns[$i] = $column;\n $this->allColumns[$i] = $column;\n }\n }",
"public function fromArray(array $data)\n {\n foreach ($data as $key => $value) {\n $this->{'set'.ucfirst($key)}($value);\n }\n }",
"public function setByName ($name, $value, $type = BasePeer::TYPE_PHPNAME)\n {\n $pos = CalendarHolidaysPeer::translateFieldName ($name, $type, BasePeer::TYPE_NUM);\n return $this->setByPosition ($pos, $value);\n }",
"public function fromArray($arr, $keyType = BasePeer::TYPE_FIELDNAME)\n {\n $keys = SanitasiPeer::getFieldNames($keyType);\n\n if (array_key_exists($keys[0], $arr)) $this->setSekolahId($arr[$keys[0]]);\n if (array_key_exists($keys[1], $arr)) $this->setSemesterId($arr[$keys[1]]);\n if (array_key_exists($keys[2], $arr)) $this->setSumberAirId($arr[$keys[2]]);\n if (array_key_exists($keys[3], $arr)) $this->setSumberAirMinumId($arr[$keys[3]]);\n if (array_key_exists($keys[4], $arr)) $this->setCreateDate($arr[$keys[4]]);\n if (array_key_exists($keys[5], $arr)) $this->setLastUpdate($arr[$keys[5]]);\n if (array_key_exists($keys[6], $arr)) $this->setSoftDelete($arr[$keys[6]]);\n if (array_key_exists($keys[7], $arr)) $this->setLastSync($arr[$keys[7]]);\n if (array_key_exists($keys[8], $arr)) $this->setUpdaterId($arr[$keys[8]]);\n if (array_key_exists($keys[9], $arr)) $this->setKetersediaanAir($arr[$keys[9]]);\n if (array_key_exists($keys[10], $arr)) $this->setKecukupanAir($arr[$keys[10]]);\n if (array_key_exists($keys[11], $arr)) $this->setMinumSiswa($arr[$keys[11]]);\n if (array_key_exists($keys[12], $arr)) $this->setMemprosesAir($arr[$keys[12]]);\n if (array_key_exists($keys[13], $arr)) $this->setSiswaBawaAir($arr[$keys[13]]);\n if (array_key_exists($keys[14], $arr)) $this->setToiletSiswaLaki($arr[$keys[14]]);\n if (array_key_exists($keys[15], $arr)) $this->setToiletSiswaPerempuan($arr[$keys[15]]);\n if (array_key_exists($keys[16], $arr)) $this->setToiletSiswaKk($arr[$keys[16]]);\n if (array_key_exists($keys[17], $arr)) $this->setToiletSiswaKecil($arr[$keys[17]]);\n if (array_key_exists($keys[18], $arr)) $this->setJmlJambanLG($arr[$keys[18]]);\n if (array_key_exists($keys[19], $arr)) $this->setJmlJambanLTg($arr[$keys[19]]);\n if (array_key_exists($keys[20], $arr)) $this->setJmlJambanPG($arr[$keys[20]]);\n if (array_key_exists($keys[21], $arr)) $this->setJmlJambanPTg($arr[$keys[21]]);\n if (array_key_exists($keys[22], $arr)) $this->setJmlJambanLpG($arr[$keys[22]]);\n if (array_key_exists($keys[23], $arr)) $this->setJmlJambanLpTg($arr[$keys[23]]);\n if (array_key_exists($keys[24], $arr)) $this->setTempatCuciTangan($arr[$keys[24]]);\n if (array_key_exists($keys[25], $arr)) $this->setTempatCuciTanganRusak($arr[$keys[25]]);\n if (array_key_exists($keys[26], $arr)) $this->setASabunAirMengalir($arr[$keys[26]]);\n if (array_key_exists($keys[27], $arr)) $this->setJambanDifabel($arr[$keys[27]]);\n if (array_key_exists($keys[28], $arr)) $this->setTipeJamban($arr[$keys[28]]);\n if (array_key_exists($keys[29], $arr)) $this->setASediaPembalut($arr[$keys[29]]);\n if (array_key_exists($keys[30], $arr)) $this->setKegiatanCuciTangan($arr[$keys[30]]);\n if (array_key_exists($keys[31], $arr)) $this->setPembuanganAirLimbah($arr[$keys[31]]);\n if (array_key_exists($keys[32], $arr)) $this->setAKurasSeptitank($arr[$keys[32]]);\n if (array_key_exists($keys[33], $arr)) $this->setAMemilikiSolokan($arr[$keys[33]]);\n if (array_key_exists($keys[34], $arr)) $this->setATempatSampahKelas($arr[$keys[34]]);\n if (array_key_exists($keys[35], $arr)) $this->setATempatSampahTutupP($arr[$keys[35]]);\n if (array_key_exists($keys[36], $arr)) $this->setACerminJambanP($arr[$keys[36]]);\n if (array_key_exists($keys[37], $arr)) $this->setAMemilikiTps($arr[$keys[37]]);\n if (array_key_exists($keys[38], $arr)) $this->setATpsAngkutRutin($arr[$keys[38]]);\n if (array_key_exists($keys[39], $arr)) $this->setAAnggaranSanitasi($arr[$keys[39]]);\n if (array_key_exists($keys[40], $arr)) $this->setAMelibatkanSanitasiSiswa($arr[$keys[40]]);\n if (array_key_exists($keys[41], $arr)) $this->setAKemitraanSanDaerah($arr[$keys[41]]);\n if (array_key_exists($keys[42], $arr)) $this->setAKemitraanSanPuskesmas($arr[$keys[42]]);\n if (array_key_exists($keys[43], $arr)) $this->setAKemitraanSanSwasta($arr[$keys[43]]);\n if (array_key_exists($keys[44], $arr)) $this->setAKemitraanSanNonPem($arr[$keys[44]]);\n if (array_key_exists($keys[45], $arr)) $this->setKieGuruCuciTangan($arr[$keys[45]]);\n if (array_key_exists($keys[46], $arr)) $this->setKieGuruHaid($arr[$keys[46]]);\n if (array_key_exists($keys[47], $arr)) $this->setKieGuruPerawatanToilet($arr[$keys[47]]);\n if (array_key_exists($keys[48], $arr)) $this->setKieGuruKeamananPangan($arr[$keys[48]]);\n if (array_key_exists($keys[49], $arr)) $this->setKieGuruMinumAir($arr[$keys[49]]);\n if (array_key_exists($keys[50], $arr)) $this->setKieKelasCuciTangan($arr[$keys[50]]);\n if (array_key_exists($keys[51], $arr)) $this->setKieKelasHaid($arr[$keys[51]]);\n if (array_key_exists($keys[52], $arr)) $this->setKieKelasPerawatanToilet($arr[$keys[52]]);\n if (array_key_exists($keys[53], $arr)) $this->setKieKelasKeamananPangan($arr[$keys[53]]);\n if (array_key_exists($keys[54], $arr)) $this->setKieKelasMinumAir($arr[$keys[54]]);\n if (array_key_exists($keys[55], $arr)) $this->setKieToiletCuciTangan($arr[$keys[55]]);\n if (array_key_exists($keys[56], $arr)) $this->setKieToiletHaid($arr[$keys[56]]);\n if (array_key_exists($keys[57], $arr)) $this->setKieToiletPerawatanToilet($arr[$keys[57]]);\n if (array_key_exists($keys[58], $arr)) $this->setKieToiletKeamananPangan($arr[$keys[58]]);\n if (array_key_exists($keys[59], $arr)) $this->setKieToiletMinumAir($arr[$keys[59]]);\n if (array_key_exists($keys[60], $arr)) $this->setKieSelasarCuciTangan($arr[$keys[60]]);\n if (array_key_exists($keys[61], $arr)) $this->setKieSelasarHaid($arr[$keys[61]]);\n if (array_key_exists($keys[62], $arr)) $this->setKieSelasarPerawatanToilet($arr[$keys[62]]);\n if (array_key_exists($keys[63], $arr)) $this->setKieSelasarKeamananPangan($arr[$keys[63]]);\n if (array_key_exists($keys[64], $arr)) $this->setKieSelasarMinumAir($arr[$keys[64]]);\n if (array_key_exists($keys[65], $arr)) $this->setKieUksCuciTangan($arr[$keys[65]]);\n if (array_key_exists($keys[66], $arr)) $this->setKieUksHaid($arr[$keys[66]]);\n if (array_key_exists($keys[67], $arr)) $this->setKieUksPerawatanToilet($arr[$keys[67]]);\n if (array_key_exists($keys[68], $arr)) $this->setKieUksKeamananPangan($arr[$keys[68]]);\n if (array_key_exists($keys[69], $arr)) $this->setKieUksMinumAir($arr[$keys[69]]);\n if (array_key_exists($keys[70], $arr)) $this->setKieKantinCuciTangan($arr[$keys[70]]);\n if (array_key_exists($keys[71], $arr)) $this->setKieKantinHaid($arr[$keys[71]]);\n if (array_key_exists($keys[72], $arr)) $this->setKieKantinPerawatanToilet($arr[$keys[72]]);\n if (array_key_exists($keys[73], $arr)) $this->setKieKantinKeamananPangan($arr[$keys[73]]);\n if (array_key_exists($keys[74], $arr)) $this->setKieKantinMinumAir($arr[$keys[74]]);\n }",
"public function getByName($name, $type = BasePeer::TYPE_PHPNAME)\n\t{\n\t\t$pos = UserPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM);\n\t\t$field = $this->getByPosition($pos);\n\t\treturn $field;\n\t}",
"public function getByName($name, $type = BasePeer::TYPE_PHPNAME)\n\t{\n\t\t$pos = UserPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM);\n\t\t$field = $this->getByPosition($pos);\n\t\treturn $field;\n\t}",
"public function __construct(Array $columns)\n {\n $this->Columns = $columns;\n }",
"public function hydrate(array $data)\n {\n foreach ($data as $key => $value) {\n $method = 'set'.ucfirst($key);\n\n if (method_exists($this, $method)) {\n $this->$method($value);\n }\n }\n }",
"public function testFromArray()\n {\n $types = [\n TableMap::TYPE_PHPNAME,\n TableMap::TYPE_CAMELNAME,\n TableMap::TYPE_COLNAME,\n TableMap::TYPE_FIELDNAME,\n TableMap::TYPE_NUM\n ];\n $expecteds = [\n TableMap::TYPE_PHPNAME => [\n 'Title' => 'Harry Potter and the Order of the Phoenix',\n 'ISBN' => '043935806X'\n ],\n TableMap::TYPE_CAMELNAME => [\n 'title' => 'Harry Potter and the Order of the Phoenix',\n 'iSBN' => '043935806X'\n ],\n TableMap::TYPE_COLNAME => [\n 'book.title' => 'Harry Potter and the Order of the Phoenix',\n 'book.isbn' => '043935806X'\n ],\n TableMap::TYPE_FIELDNAME => [\n 'title' => 'Harry Potter and the Order of the Phoenix',\n 'isbn' => '043935806X'\n ],\n TableMap::TYPE_NUM => [\n '1' => 'Harry Potter and the Order of the Phoenix',\n '2' => '043935806X'\n ]\n ];\n\n $book = new Book();\n\n foreach ($types as $type) {\n $expected = $expecteds[$type];\n $book->fromArray($expected, $type);\n $result = [];\n foreach (array_keys($expected) as $key) {\n $result[$key] = $book->getByName($key, $type);\n }\n $this->assertEquals(\n $expected,\n $result,\n 'expected was: ' . print_r($expected, 1) .\n 'but fromArray() returned ' . print_r($result, 1)\n );\n }\n }",
"protected function loadColumns(){\n\t\t\t$this->columns = array_diff(\n\t\t\t\tarray_keys(get_class_vars($this->class)),\n\t\t\t\t$this->getIgnoreAttributes()\n\t\t\t);\n\t\t}",
"public function setByName($name, $value, $type = TableMap::TYPE_PHPNAME)\n {\n $pos = TblProdInfoTableMap::translateFieldName($name, $type, TableMap::TYPE_NUM);\n\n return $this->setByPosition($pos, $value);\n }",
"public function hydrate(array $data)\n {\n foreach ($data as $key => $value) {\n $method = 'set' . str_replace(\"_\", \"\", ucwords($key, \"_\"));\n if (method_exists($this, $method)) {\n $this->$method($value);\n }\n }\n }",
"public function setFromArray(array $arrData, array $arrName = null)\n {\n $arrData = array_combine(array_map(\"trim\", array_keys($arrData)), $arrData);\n if ($arrName) {\n $arrName = array_map(\"trim\", $arrName);\n foreach ($arrName as $key => $name) {\n if (array_key_exists($name, $arrData)) {\n continue;\n }\n \n if (strpos($name, \".\") < 1) {\n continue;\n }\n \n $arrNamePart = explode(\".\", $name);\n $context = $arrData;\n $dataFound = true;\n foreach ($arrNamePart as $namePart) {\n try {\n $finder = new ObjectPropertyFinder($context);\n } catch (Exception $e) {\n $dataFound = false;\n break;\n }\n if (!$finder->hasKey($namePart)) {\n $dataFound = false;\n break;\n }\n \n $context = $finder->getValue($namePart);\n }\n if ($dataFound) {\n $arrData[$name] = $context;\n } else {\n unset($arrName[$key]);\n }\n }\n $arrData = array_intersect_key($arrData, array_flip($arrName));\n }\n \n foreach ($arrData as $name => $value) {\n $this->setData($name, $value);\n }\n \n return $this;\n }",
"function setDataByArray($array) {\n\t\n\t\tforeach($array as $key => $value) {\n\t\t\t$this->setData($key, $value);\n\t\t}\n\t\t\n\t\t$this->dataLoaded = true;\n\t\treturn $this;\n\t\t//surely we need to set dataLoaded = true?\n\t}",
"public function fill($array)\n\t{\n\t\tif (!is_array($array))\n\t\t\tthrow new UnrecoverableSystemException(\"\", \"\",\n\t\t\t\t\"Argument to DatabaseModel->fill() is not an array.\");\n\n\t\tforeach ($this->row as $key => $value)\n\t\t{\n\t\t\tif (isset($array[$key]))\n\t\t\t{\n\t\t\t\tif ($this->convertCheckboxesToBool && $array[$key] == \"on\")\n\t\t\t\t\t$this->row[$key] = true;\n\t\t\t\telse\n\t\t\t\t\t$this->row[$key] = $array[$key];\n\t\t\t}\n\t\t}\n\t}",
"public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME)\n\t{\n\t\t$pos = VpoRequestPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM);\n\t\treturn $this->setByPosition($pos, $value);\n\t}",
"function dataBind($arr){\n\t\t// set the fields to nothing\n\t\t$this->fields = array();\n\t\t// loop the field names and add them\n\t\tforeach($arr as $key => $value){\n $this->addField($key);\n }\n // set the rows to nothing\n $this->rows = array();\n // loop each row and add it\n\t\tfor ($r=0; $r<count($arr); $r++){\n\t\t\t$this->addRow($arr[$r]);\n\t\t}\n\t}"
] | [
"0.6295839",
"0.6289262",
"0.6277631",
"0.6182538",
"0.607967",
"0.6060317",
"0.6006793",
"0.5968363",
"0.59326476",
"0.59074706",
"0.58208084",
"0.58035934",
"0.57572573",
"0.57433677",
"0.570267",
"0.568252",
"0.56238914",
"0.5618765",
"0.5613207",
"0.55908746",
"0.55820453",
"0.5559925",
"0.55587924",
"0.55579585",
"0.55364037",
"0.5506473",
"0.54787594",
"0.54632664",
"0.5461706",
"0.5461706",
"0.545792",
"0.545792",
"0.5456085",
"0.5434116",
"0.5424872",
"0.542083",
"0.542083",
"0.5391557",
"0.539022",
"0.538337",
"0.5379636",
"0.534896",
"0.53479344",
"0.5318525",
"0.5318525",
"0.5306411",
"0.53027654",
"0.5299291",
"0.5251311",
"0.5243806",
"0.523726",
"0.52355224",
"0.5227526",
"0.5206152",
"0.52015674",
"0.5198798",
"0.51815504",
"0.5180324",
"0.5173372",
"0.5150074",
"0.51477957",
"0.51439714",
"0.5137343",
"0.5114034",
"0.50801766",
"0.50727487",
"0.5060899",
"0.5059825",
"0.505338",
"0.50492305",
"0.5048979",
"0.50363284",
"0.5031642",
"0.5028426",
"0.50179815",
"0.50102",
"0.4956237",
"0.49534237",
"0.49534237",
"0.49516448",
"0.49383003",
"0.493646",
"0.49120742",
"0.4902347",
"0.4895012",
"0.48832121",
"0.48681426",
"0.48658076",
"0.4853735",
"0.4853735",
"0.4844296",
"0.48420057",
"0.48395917",
"0.48357707",
"0.48207948",
"0.48202226",
"0.4817927",
"0.4803568",
"0.48034576",
"0.48025617",
"0.48020378"
] | 0.0 | -1 |
Build a Criteria object containing the values of all modified columns in this object. | public function buildCriteria()
{
$criteria = new Criteria(OperationPrimesPeer::DATABASE_NAME);
if ($this->isColumnModified(OperationPrimesPeer::OP_PRIME_ID)) $criteria->add(OperationPrimesPeer::OP_PRIME_ID, $this->op_prime_id);
if ($this->isColumnModified(OperationPrimesPeer::OP_ID)) $criteria->add(OperationPrimesPeer::OP_ID, $this->op_id);
if ($this->isColumnModified(OperationPrimesPeer::OP_PRIME_LIBELLE)) $criteria->add(OperationPrimesPeer::OP_PRIME_LIBELLE, $this->op_prime_libelle);
if ($this->isColumnModified(OperationPrimesPeer::OP_PRIME_NUMERO)) $criteria->add(OperationPrimesPeer::OP_PRIME_NUMERO, $this->op_prime_numero);
if ($this->isColumnModified(OperationPrimesPeer::GDL_ART_ID)) $criteria->add(OperationPrimesPeer::GDL_ART_ID, $this->gdl_art_id);
if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_CURRENCY_ID)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_CURRENCY_ID, $this->operation_prime_currency_id);
if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_TYPE_ID)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_TYPE_ID, $this->operation_prime_r_reward_type_id);
if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_EXPEDITION_MODE_ID)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_EXPEDITION_MODE_ID, $this->operation_prime_r_reward_expedition_mode_id);
if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_TRANSPORTER_ID)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_TRANSPORTER_ID, $this->operation_prime_r_reward_transporter_id);
if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_FIXED_AMOUNT)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_FIXED_AMOUNT, $this->operation_prime_fixed_amount);
if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_PRODUCT_PRICE_POURCENTAGE)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_PRODUCT_PRICE_POURCENTAGE, $this->operation_prime_product_price_pourcentage);
if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_MAXIMUM_AMOUNT)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_MAXIMUM_AMOUNT, $this->operation_prime_maximum_amount);
return $criteria;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function buildCriteria()\n {\n $criteria = new Criteria(UserTableMap::DATABASE_NAME);\n\n if ($this->isColumnModified(UserTableMap::COL_ID)) {\n $criteria->add(UserTableMap::COL_ID, $this->id);\n }\n if ($this->isColumnModified(UserTableMap::COL_NICKNAME)) {\n $criteria->add(UserTableMap::COL_NICKNAME, $this->nickname);\n }\n if ($this->isColumnModified(UserTableMap::COL_EMAIL)) {\n $criteria->add(UserTableMap::COL_EMAIL, $this->email);\n }\n if ($this->isColumnModified(UserTableMap::COL_AGE)) {\n $criteria->add(UserTableMap::COL_AGE, $this->age);\n }\n if ($this->isColumnModified(UserTableMap::COL_SEX)) {\n $criteria->add(UserTableMap::COL_SEX, $this->sex);\n }\n if ($this->isColumnModified(UserTableMap::COL_CREATED_AT)) {\n $criteria->add(UserTableMap::COL_CREATED_AT, $this->created_at);\n }\n if ($this->isColumnModified(UserTableMap::COL_UPDATED_AT)) {\n $criteria->add(UserTableMap::COL_UPDATED_AT, $this->updated_at);\n }\n\n return $criteria;\n }",
"public function buildCriteria()\n {\n $criteria = new Criteria(CommandeTableMap::DATABASE_NAME);\n\n if ($this->isColumnModified(CommandeTableMap::COL_ID_COMMANDE)) {\n $criteria->add(CommandeTableMap::COL_ID_COMMANDE, $this->id_commande);\n }\n if ($this->isColumnModified(CommandeTableMap::COL_REFERENCE)) {\n $criteria->add(CommandeTableMap::COL_REFERENCE, $this->reference);\n }\n if ($this->isColumnModified(CommandeTableMap::COL_SOC_ID_FK)) {\n $criteria->add(CommandeTableMap::COL_SOC_ID_FK, $this->soc_id_fk);\n }\n if ($this->isColumnModified(CommandeTableMap::COL_TRANSPORT_FK)) {\n $criteria->add(CommandeTableMap::COL_TRANSPORT_FK, $this->transport_fk);\n }\n if ($this->isColumnModified(CommandeTableMap::COL_QUANTITE)) {\n $criteria->add(CommandeTableMap::COL_QUANTITE, $this->quantite);\n }\n if ($this->isColumnModified(CommandeTableMap::COL_PRIX)) {\n $criteria->add(CommandeTableMap::COL_PRIX, $this->prix);\n }\n if ($this->isColumnModified(CommandeTableMap::COL_DELAI)) {\n $criteria->add(CommandeTableMap::COL_DELAI, $this->delai);\n }\n if ($this->isColumnModified(CommandeTableMap::COL_DTE_COMMANDE)) {\n $criteria->add(CommandeTableMap::COL_DTE_COMMANDE, $this->dte_commande);\n }\n if ($this->isColumnModified(CommandeTableMap::COL_PRIORITE)) {\n $criteria->add(CommandeTableMap::COL_PRIORITE, $this->priorite);\n }\n if ($this->isColumnModified(CommandeTableMap::COL_NOTE)) {\n $criteria->add(CommandeTableMap::COL_NOTE, $this->note);\n }\n\n return $criteria;\n }",
"public function buildCriteria()\n {\n $criteria = new Criteria(ArticleTableMap::DATABASE_NAME);\n\n if ($this->isColumnModified(ArticleTableMap::COL_ARTICLE_ID)) {\n $criteria->add(ArticleTableMap::COL_ARTICLE_ID, $this->article_id);\n }\n if ($this->isColumnModified(ArticleTableMap::COL_DESCRIPTION)) {\n $criteria->add(ArticleTableMap::COL_DESCRIPTION, $this->description);\n }\n if ($this->isColumnModified(ArticleTableMap::COL_PRICE)) {\n $criteria->add(ArticleTableMap::COL_PRICE, $this->price);\n }\n if ($this->isColumnModified(ArticleTableMap::COL_CREATION)) {\n $criteria->add(ArticleTableMap::COL_CREATION, $this->creation);\n }\n if ($this->isColumnModified(ArticleTableMap::COL_VISIBLE)) {\n $criteria->add(ArticleTableMap::COL_VISIBLE, $this->visible);\n }\n if ($this->isColumnModified(ArticleTableMap::COL_SHAPE_ID)) {\n $criteria->add(ArticleTableMap::COL_SHAPE_ID, $this->shape_id);\n }\n if ($this->isColumnModified(ArticleTableMap::COL_CAKE_TYPE_ID)) {\n $criteria->add(ArticleTableMap::COL_CAKE_TYPE_ID, $this->cake_type_id);\n }\n\n return $criteria;\n }",
"public function buildCriteria()\n {\n $criteria = new Criteria(YearPeer::DATABASE_NAME);\n\n if ($this->isColumnModified(YearPeer::ID)) $criteria->add(YearPeer::ID, $this->id);\n if ($this->isColumnModified(YearPeer::NAME)) $criteria->add(YearPeer::NAME, $this->name);\n if ($this->isColumnModified(YearPeer::IS_ACTIVE)) $criteria->add(YearPeer::IS_ACTIVE, $this->is_active);\n if ($this->isColumnModified(YearPeer::IS_CLOSED)) $criteria->add(YearPeer::IS_CLOSED, $this->is_closed);\n if ($this->isColumnModified(YearPeer::FROM_DATE)) $criteria->add(YearPeer::FROM_DATE, $this->from_date);\n if ($this->isColumnModified(YearPeer::TO_DATE)) $criteria->add(YearPeer::TO_DATE, $this->to_date);\n if ($this->isColumnModified(YearPeer::SORTABLE_RANK)) $criteria->add(YearPeer::SORTABLE_RANK, $this->sortable_rank);\n\n return $criteria;\n }",
"public function buildCriteria()\n {\n $criteria = new Criteria(SalesHistoryNotesTableMap::DATABASE_NAME);\n\n if ($this->isColumnModified(SalesHistoryNotesTableMap::COL_SHNTTYPE)) {\n $criteria->add(SalesHistoryNotesTableMap::COL_SHNTTYPE, $this->shnttype);\n }\n if ($this->isColumnModified(SalesHistoryNotesTableMap::COL_SHNTTYPEDESC)) {\n $criteria->add(SalesHistoryNotesTableMap::COL_SHNTTYPEDESC, $this->shnttypedesc);\n }\n if ($this->isColumnModified(SalesHistoryNotesTableMap::COL_OEHHNBR)) {\n $criteria->add(SalesHistoryNotesTableMap::COL_OEHHNBR, $this->oehhnbr);\n }\n if ($this->isColumnModified(SalesHistoryNotesTableMap::COL_SHNTYEAR)) {\n $criteria->add(SalesHistoryNotesTableMap::COL_SHNTYEAR, $this->shntyear);\n }\n if ($this->isColumnModified(SalesHistoryNotesTableMap::COL_OEDHLINE)) {\n $criteria->add(SalesHistoryNotesTableMap::COL_OEDHLINE, $this->oedhline);\n }\n if ($this->isColumnModified(SalesHistoryNotesTableMap::COL_SHNTLOTSER)) {\n $criteria->add(SalesHistoryNotesTableMap::COL_SHNTLOTSER, $this->shntlotser);\n }\n if ($this->isColumnModified(SalesHistoryNotesTableMap::COL_SHNTPICKTICKET)) {\n $criteria->add(SalesHistoryNotesTableMap::COL_SHNTPICKTICKET, $this->shntpickticket);\n }\n if ($this->isColumnModified(SalesHistoryNotesTableMap::COL_SHNTPACKTICKET)) {\n $criteria->add(SalesHistoryNotesTableMap::COL_SHNTPACKTICKET, $this->shntpackticket);\n }\n if ($this->isColumnModified(SalesHistoryNotesTableMap::COL_SHNTINVOICE)) {\n $criteria->add(SalesHistoryNotesTableMap::COL_SHNTINVOICE, $this->shntinvoice);\n }\n if ($this->isColumnModified(SalesHistoryNotesTableMap::COL_SHNTACKNOW)) {\n $criteria->add(SalesHistoryNotesTableMap::COL_SHNTACKNOW, $this->shntacknow);\n }\n if ($this->isColumnModified(SalesHistoryNotesTableMap::COL_SHNTSEQ)) {\n $criteria->add(SalesHistoryNotesTableMap::COL_SHNTSEQ, $this->shntseq);\n }\n if ($this->isColumnModified(SalesHistoryNotesTableMap::COL_SHNTNOTE)) {\n $criteria->add(SalesHistoryNotesTableMap::COL_SHNTNOTE, $this->shntnote);\n }\n if ($this->isColumnModified(SalesHistoryNotesTableMap::COL_SHNTKEY2)) {\n $criteria->add(SalesHistoryNotesTableMap::COL_SHNTKEY2, $this->shntkey2);\n }\n if ($this->isColumnModified(SalesHistoryNotesTableMap::COL_SHNTFORM)) {\n $criteria->add(SalesHistoryNotesTableMap::COL_SHNTFORM, $this->shntform);\n }\n if ($this->isColumnModified(SalesHistoryNotesTableMap::COL_DATEUPDTD)) {\n $criteria->add(SalesHistoryNotesTableMap::COL_DATEUPDTD, $this->dateupdtd);\n }\n if ($this->isColumnModified(SalesHistoryNotesTableMap::COL_TIMEUPDTD)) {\n $criteria->add(SalesHistoryNotesTableMap::COL_TIMEUPDTD, $this->timeupdtd);\n }\n if ($this->isColumnModified(SalesHistoryNotesTableMap::COL_DUMMY)) {\n $criteria->add(SalesHistoryNotesTableMap::COL_DUMMY, $this->dummy);\n }\n\n return $criteria;\n }",
"public function buildCriteria()\n {\n $criteria = new Criteria(EventPeer::DATABASE_NAME);\n\n if ($this->isColumnModified(EventPeer::ID)) $criteria->add(EventPeer::ID, $this->id);\n if ($this->isColumnModified(EventPeer::CODE)) $criteria->add(EventPeer::CODE, $this->code);\n if ($this->isColumnModified(EventPeer::CATEGORY)) $criteria->add(EventPeer::CATEGORY, $this->category);\n if ($this->isColumnModified(EventPeer::ADDRESS)) $criteria->add(EventPeer::ADDRESS, $this->address);\n if ($this->isColumnModified(EventPeer::ADDRESS2)) $criteria->add(EventPeer::ADDRESS2, $this->address2);\n if ($this->isColumnModified(EventPeer::ZIPCODE)) $criteria->add(EventPeer::ZIPCODE, $this->zipcode);\n if ($this->isColumnModified(EventPeer::CITY)) $criteria->add(EventPeer::CITY, $this->city);\n if ($this->isColumnModified(EventPeer::GEO_COORDINATE_X)) $criteria->add(EventPeer::GEO_COORDINATE_X, $this->geo_coordinate_x);\n if ($this->isColumnModified(EventPeer::GEO_COORDINATE_Y)) $criteria->add(EventPeer::GEO_COORDINATE_Y, $this->geo_coordinate_y);\n if ($this->isColumnModified(EventPeer::DISTANCE_CAMPING)) $criteria->add(EventPeer::DISTANCE_CAMPING, $this->distance_camping);\n if ($this->isColumnModified(EventPeer::IMAGE)) $criteria->add(EventPeer::IMAGE, $this->image);\n if ($this->isColumnModified(EventPeer::PRIORITY)) $criteria->add(EventPeer::PRIORITY, $this->priority);\n if ($this->isColumnModified(EventPeer::TEL)) $criteria->add(EventPeer::TEL, $this->tel);\n if ($this->isColumnModified(EventPeer::FAX)) $criteria->add(EventPeer::FAX, $this->fax);\n if ($this->isColumnModified(EventPeer::EMAIL)) $criteria->add(EventPeer::EMAIL, $this->email);\n if ($this->isColumnModified(EventPeer::WEBSITE)) $criteria->add(EventPeer::WEBSITE, $this->website);\n if ($this->isColumnModified(EventPeer::CREATED_AT)) $criteria->add(EventPeer::CREATED_AT, $this->created_at);\n if ($this->isColumnModified(EventPeer::UPDATED_AT)) $criteria->add(EventPeer::UPDATED_AT, $this->updated_at);\n if ($this->isColumnModified(EventPeer::ACTIVE)) $criteria->add(EventPeer::ACTIVE, $this->active);\n\n return $criteria;\n }",
"public function buildCriteria()\n\t{\n\t\t$criteria = new Criteria(CidadePeer::DATABASE_NAME);\n\n\t\tif ($this->isColumnModified(CidadePeer::ID)) $criteria->add(CidadePeer::ID, $this->id);\n\t\tif ($this->isColumnModified(CidadePeer::UF_ID)) $criteria->add(CidadePeer::UF_ID, $this->uf_id);\n\t\tif ($this->isColumnModified(CidadePeer::NOME)) $criteria->add(CidadePeer::NOME, $this->nome);\n\t\tif ($this->isColumnModified(CidadePeer::SLUG)) $criteria->add(CidadePeer::SLUG, $this->slug);\n\t\tif ($this->isColumnModified(CidadePeer::LONGITUDE)) $criteria->add(CidadePeer::LONGITUDE, $this->longitude);\n\t\tif ($this->isColumnModified(CidadePeer::LATITUDE)) $criteria->add(CidadePeer::LATITUDE, $this->latitude);\n\n\t\treturn $criteria;\n\t}",
"public function buildCriteria()\n {\n $criteria = new Criteria(OrdrhedTableMap::DATABASE_NAME);\n\n if ($this->isColumnModified(OrdrhedTableMap::COL_SESSIONID)) {\n $criteria->add(OrdrhedTableMap::COL_SESSIONID, $this->sessionid);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_RECNO)) {\n $criteria->add(OrdrhedTableMap::COL_RECNO, $this->recno);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_DATE)) {\n $criteria->add(OrdrhedTableMap::COL_DATE, $this->date);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_TIME)) {\n $criteria->add(OrdrhedTableMap::COL_TIME, $this->time);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_TYPE)) {\n $criteria->add(OrdrhedTableMap::COL_TYPE, $this->type);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_CUSTID)) {\n $criteria->add(OrdrhedTableMap::COL_CUSTID, $this->custid);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_SHIPTOID)) {\n $criteria->add(OrdrhedTableMap::COL_SHIPTOID, $this->shiptoid);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_CUSTNAME)) {\n $criteria->add(OrdrhedTableMap::COL_CUSTNAME, $this->custname);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_ORDERNO)) {\n $criteria->add(OrdrhedTableMap::COL_ORDERNO, $this->orderno);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_CUSTPO)) {\n $criteria->add(OrdrhedTableMap::COL_CUSTPO, $this->custpo);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_CUSTREF)) {\n $criteria->add(OrdrhedTableMap::COL_CUSTREF, $this->custref);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_STATUS)) {\n $criteria->add(OrdrhedTableMap::COL_STATUS, $this->status);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_ORDERDATE)) {\n $criteria->add(OrdrhedTableMap::COL_ORDERDATE, $this->orderdate);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_CAREOF)) {\n $criteria->add(OrdrhedTableMap::COL_CAREOF, $this->careof);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_QUOTDATE)) {\n $criteria->add(OrdrhedTableMap::COL_QUOTDATE, $this->quotdate);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_INVDATE)) {\n $criteria->add(OrdrhedTableMap::COL_INVDATE, $this->invdate);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_SHIPDATE)) {\n $criteria->add(OrdrhedTableMap::COL_SHIPDATE, $this->shipdate);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_REVDATE)) {\n $criteria->add(OrdrhedTableMap::COL_REVDATE, $this->revdate);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_EXPDATE)) {\n $criteria->add(OrdrhedTableMap::COL_EXPDATE, $this->expdate);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_HASDOCUMENTS)) {\n $criteria->add(OrdrhedTableMap::COL_HASDOCUMENTS, $this->hasdocuments);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_HASTRACKING)) {\n $criteria->add(OrdrhedTableMap::COL_HASTRACKING, $this->hastracking);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_SUBTOTAL)) {\n $criteria->add(OrdrhedTableMap::COL_SUBTOTAL, $this->subtotal);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_SALESTAX)) {\n $criteria->add(OrdrhedTableMap::COL_SALESTAX, $this->salestax);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_FREIGHT)) {\n $criteria->add(OrdrhedTableMap::COL_FREIGHT, $this->freight);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_MISCCOST)) {\n $criteria->add(OrdrhedTableMap::COL_MISCCOST, $this->misccost);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_ORDERTOTAL)) {\n $criteria->add(OrdrhedTableMap::COL_ORDERTOTAL, $this->ordertotal);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_HASNOTES)) {\n $criteria->add(OrdrhedTableMap::COL_HASNOTES, $this->hasnotes);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_EDITORD)) {\n $criteria->add(OrdrhedTableMap::COL_EDITORD, $this->editord);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_ERROR)) {\n $criteria->add(OrdrhedTableMap::COL_ERROR, $this->error);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_ERRORMSG)) {\n $criteria->add(OrdrhedTableMap::COL_ERRORMSG, $this->errormsg);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_SCONAME)) {\n $criteria->add(OrdrhedTableMap::COL_SCONAME, $this->sconame);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_SHIPNAME)) {\n $criteria->add(OrdrhedTableMap::COL_SHIPNAME, $this->shipname);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_SHIPADDRESS)) {\n $criteria->add(OrdrhedTableMap::COL_SHIPADDRESS, $this->shipaddress);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_SHIPADDRESS2)) {\n $criteria->add(OrdrhedTableMap::COL_SHIPADDRESS2, $this->shipaddress2);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_SHIPCITY)) {\n $criteria->add(OrdrhedTableMap::COL_SHIPCITY, $this->shipcity);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_SHIPSTATE)) {\n $criteria->add(OrdrhedTableMap::COL_SHIPSTATE, $this->shipstate);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_SHIPZIP)) {\n $criteria->add(OrdrhedTableMap::COL_SHIPZIP, $this->shipzip);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_SHIPCOUNTRY)) {\n $criteria->add(OrdrhedTableMap::COL_SHIPCOUNTRY, $this->shipcountry);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_CONTACT)) {\n $criteria->add(OrdrhedTableMap::COL_CONTACT, $this->contact);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_PHINTL)) {\n $criteria->add(OrdrhedTableMap::COL_PHINTL, $this->phintl);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_PHONE)) {\n $criteria->add(OrdrhedTableMap::COL_PHONE, $this->phone);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_EXTENSION)) {\n $criteria->add(OrdrhedTableMap::COL_EXTENSION, $this->extension);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_FAXNBR)) {\n $criteria->add(OrdrhedTableMap::COL_FAXNBR, $this->faxnbr);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_EMAIL)) {\n $criteria->add(OrdrhedTableMap::COL_EMAIL, $this->email);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_RELEASENBR)) {\n $criteria->add(OrdrhedTableMap::COL_RELEASENBR, $this->releasenbr);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_SHIPVIACD)) {\n $criteria->add(OrdrhedTableMap::COL_SHIPVIACD, $this->shipviacd);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_SHIPVIADESC)) {\n $criteria->add(OrdrhedTableMap::COL_SHIPVIADESC, $this->shipviadesc);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_PRICECODE)) {\n $criteria->add(OrdrhedTableMap::COL_PRICECODE, $this->pricecode);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_PRICECODEDESC)) {\n $criteria->add(OrdrhedTableMap::COL_PRICECODEDESC, $this->pricecodedesc);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_PRICEDISP)) {\n $criteria->add(OrdrhedTableMap::COL_PRICEDISP, $this->pricedisp);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_TAXCODE)) {\n $criteria->add(OrdrhedTableMap::COL_TAXCODE, $this->taxcode);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_TAXCODEDESC)) {\n $criteria->add(OrdrhedTableMap::COL_TAXCODEDESC, $this->taxcodedesc);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_TAXCODEDISP)) {\n $criteria->add(OrdrhedTableMap::COL_TAXCODEDISP, $this->taxcodedisp);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_TERMCODE)) {\n $criteria->add(OrdrhedTableMap::COL_TERMCODE, $this->termcode);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_TERMTYPE)) {\n $criteria->add(OrdrhedTableMap::COL_TERMTYPE, $this->termtype);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_TERMCODEDESC)) {\n $criteria->add(OrdrhedTableMap::COL_TERMCODEDESC, $this->termcodedesc);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_RQSTDATE)) {\n $criteria->add(OrdrhedTableMap::COL_RQSTDATE, $this->rqstdate);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_SHIPCOM)) {\n $criteria->add(OrdrhedTableMap::COL_SHIPCOM, $this->shipcom);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_SP1)) {\n $criteria->add(OrdrhedTableMap::COL_SP1, $this->sp1);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_SP1NAME)) {\n $criteria->add(OrdrhedTableMap::COL_SP1NAME, $this->sp1name);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_SP2)) {\n $criteria->add(OrdrhedTableMap::COL_SP2, $this->sp2);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_SP2NAME)) {\n $criteria->add(OrdrhedTableMap::COL_SP2NAME, $this->sp2name);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_SP2DISP)) {\n $criteria->add(OrdrhedTableMap::COL_SP2DISP, $this->sp2disp);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_SP3)) {\n $criteria->add(OrdrhedTableMap::COL_SP3, $this->sp3);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_SP3NAME)) {\n $criteria->add(OrdrhedTableMap::COL_SP3NAME, $this->sp3name);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_SP3DISP)) {\n $criteria->add(OrdrhedTableMap::COL_SP3DISP, $this->sp3disp);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_FOB)) {\n $criteria->add(OrdrhedTableMap::COL_FOB, $this->fob);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_DELIVERYDESC)) {\n $criteria->add(OrdrhedTableMap::COL_DELIVERYDESC, $this->deliverydesc);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_WHSE)) {\n $criteria->add(OrdrhedTableMap::COL_WHSE, $this->whse);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_CARDNUMBER)) {\n $criteria->add(OrdrhedTableMap::COL_CARDNUMBER, $this->cardnumber);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_CARDEXPIRE)) {\n $criteria->add(OrdrhedTableMap::COL_CARDEXPIRE, $this->cardexpire);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_CARDCODE)) {\n $criteria->add(OrdrhedTableMap::COL_CARDCODE, $this->cardcode);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_CARDAPPROVAL)) {\n $criteria->add(OrdrhedTableMap::COL_CARDAPPROVAL, $this->cardapproval);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_TOTALCOST)) {\n $criteria->add(OrdrhedTableMap::COL_TOTALCOST, $this->totalcost);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_TOTALDISCOUNT)) {\n $criteria->add(OrdrhedTableMap::COL_TOTALDISCOUNT, $this->totaldiscount);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_PAYMENTTYPE)) {\n $criteria->add(OrdrhedTableMap::COL_PAYMENTTYPE, $this->paymenttype);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_SRCDATEFROM)) {\n $criteria->add(OrdrhedTableMap::COL_SRCDATEFROM, $this->srcdatefrom);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_SRCDATETHRU)) {\n $criteria->add(OrdrhedTableMap::COL_SRCDATETHRU, $this->srcdatethru);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_BILLNAME)) {\n $criteria->add(OrdrhedTableMap::COL_BILLNAME, $this->billname);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_BILLADDRESS)) {\n $criteria->add(OrdrhedTableMap::COL_BILLADDRESS, $this->billaddress);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_BILLADDRESS2)) {\n $criteria->add(OrdrhedTableMap::COL_BILLADDRESS2, $this->billaddress2);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_BILLADDRESS3)) {\n $criteria->add(OrdrhedTableMap::COL_BILLADDRESS3, $this->billaddress3);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_BILLCOUNTRY)) {\n $criteria->add(OrdrhedTableMap::COL_BILLCOUNTRY, $this->billcountry);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_BILLCITY)) {\n $criteria->add(OrdrhedTableMap::COL_BILLCITY, $this->billcity);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_BILLSTATE)) {\n $criteria->add(OrdrhedTableMap::COL_BILLSTATE, $this->billstate);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_BILLZIP)) {\n $criteria->add(OrdrhedTableMap::COL_BILLZIP, $this->billzip);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_PRNTFMT)) {\n $criteria->add(OrdrhedTableMap::COL_PRNTFMT, $this->prntfmt);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_PRNTFMTDISP)) {\n $criteria->add(OrdrhedTableMap::COL_PRNTFMTDISP, $this->prntfmtdisp);\n }\n if ($this->isColumnModified(OrdrhedTableMap::COL_DUMMY)) {\n $criteria->add(OrdrhedTableMap::COL_DUMMY, $this->dummy);\n }\n\n return $criteria;\n }",
"public function buildCriteria ()\n {\n $criteria = new Criteria (CalendarHolidaysPeer::DATABASE_NAME);\n if ( $this->isColumnModified (CalendarHolidaysPeer::CALENDAR_UID) )\n {\n $criteria->add (CalendarHolidaysPeer::CALENDAR_UID, $this->calendar_uid);\n }\n if ( $this->isColumnModified (CalendarHolidaysPeer::CALENDAR_HOLIDAY_NAME) )\n {\n $criteria->add (CalendarHolidaysPeer::CALENDAR_HOLIDAY_NAME, $this->calendar_holiday_name);\n }\n if ( $this->isColumnModified (CalendarHolidaysPeer::CALENDAR_HOLIDAY_START) )\n {\n $criteria->add (CalendarHolidaysPeer::CALENDAR_HOLIDAY_START, $this->calendar_holiday_start);\n }\n if ( $this->isColumnModified (CalendarHolidaysPeer::CALENDAR_HOLIDAY_END) )\n {\n $criteria->add (CalendarHolidaysPeer::CALENDAR_HOLIDAY_END, $this->calendar_holiday_end);\n }\n return $criteria;\n }",
"public function buildCriteria()\n {\n $criteria = new Criteria(PoReceivingHeadTableMap::DATABASE_NAME);\n\n if ($this->isColumnModified(PoReceivingHeadTableMap::COL_POTHNBR)) {\n $criteria->add(PoReceivingHeadTableMap::COL_POTHNBR, $this->pothnbr);\n }\n if ($this->isColumnModified(PoReceivingHeadTableMap::COL_POTHSTAT)) {\n $criteria->add(PoReceivingHeadTableMap::COL_POTHSTAT, $this->pothstat);\n }\n if ($this->isColumnModified(PoReceivingHeadTableMap::COL_POTHRCPTDATE)) {\n $criteria->add(PoReceivingHeadTableMap::COL_POTHRCPTDATE, $this->pothrcptdate);\n }\n if ($this->isColumnModified(PoReceivingHeadTableMap::COL_INTBWHSE)) {\n $criteria->add(PoReceivingHeadTableMap::COL_INTBWHSE, $this->intbwhse);\n }\n if ($this->isColumnModified(PoReceivingHeadTableMap::COL_POTHGLPD)) {\n $criteria->add(PoReceivingHeadTableMap::COL_POTHGLPD, $this->pothglpd);\n }\n if ($this->isColumnModified(PoReceivingHeadTableMap::COL_POTHAIRSHIP)) {\n $criteria->add(PoReceivingHeadTableMap::COL_POTHAIRSHIP, $this->pothairship);\n }\n if ($this->isColumnModified(PoReceivingHeadTableMap::COL_POTHERINREVIEW)) {\n $criteria->add(PoReceivingHeadTableMap::COL_POTHERINREVIEW, $this->potherinreview);\n }\n if ($this->isColumnModified(PoReceivingHeadTableMap::COL_POTHEXCHCTRY)) {\n $criteria->add(PoReceivingHeadTableMap::COL_POTHEXCHCTRY, $this->pothexchctry);\n }\n if ($this->isColumnModified(PoReceivingHeadTableMap::COL_POTHEXCHRATE)) {\n $criteria->add(PoReceivingHeadTableMap::COL_POTHEXCHRATE, $this->pothexchrate);\n }\n if ($this->isColumnModified(PoReceivingHeadTableMap::COL_INTBWHSEORIG)) {\n $criteria->add(PoReceivingHeadTableMap::COL_INTBWHSEORIG, $this->intbwhseorig);\n }\n if ($this->isColumnModified(PoReceivingHeadTableMap::COL_POTHLANDCOST)) {\n $criteria->add(PoReceivingHeadTableMap::COL_POTHLANDCOST, $this->pothlandcost);\n }\n if ($this->isColumnModified(PoReceivingHeadTableMap::COL_POTHRCPTNBR)) {\n $criteria->add(PoReceivingHeadTableMap::COL_POTHRCPTNBR, $this->pothrcptnbr);\n }\n if ($this->isColumnModified(PoReceivingHeadTableMap::COL_POTHLANDBASEDON)) {\n $criteria->add(PoReceivingHeadTableMap::COL_POTHLANDBASEDON, $this->pothlandbasedon);\n }\n if ($this->isColumnModified(PoReceivingHeadTableMap::COL_POTHINVCNBR)) {\n $criteria->add(PoReceivingHeadTableMap::COL_POTHINVCNBR, $this->pothinvcnbr);\n }\n if ($this->isColumnModified(PoReceivingHeadTableMap::COL_POTHINVCDATE)) {\n $criteria->add(PoReceivingHeadTableMap::COL_POTHINVCDATE, $this->pothinvcdate);\n }\n if ($this->isColumnModified(PoReceivingHeadTableMap::COL_POTHFRTAMT)) {\n $criteria->add(PoReceivingHeadTableMap::COL_POTHFRTAMT, $this->pothfrtamt);\n }\n if ($this->isColumnModified(PoReceivingHeadTableMap::COL_POTHMISCAMT)) {\n $criteria->add(PoReceivingHeadTableMap::COL_POTHMISCAMT, $this->pothmiscamt);\n }\n if ($this->isColumnModified(PoReceivingHeadTableMap::COL_DATEUPDTD)) {\n $criteria->add(PoReceivingHeadTableMap::COL_DATEUPDTD, $this->dateupdtd);\n }\n if ($this->isColumnModified(PoReceivingHeadTableMap::COL_TIMEUPDTD)) {\n $criteria->add(PoReceivingHeadTableMap::COL_TIMEUPDTD, $this->timeupdtd);\n }\n if ($this->isColumnModified(PoReceivingHeadTableMap::COL_DUMMY)) {\n $criteria->add(PoReceivingHeadTableMap::COL_DUMMY, $this->dummy);\n }\n\n return $criteria;\n }",
"public function buildCriteria()\n\t{\n\t\t$criteria = new Criteria(C060InventarioPeer::DATABASE_NAME);\n\n\t\tif ($this->isColumnModified(C060InventarioPeer::CO_EQUIPO)) $criteria->add(C060InventarioPeer::CO_EQUIPO, $this->co_equipo);\n\t\tif ($this->isColumnModified(C060InventarioPeer::CO_REGION)) $criteria->add(C060InventarioPeer::CO_REGION, $this->co_region);\n\t\tif ($this->isColumnModified(C060InventarioPeer::CO_NEGOCIO)) $criteria->add(C060InventarioPeer::CO_NEGOCIO, $this->co_negocio);\n\t\tif ($this->isColumnModified(C060InventarioPeer::CO_DIVISION)) $criteria->add(C060InventarioPeer::CO_DIVISION, $this->co_division);\n\t\tif ($this->isColumnModified(C060InventarioPeer::CO_TIPO)) $criteria->add(C060InventarioPeer::CO_TIPO, $this->co_tipo);\n\t\tif ($this->isColumnModified(C060InventarioPeer::CO_CUSTODIO)) $criteria->add(C060InventarioPeer::CO_CUSTODIO, $this->co_custodio);\n\t\tif ($this->isColumnModified(C060InventarioPeer::TX_ETIQUETA_STI)) $criteria->add(C060InventarioPeer::TX_ETIQUETA_STI, $this->tx_etiqueta_sti);\n\t\tif ($this->isColumnModified(C060InventarioPeer::CO_ESTADO)) $criteria->add(C060InventarioPeer::CO_ESTADO, $this->co_estado);\n\t\tif ($this->isColumnModified(C060InventarioPeer::TX_NOMBRE_EQUIPO)) $criteria->add(C060InventarioPeer::TX_NOMBRE_EQUIPO, $this->tx_nombre_equipo);\n\t\tif ($this->isColumnModified(C060InventarioPeer::TX_FUNSION_EQUIPO)) $criteria->add(C060InventarioPeer::TX_FUNSION_EQUIPO, $this->tx_funsion_equipo);\n\t\tif ($this->isColumnModified(C060InventarioPeer::CO_SO)) $criteria->add(C060InventarioPeer::CO_SO, $this->co_so);\n\t\tif ($this->isColumnModified(C060InventarioPeer::TX_ETIQUETA_ACTIVO)) $criteria->add(C060InventarioPeer::TX_ETIQUETA_ACTIVO, $this->tx_etiqueta_activo);\n\t\tif ($this->isColumnModified(C060InventarioPeer::TX_SERIAL_HARDWARE)) $criteria->add(C060InventarioPeer::TX_SERIAL_HARDWARE, $this->tx_serial_hardware);\n\t\tif ($this->isColumnModified(C060InventarioPeer::TX_MARCA_HARDWARE)) $criteria->add(C060InventarioPeer::TX_MARCA_HARDWARE, $this->tx_marca_hardware);\n\t\tif ($this->isColumnModified(C060InventarioPeer::TX_MODELO_HARDWARE)) $criteria->add(C060InventarioPeer::TX_MODELO_HARDWARE, $this->tx_modelo_hardware);\n\t\tif ($this->isColumnModified(C060InventarioPeer::CO_CIUDAD)) $criteria->add(C060InventarioPeer::CO_CIUDAD, $this->co_ciudad);\n\t\tif ($this->isColumnModified(C060InventarioPeer::CO_EDIFICIO)) $criteria->add(C060InventarioPeer::CO_EDIFICIO, $this->co_edificio);\n\t\tif ($this->isColumnModified(C060InventarioPeer::TX_DIRECCION_UBICACION)) $criteria->add(C060InventarioPeer::TX_DIRECCION_UBICACION, $this->tx_direccion_ubicacion);\n\t\tif ($this->isColumnModified(C060InventarioPeer::TX_DETALLE_UBICACION)) $criteria->add(C060InventarioPeer::TX_DETALLE_UBICACION, $this->tx_detalle_ubicacion);\n\t\tif ($this->isColumnModified(C060InventarioPeer::CO_CENTRO_DATO)) $criteria->add(C060InventarioPeer::CO_CENTRO_DATO, $this->co_centro_dato);\n\t\tif ($this->isColumnModified(C060InventarioPeer::CO_RACK)) $criteria->add(C060InventarioPeer::CO_RACK, $this->co_rack);\n\t\tif ($this->isColumnModified(C060InventarioPeer::TX_UBICACION_LLAVE)) $criteria->add(C060InventarioPeer::TX_UBICACION_LLAVE, $this->tx_ubicacion_llave);\n\t\tif ($this->isColumnModified(C060InventarioPeer::IN_RESPALDO_AUTOMATIZADO)) $criteria->add(C060InventarioPeer::IN_RESPALDO_AUTOMATIZADO, $this->in_respaldo_automatizado);\n\t\tif ($this->isColumnModified(C060InventarioPeer::IN_BLOQUEO_INACTIVIDAD)) $criteria->add(C060InventarioPeer::IN_BLOQUEO_INACTIVIDAD, $this->in_bloqueo_inactividad);\n\t\tif ($this->isColumnModified(C060InventarioPeer::IN_ADIMINISTRADORES_PERSONALIZADOS)) $criteria->add(C060InventarioPeer::IN_ADIMINISTRADORES_PERSONALIZADOS, $this->in_adiministradores_personalizados);\n\t\tif ($this->isColumnModified(C060InventarioPeer::IN_POLITICA_PASSWORD)) $criteria->add(C060InventarioPeer::IN_POLITICA_PASSWORD, $this->in_politica_password);\n\t\tif ($this->isColumnModified(C060InventarioPeer::IN_SINCRONIZACION_RELOJ)) $criteria->add(C060InventarioPeer::IN_SINCRONIZACION_RELOJ, $this->in_sincronizacion_reloj);\n\t\tif ($this->isColumnModified(C060InventarioPeer::IN_MONITOREADO)) $criteria->add(C060InventarioPeer::IN_MONITOREADO, $this->in_monitoreado);\n\t\tif ($this->isColumnModified(C060InventarioPeer::IN_INF_ACTUALIZADA)) $criteria->add(C060InventarioPeer::IN_INF_ACTUALIZADA, $this->in_inf_actualizada);\n\t\tif ($this->isColumnModified(C060InventarioPeer::IN_LOG_ACTIVO)) $criteria->add(C060InventarioPeer::IN_LOG_ACTIVO, $this->in_log_activo);\n\t\tif ($this->isColumnModified(C060InventarioPeer::CO_NIVEL_CRITICIDAD)) $criteria->add(C060InventarioPeer::CO_NIVEL_CRITICIDAD, $this->co_nivel_criticidad);\n\t\tif ($this->isColumnModified(C060InventarioPeer::TX_OBSERVACIONES)) $criteria->add(C060InventarioPeer::TX_OBSERVACIONES, $this->tx_observaciones);\n\t\tif ($this->isColumnModified(C060InventarioPeer::TX_RUTA_RESPALDO_CONFIGURACIONES)) $criteria->add(C060InventarioPeer::TX_RUTA_RESPALDO_CONFIGURACIONES, $this->tx_ruta_respaldo_configuraciones);\n\t\tif ($this->isColumnModified(C060InventarioPeer::CO_NUM_INVENTARIO)) $criteria->add(C060InventarioPeer::CO_NUM_INVENTARIO, $this->co_num_inventario);\n\n\t\treturn $criteria;\n\t}",
"public function buildCriteria()\n {\n $criteria = new Criteria(FeatureCvtermPeer::DATABASE_NAME);\n\n if ($this->isColumnModified(FeatureCvtermPeer::FEATURE_CVTERM_ID)) $criteria->add(FeatureCvtermPeer::FEATURE_CVTERM_ID, $this->feature_cvterm_id);\n if ($this->isColumnModified(FeatureCvtermPeer::FEATURE_ID)) $criteria->add(FeatureCvtermPeer::FEATURE_ID, $this->feature_id);\n if ($this->isColumnModified(FeatureCvtermPeer::CVTERM_ID)) $criteria->add(FeatureCvtermPeer::CVTERM_ID, $this->cvterm_id);\n if ($this->isColumnModified(FeatureCvtermPeer::PUB_ID)) $criteria->add(FeatureCvtermPeer::PUB_ID, $this->pub_id);\n if ($this->isColumnModified(FeatureCvtermPeer::IS_NOT)) $criteria->add(FeatureCvtermPeer::IS_NOT, $this->is_not);\n if ($this->isColumnModified(FeatureCvtermPeer::RANK)) $criteria->add(FeatureCvtermPeer::RANK, $this->rank);\n\n return $criteria;\n }",
"public function buildCriteria()\n\t{\n\t\t$criteria = new Criteria(UsuarioPeer::DATABASE_NAME);\n\n\t\tif ($this->isColumnModified(UsuarioPeer::CO_USUARIO)) $criteria->add(UsuarioPeer::CO_USUARIO, $this->co_usuario);\n\t\tif ($this->isColumnModified(UsuarioPeer::NU_CPF)) $criteria->add(UsuarioPeer::NU_CPF, $this->nu_cpf);\n\t\tif ($this->isColumnModified(UsuarioPeer::DS_PASSWORD)) $criteria->add(UsuarioPeer::DS_PASSWORD, $this->ds_password);\n\t\tif ($this->isColumnModified(UsuarioPeer::NO_USUARIO)) $criteria->add(UsuarioPeer::NO_USUARIO, $this->no_usuario);\n\t\tif ($this->isColumnModified(UsuarioPeer::DS_LOGIN)) $criteria->add(UsuarioPeer::DS_LOGIN, $this->ds_login);\n\t\tif ($this->isColumnModified(UsuarioPeer::DT_ULTIMO_LOGIN)) $criteria->add(UsuarioPeer::DT_ULTIMO_LOGIN, $this->dt_ultimo_login);\n\t\tif ($this->isColumnModified(UsuarioPeer::DS_EMAIL)) $criteria->add(UsuarioPeer::DS_EMAIL, $this->ds_email);\n\t\tif ($this->isColumnModified(UsuarioPeer::CO_PERFIL)) $criteria->add(UsuarioPeer::CO_PERFIL, $this->co_perfil);\n\t\tif ($this->isColumnModified(UsuarioPeer::NU_CELULAR)) $criteria->add(UsuarioPeer::NU_CELULAR, $this->nu_celular);\n\t\tif ($this->isColumnModified(UsuarioPeer::NU_TELEFONE)) $criteria->add(UsuarioPeer::NU_TELEFONE, $this->nu_telefone);\n\t\tif ($this->isColumnModified(UsuarioPeer::ST_USUARIO)) $criteria->add(UsuarioPeer::ST_USUARIO, $this->st_usuario);\n\n\t\treturn $criteria;\n\t}",
"public function buildCriteria()\n {\n $criteria = new Criteria(SanitasiPeer::DATABASE_NAME);\n\n if ($this->isColumnModified(SanitasiPeer::SEKOLAH_ID)) $criteria->add(SanitasiPeer::SEKOLAH_ID, $this->sekolah_id);\n if ($this->isColumnModified(SanitasiPeer::SEMESTER_ID)) $criteria->add(SanitasiPeer::SEMESTER_ID, $this->semester_id);\n if ($this->isColumnModified(SanitasiPeer::SUMBER_AIR_ID)) $criteria->add(SanitasiPeer::SUMBER_AIR_ID, $this->sumber_air_id);\n if ($this->isColumnModified(SanitasiPeer::SUMBER_AIR_MINUM_ID)) $criteria->add(SanitasiPeer::SUMBER_AIR_MINUM_ID, $this->sumber_air_minum_id);\n if ($this->isColumnModified(SanitasiPeer::CREATE_DATE)) $criteria->add(SanitasiPeer::CREATE_DATE, $this->create_date);\n if ($this->isColumnModified(SanitasiPeer::LAST_UPDATE)) $criteria->add(SanitasiPeer::LAST_UPDATE, $this->last_update);\n if ($this->isColumnModified(SanitasiPeer::SOFT_DELETE)) $criteria->add(SanitasiPeer::SOFT_DELETE, $this->soft_delete);\n if ($this->isColumnModified(SanitasiPeer::LAST_SYNC)) $criteria->add(SanitasiPeer::LAST_SYNC, $this->last_sync);\n if ($this->isColumnModified(SanitasiPeer::UPDATER_ID)) $criteria->add(SanitasiPeer::UPDATER_ID, $this->updater_id);\n if ($this->isColumnModified(SanitasiPeer::KETERSEDIAAN_AIR)) $criteria->add(SanitasiPeer::KETERSEDIAAN_AIR, $this->ketersediaan_air);\n if ($this->isColumnModified(SanitasiPeer::KECUKUPAN_AIR)) $criteria->add(SanitasiPeer::KECUKUPAN_AIR, $this->kecukupan_air);\n if ($this->isColumnModified(SanitasiPeer::MINUM_SISWA)) $criteria->add(SanitasiPeer::MINUM_SISWA, $this->minum_siswa);\n if ($this->isColumnModified(SanitasiPeer::MEMPROSES_AIR)) $criteria->add(SanitasiPeer::MEMPROSES_AIR, $this->memproses_air);\n if ($this->isColumnModified(SanitasiPeer::SISWA_BAWA_AIR)) $criteria->add(SanitasiPeer::SISWA_BAWA_AIR, $this->siswa_bawa_air);\n if ($this->isColumnModified(SanitasiPeer::TOILET_SISWA_LAKI)) $criteria->add(SanitasiPeer::TOILET_SISWA_LAKI, $this->toilet_siswa_laki);\n if ($this->isColumnModified(SanitasiPeer::TOILET_SISWA_PEREMPUAN)) $criteria->add(SanitasiPeer::TOILET_SISWA_PEREMPUAN, $this->toilet_siswa_perempuan);\n if ($this->isColumnModified(SanitasiPeer::TOILET_SISWA_KK)) $criteria->add(SanitasiPeer::TOILET_SISWA_KK, $this->toilet_siswa_kk);\n if ($this->isColumnModified(SanitasiPeer::TOILET_SISWA_KECIL)) $criteria->add(SanitasiPeer::TOILET_SISWA_KECIL, $this->toilet_siswa_kecil);\n if ($this->isColumnModified(SanitasiPeer::JML_JAMBAN_L_G)) $criteria->add(SanitasiPeer::JML_JAMBAN_L_G, $this->jml_jamban_l_g);\n if ($this->isColumnModified(SanitasiPeer::JML_JAMBAN_L_TG)) $criteria->add(SanitasiPeer::JML_JAMBAN_L_TG, $this->jml_jamban_l_tg);\n if ($this->isColumnModified(SanitasiPeer::JML_JAMBAN_P_G)) $criteria->add(SanitasiPeer::JML_JAMBAN_P_G, $this->jml_jamban_p_g);\n if ($this->isColumnModified(SanitasiPeer::JML_JAMBAN_P_TG)) $criteria->add(SanitasiPeer::JML_JAMBAN_P_TG, $this->jml_jamban_p_tg);\n if ($this->isColumnModified(SanitasiPeer::JML_JAMBAN_LP_G)) $criteria->add(SanitasiPeer::JML_JAMBAN_LP_G, $this->jml_jamban_lp_g);\n if ($this->isColumnModified(SanitasiPeer::JML_JAMBAN_LP_TG)) $criteria->add(SanitasiPeer::JML_JAMBAN_LP_TG, $this->jml_jamban_lp_tg);\n if ($this->isColumnModified(SanitasiPeer::TEMPAT_CUCI_TANGAN)) $criteria->add(SanitasiPeer::TEMPAT_CUCI_TANGAN, $this->tempat_cuci_tangan);\n if ($this->isColumnModified(SanitasiPeer::TEMPAT_CUCI_TANGAN_RUSAK)) $criteria->add(SanitasiPeer::TEMPAT_CUCI_TANGAN_RUSAK, $this->tempat_cuci_tangan_rusak);\n if ($this->isColumnModified(SanitasiPeer::A_SABUN_AIR_MENGALIR)) $criteria->add(SanitasiPeer::A_SABUN_AIR_MENGALIR, $this->a_sabun_air_mengalir);\n if ($this->isColumnModified(SanitasiPeer::JAMBAN_DIFABEL)) $criteria->add(SanitasiPeer::JAMBAN_DIFABEL, $this->jamban_difabel);\n if ($this->isColumnModified(SanitasiPeer::TIPE_JAMBAN)) $criteria->add(SanitasiPeer::TIPE_JAMBAN, $this->tipe_jamban);\n if ($this->isColumnModified(SanitasiPeer::A_SEDIA_PEMBALUT)) $criteria->add(SanitasiPeer::A_SEDIA_PEMBALUT, $this->a_sedia_pembalut);\n if ($this->isColumnModified(SanitasiPeer::KEGIATAN_CUCI_TANGAN)) $criteria->add(SanitasiPeer::KEGIATAN_CUCI_TANGAN, $this->kegiatan_cuci_tangan);\n if ($this->isColumnModified(SanitasiPeer::PEMBUANGAN_AIR_LIMBAH)) $criteria->add(SanitasiPeer::PEMBUANGAN_AIR_LIMBAH, $this->pembuangan_air_limbah);\n if ($this->isColumnModified(SanitasiPeer::A_KURAS_SEPTITANK)) $criteria->add(SanitasiPeer::A_KURAS_SEPTITANK, $this->a_kuras_septitank);\n if ($this->isColumnModified(SanitasiPeer::A_MEMILIKI_SOLOKAN)) $criteria->add(SanitasiPeer::A_MEMILIKI_SOLOKAN, $this->a_memiliki_solokan);\n if ($this->isColumnModified(SanitasiPeer::A_TEMPAT_SAMPAH_KELAS)) $criteria->add(SanitasiPeer::A_TEMPAT_SAMPAH_KELAS, $this->a_tempat_sampah_kelas);\n if ($this->isColumnModified(SanitasiPeer::A_TEMPAT_SAMPAH_TUTUP_P)) $criteria->add(SanitasiPeer::A_TEMPAT_SAMPAH_TUTUP_P, $this->a_tempat_sampah_tutup_p);\n if ($this->isColumnModified(SanitasiPeer::A_CERMIN_JAMBAN_P)) $criteria->add(SanitasiPeer::A_CERMIN_JAMBAN_P, $this->a_cermin_jamban_p);\n if ($this->isColumnModified(SanitasiPeer::A_MEMILIKI_TPS)) $criteria->add(SanitasiPeer::A_MEMILIKI_TPS, $this->a_memiliki_tps);\n if ($this->isColumnModified(SanitasiPeer::A_TPS_ANGKUT_RUTIN)) $criteria->add(SanitasiPeer::A_TPS_ANGKUT_RUTIN, $this->a_tps_angkut_rutin);\n if ($this->isColumnModified(SanitasiPeer::A_ANGGARAN_SANITASI)) $criteria->add(SanitasiPeer::A_ANGGARAN_SANITASI, $this->a_anggaran_sanitasi);\n if ($this->isColumnModified(SanitasiPeer::A_MELIBATKAN_SANITASI_SISWA)) $criteria->add(SanitasiPeer::A_MELIBATKAN_SANITASI_SISWA, $this->a_melibatkan_sanitasi_siswa);\n if ($this->isColumnModified(SanitasiPeer::A_KEMITRAAN_SAN_DAERAH)) $criteria->add(SanitasiPeer::A_KEMITRAAN_SAN_DAERAH, $this->a_kemitraan_san_daerah);\n if ($this->isColumnModified(SanitasiPeer::A_KEMITRAAN_SAN_PUSKESMAS)) $criteria->add(SanitasiPeer::A_KEMITRAAN_SAN_PUSKESMAS, $this->a_kemitraan_san_puskesmas);\n if ($this->isColumnModified(SanitasiPeer::A_KEMITRAAN_SAN_SWASTA)) $criteria->add(SanitasiPeer::A_KEMITRAAN_SAN_SWASTA, $this->a_kemitraan_san_swasta);\n if ($this->isColumnModified(SanitasiPeer::A_KEMITRAAN_SAN_NON_PEM)) $criteria->add(SanitasiPeer::A_KEMITRAAN_SAN_NON_PEM, $this->a_kemitraan_san_non_pem);\n if ($this->isColumnModified(SanitasiPeer::KIE_GURU_CUCI_TANGAN)) $criteria->add(SanitasiPeer::KIE_GURU_CUCI_TANGAN, $this->kie_guru_cuci_tangan);\n if ($this->isColumnModified(SanitasiPeer::KIE_GURU_HAID)) $criteria->add(SanitasiPeer::KIE_GURU_HAID, $this->kie_guru_haid);\n if ($this->isColumnModified(SanitasiPeer::KIE_GURU_PERAWATAN_TOILET)) $criteria->add(SanitasiPeer::KIE_GURU_PERAWATAN_TOILET, $this->kie_guru_perawatan_toilet);\n if ($this->isColumnModified(SanitasiPeer::KIE_GURU_KEAMANAN_PANGAN)) $criteria->add(SanitasiPeer::KIE_GURU_KEAMANAN_PANGAN, $this->kie_guru_keamanan_pangan);\n if ($this->isColumnModified(SanitasiPeer::KIE_GURU_MINUM_AIR)) $criteria->add(SanitasiPeer::KIE_GURU_MINUM_AIR, $this->kie_guru_minum_air);\n if ($this->isColumnModified(SanitasiPeer::KIE_KELAS_CUCI_TANGAN)) $criteria->add(SanitasiPeer::KIE_KELAS_CUCI_TANGAN, $this->kie_kelas_cuci_tangan);\n if ($this->isColumnModified(SanitasiPeer::KIE_KELAS_HAID)) $criteria->add(SanitasiPeer::KIE_KELAS_HAID, $this->kie_kelas_haid);\n if ($this->isColumnModified(SanitasiPeer::KIE_KELAS_PERAWATAN_TOILET)) $criteria->add(SanitasiPeer::KIE_KELAS_PERAWATAN_TOILET, $this->kie_kelas_perawatan_toilet);\n if ($this->isColumnModified(SanitasiPeer::KIE_KELAS_KEAMANAN_PANGAN)) $criteria->add(SanitasiPeer::KIE_KELAS_KEAMANAN_PANGAN, $this->kie_kelas_keamanan_pangan);\n if ($this->isColumnModified(SanitasiPeer::KIE_KELAS_MINUM_AIR)) $criteria->add(SanitasiPeer::KIE_KELAS_MINUM_AIR, $this->kie_kelas_minum_air);\n if ($this->isColumnModified(SanitasiPeer::KIE_TOILET_CUCI_TANGAN)) $criteria->add(SanitasiPeer::KIE_TOILET_CUCI_TANGAN, $this->kie_toilet_cuci_tangan);\n if ($this->isColumnModified(SanitasiPeer::KIE_TOILET_HAID)) $criteria->add(SanitasiPeer::KIE_TOILET_HAID, $this->kie_toilet_haid);\n if ($this->isColumnModified(SanitasiPeer::KIE_TOILET_PERAWATAN_TOILET)) $criteria->add(SanitasiPeer::KIE_TOILET_PERAWATAN_TOILET, $this->kie_toilet_perawatan_toilet);\n if ($this->isColumnModified(SanitasiPeer::KIE_TOILET_KEAMANAN_PANGAN)) $criteria->add(SanitasiPeer::KIE_TOILET_KEAMANAN_PANGAN, $this->kie_toilet_keamanan_pangan);\n if ($this->isColumnModified(SanitasiPeer::KIE_TOILET_MINUM_AIR)) $criteria->add(SanitasiPeer::KIE_TOILET_MINUM_AIR, $this->kie_toilet_minum_air);\n if ($this->isColumnModified(SanitasiPeer::KIE_SELASAR_CUCI_TANGAN)) $criteria->add(SanitasiPeer::KIE_SELASAR_CUCI_TANGAN, $this->kie_selasar_cuci_tangan);\n if ($this->isColumnModified(SanitasiPeer::KIE_SELASAR_HAID)) $criteria->add(SanitasiPeer::KIE_SELASAR_HAID, $this->kie_selasar_haid);\n if ($this->isColumnModified(SanitasiPeer::KIE_SELASAR_PERAWATAN_TOILET)) $criteria->add(SanitasiPeer::KIE_SELASAR_PERAWATAN_TOILET, $this->kie_selasar_perawatan_toilet);\n if ($this->isColumnModified(SanitasiPeer::KIE_SELASAR_KEAMANAN_PANGAN)) $criteria->add(SanitasiPeer::KIE_SELASAR_KEAMANAN_PANGAN, $this->kie_selasar_keamanan_pangan);\n if ($this->isColumnModified(SanitasiPeer::KIE_SELASAR_MINUM_AIR)) $criteria->add(SanitasiPeer::KIE_SELASAR_MINUM_AIR, $this->kie_selasar_minum_air);\n if ($this->isColumnModified(SanitasiPeer::KIE_UKS_CUCI_TANGAN)) $criteria->add(SanitasiPeer::KIE_UKS_CUCI_TANGAN, $this->kie_uks_cuci_tangan);\n if ($this->isColumnModified(SanitasiPeer::KIE_UKS_HAID)) $criteria->add(SanitasiPeer::KIE_UKS_HAID, $this->kie_uks_haid);\n if ($this->isColumnModified(SanitasiPeer::KIE_UKS_PERAWATAN_TOILET)) $criteria->add(SanitasiPeer::KIE_UKS_PERAWATAN_TOILET, $this->kie_uks_perawatan_toilet);\n if ($this->isColumnModified(SanitasiPeer::KIE_UKS_KEAMANAN_PANGAN)) $criteria->add(SanitasiPeer::KIE_UKS_KEAMANAN_PANGAN, $this->kie_uks_keamanan_pangan);\n if ($this->isColumnModified(SanitasiPeer::KIE_UKS_MINUM_AIR)) $criteria->add(SanitasiPeer::KIE_UKS_MINUM_AIR, $this->kie_uks_minum_air);\n if ($this->isColumnModified(SanitasiPeer::KIE_KANTIN_CUCI_TANGAN)) $criteria->add(SanitasiPeer::KIE_KANTIN_CUCI_TANGAN, $this->kie_kantin_cuci_tangan);\n if ($this->isColumnModified(SanitasiPeer::KIE_KANTIN_HAID)) $criteria->add(SanitasiPeer::KIE_KANTIN_HAID, $this->kie_kantin_haid);\n if ($this->isColumnModified(SanitasiPeer::KIE_KANTIN_PERAWATAN_TOILET)) $criteria->add(SanitasiPeer::KIE_KANTIN_PERAWATAN_TOILET, $this->kie_kantin_perawatan_toilet);\n if ($this->isColumnModified(SanitasiPeer::KIE_KANTIN_KEAMANAN_PANGAN)) $criteria->add(SanitasiPeer::KIE_KANTIN_KEAMANAN_PANGAN, $this->kie_kantin_keamanan_pangan);\n if ($this->isColumnModified(SanitasiPeer::KIE_KANTIN_MINUM_AIR)) $criteria->add(SanitasiPeer::KIE_KANTIN_MINUM_AIR, $this->kie_kantin_minum_air);\n\n return $criteria;\n }",
"public function buildCriteria()\n {\n $criteria = new Criteria(JadwalPeer::DATABASE_NAME);\n\n if ($this->isColumnModified(JadwalPeer::SEKOLAH_ID)) $criteria->add(JadwalPeer::SEKOLAH_ID, $this->sekolah_id);\n if ($this->isColumnModified(JadwalPeer::SEMESTER_ID)) $criteria->add(JadwalPeer::SEMESTER_ID, $this->semester_id);\n if ($this->isColumnModified(JadwalPeer::ID_RUANG)) $criteria->add(JadwalPeer::ID_RUANG, $this->id_ruang);\n if ($this->isColumnModified(JadwalPeer::HARI)) $criteria->add(JadwalPeer::HARI, $this->hari);\n if ($this->isColumnModified(JadwalPeer::BEL_KE_01)) $criteria->add(JadwalPeer::BEL_KE_01, $this->bel_ke_01);\n if ($this->isColumnModified(JadwalPeer::BEL_KE_02)) $criteria->add(JadwalPeer::BEL_KE_02, $this->bel_ke_02);\n if ($this->isColumnModified(JadwalPeer::BEL_KE_03)) $criteria->add(JadwalPeer::BEL_KE_03, $this->bel_ke_03);\n if ($this->isColumnModified(JadwalPeer::BEL_KE_04)) $criteria->add(JadwalPeer::BEL_KE_04, $this->bel_ke_04);\n if ($this->isColumnModified(JadwalPeer::BEL_KE_05)) $criteria->add(JadwalPeer::BEL_KE_05, $this->bel_ke_05);\n if ($this->isColumnModified(JadwalPeer::BEL_KE_06)) $criteria->add(JadwalPeer::BEL_KE_06, $this->bel_ke_06);\n if ($this->isColumnModified(JadwalPeer::BEL_KE_07)) $criteria->add(JadwalPeer::BEL_KE_07, $this->bel_ke_07);\n if ($this->isColumnModified(JadwalPeer::BEL_KE_08)) $criteria->add(JadwalPeer::BEL_KE_08, $this->bel_ke_08);\n if ($this->isColumnModified(JadwalPeer::BEL_KE_09)) $criteria->add(JadwalPeer::BEL_KE_09, $this->bel_ke_09);\n if ($this->isColumnModified(JadwalPeer::BEL_KE_10)) $criteria->add(JadwalPeer::BEL_KE_10, $this->bel_ke_10);\n if ($this->isColumnModified(JadwalPeer::BEL_KE_11)) $criteria->add(JadwalPeer::BEL_KE_11, $this->bel_ke_11);\n if ($this->isColumnModified(JadwalPeer::BEL_KE_12)) $criteria->add(JadwalPeer::BEL_KE_12, $this->bel_ke_12);\n if ($this->isColumnModified(JadwalPeer::BEL_KE_13)) $criteria->add(JadwalPeer::BEL_KE_13, $this->bel_ke_13);\n if ($this->isColumnModified(JadwalPeer::BEL_KE_14)) $criteria->add(JadwalPeer::BEL_KE_14, $this->bel_ke_14);\n if ($this->isColumnModified(JadwalPeer::BEL_KE_15)) $criteria->add(JadwalPeer::BEL_KE_15, $this->bel_ke_15);\n if ($this->isColumnModified(JadwalPeer::BEL_KE_16)) $criteria->add(JadwalPeer::BEL_KE_16, $this->bel_ke_16);\n if ($this->isColumnModified(JadwalPeer::BEL_KE_17)) $criteria->add(JadwalPeer::BEL_KE_17, $this->bel_ke_17);\n if ($this->isColumnModified(JadwalPeer::BEL_KE_18)) $criteria->add(JadwalPeer::BEL_KE_18, $this->bel_ke_18);\n if ($this->isColumnModified(JadwalPeer::BEL_KE_19)) $criteria->add(JadwalPeer::BEL_KE_19, $this->bel_ke_19);\n if ($this->isColumnModified(JadwalPeer::BEL_KE_20)) $criteria->add(JadwalPeer::BEL_KE_20, $this->bel_ke_20);\n if ($this->isColumnModified(JadwalPeer::CREATE_DATE)) $criteria->add(JadwalPeer::CREATE_DATE, $this->create_date);\n if ($this->isColumnModified(JadwalPeer::LAST_UPDATE)) $criteria->add(JadwalPeer::LAST_UPDATE, $this->last_update);\n if ($this->isColumnModified(JadwalPeer::SOFT_DELETE)) $criteria->add(JadwalPeer::SOFT_DELETE, $this->soft_delete);\n if ($this->isColumnModified(JadwalPeer::LAST_SYNC)) $criteria->add(JadwalPeer::LAST_SYNC, $this->last_sync);\n if ($this->isColumnModified(JadwalPeer::UPDATER_ID)) $criteria->add(JadwalPeer::UPDATER_ID, $this->updater_id);\n\n return $criteria;\n }",
"public function buildCriteria()\n\t{\n\t\t$criteria = new Criteria(J019tParticipantesPeer::DATABASE_NAME);\n\n\t\tif ($this->isColumnModified(J019tParticipantesPeer::CO_PARTICIPANTE)) $criteria->add(J019tParticipantesPeer::CO_PARTICIPANTE, $this->co_participante);\n\t\tif ($this->isColumnModified(J019tParticipantesPeer::CO_USUARIO_ELABORA)) $criteria->add(J019tParticipantesPeer::CO_USUARIO_ELABORA, $this->co_usuario_elabora);\n\t\tif ($this->isColumnModified(J019tParticipantesPeer::CO_FORENSE)) $criteria->add(J019tParticipantesPeer::CO_FORENSE, $this->co_forense);\n\t\tif ($this->isColumnModified(J019tParticipantesPeer::CO_INFORME_RECOMENDACIONES)) $criteria->add(J019tParticipantesPeer::CO_INFORME_RECOMENDACIONES, $this->co_informe_recomendaciones);\n\t\tif ($this->isColumnModified(J019tParticipantesPeer::CO_INFORME_INCIDENTE)) $criteria->add(J019tParticipantesPeer::CO_INFORME_INCIDENTE, $this->co_informe_incidente);\n\t\tif ($this->isColumnModified(J019tParticipantesPeer::CO_INFORME_FORENSE)) $criteria->add(J019tParticipantesPeer::CO_INFORME_FORENSE, $this->co_informe_forense);\n\t\tif ($this->isColumnModified(J019tParticipantesPeer::CO_INFORME_DEPURACION)) $criteria->add(J019tParticipantesPeer::CO_INFORME_DEPURACION, $this->co_informe_depuracion);\n\t\tif ($this->isColumnModified(J019tParticipantesPeer::CO_MANTENIMIENTO)) $criteria->add(J019tParticipantesPeer::CO_MANTENIMIENTO, $this->co_mantenimiento);\n\t\tif ($this->isColumnModified(J019tParticipantesPeer::CO_DOUMENTO_NORMATIVO)) $criteria->add(J019tParticipantesPeer::CO_DOUMENTO_NORMATIVO, $this->co_doumento_normativo);\n\n\t\treturn $criteria;\n\t}",
"public function buildCriteria()\n {\n $criteria = new Criteria(BiblioTableMap::DATABASE_NAME);\n\n if ($this->isColumnModified(BiblioTableMap::COL_BIBLIO_ID)) {\n $criteria->add(BiblioTableMap::COL_BIBLIO_ID, $this->biblio_id);\n }\n if ($this->isColumnModified(BiblioTableMap::COL_TITLE)) {\n $criteria->add(BiblioTableMap::COL_TITLE, $this->title);\n }\n if ($this->isColumnModified(BiblioTableMap::COL_SOR)) {\n $criteria->add(BiblioTableMap::COL_SOR, $this->sor);\n }\n if ($this->isColumnModified(BiblioTableMap::COL_EDITION)) {\n $criteria->add(BiblioTableMap::COL_EDITION, $this->edition);\n }\n if ($this->isColumnModified(BiblioTableMap::COL_ISBN_ISSN)) {\n $criteria->add(BiblioTableMap::COL_ISBN_ISSN, $this->isbn_issn);\n }\n if ($this->isColumnModified(BiblioTableMap::COL_PUBLISHER_ID)) {\n $criteria->add(BiblioTableMap::COL_PUBLISHER_ID, $this->publisher_id);\n }\n if ($this->isColumnModified(BiblioTableMap::COL_PUBLISH_YEAR)) {\n $criteria->add(BiblioTableMap::COL_PUBLISH_YEAR, $this->publish_year);\n }\n if ($this->isColumnModified(BiblioTableMap::COL_COLLATION)) {\n $criteria->add(BiblioTableMap::COL_COLLATION, $this->collation);\n }\n if ($this->isColumnModified(BiblioTableMap::COL_SERIES_TITLE)) {\n $criteria->add(BiblioTableMap::COL_SERIES_TITLE, $this->series_title);\n }\n if ($this->isColumnModified(BiblioTableMap::COL_CALL_NUMBER)) {\n $criteria->add(BiblioTableMap::COL_CALL_NUMBER, $this->call_number);\n }\n if ($this->isColumnModified(BiblioTableMap::COL_LANGUAGE_ID)) {\n $criteria->add(BiblioTableMap::COL_LANGUAGE_ID, $this->language_id);\n }\n if ($this->isColumnModified(BiblioTableMap::COL_SOURCE)) {\n $criteria->add(BiblioTableMap::COL_SOURCE, $this->source);\n }\n if ($this->isColumnModified(BiblioTableMap::COL_PUBLISH_PLACE_ID)) {\n $criteria->add(BiblioTableMap::COL_PUBLISH_PLACE_ID, $this->publish_place_id);\n }\n if ($this->isColumnModified(BiblioTableMap::COL_CLASSIFICATION)) {\n $criteria->add(BiblioTableMap::COL_CLASSIFICATION, $this->classification);\n }\n if ($this->isColumnModified(BiblioTableMap::COL_NOTES)) {\n $criteria->add(BiblioTableMap::COL_NOTES, $this->notes);\n }\n if ($this->isColumnModified(BiblioTableMap::COL_IMAGE)) {\n $criteria->add(BiblioTableMap::COL_IMAGE, $this->image);\n }\n if ($this->isColumnModified(BiblioTableMap::COL_FILE_ATT)) {\n $criteria->add(BiblioTableMap::COL_FILE_ATT, $this->file_att);\n }\n if ($this->isColumnModified(BiblioTableMap::COL_OPAC_HIDE)) {\n $criteria->add(BiblioTableMap::COL_OPAC_HIDE, $this->opac_hide);\n }\n if ($this->isColumnModified(BiblioTableMap::COL_PROMOTED)) {\n $criteria->add(BiblioTableMap::COL_PROMOTED, $this->promoted);\n }\n if ($this->isColumnModified(BiblioTableMap::COL_LABELS)) {\n $criteria->add(BiblioTableMap::COL_LABELS, $this->labels);\n }\n if ($this->isColumnModified(BiblioTableMap::COL_FREQUENCY_ID)) {\n $criteria->add(BiblioTableMap::COL_FREQUENCY_ID, $this->frequency_id);\n }\n if ($this->isColumnModified(BiblioTableMap::COL_SPEC_DETAIL_INFO)) {\n $criteria->add(BiblioTableMap::COL_SPEC_DETAIL_INFO, $this->spec_detail_info);\n }\n if ($this->isColumnModified(BiblioTableMap::COL_INPUT_DATE)) {\n $criteria->add(BiblioTableMap::COL_INPUT_DATE, $this->input_date);\n }\n if ($this->isColumnModified(BiblioTableMap::COL_LAST_UPDATE)) {\n $criteria->add(BiblioTableMap::COL_LAST_UPDATE, $this->last_update);\n }\n if ($this->isColumnModified(BiblioTableMap::COL_UID)) {\n $criteria->add(BiblioTableMap::COL_UID, $this->uid);\n }\n\n return $criteria;\n }",
"public function buildCriteria()\n\t{\n\t\t$criteria = new Criteria(UserPeer::DATABASE_NAME);\n\n\t\tif ($this->isColumnModified(UserPeer::ID)) $criteria->add(UserPeer::ID, $this->id);\n\t\tif ($this->isColumnModified(UserPeer::EMAIL)) $criteria->add(UserPeer::EMAIL, $this->email);\n\t\tif ($this->isColumnModified(UserPeer::DISPLAY_NAME)) $criteria->add(UserPeer::DISPLAY_NAME, $this->display_name);\n\t\tif ($this->isColumnModified(UserPeer::REAL_NAME)) $criteria->add(UserPeer::REAL_NAME, $this->real_name);\n\t\tif ($this->isColumnModified(UserPeer::LOCATION)) $criteria->add(UserPeer::LOCATION, $this->location);\n\t\tif ($this->isColumnModified(UserPeer::WEBPAGE)) $criteria->add(UserPeer::WEBPAGE, $this->webpage);\n\t\tif ($this->isColumnModified(UserPeer::COUNTRY)) $criteria->add(UserPeer::COUNTRY, $this->country);\n\t\tif ($this->isColumnModified(UserPeer::POSTAL_CODE)) $criteria->add(UserPeer::POSTAL_CODE, $this->postal_code);\n\t\tif ($this->isColumnModified(UserPeer::BIRTHDAY)) $criteria->add(UserPeer::BIRTHDAY, $this->birthday);\n\t\tif ($this->isColumnModified(UserPeer::GRAVATAR_ADDRESS)) $criteria->add(UserPeer::GRAVATAR_ADDRESS, $this->gravatar_address);\n\t\tif ($this->isColumnModified(UserPeer::INFO)) $criteria->add(UserPeer::INFO, $this->info);\n\t\tif ($this->isColumnModified(UserPeer::PLATFORM)) $criteria->add(UserPeer::PLATFORM, $this->platform);\n\t\tif ($this->isColumnModified(UserPeer::EXPERIENCE_SCORE)) $criteria->add(UserPeer::EXPERIENCE_SCORE, $this->experience_score);\n\t\tif ($this->isColumnModified(UserPeer::UP_VOTES)) $criteria->add(UserPeer::UP_VOTES, $this->up_votes);\n\t\tif ($this->isColumnModified(UserPeer::DOWN_VOTES)) $criteria->add(UserPeer::DOWN_VOTES, $this->down_votes);\n\t\tif ($this->isColumnModified(UserPeer::IS_GUEST)) $criteria->add(UserPeer::IS_GUEST, $this->is_guest);\n\t\tif ($this->isColumnModified(UserPeer::IS_ADMIN)) $criteria->add(UserPeer::IS_ADMIN, $this->is_admin);\n\t\tif ($this->isColumnModified(UserPeer::TODAY_VOTES)) $criteria->add(UserPeer::TODAY_VOTES, $this->today_votes);\n\t\tif ($this->isColumnModified(UserPeer::EMAIL_ON)) $criteria->add(UserPeer::EMAIL_ON, $this->email_on);\n\t\tif ($this->isColumnModified(UserPeer::LAST_EMAIL)) $criteria->add(UserPeer::LAST_EMAIL, $this->last_email);\n\t\tif ($this->isColumnModified(UserPeer::CREATED_AT)) $criteria->add(UserPeer::CREATED_AT, $this->created_at);\n\t\tif ($this->isColumnModified(UserPeer::UPDATED_AT)) $criteria->add(UserPeer::UPDATED_AT, $this->updated_at);\n\n\t\treturn $criteria;\n\t}",
"public function buildCriteria()\n {\n $criteria = new Criteria(AliMemberTableMap::DATABASE_NAME);\n\n if ($this->isColumnModified(AliMemberTableMap::COL_ID)) {\n $criteria->add(AliMemberTableMap::COL_ID, $this->id);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_MCODE)) {\n $criteria->add(AliMemberTableMap::COL_MCODE, $this->mcode);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_NAME_F)) {\n $criteria->add(AliMemberTableMap::COL_NAME_F, $this->name_f);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_NAME_T)) {\n $criteria->add(AliMemberTableMap::COL_NAME_T, $this->name_t);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_NAME_E)) {\n $criteria->add(AliMemberTableMap::COL_NAME_E, $this->name_e);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_POSID)) {\n $criteria->add(AliMemberTableMap::COL_POSID, $this->posid);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_MDATE)) {\n $criteria->add(AliMemberTableMap::COL_MDATE, $this->mdate);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_BIRTHDAY)) {\n $criteria->add(AliMemberTableMap::COL_BIRTHDAY, $this->birthday);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_NATIONAL)) {\n $criteria->add(AliMemberTableMap::COL_NATIONAL, $this->national);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_ID_TAX)) {\n $criteria->add(AliMemberTableMap::COL_ID_TAX, $this->id_tax);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_ID_CARD)) {\n $criteria->add(AliMemberTableMap::COL_ID_CARD, $this->id_card);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_ID_CARD_IMG)) {\n $criteria->add(AliMemberTableMap::COL_ID_CARD_IMG, $this->id_card_img);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_ID_CARD_IMG_DATE)) {\n $criteria->add(AliMemberTableMap::COL_ID_CARD_IMG_DATE, $this->id_card_img_date);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_ZIP)) {\n $criteria->add(AliMemberTableMap::COL_ZIP, $this->zip);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_HOME_T)) {\n $criteria->add(AliMemberTableMap::COL_HOME_T, $this->home_t);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_OFFICE_T)) {\n $criteria->add(AliMemberTableMap::COL_OFFICE_T, $this->office_t);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_MOBILE)) {\n $criteria->add(AliMemberTableMap::COL_MOBILE, $this->mobile);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_MCODE_ACC)) {\n $criteria->add(AliMemberTableMap::COL_MCODE_ACC, $this->mcode_acc);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_BONUSREC)) {\n $criteria->add(AliMemberTableMap::COL_BONUSREC, $this->bonusrec);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_BANKCODE)) {\n $criteria->add(AliMemberTableMap::COL_BANKCODE, $this->bankcode);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_BRANCH)) {\n $criteria->add(AliMemberTableMap::COL_BRANCH, $this->branch);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_ACC_TYPE)) {\n $criteria->add(AliMemberTableMap::COL_ACC_TYPE, $this->acc_type);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_ACC_NO)) {\n $criteria->add(AliMemberTableMap::COL_ACC_NO, $this->acc_no);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_ACC_NO_IMG)) {\n $criteria->add(AliMemberTableMap::COL_ACC_NO_IMG, $this->acc_no_img);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_ACC_NO_IMG_DATE)) {\n $criteria->add(AliMemberTableMap::COL_ACC_NO_IMG_DATE, $this->acc_no_img_date);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_ACC_NAME)) {\n $criteria->add(AliMemberTableMap::COL_ACC_NAME, $this->acc_name);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_ACC_PROV)) {\n $criteria->add(AliMemberTableMap::COL_ACC_PROV, $this->acc_prov);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_SV_CODE)) {\n $criteria->add(AliMemberTableMap::COL_SV_CODE, $this->sv_code);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_SP_CODE)) {\n $criteria->add(AliMemberTableMap::COL_SP_CODE, $this->sp_code);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_SP_NAME)) {\n $criteria->add(AliMemberTableMap::COL_SP_NAME, $this->sp_name);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_SP_CODE2)) {\n $criteria->add(AliMemberTableMap::COL_SP_CODE2, $this->sp_code2);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_SP_NAME2)) {\n $criteria->add(AliMemberTableMap::COL_SP_NAME2, $this->sp_name2);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_UPA_CODE)) {\n $criteria->add(AliMemberTableMap::COL_UPA_CODE, $this->upa_code);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_UPA_NAME)) {\n $criteria->add(AliMemberTableMap::COL_UPA_NAME, $this->upa_name);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_LR)) {\n $criteria->add(AliMemberTableMap::COL_LR, $this->lr);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_COMPLETE)) {\n $criteria->add(AliMemberTableMap::COL_COMPLETE, $this->complete);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_COMPDATE)) {\n $criteria->add(AliMemberTableMap::COL_COMPDATE, $this->compdate);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_MODATE)) {\n $criteria->add(AliMemberTableMap::COL_MODATE, $this->modate);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_USERCODE)) {\n $criteria->add(AliMemberTableMap::COL_USERCODE, $this->usercode);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_NAME_B)) {\n $criteria->add(AliMemberTableMap::COL_NAME_B, $this->name_b);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_SEX)) {\n $criteria->add(AliMemberTableMap::COL_SEX, $this->sex);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_AGE)) {\n $criteria->add(AliMemberTableMap::COL_AGE, $this->age);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_OCCUPATION)) {\n $criteria->add(AliMemberTableMap::COL_OCCUPATION, $this->occupation);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_STATUS)) {\n $criteria->add(AliMemberTableMap::COL_STATUS, $this->status);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_MAR_NAME)) {\n $criteria->add(AliMemberTableMap::COL_MAR_NAME, $this->mar_name);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_MAR_AGE)) {\n $criteria->add(AliMemberTableMap::COL_MAR_AGE, $this->mar_age);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_EMAIL)) {\n $criteria->add(AliMemberTableMap::COL_EMAIL, $this->email);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_BENEFICIARIES)) {\n $criteria->add(AliMemberTableMap::COL_BENEFICIARIES, $this->beneficiaries);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_RELATION)) {\n $criteria->add(AliMemberTableMap::COL_RELATION, $this->relation);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_DISTRICTID)) {\n $criteria->add(AliMemberTableMap::COL_DISTRICTID, $this->districtid);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_AMPHURID)) {\n $criteria->add(AliMemberTableMap::COL_AMPHURID, $this->amphurid);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_PROVINCEID)) {\n $criteria->add(AliMemberTableMap::COL_PROVINCEID, $this->provinceid);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_FAX)) {\n $criteria->add(AliMemberTableMap::COL_FAX, $this->fax);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_INV_CODE)) {\n $criteria->add(AliMemberTableMap::COL_INV_CODE, $this->inv_code);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_UID)) {\n $criteria->add(AliMemberTableMap::COL_UID, $this->uid);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_OID)) {\n $criteria->add(AliMemberTableMap::COL_OID, $this->oid);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_POS_CUR)) {\n $criteria->add(AliMemberTableMap::COL_POS_CUR, $this->pos_cur);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_POS_CUR1)) {\n $criteria->add(AliMemberTableMap::COL_POS_CUR1, $this->pos_cur1);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_POS_CUR2)) {\n $criteria->add(AliMemberTableMap::COL_POS_CUR2, $this->pos_cur2);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_POS_CUR3)) {\n $criteria->add(AliMemberTableMap::COL_POS_CUR3, $this->pos_cur3);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_POS_CUR4)) {\n $criteria->add(AliMemberTableMap::COL_POS_CUR4, $this->pos_cur4);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_POS_CUR_TMP)) {\n $criteria->add(AliMemberTableMap::COL_POS_CUR_TMP, $this->pos_cur_tmp);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_RPOS_CUR4)) {\n $criteria->add(AliMemberTableMap::COL_RPOS_CUR4, $this->rpos_cur4);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_POS_CUR3_DATE)) {\n $criteria->add(AliMemberTableMap::COL_POS_CUR3_DATE, $this->pos_cur3_date);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_MEMDESC)) {\n $criteria->add(AliMemberTableMap::COL_MEMDESC, $this->memdesc);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_CMP)) {\n $criteria->add(AliMemberTableMap::COL_CMP, $this->cmp);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_CMP2)) {\n $criteria->add(AliMemberTableMap::COL_CMP2, $this->cmp2);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_CMP3)) {\n $criteria->add(AliMemberTableMap::COL_CMP3, $this->cmp3);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_CCMP)) {\n $criteria->add(AliMemberTableMap::COL_CCMP, $this->ccmp);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_CCMP2)) {\n $criteria->add(AliMemberTableMap::COL_CCMP2, $this->ccmp2);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_CCMP3)) {\n $criteria->add(AliMemberTableMap::COL_CCMP3, $this->ccmp3);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_ADDRESS)) {\n $criteria->add(AliMemberTableMap::COL_ADDRESS, $this->address);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_STREET)) {\n $criteria->add(AliMemberTableMap::COL_STREET, $this->street);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_BUILDING)) {\n $criteria->add(AliMemberTableMap::COL_BUILDING, $this->building);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_VILLAGE)) {\n $criteria->add(AliMemberTableMap::COL_VILLAGE, $this->village);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_SOI)) {\n $criteria->add(AliMemberTableMap::COL_SOI, $this->soi);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_EWALLET)) {\n $criteria->add(AliMemberTableMap::COL_EWALLET, $this->ewallet);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_EATOSHIP)) {\n $criteria->add(AliMemberTableMap::COL_EATOSHIP, $this->eatoship);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_ECOM)) {\n $criteria->add(AliMemberTableMap::COL_ECOM, $this->ecom);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_BMDATE1)) {\n $criteria->add(AliMemberTableMap::COL_BMDATE1, $this->bmdate1);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_BMDATE2)) {\n $criteria->add(AliMemberTableMap::COL_BMDATE2, $this->bmdate2);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_BMDATE3)) {\n $criteria->add(AliMemberTableMap::COL_BMDATE3, $this->bmdate3);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_CBMDATE1)) {\n $criteria->add(AliMemberTableMap::COL_CBMDATE1, $this->cbmdate1);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_CBMDATE2)) {\n $criteria->add(AliMemberTableMap::COL_CBMDATE2, $this->cbmdate2);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_CBMDATE3)) {\n $criteria->add(AliMemberTableMap::COL_CBMDATE3, $this->cbmdate3);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_ONLINE)) {\n $criteria->add(AliMemberTableMap::COL_ONLINE, $this->online);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_CNAME_F)) {\n $criteria->add(AliMemberTableMap::COL_CNAME_F, $this->cname_f);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_CNAME_T)) {\n $criteria->add(AliMemberTableMap::COL_CNAME_T, $this->cname_t);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_CNAME_E)) {\n $criteria->add(AliMemberTableMap::COL_CNAME_E, $this->cname_e);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_CNAME_B)) {\n $criteria->add(AliMemberTableMap::COL_CNAME_B, $this->cname_b);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_CBIRTHDAY)) {\n $criteria->add(AliMemberTableMap::COL_CBIRTHDAY, $this->cbirthday);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_CNATIONAL)) {\n $criteria->add(AliMemberTableMap::COL_CNATIONAL, $this->cnational);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_CID_TAX)) {\n $criteria->add(AliMemberTableMap::COL_CID_TAX, $this->cid_tax);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_CID_CARD)) {\n $criteria->add(AliMemberTableMap::COL_CID_CARD, $this->cid_card);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_CADDRESS)) {\n $criteria->add(AliMemberTableMap::COL_CADDRESS, $this->caddress);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_CBUILDING)) {\n $criteria->add(AliMemberTableMap::COL_CBUILDING, $this->cbuilding);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_CVILLAGE)) {\n $criteria->add(AliMemberTableMap::COL_CVILLAGE, $this->cvillage);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_CSTREET)) {\n $criteria->add(AliMemberTableMap::COL_CSTREET, $this->cstreet);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_CSOI)) {\n $criteria->add(AliMemberTableMap::COL_CSOI, $this->csoi);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_CZIP)) {\n $criteria->add(AliMemberTableMap::COL_CZIP, $this->czip);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_CHOME_T)) {\n $criteria->add(AliMemberTableMap::COL_CHOME_T, $this->chome_t);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_COFFICE_T)) {\n $criteria->add(AliMemberTableMap::COL_COFFICE_T, $this->coffice_t);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_CMOBILE)) {\n $criteria->add(AliMemberTableMap::COL_CMOBILE, $this->cmobile);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_CFAX)) {\n $criteria->add(AliMemberTableMap::COL_CFAX, $this->cfax);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_CSEX)) {\n $criteria->add(AliMemberTableMap::COL_CSEX, $this->csex);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_CEMAIL)) {\n $criteria->add(AliMemberTableMap::COL_CEMAIL, $this->cemail);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_CDISTRICTID)) {\n $criteria->add(AliMemberTableMap::COL_CDISTRICTID, $this->cdistrictid);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_CAMPHURID)) {\n $criteria->add(AliMemberTableMap::COL_CAMPHURID, $this->camphurid);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_CPROVINCEID)) {\n $criteria->add(AliMemberTableMap::COL_CPROVINCEID, $this->cprovinceid);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_INAME_F)) {\n $criteria->add(AliMemberTableMap::COL_INAME_F, $this->iname_f);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_INAME_T)) {\n $criteria->add(AliMemberTableMap::COL_INAME_T, $this->iname_t);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_IRELATION)) {\n $criteria->add(AliMemberTableMap::COL_IRELATION, $this->irelation);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_IPHONE)) {\n $criteria->add(AliMemberTableMap::COL_IPHONE, $this->iphone);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_IID_CARD)) {\n $criteria->add(AliMemberTableMap::COL_IID_CARD, $this->iid_card);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_STATUS_DOC)) {\n $criteria->add(AliMemberTableMap::COL_STATUS_DOC, $this->status_doc);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_STATUS_EXPIRE)) {\n $criteria->add(AliMemberTableMap::COL_STATUS_EXPIRE, $this->status_expire);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_STATUS_TERMINATE)) {\n $criteria->add(AliMemberTableMap::COL_STATUS_TERMINATE, $this->status_terminate);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_TERMINATE_DATE)) {\n $criteria->add(AliMemberTableMap::COL_TERMINATE_DATE, $this->terminate_date);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_STATUS_SUSPEND)) {\n $criteria->add(AliMemberTableMap::COL_STATUS_SUSPEND, $this->status_suspend);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_SUSPEND_DATE)) {\n $criteria->add(AliMemberTableMap::COL_SUSPEND_DATE, $this->suspend_date);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_STATUS_BLACKLIST)) {\n $criteria->add(AliMemberTableMap::COL_STATUS_BLACKLIST, $this->status_blacklist);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_STATUS_ATO)) {\n $criteria->add(AliMemberTableMap::COL_STATUS_ATO, $this->status_ato);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_SLETTER)) {\n $criteria->add(AliMemberTableMap::COL_SLETTER, $this->sletter);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_SINV_CODE)) {\n $criteria->add(AliMemberTableMap::COL_SINV_CODE, $this->sinv_code);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_TXTOPTION)) {\n $criteria->add(AliMemberTableMap::COL_TXTOPTION, $this->txtoption);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_SETREGIS)) {\n $criteria->add(AliMemberTableMap::COL_SETREGIS, $this->setregis);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_SLR)) {\n $criteria->add(AliMemberTableMap::COL_SLR, $this->slr);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_LOCATIONBASE)) {\n $criteria->add(AliMemberTableMap::COL_LOCATIONBASE, $this->locationbase);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_CID_MOBILE)) {\n $criteria->add(AliMemberTableMap::COL_CID_MOBILE, $this->cid_mobile);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_BEWALLET)) {\n $criteria->add(AliMemberTableMap::COL_BEWALLET, $this->bewallet);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_BVOUCHER)) {\n $criteria->add(AliMemberTableMap::COL_BVOUCHER, $this->bvoucher);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_VOUCHER)) {\n $criteria->add(AliMemberTableMap::COL_VOUCHER, $this->voucher);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_MANAGER)) {\n $criteria->add(AliMemberTableMap::COL_MANAGER, $this->manager);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_MTYPE)) {\n $criteria->add(AliMemberTableMap::COL_MTYPE, $this->mtype);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_MTYPE1)) {\n $criteria->add(AliMemberTableMap::COL_MTYPE1, $this->mtype1);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_MTYPE2)) {\n $criteria->add(AliMemberTableMap::COL_MTYPE2, $this->mtype2);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_MVAT)) {\n $criteria->add(AliMemberTableMap::COL_MVAT, $this->mvat);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_UIDBASE)) {\n $criteria->add(AliMemberTableMap::COL_UIDBASE, $this->uidbase);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_EXP_DATE)) {\n $criteria->add(AliMemberTableMap::COL_EXP_DATE, $this->exp_date);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_HEAD_CODE)) {\n $criteria->add(AliMemberTableMap::COL_HEAD_CODE, $this->head_code);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_PV_L)) {\n $criteria->add(AliMemberTableMap::COL_PV_L, $this->pv_l);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_PV_C)) {\n $criteria->add(AliMemberTableMap::COL_PV_C, $this->pv_c);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_HPV_L)) {\n $criteria->add(AliMemberTableMap::COL_HPV_L, $this->hpv_l);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_HPV_C)) {\n $criteria->add(AliMemberTableMap::COL_HPV_C, $this->hpv_c);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_PV_L_NEXTMONTH)) {\n $criteria->add(AliMemberTableMap::COL_PV_L_NEXTMONTH, $this->pv_l_nextmonth);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_PV_C_NEXTMONTH)) {\n $criteria->add(AliMemberTableMap::COL_PV_C_NEXTMONTH, $this->pv_c_nextmonth);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_PV_L_LASTMONTH1)) {\n $criteria->add(AliMemberTableMap::COL_PV_L_LASTMONTH1, $this->pv_l_lastmonth1);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_PV_C_LASTMONTH1)) {\n $criteria->add(AliMemberTableMap::COL_PV_C_LASTMONTH1, $this->pv_c_lastmonth1);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_PV_L_LASTMONTH2)) {\n $criteria->add(AliMemberTableMap::COL_PV_L_LASTMONTH2, $this->pv_l_lastmonth2);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_PV_C_LASTMONTH2)) {\n $criteria->add(AliMemberTableMap::COL_PV_C_LASTMONTH2, $this->pv_c_lastmonth2);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_RCODE_STAR)) {\n $criteria->add(AliMemberTableMap::COL_RCODE_STAR, $this->rcode_star);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_BUNIT)) {\n $criteria->add(AliMemberTableMap::COL_BUNIT, $this->bunit);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_PROVINCE)) {\n $criteria->add(AliMemberTableMap::COL_PROVINCE, $this->province);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_LINE_ID)) {\n $criteria->add(AliMemberTableMap::COL_LINE_ID, $this->line_id);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_FACEBOOK_NAME)) {\n $criteria->add(AliMemberTableMap::COL_FACEBOOK_NAME, $this->facebook_name);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_TYPE_COM)) {\n $criteria->add(AliMemberTableMap::COL_TYPE_COM, $this->type_com);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_EXP_POS)) {\n $criteria->add(AliMemberTableMap::COL_EXP_POS, $this->exp_pos);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_EXP_POS_60)) {\n $criteria->add(AliMemberTableMap::COL_EXP_POS_60, $this->exp_pos_60);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_TRIP_PRIVATE)) {\n $criteria->add(AliMemberTableMap::COL_TRIP_PRIVATE, $this->trip_private);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_TRIP_TEAM)) {\n $criteria->add(AliMemberTableMap::COL_TRIP_TEAM, $this->trip_team);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_MYFILE1)) {\n $criteria->add(AliMemberTableMap::COL_MYFILE1, $this->myfile1);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_MYFILE2)) {\n $criteria->add(AliMemberTableMap::COL_MYFILE2, $this->myfile2);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_CLINE_ID)) {\n $criteria->add(AliMemberTableMap::COL_CLINE_ID, $this->cline_id);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_CFACEBOOK_NAME)) {\n $criteria->add(AliMemberTableMap::COL_CFACEBOOK_NAME, $this->cfacebook_name);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_PROFILE_IMG)) {\n $criteria->add(AliMemberTableMap::COL_PROFILE_IMG, $this->profile_img);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_ATOCOM)) {\n $criteria->add(AliMemberTableMap::COL_ATOCOM, $this->atocom);\n }\n if ($this->isColumnModified(AliMemberTableMap::COL_HPV)) {\n $criteria->add(AliMemberTableMap::COL_HPV, $this->hpv);\n }\n\n return $criteria;\n }",
"public function buildCriteria()\n {\n $criteria = new Criteria(TblProdInfoTableMap::DATABASE_NAME);\n\n if ($this->isColumnModified(TblProdInfoTableMap::COL_PROD_ID)) {\n $criteria->add(TblProdInfoTableMap::COL_PROD_ID, $this->prod_id);\n }\n if ($this->isColumnModified(TblProdInfoTableMap::COL_PROD_PRICE_ID)) {\n $criteria->add(TblProdInfoTableMap::COL_PROD_PRICE_ID, $this->prod_price_id);\n }\n if ($this->isColumnModified(TblProdInfoTableMap::COL_PROD_NAME)) {\n $criteria->add(TblProdInfoTableMap::COL_PROD_NAME, $this->prod_name);\n }\n if ($this->isColumnModified(TblProdInfoTableMap::COL_PROD_ALT1)) {\n $criteria->add(TblProdInfoTableMap::COL_PROD_ALT1, $this->prod_alt1);\n }\n if ($this->isColumnModified(TblProdInfoTableMap::COL_PROD_ALT2)) {\n $criteria->add(TblProdInfoTableMap::COL_PROD_ALT2, $this->prod_alt2);\n }\n if ($this->isColumnModified(TblProdInfoTableMap::COL_PROD_ALT3)) {\n $criteria->add(TblProdInfoTableMap::COL_PROD_ALT3, $this->prod_alt3);\n }\n if ($this->isColumnModified(TblProdInfoTableMap::COL_PROD_ALT4)) {\n $criteria->add(TblProdInfoTableMap::COL_PROD_ALT4, $this->prod_alt4);\n }\n if ($this->isColumnModified(TblProdInfoTableMap::COL_PROD_CODE)) {\n $criteria->add(TblProdInfoTableMap::COL_PROD_CODE, $this->prod_code);\n }\n if ($this->isColumnModified(TblProdInfoTableMap::COL_PROD_CATEGORY)) {\n $criteria->add(TblProdInfoTableMap::COL_PROD_CATEGORY, $this->prod_category);\n }\n if ($this->isColumnModified(TblProdInfoTableMap::COL_PROD_CATEGORY_SHIPPING)) {\n $criteria->add(TblProdInfoTableMap::COL_PROD_CATEGORY_SHIPPING, $this->prod_category_shipping);\n }\n if ($this->isColumnModified(TblProdInfoTableMap::COL_PROD_WRITEUP)) {\n $criteria->add(TblProdInfoTableMap::COL_PROD_WRITEUP, $this->prod_writeup);\n }\n if ($this->isColumnModified(TblProdInfoTableMap::COL_PROD_LENGTH)) {\n $criteria->add(TblProdInfoTableMap::COL_PROD_LENGTH, $this->prod_length);\n }\n if ($this->isColumnModified(TblProdInfoTableMap::COL_PROD_WINGSPAN)) {\n $criteria->add(TblProdInfoTableMap::COL_PROD_WINGSPAN, $this->prod_wingspan);\n }\n if ($this->isColumnModified(TblProdInfoTableMap::COL_PROD_HEIGHT)) {\n $criteria->add(TblProdInfoTableMap::COL_PROD_HEIGHT, $this->prod_height);\n }\n if ($this->isColumnModified(TblProdInfoTableMap::COL_PROD_SCALE)) {\n $criteria->add(TblProdInfoTableMap::COL_PROD_SCALE, $this->prod_scale);\n }\n if ($this->isColumnModified(TblProdInfoTableMap::COL_PROD_LINKS)) {\n $criteria->add(TblProdInfoTableMap::COL_PROD_LINKS, $this->prod_links);\n }\n if ($this->isColumnModified(TblProdInfoTableMap::COL_PROD_LINKDESCRIPTION)) {\n $criteria->add(TblProdInfoTableMap::COL_PROD_LINKDESCRIPTION, $this->prod_linkdescription);\n }\n if ($this->isColumnModified(TblProdInfoTableMap::COL_PROD_FRONT)) {\n $criteria->add(TblProdInfoTableMap::COL_PROD_FRONT, $this->prod_front);\n }\n if ($this->isColumnModified(TblProdInfoTableMap::COL_PROD_KEYWORDS)) {\n $criteria->add(TblProdInfoTableMap::COL_PROD_KEYWORDS, $this->prod_keywords);\n }\n if ($this->isColumnModified(TblProdInfoTableMap::COL_PROD_KEYWORDS_WRITEUP)) {\n $criteria->add(TblProdInfoTableMap::COL_PROD_KEYWORDS_WRITEUP, $this->prod_keywords_writeup);\n }\n if ($this->isColumnModified(TblProdInfoTableMap::COL_PROD_TITLE)) {\n $criteria->add(TblProdInfoTableMap::COL_PROD_TITLE, $this->prod_title);\n }\n if ($this->isColumnModified(TblProdInfoTableMap::COL_PROD_DESCRIPTION)) {\n $criteria->add(TblProdInfoTableMap::COL_PROD_DESCRIPTION, $this->prod_description);\n }\n if ($this->isColumnModified(TblProdInfoTableMap::COL_PROD_GENERAL)) {\n $criteria->add(TblProdInfoTableMap::COL_PROD_GENERAL, $this->prod_general);\n }\n if ($this->isColumnModified(TblProdInfoTableMap::COL_PROD_ERA)) {\n $criteria->add(TblProdInfoTableMap::COL_PROD_ERA, $this->prod_era);\n }\n if ($this->isColumnModified(TblProdInfoTableMap::COL_PROD_COMPANY)) {\n $criteria->add(TblProdInfoTableMap::COL_PROD_COMPANY, $this->prod_company);\n }\n if ($this->isColumnModified(TblProdInfoTableMap::COL_PROD_RELATED)) {\n $criteria->add(TblProdInfoTableMap::COL_PROD_RELATED, $this->prod_related);\n }\n if ($this->isColumnModified(TblProdInfoTableMap::COL_PROD_RELATED_PA)) {\n $criteria->add(TblProdInfoTableMap::COL_PROD_RELATED_PA, $this->prod_related_pa);\n }\n if ($this->isColumnModified(TblProdInfoTableMap::COL_PROD_RELATED_M3)) {\n $criteria->add(TblProdInfoTableMap::COL_PROD_RELATED_M3, $this->prod_related_m3);\n }\n if ($this->isColumnModified(TblProdInfoTableMap::COL_PROD_RELATED2)) {\n $criteria->add(TblProdInfoTableMap::COL_PROD_RELATED2, $this->prod_related2);\n }\n if ($this->isColumnModified(TblProdInfoTableMap::COL_PROD_SAVEAS)) {\n $criteria->add(TblProdInfoTableMap::COL_PROD_SAVEAS, $this->prod_saveas);\n }\n if ($this->isColumnModified(TblProdInfoTableMap::COL_PROD_AIRCRAFTREG)) {\n $criteria->add(TblProdInfoTableMap::COL_PROD_AIRCRAFTREG, $this->prod_aircraftreg);\n }\n if ($this->isColumnModified(TblProdInfoTableMap::COL_MB)) {\n $criteria->add(TblProdInfoTableMap::COL_MB, $this->mb);\n }\n if ($this->isColumnModified(TblProdInfoTableMap::COL_PA)) {\n $criteria->add(TblProdInfoTableMap::COL_PA, $this->pa);\n }\n if ($this->isColumnModified(TblProdInfoTableMap::COL_M3)) {\n $criteria->add(TblProdInfoTableMap::COL_M3, $this->m3);\n }\n\n return $criteria;\n }",
"public function buildCriteria()\n\t{\n\t\t$criteria = new Criteria(CampaignPeer::DATABASE_NAME);\n\n\t\tif ($this->isColumnModified(CampaignPeer::ID)) $criteria->add(CampaignPeer::ID, $this->id);\n\t\tif ($this->isColumnModified(CampaignPeer::SLUG)) $criteria->add(CampaignPeer::SLUG, $this->slug);\n\t\tif ($this->isColumnModified(CampaignPeer::NAME)) $criteria->add(CampaignPeer::NAME, $this->name);\n\t\tif ($this->isColumnModified(CampaignPeer::COMMENTAIRE)) $criteria->add(CampaignPeer::COMMENTAIRE, $this->commentaire);\n\t\tif ($this->isColumnModified(CampaignPeer::SUBJECT)) $criteria->add(CampaignPeer::SUBJECT, $this->subject);\n\t\tif ($this->isColumnModified(CampaignPeer::TEMPLATE_ID)) $criteria->add(CampaignPeer::TEMPLATE_ID, $this->template_id);\n\t\tif ($this->isColumnModified(CampaignPeer::CONTENT)) $criteria->add(CampaignPeer::CONTENT, $this->content);\n\t\tif ($this->isColumnModified(CampaignPeer::PREPARED_CONTENT)) $criteria->add(CampaignPeer::PREPARED_CONTENT, $this->prepared_content);\n\t\tif ($this->isColumnModified(CampaignPeer::TEXT_CONTENT)) $criteria->add(CampaignPeer::TEXT_CONTENT, $this->text_content);\n\t\tif ($this->isColumnModified(CampaignPeer::PREPARED_TEXT_CONTENT)) $criteria->add(CampaignPeer::PREPARED_TEXT_CONTENT, $this->prepared_text_content);\n\t\tif ($this->isColumnModified(CampaignPeer::STATUS)) $criteria->add(CampaignPeer::STATUS, $this->status);\n\t\tif ($this->isColumnModified(CampaignPeer::FROM_NAME)) $criteria->add(CampaignPeer::FROM_NAME, $this->from_name);\n\t\tif ($this->isColumnModified(CampaignPeer::FROM_EMAIL)) $criteria->add(CampaignPeer::FROM_EMAIL, $this->from_email);\n\t\tif ($this->isColumnModified(CampaignPeer::SCHEDULED_AT)) $criteria->add(CampaignPeer::SCHEDULED_AT, $this->scheduled_at);\n\t\tif ($this->isColumnModified(CampaignPeer::SCHEDULE_TYPE)) $criteria->add(CampaignPeer::SCHEDULE_TYPE, $this->schedule_type);\n\t\tif ($this->isColumnModified(CampaignPeer::TEST_TYPE)) $criteria->add(CampaignPeer::TEST_TYPE, $this->test_type);\n\t\tif ($this->isColumnModified(CampaignPeer::TEST_USER_LIST)) $criteria->add(CampaignPeer::TEST_USER_LIST, $this->test_user_list);\n\t\tif ($this->isColumnModified(CampaignPeer::TARGET)) $criteria->add(CampaignPeer::TARGET, $this->target);\n\t\tif ($this->isColumnModified(CampaignPeer::REPLY_TO_EMAIL)) $criteria->add(CampaignPeer::REPLY_TO_EMAIL, $this->reply_to_email);\n\t\tif ($this->isColumnModified(CampaignPeer::RETURN_PATH_EMAIL)) $criteria->add(CampaignPeer::RETURN_PATH_EMAIL, $this->return_path_email);\n\t\tif ($this->isColumnModified(CampaignPeer::RETURN_PATH_SERVER)) $criteria->add(CampaignPeer::RETURN_PATH_SERVER, $this->return_path_server);\n\t\tif ($this->isColumnModified(CampaignPeer::RETURN_PATH_LOGIN)) $criteria->add(CampaignPeer::RETURN_PATH_LOGIN, $this->return_path_login);\n\t\tif ($this->isColumnModified(CampaignPeer::RETURN_PATH_PASSWORD)) $criteria->add(CampaignPeer::RETURN_PATH_PASSWORD, $this->return_path_password);\n\t\tif ($this->isColumnModified(CampaignPeer::IS_ARCHIVED)) $criteria->add(CampaignPeer::IS_ARCHIVED, $this->is_archived);\n\t\tif ($this->isColumnModified(CampaignPeer::GOOGLE_ANALYTICS_ENABLED)) $criteria->add(CampaignPeer::GOOGLE_ANALYTICS_ENABLED, $this->google_analytics_enabled);\n\t\tif ($this->isColumnModified(CampaignPeer::GOOGLE_ANALYTICS_SOURCE)) $criteria->add(CampaignPeer::GOOGLE_ANALYTICS_SOURCE, $this->google_analytics_source);\n\t\tif ($this->isColumnModified(CampaignPeer::GOOGLE_ANALYTICS_MEDIUM)) $criteria->add(CampaignPeer::GOOGLE_ANALYTICS_MEDIUM, $this->google_analytics_medium);\n\t\tif ($this->isColumnModified(CampaignPeer::GOOGLE_ANALYTICS_CAMPAIGN_TYPE)) $criteria->add(CampaignPeer::GOOGLE_ANALYTICS_CAMPAIGN_TYPE, $this->google_analytics_campaign_type);\n\t\tif ($this->isColumnModified(CampaignPeer::GOOGLE_ANALYTICS_CAMPAIGN_CONTENT)) $criteria->add(CampaignPeer::GOOGLE_ANALYTICS_CAMPAIGN_CONTENT, $this->google_analytics_campaign_content);\n\t\tif ($this->isColumnModified(CampaignPeer::GOOGLE_ANALYTICS_CONTENT)) $criteria->add(CampaignPeer::GOOGLE_ANALYTICS_CONTENT, $this->google_analytics_content);\n\t\tif ($this->isColumnModified(CampaignPeer::LITMUS_TEST_ID)) $criteria->add(CampaignPeer::LITMUS_TEST_ID, $this->litmus_test_id);\n\t\tif ($this->isColumnModified(CampaignPeer::WEB_TRACKER_ENABLED)) $criteria->add(CampaignPeer::WEB_TRACKER_ENABLED, $this->web_tracker_enabled);\n\t\tif ($this->isColumnModified(CampaignPeer::CREATED_AT)) $criteria->add(CampaignPeer::CREATED_AT, $this->created_at);\n\t\tif ($this->isColumnModified(CampaignPeer::CREATED_BY)) $criteria->add(CampaignPeer::CREATED_BY, $this->created_by);\n\t\tif ($this->isColumnModified(CampaignPeer::UPDATED_AT)) $criteria->add(CampaignPeer::UPDATED_AT, $this->updated_at);\n\n\t\treturn $criteria;\n\t}",
"public function buildCriteria()\n\t{\n\t\t$criteria = new Criteria(UserPeer::DATABASE_NAME);\n\n\t\tif ($this->isColumnModified(UserPeer::ID)) $criteria->add(UserPeer::ID, $this->id);\n\t\tif ($this->isColumnModified(UserPeer::USERNAME)) $criteria->add(UserPeer::USERNAME, $this->username);\n\t\tif ($this->isColumnModified(UserPeer::EMAIL)) $criteria->add(UserPeer::EMAIL, $this->email);\n\t\tif ($this->isColumnModified(UserPeer::PASSWORD)) $criteria->add(UserPeer::PASSWORD, $this->password);\n\t\tif ($this->isColumnModified(UserPeer::POINTS)) $criteria->add(UserPeer::POINTS, $this->points);\n\t\tif ($this->isColumnModified(UserPeer::CREATED_AT)) $criteria->add(UserPeer::CREATED_AT, $this->created_at);\n\t\tif ($this->isColumnModified(UserPeer::LAST_ACTIVITY_AT)) $criteria->add(UserPeer::LAST_ACTIVITY_AT, $this->last_activity_at);\n\t\tif ($this->isColumnModified(UserPeer::TYPE)) $criteria->add(UserPeer::TYPE, $this->type);\n\t\tif ($this->isColumnModified(UserPeer::HIDDEN)) $criteria->add(UserPeer::HIDDEN, $this->hidden);\n\t\tif ($this->isColumnModified(UserPeer::NAME)) $criteria->add(UserPeer::NAME, $this->name);\n\t\tif ($this->isColumnModified(UserPeer::GENDER)) $criteria->add(UserPeer::GENDER, $this->gender);\n\t\tif ($this->isColumnModified(UserPeer::HOMETOWN)) $criteria->add(UserPeer::HOMETOWN, $this->hometown);\n\t\tif ($this->isColumnModified(UserPeer::HOME_PHONE)) $criteria->add(UserPeer::HOME_PHONE, $this->home_phone);\n\t\tif ($this->isColumnModified(UserPeer::MOBILE_PHONE)) $criteria->add(UserPeer::MOBILE_PHONE, $this->mobile_phone);\n\t\tif ($this->isColumnModified(UserPeer::BIRTHDATE)) $criteria->add(UserPeer::BIRTHDATE, $this->birthdate);\n\t\tif ($this->isColumnModified(UserPeer::ADDRESS)) $criteria->add(UserPeer::ADDRESS, $this->address);\n\t\tif ($this->isColumnModified(UserPeer::RELATIONSHIP_STATUS)) $criteria->add(UserPeer::RELATIONSHIP_STATUS, $this->relationship_status);\n\t\tif ($this->isColumnModified(UserPeer::SHOW_EMAIL)) $criteria->add(UserPeer::SHOW_EMAIL, $this->show_email);\n\t\tif ($this->isColumnModified(UserPeer::SHOW_GENDER)) $criteria->add(UserPeer::SHOW_GENDER, $this->show_gender);\n\t\tif ($this->isColumnModified(UserPeer::SHOW_HOMETOWN)) $criteria->add(UserPeer::SHOW_HOMETOWN, $this->show_hometown);\n\t\tif ($this->isColumnModified(UserPeer::SHOW_HOME_PHONE)) $criteria->add(UserPeer::SHOW_HOME_PHONE, $this->show_home_phone);\n\t\tif ($this->isColumnModified(UserPeer::SHOW_MOBILE_PHONE)) $criteria->add(UserPeer::SHOW_MOBILE_PHONE, $this->show_mobile_phone);\n\t\tif ($this->isColumnModified(UserPeer::SHOW_BIRTHDATE)) $criteria->add(UserPeer::SHOW_BIRTHDATE, $this->show_birthdate);\n\t\tif ($this->isColumnModified(UserPeer::SHOW_ADDRESS)) $criteria->add(UserPeer::SHOW_ADDRESS, $this->show_address);\n\t\tif ($this->isColumnModified(UserPeer::SHOW_RELATIONSHIP_STATUS)) $criteria->add(UserPeer::SHOW_RELATIONSHIP_STATUS, $this->show_relationship_status);\n\t\tif ($this->isColumnModified(UserPeer::PASSWORD_RECOVER_KEY)) $criteria->add(UserPeer::PASSWORD_RECOVER_KEY, $this->password_recover_key);\n\t\tif ($this->isColumnModified(UserPeer::COOKIE_KEY)) $criteria->add(UserPeer::COOKIE_KEY, $this->cookie_key);\n\t\tif ($this->isColumnModified(UserPeer::CREDIT)) $criteria->add(UserPeer::CREDIT, $this->credit);\n\t\tif ($this->isColumnModified(UserPeer::INVISIBLE)) $criteria->add(UserPeer::INVISIBLE, $this->invisible);\n\t\tif ($this->isColumnModified(UserPeer::NOTIFICATION)) $criteria->add(UserPeer::NOTIFICATION, $this->notification);\n\t\tif ($this->isColumnModified(UserPeer::PHONE_NUMBER)) $criteria->add(UserPeer::PHONE_NUMBER, $this->phone_number);\n\t\tif ($this->isColumnModified(UserPeer::LOGIN)) $criteria->add(UserPeer::LOGIN, $this->login);\n\t\tif ($this->isColumnModified(UserPeer::CREDIT_CARD)) $criteria->add(UserPeer::CREDIT_CARD, $this->credit_card);\n\t\tif ($this->isColumnModified(UserPeer::CREDIT_CARD_TOKEN)) $criteria->add(UserPeer::CREDIT_CARD_TOKEN, $this->credit_card_token);\n\t\tif ($this->isColumnModified(UserPeer::FIRST_CHARGE)) $criteria->add(UserPeer::FIRST_CHARGE, $this->first_charge);\n\t\tif ($this->isColumnModified(UserPeer::WHERE_FIND_US)) $criteria->add(UserPeer::WHERE_FIND_US, $this->where_find_us);\n\n\t\treturn $criteria;\n\t}",
"public function buildCriteria()\n\t{\n\t\t$criteria = new Criteria(MmPeer::DATABASE_NAME);\n\n\t\tif ($this->isColumnModified(MmPeer::ID)) $criteria->add(MmPeer::ID, $this->id);\n\t\tif ($this->isColumnModified(MmPeer::SUBSERIAL)) $criteria->add(MmPeer::SUBSERIAL, $this->subserial);\n\t\tif ($this->isColumnModified(MmPeer::ANNOUNCE)) $criteria->add(MmPeer::ANNOUNCE, $this->announce);\n\t\tif ($this->isColumnModified(MmPeer::MAIL)) $criteria->add(MmPeer::MAIL, $this->mail);\n\t\tif ($this->isColumnModified(MmPeer::SERIAL_ID)) $criteria->add(MmPeer::SERIAL_ID, $this->serial_id);\n\t\tif ($this->isColumnModified(MmPeer::RANK)) $criteria->add(MmPeer::RANK, $this->rank);\n\t\tif ($this->isColumnModified(MmPeer::PRECINCT_ID)) $criteria->add(MmPeer::PRECINCT_ID, $this->precinct_id);\n\t\tif ($this->isColumnModified(MmPeer::GENRE_ID)) $criteria->add(MmPeer::GENRE_ID, $this->genre_id);\n\t\tif ($this->isColumnModified(MmPeer::BROADCAST_ID)) $criteria->add(MmPeer::BROADCAST_ID, $this->broadcast_id);\n\t\tif ($this->isColumnModified(MmPeer::COPYRIGHT)) $criteria->add(MmPeer::COPYRIGHT, $this->copyright);\n\t\tif ($this->isColumnModified(MmPeer::STATUS_ID)) $criteria->add(MmPeer::STATUS_ID, $this->status_id);\n\t\tif ($this->isColumnModified(MmPeer::RECORDDATE)) $criteria->add(MmPeer::RECORDDATE, $this->recorddate);\n\t\tif ($this->isColumnModified(MmPeer::PUBLICDATE)) $criteria->add(MmPeer::PUBLICDATE, $this->publicdate);\n\t\tif ($this->isColumnModified(MmPeer::EDITORIAL1)) $criteria->add(MmPeer::EDITORIAL1, $this->editorial1);\n\t\tif ($this->isColumnModified(MmPeer::EDITORIAL2)) $criteria->add(MmPeer::EDITORIAL2, $this->editorial2);\n\t\tif ($this->isColumnModified(MmPeer::EDITORIAL3)) $criteria->add(MmPeer::EDITORIAL3, $this->editorial3);\n\t\tif ($this->isColumnModified(MmPeer::AUDIO)) $criteria->add(MmPeer::AUDIO, $this->audio);\n\t\tif ($this->isColumnModified(MmPeer::DURATION)) $criteria->add(MmPeer::DURATION, $this->duration);\n\t\tif ($this->isColumnModified(MmPeer::NUM_VIEW)) $criteria->add(MmPeer::NUM_VIEW, $this->num_view);\n\t\tif ($this->isColumnModified(MmPeer::COMMENTS)) $criteria->add(MmPeer::COMMENTS, $this->comments);\n\n\t\treturn $criteria;\n\t}",
"public function buildCriteria()\n {\n $criteria = new Criteria(MontacargasPeer::DATABASE_NAME);\n\n if ($this->isColumnModified(MontacargasPeer::IDMONTACARGAS)) $criteria->add(MontacargasPeer::IDMONTACARGAS, $this->idmontacargas);\n if ($this->isColumnModified(MontacargasPeer::IDSUCURSAL)) $criteria->add(MontacargasPeer::IDSUCURSAL, $this->idsucursal);\n if ($this->isColumnModified(MontacargasPeer::MONTACARGAS_MODELO)) $criteria->add(MontacargasPeer::MONTACARGAS_MODELO, $this->montacargas_modelo);\n if ($this->isColumnModified(MontacargasPeer::MONTACARGAS_MARCA)) $criteria->add(MontacargasPeer::MONTACARGAS_MARCA, $this->montacargas_marca);\n if ($this->isColumnModified(MontacargasPeer::MONTACARGAS_C)) $criteria->add(MontacargasPeer::MONTACARGAS_C, $this->montacargas_c);\n if ($this->isColumnModified(MontacargasPeer::MONTACARGAS_K)) $criteria->add(MontacargasPeer::MONTACARGAS_K, $this->montacargas_k);\n if ($this->isColumnModified(MontacargasPeer::MONTACARGAS_P)) $criteria->add(MontacargasPeer::MONTACARGAS_P, $this->montacargas_p);\n if ($this->isColumnModified(MontacargasPeer::MONTACARGAS_T)) $criteria->add(MontacargasPeer::MONTACARGAS_T, $this->montacargas_t);\n if ($this->isColumnModified(MontacargasPeer::MONTACARGAS_E)) $criteria->add(MontacargasPeer::MONTACARGAS_E, $this->montacargas_e);\n if ($this->isColumnModified(MontacargasPeer::MONTACARGAS_VOLTS)) $criteria->add(MontacargasPeer::MONTACARGAS_VOLTS, $this->montacargas_volts);\n if ($this->isColumnModified(MontacargasPeer::MONTACARGAS_AMPERAJE)) $criteria->add(MontacargasPeer::MONTACARGAS_AMPERAJE, $this->montacargas_amperaje);\n if ($this->isColumnModified(MontacargasPeer::MONTACARGAS_NOMBRE)) $criteria->add(MontacargasPeer::MONTACARGAS_NOMBRE, $this->montacargas_nombre);\n if ($this->isColumnModified(MontacargasPeer::MONTACARGAS_NUMSERIE)) $criteria->add(MontacargasPeer::MONTACARGAS_NUMSERIE, $this->montacargas_numserie);\n if ($this->isColumnModified(MontacargasPeer::MONTACARGAS_COMPRADOR)) $criteria->add(MontacargasPeer::MONTACARGAS_COMPRADOR, $this->montacargas_comprador);\n if ($this->isColumnModified(MontacargasPeer::MONTACARGAS_CICLOSMANT)) $criteria->add(MontacargasPeer::MONTACARGAS_CICLOSMANT, $this->montacargas_ciclosmant);\n if ($this->isColumnModified(MontacargasPeer::MONTACARGAS_CICLOSINICIALES)) $criteria->add(MontacargasPeer::MONTACARGAS_CICLOSINICIALES, $this->montacargas_ciclosiniciales);\n if ($this->isColumnModified(MontacargasPeer::MONTACARGAS_BAJA)) $criteria->add(MontacargasPeer::MONTACARGAS_BAJA, $this->montacargas_baja);\n\n return $criteria;\n }",
"public function buildCriteria()\n {\n $criteria = new Criteria(BangunanPeer::DATABASE_NAME);\n\n if ($this->isColumnModified(BangunanPeer::ID_BANGUNAN)) $criteria->add(BangunanPeer::ID_BANGUNAN, $this->id_bangunan);\n if ($this->isColumnModified(BangunanPeer::JENIS_PRASARANA_ID)) $criteria->add(BangunanPeer::JENIS_PRASARANA_ID, $this->jenis_prasarana_id);\n if ($this->isColumnModified(BangunanPeer::SEKOLAH_ID)) $criteria->add(BangunanPeer::SEKOLAH_ID, $this->sekolah_id);\n if ($this->isColumnModified(BangunanPeer::ID_TANAH)) $criteria->add(BangunanPeer::ID_TANAH, $this->id_tanah);\n if ($this->isColumnModified(BangunanPeer::PTK_ID)) $criteria->add(BangunanPeer::PTK_ID, $this->ptk_id);\n if ($this->isColumnModified(BangunanPeer::ID_HAPUS_BUKU)) $criteria->add(BangunanPeer::ID_HAPUS_BUKU, $this->id_hapus_buku);\n if ($this->isColumnModified(BangunanPeer::KEPEMILIKAN_SARPRAS_ID)) $criteria->add(BangunanPeer::KEPEMILIKAN_SARPRAS_ID, $this->kepemilikan_sarpras_id);\n if ($this->isColumnModified(BangunanPeer::KD_KL)) $criteria->add(BangunanPeer::KD_KL, $this->kd_kl);\n if ($this->isColumnModified(BangunanPeer::KD_SATKER)) $criteria->add(BangunanPeer::KD_SATKER, $this->kd_satker);\n if ($this->isColumnModified(BangunanPeer::KD_BRG)) $criteria->add(BangunanPeer::KD_BRG, $this->kd_brg);\n if ($this->isColumnModified(BangunanPeer::NUP)) $criteria->add(BangunanPeer::NUP, $this->nup);\n if ($this->isColumnModified(BangunanPeer::KODE_ESELON1)) $criteria->add(BangunanPeer::KODE_ESELON1, $this->kode_eselon1);\n if ($this->isColumnModified(BangunanPeer::NAMA_ESELON1)) $criteria->add(BangunanPeer::NAMA_ESELON1, $this->nama_eselon1);\n if ($this->isColumnModified(BangunanPeer::KODE_SUB_SATKER)) $criteria->add(BangunanPeer::KODE_SUB_SATKER, $this->kode_sub_satker);\n if ($this->isColumnModified(BangunanPeer::NAMA_SUB_SATKER)) $criteria->add(BangunanPeer::NAMA_SUB_SATKER, $this->nama_sub_satker);\n if ($this->isColumnModified(BangunanPeer::NAMA)) $criteria->add(BangunanPeer::NAMA, $this->nama);\n if ($this->isColumnModified(BangunanPeer::PANJANG)) $criteria->add(BangunanPeer::PANJANG, $this->panjang);\n if ($this->isColumnModified(BangunanPeer::LEBAR)) $criteria->add(BangunanPeer::LEBAR, $this->lebar);\n if ($this->isColumnModified(BangunanPeer::NILAI_PEROLEHAN_ASET)) $criteria->add(BangunanPeer::NILAI_PEROLEHAN_ASET, $this->nilai_perolehan_aset);\n if ($this->isColumnModified(BangunanPeer::JML_LANTAI)) $criteria->add(BangunanPeer::JML_LANTAI, $this->jml_lantai);\n if ($this->isColumnModified(BangunanPeer::THN_DIBANGUN)) $criteria->add(BangunanPeer::THN_DIBANGUN, $this->thn_dibangun);\n if ($this->isColumnModified(BangunanPeer::LUAS_TAPAK_BANGUNAN)) $criteria->add(BangunanPeer::LUAS_TAPAK_BANGUNAN, $this->luas_tapak_bangunan);\n if ($this->isColumnModified(BangunanPeer::VOL_PONDASI_M3)) $criteria->add(BangunanPeer::VOL_PONDASI_M3, $this->vol_pondasi_m3);\n if ($this->isColumnModified(BangunanPeer::VOL_SLOOP_KOLOM_BALOK_M3)) $criteria->add(BangunanPeer::VOL_SLOOP_KOLOM_BALOK_M3, $this->vol_sloop_kolom_balok_m3);\n if ($this->isColumnModified(BangunanPeer::PANJ_KUDAKUDA_M)) $criteria->add(BangunanPeer::PANJ_KUDAKUDA_M, $this->panj_kudakuda_m);\n if ($this->isColumnModified(BangunanPeer::VOL_KUDAKUDA_M3)) $criteria->add(BangunanPeer::VOL_KUDAKUDA_M3, $this->vol_kudakuda_m3);\n if ($this->isColumnModified(BangunanPeer::PANJ_KASO_M)) $criteria->add(BangunanPeer::PANJ_KASO_M, $this->panj_kaso_m);\n if ($this->isColumnModified(BangunanPeer::PANJ_RENG_M)) $criteria->add(BangunanPeer::PANJ_RENG_M, $this->panj_reng_m);\n if ($this->isColumnModified(BangunanPeer::LUAS_TUTUP_ATAP_M2)) $criteria->add(BangunanPeer::LUAS_TUTUP_ATAP_M2, $this->luas_tutup_atap_m2);\n if ($this->isColumnModified(BangunanPeer::KD_SATKER_TANAH)) $criteria->add(BangunanPeer::KD_SATKER_TANAH, $this->kd_satker_tanah);\n if ($this->isColumnModified(BangunanPeer::NM_SATKER_TANAH)) $criteria->add(BangunanPeer::NM_SATKER_TANAH, $this->nm_satker_tanah);\n if ($this->isColumnModified(BangunanPeer::KD_BRG_TANAH)) $criteria->add(BangunanPeer::KD_BRG_TANAH, $this->kd_brg_tanah);\n if ($this->isColumnModified(BangunanPeer::NM_BRG_TANAH)) $criteria->add(BangunanPeer::NM_BRG_TANAH, $this->nm_brg_tanah);\n if ($this->isColumnModified(BangunanPeer::NUP_BRG_TANAH)) $criteria->add(BangunanPeer::NUP_BRG_TANAH, $this->nup_brg_tanah);\n if ($this->isColumnModified(BangunanPeer::TGL_SK_PEMAKAI)) $criteria->add(BangunanPeer::TGL_SK_PEMAKAI, $this->tgl_sk_pemakai);\n if ($this->isColumnModified(BangunanPeer::TGL_HAPUS_BUKU)) $criteria->add(BangunanPeer::TGL_HAPUS_BUKU, $this->tgl_hapus_buku);\n if ($this->isColumnModified(BangunanPeer::KET_BANGUNAN)) $criteria->add(BangunanPeer::KET_BANGUNAN, $this->ket_bangunan);\n if ($this->isColumnModified(BangunanPeer::ASAL_DATA)) $criteria->add(BangunanPeer::ASAL_DATA, $this->asal_data);\n if ($this->isColumnModified(BangunanPeer::CREATE_DATE)) $criteria->add(BangunanPeer::CREATE_DATE, $this->create_date);\n if ($this->isColumnModified(BangunanPeer::LAST_UPDATE)) $criteria->add(BangunanPeer::LAST_UPDATE, $this->last_update);\n if ($this->isColumnModified(BangunanPeer::SOFT_DELETE)) $criteria->add(BangunanPeer::SOFT_DELETE, $this->soft_delete);\n if ($this->isColumnModified(BangunanPeer::LAST_SYNC)) $criteria->add(BangunanPeer::LAST_SYNC, $this->last_sync);\n if ($this->isColumnModified(BangunanPeer::UPDATER_ID)) $criteria->add(BangunanPeer::UPDATER_ID, $this->updater_id);\n\n return $criteria;\n }",
"public function buildCriteria()\n {\n $criteria = new Criteria(IssuesTableMap::DATABASE_NAME);\n\n if ($this->isColumnModified(IssuesTableMap::COL_ID)) {\n $criteria->add(IssuesTableMap::COL_ID, $this->id);\n }\n if ($this->isColumnModified(IssuesTableMap::COL__NAME)) {\n $criteria->add(IssuesTableMap::COL__NAME, $this->_name);\n }\n if ($this->isColumnModified(IssuesTableMap::COL__OPENDATE)) {\n $criteria->add(IssuesTableMap::COL__OPENDATE, $this->_opendate);\n }\n if ($this->isColumnModified(IssuesTableMap::COL__CLOSEDATE)) {\n $criteria->add(IssuesTableMap::COL__CLOSEDATE, $this->_closedate);\n }\n if ($this->isColumnModified(IssuesTableMap::COL__STATUS)) {\n $criteria->add(IssuesTableMap::COL__STATUS, $this->_status);\n }\n if ($this->isColumnModified(IssuesTableMap::COL__INFOTEXT)) {\n $criteria->add(IssuesTableMap::COL__INFOTEXT, $this->_infotext);\n }\n if ($this->isColumnModified(IssuesTableMap::COL__FORBOOK)) {\n $criteria->add(IssuesTableMap::COL__FORBOOK, $this->_forbook);\n }\n if ($this->isColumnModified(IssuesTableMap::COL___USER__)) {\n $criteria->add(IssuesTableMap::COL___USER__, $this->__user__);\n }\n if ($this->isColumnModified(IssuesTableMap::COL___CONFIG__)) {\n $criteria->add(IssuesTableMap::COL___CONFIG__, $this->__config__);\n }\n if ($this->isColumnModified(IssuesTableMap::COL___SPLIT__)) {\n $criteria->add(IssuesTableMap::COL___SPLIT__, $this->__split__);\n }\n if ($this->isColumnModified(IssuesTableMap::COL___PARENTNODE__)) {\n $criteria->add(IssuesTableMap::COL___PARENTNODE__, $this->__parentnode__);\n }\n if ($this->isColumnModified(IssuesTableMap::COL___SORT__)) {\n $criteria->add(IssuesTableMap::COL___SORT__, $this->__sort__);\n }\n\n return $criteria;\n }",
"public function buildCriteria()\n\t{\n\t\t$criteria = new Criteria(UsuarioPeer::DATABASE_NAME);\n\n\t\tif ($this->isColumnModified(UsuarioPeer::ID)) $criteria->add(UsuarioPeer::ID, $this->id);\n\t\tif ($this->isColumnModified(UsuarioPeer::PERFIL_ID)) $criteria->add(UsuarioPeer::PERFIL_ID, $this->perfil_id);\n\t\tif ($this->isColumnModified(UsuarioPeer::ENDERECO_ID)) $criteria->add(UsuarioPeer::ENDERECO_ID, $this->endereco_id);\n\t\tif ($this->isColumnModified(UsuarioPeer::CARGO_ID)) $criteria->add(UsuarioPeer::CARGO_ID, $this->cargo_id);\n\t\tif ($this->isColumnModified(UsuarioPeer::DEPARTAMENTO_ID)) $criteria->add(UsuarioPeer::DEPARTAMENTO_ID, $this->departamento_id);\n\t\tif ($this->isColumnModified(UsuarioPeer::MATRICULA)) $criteria->add(UsuarioPeer::MATRICULA, $this->matricula);\n\t\tif ($this->isColumnModified(UsuarioPeer::NOME)) $criteria->add(UsuarioPeer::NOME, $this->nome);\n\t\tif ($this->isColumnModified(UsuarioPeer::EMAIL)) $criteria->add(UsuarioPeer::EMAIL, $this->email);\n\t\tif ($this->isColumnModified(UsuarioPeer::DNI)) $criteria->add(UsuarioPeer::DNI, $this->dni);\n\t\tif ($this->isColumnModified(UsuarioPeer::DATA_NASCIMENTO)) $criteria->add(UsuarioPeer::DATA_NASCIMENTO, $this->data_nascimento);\n\t\tif ($this->isColumnModified(UsuarioPeer::DATA_CONTRATACAO)) $criteria->add(UsuarioPeer::DATA_CONTRATACAO, $this->data_contratacao);\n\t\tif ($this->isColumnModified(UsuarioPeer::CELULAR)) $criteria->add(UsuarioPeer::CELULAR, $this->celular);\n\t\tif ($this->isColumnModified(UsuarioPeer::TELEFONE)) $criteria->add(UsuarioPeer::TELEFONE, $this->telefone);\n\t\tif ($this->isColumnModified(UsuarioPeer::TOKEN)) $criteria->add(UsuarioPeer::TOKEN, $this->token);\n\t\tif ($this->isColumnModified(UsuarioPeer::NOME_USUARIO)) $criteria->add(UsuarioPeer::NOME_USUARIO, $this->nome_usuario);\n\t\tif ($this->isColumnModified(UsuarioPeer::SENHA)) $criteria->add(UsuarioPeer::SENHA, $this->senha);\n\t\tif ($this->isColumnModified(UsuarioPeer::TOKEN_SENHA)) $criteria->add(UsuarioPeer::TOKEN_SENHA, $this->token_senha);\n\t\tif ($this->isColumnModified(UsuarioPeer::TOKEN_FIREBASE)) $criteria->add(UsuarioPeer::TOKEN_FIREBASE, $this->token_firebase);\n\t\tif ($this->isColumnModified(UsuarioPeer::DATA_RESCISAO)) $criteria->add(UsuarioPeer::DATA_RESCISAO, $this->data_rescisao);\n\t\tif ($this->isColumnModified(UsuarioPeer::ATIVO)) $criteria->add(UsuarioPeer::ATIVO, $this->ativo);\n\t\tif ($this->isColumnModified(UsuarioPeer::TIPO_ACESSO)) $criteria->add(UsuarioPeer::TIPO_ACESSO, $this->tipo_acesso);\n\t\tif ($this->isColumnModified(UsuarioPeer::ESTADO_CIVIL)) $criteria->add(UsuarioPeer::ESTADO_CIVIL, $this->estado_civil);\n\t\tif ($this->isColumnModified(UsuarioPeer::NIVEL_ACESSO)) $criteria->add(UsuarioPeer::NIVEL_ACESSO, $this->nivel_acesso);\n\t\tif ($this->isColumnModified(UsuarioPeer::USUARIO_VALIDADO)) $criteria->add(UsuarioPeer::USUARIO_VALIDADO, $this->usuario_validado);\n\t\tif ($this->isColumnModified(UsuarioPeer::SEXO)) $criteria->add(UsuarioPeer::SEXO, $this->sexo);\n\t\tif ($this->isColumnModified(UsuarioPeer::DATA_CADASTRO)) $criteria->add(UsuarioPeer::DATA_CADASTRO, $this->data_cadastro);\n\n\t\treturn $criteria;\n\t}",
"public function buildCriteria()\n {\n $criteria = new Criteria(PhoneBookTableMap::DATABASE_NAME);\n\n if ($this->isColumnModified(PhoneBookTableMap::COL_PHADTYPE)) {\n $criteria->add(PhoneBookTableMap::COL_PHADTYPE, $this->phadtype);\n }\n if ($this->isColumnModified(PhoneBookTableMap::COL_PHADID)) {\n $criteria->add(PhoneBookTableMap::COL_PHADID, $this->phadid);\n }\n if ($this->isColumnModified(PhoneBookTableMap::COL_PHADSUBID)) {\n $criteria->add(PhoneBookTableMap::COL_PHADSUBID, $this->phadsubid);\n }\n if ($this->isColumnModified(PhoneBookTableMap::COL_PHADSUBIDSEQ)) {\n $criteria->add(PhoneBookTableMap::COL_PHADSUBIDSEQ, $this->phadsubidseq);\n }\n if ($this->isColumnModified(PhoneBookTableMap::COL_PHADCONT)) {\n $criteria->add(PhoneBookTableMap::COL_PHADCONT, $this->phadcont);\n }\n if ($this->isColumnModified(PhoneBookTableMap::COL_PHADINTL)) {\n $criteria->add(PhoneBookTableMap::COL_PHADINTL, $this->phadintl);\n }\n if ($this->isColumnModified(PhoneBookTableMap::COL_PHADTELENBR)) {\n $criteria->add(PhoneBookTableMap::COL_PHADTELENBR, $this->phadtelenbr);\n }\n if ($this->isColumnModified(PhoneBookTableMap::COL_PHADTELEEXT)) {\n $criteria->add(PhoneBookTableMap::COL_PHADTELEEXT, $this->phadteleext);\n }\n if ($this->isColumnModified(PhoneBookTableMap::COL_PHADINTLNBR)) {\n $criteria->add(PhoneBookTableMap::COL_PHADINTLNBR, $this->phadintlnbr);\n }\n if ($this->isColumnModified(PhoneBookTableMap::COL_PHADINTLEXT)) {\n $criteria->add(PhoneBookTableMap::COL_PHADINTLEXT, $this->phadintlext);\n }\n if ($this->isColumnModified(PhoneBookTableMap::COL_PHADFAXNBR)) {\n $criteria->add(PhoneBookTableMap::COL_PHADFAXNBR, $this->phadfaxnbr);\n }\n if ($this->isColumnModified(PhoneBookTableMap::COL_PHADIFAXNBR)) {\n $criteria->add(PhoneBookTableMap::COL_PHADIFAXNBR, $this->phadifaxnbr);\n }\n if ($this->isColumnModified(PhoneBookTableMap::COL_PHADCELLNBR)) {\n $criteria->add(PhoneBookTableMap::COL_PHADCELLNBR, $this->phadcellnbr);\n }\n if ($this->isColumnModified(PhoneBookTableMap::COL_PHADICELLNBR)) {\n $criteria->add(PhoneBookTableMap::COL_PHADICELLNBR, $this->phadicellnbr);\n }\n if ($this->isColumnModified(PhoneBookTableMap::COL_PHADHOMENBR)) {\n $criteria->add(PhoneBookTableMap::COL_PHADHOMENBR, $this->phadhomenbr);\n }\n if ($this->isColumnModified(PhoneBookTableMap::COL_PHADIHOMENBR)) {\n $criteria->add(PhoneBookTableMap::COL_PHADIHOMENBR, $this->phadihomenbr);\n }\n if ($this->isColumnModified(PhoneBookTableMap::COL_PHADWEBADDR)) {\n $criteria->add(PhoneBookTableMap::COL_PHADWEBADDR, $this->phadwebaddr);\n }\n if ($this->isColumnModified(PhoneBookTableMap::COL_PHADEMAILADDR)) {\n $criteria->add(PhoneBookTableMap::COL_PHADEMAILADDR, $this->phademailaddr);\n }\n if ($this->isColumnModified(PhoneBookTableMap::COL_PHADNAME)) {\n $criteria->add(PhoneBookTableMap::COL_PHADNAME, $this->phadname);\n }\n if ($this->isColumnModified(PhoneBookTableMap::COL_PHADCONTNAME)) {\n $criteria->add(PhoneBookTableMap::COL_PHADCONTNAME, $this->phadcontname);\n }\n if ($this->isColumnModified(PhoneBookTableMap::COL_DATEUPDTD)) {\n $criteria->add(PhoneBookTableMap::COL_DATEUPDTD, $this->dateupdtd);\n }\n if ($this->isColumnModified(PhoneBookTableMap::COL_TIMEUPDTD)) {\n $criteria->add(PhoneBookTableMap::COL_TIMEUPDTD, $this->timeupdtd);\n }\n if ($this->isColumnModified(PhoneBookTableMap::COL_DUMMY)) {\n $criteria->add(PhoneBookTableMap::COL_DUMMY, $this->dummy);\n }\n\n return $criteria;\n }",
"public function buildCriteria()\n {\n $criteria = new Criteria(SekolahPaudPeer::DATABASE_NAME);\n\n if ($this->isColumnModified(SekolahPaudPeer::SEKOLAH_ID)) $criteria->add(SekolahPaudPeer::SEKOLAH_ID, $this->sekolah_id);\n if ($this->isColumnModified(SekolahPaudPeer::KATEGORI_TK_ID)) $criteria->add(SekolahPaudPeer::KATEGORI_TK_ID, $this->kategori_tk_id);\n if ($this->isColumnModified(SekolahPaudPeer::KLASIFIKASI_LEMBAGA_ID)) $criteria->add(SekolahPaudPeer::KLASIFIKASI_LEMBAGA_ID, $this->klasifikasi_lembaga_id);\n if ($this->isColumnModified(SekolahPaudPeer::SUMBER_DANA_SEKOLAH_ID)) $criteria->add(SekolahPaudPeer::SUMBER_DANA_SEKOLAH_ID, $this->sumber_dana_sekolah_id);\n if ($this->isColumnModified(SekolahPaudPeer::FASILITAS_LAYANAN_ID)) $criteria->add(SekolahPaudPeer::FASILITAS_LAYANAN_ID, $this->fasilitas_layanan_id);\n if ($this->isColumnModified(SekolahPaudPeer::JADWAL_PMTAS)) $criteria->add(SekolahPaudPeer::JADWAL_PMTAS, $this->jadwal_pmtas);\n if ($this->isColumnModified(SekolahPaudPeer::LEMBAGA_PENGANGKAT_ID)) $criteria->add(SekolahPaudPeer::LEMBAGA_PENGANGKAT_ID, $this->lembaga_pengangkat_id);\n if ($this->isColumnModified(SekolahPaudPeer::JADWAL_DDTK)) $criteria->add(SekolahPaudPeer::JADWAL_DDTK, $this->jadwal_ddtk);\n if ($this->isColumnModified(SekolahPaudPeer::FREQ_PARENTING)) $criteria->add(SekolahPaudPeer::FREQ_PARENTING, $this->freq_parenting);\n if ($this->isColumnModified(SekolahPaudPeer::BENTUK_LEMBAGA_ID)) $criteria->add(SekolahPaudPeer::BENTUK_LEMBAGA_ID, $this->bentuk_lembaga_id);\n if ($this->isColumnModified(SekolahPaudPeer::JADWAL_KESEHATAN)) $criteria->add(SekolahPaudPeer::JADWAL_KESEHATAN, $this->jadwal_kesehatan);\n if ($this->isColumnModified(SekolahPaudPeer::IZIN_PAUD)) $criteria->add(SekolahPaudPeer::IZIN_PAUD, $this->izin_paud);\n if ($this->isColumnModified(SekolahPaudPeer::PENCATATAN_DDTK)) $criteria->add(SekolahPaudPeer::PENCATATAN_DDTK, $this->pencatatan_ddtk);\n if ($this->isColumnModified(SekolahPaudPeer::RUJUKAN_DDTK)) $criteria->add(SekolahPaudPeer::RUJUKAN_DDTK, $this->rujukan_ddtk);\n if ($this->isColumnModified(SekolahPaudPeer::PELAKSANAAN_PARENTING)) $criteria->add(SekolahPaudPeer::PELAKSANAAN_PARENTING, $this->pelaksanaan_parenting);\n if ($this->isColumnModified(SekolahPaudPeer::PARENTING_KPO)) $criteria->add(SekolahPaudPeer::PARENTING_KPO, $this->parenting_kpo);\n if ($this->isColumnModified(SekolahPaudPeer::PARENTING_KELAS)) $criteria->add(SekolahPaudPeer::PARENTING_KELAS, $this->parenting_kelas);\n if ($this->isColumnModified(SekolahPaudPeer::PARENTING_KEGIATAN)) $criteria->add(SekolahPaudPeer::PARENTING_KEGIATAN, $this->parenting_kegiatan);\n if ($this->isColumnModified(SekolahPaudPeer::PARENTING_KONSULTASI)) $criteria->add(SekolahPaudPeer::PARENTING_KONSULTASI, $this->parenting_konsultasi);\n if ($this->isColumnModified(SekolahPaudPeer::PARENTING_KUNJUNGAN)) $criteria->add(SekolahPaudPeer::PARENTING_KUNJUNGAN, $this->parenting_kunjungan);\n if ($this->isColumnModified(SekolahPaudPeer::PARENTING_LAINNYA)) $criteria->add(SekolahPaudPeer::PARENTING_LAINNYA, $this->parenting_lainnya);\n if ($this->isColumnModified(SekolahPaudPeer::NILK)) $criteria->add(SekolahPaudPeer::NILK, $this->nilk);\n if ($this->isColumnModified(SekolahPaudPeer::NILM)) $criteria->add(SekolahPaudPeer::NILM, $this->nilm);\n if ($this->isColumnModified(SekolahPaudPeer::NO_PENETAPAN_PNF)) $criteria->add(SekolahPaudPeer::NO_PENETAPAN_PNF, $this->no_penetapan_pnf);\n if ($this->isColumnModified(SekolahPaudPeer::TANGGAL_PENETAPAN_PNF)) $criteria->add(SekolahPaudPeer::TANGGAL_PENETAPAN_PNF, $this->tanggal_penetapan_pnf);\n if ($this->isColumnModified(SekolahPaudPeer::CREATE_DATE)) $criteria->add(SekolahPaudPeer::CREATE_DATE, $this->create_date);\n if ($this->isColumnModified(SekolahPaudPeer::LAST_UPDATE)) $criteria->add(SekolahPaudPeer::LAST_UPDATE, $this->last_update);\n if ($this->isColumnModified(SekolahPaudPeer::SOFT_DELETE)) $criteria->add(SekolahPaudPeer::SOFT_DELETE, $this->soft_delete);\n if ($this->isColumnModified(SekolahPaudPeer::LAST_SYNC)) $criteria->add(SekolahPaudPeer::LAST_SYNC, $this->last_sync);\n if ($this->isColumnModified(SekolahPaudPeer::UPDATER_ID)) $criteria->add(SekolahPaudPeer::UPDATER_ID, $this->updater_id);\n\n return $criteria;\n }",
"public function buildCriteria()\n {\n $criteria = new Criteria(KluBillTableMap::DATABASE_NAME);\n\n if ($this->isColumnModified(KluBillTableMap::COL_ID)) {\n $criteria->add(KluBillTableMap::COL_ID, $this->id);\n }\n if ($this->isColumnModified(KluBillTableMap::COL_REF_NO)) {\n $criteria->add(KluBillTableMap::COL_REF_NO, $this->ref_no);\n }\n if ($this->isColumnModified(KluBillTableMap::COL_UNIQUEKEYID)) {\n $criteria->add(KluBillTableMap::COL_UNIQUEKEYID, $this->uniquekeyid);\n }\n if ($this->isColumnModified(KluBillTableMap::COL_CUSTOMER_ID)) {\n $criteria->add(KluBillTableMap::COL_CUSTOMER_ID, $this->customer_id);\n }\n if ($this->isColumnModified(KluBillTableMap::COL_ACCOUNT_NO)) {\n $criteria->add(KluBillTableMap::COL_ACCOUNT_NO, $this->account_no);\n }\n if ($this->isColumnModified(KluBillTableMap::COL_SERVICE_TYPE)) {\n $criteria->add(KluBillTableMap::COL_SERVICE_TYPE, $this->service_type);\n }\n if ($this->isColumnModified(KluBillTableMap::COL_SERVICE_DISTRICT_ID)) {\n $criteria->add(KluBillTableMap::COL_SERVICE_DISTRICT_ID, $this->service_district_id);\n }\n if ($this->isColumnModified(KluBillTableMap::COL_BILLING_CYCLE)) {\n $criteria->add(KluBillTableMap::COL_BILLING_CYCLE, $this->billing_cycle);\n }\n if ($this->isColumnModified(KluBillTableMap::COL_DUE_DATE)) {\n $criteria->add(KluBillTableMap::COL_DUE_DATE, $this->due_date);\n }\n if ($this->isColumnModified(KluBillTableMap::COL_BILLING_FROM)) {\n $criteria->add(KluBillTableMap::COL_BILLING_FROM, $this->billing_from);\n }\n if ($this->isColumnModified(KluBillTableMap::COL_BILLING_TO)) {\n $criteria->add(KluBillTableMap::COL_BILLING_TO, $this->billing_to);\n }\n if ($this->isColumnModified(KluBillTableMap::COL_BILL_DATE)) {\n $criteria->add(KluBillTableMap::COL_BILL_DATE, $this->bill_date);\n }\n if ($this->isColumnModified(KluBillTableMap::COL_RATE)) {\n $criteria->add(KluBillTableMap::COL_RATE, $this->rate);\n }\n if ($this->isColumnModified(KluBillTableMap::COL_METERNUMBER)) {\n $criteria->add(KluBillTableMap::COL_METERNUMBER, $this->meternumber);\n }\n if ($this->isColumnModified(KluBillTableMap::COL_BILLINGMETHOD)) {\n $criteria->add(KluBillTableMap::COL_BILLINGMETHOD, $this->billingmethod);\n }\n if ($this->isColumnModified(KluBillTableMap::COL_DATEOFLASTREADING)) {\n $criteria->add(KluBillTableMap::COL_DATEOFLASTREADING, $this->dateoflastreading);\n }\n if ($this->isColumnModified(KluBillTableMap::COL_DATEOFCURRENTREADING)) {\n $criteria->add(KluBillTableMap::COL_DATEOFCURRENTREADING, $this->dateofcurrentreading);\n }\n if ($this->isColumnModified(KluBillTableMap::COL_DAYSUSAGE)) {\n $criteria->add(KluBillTableMap::COL_DAYSUSAGE, $this->daysusage);\n }\n if ($this->isColumnModified(KluBillTableMap::COL_LASTMETERREADING)) {\n $criteria->add(KluBillTableMap::COL_LASTMETERREADING, $this->lastmeterreading);\n }\n if ($this->isColumnModified(KluBillTableMap::COL_CURRENTMETERREADING)) {\n $criteria->add(KluBillTableMap::COL_CURRENTMETERREADING, $this->currentmeterreading);\n }\n if ($this->isColumnModified(KluBillTableMap::COL_UNITSCONSUMED)) {\n $criteria->add(KluBillTableMap::COL_UNITSCONSUMED, $this->unitsconsumed);\n }\n if ($this->isColumnModified(KluBillTableMap::COL_LASTPAYMENTAMOUNT)) {\n $criteria->add(KluBillTableMap::COL_LASTPAYMENTAMOUNT, $this->lastpaymentamount);\n }\n if ($this->isColumnModified(KluBillTableMap::COL_LASTPAYMENTDATE)) {\n $criteria->add(KluBillTableMap::COL_LASTPAYMENTDATE, $this->lastpaymentdate);\n }\n if ($this->isColumnModified(KluBillTableMap::COL_METERMAINTENANCECHARGE)) {\n $criteria->add(KluBillTableMap::COL_METERMAINTENANCECHARGE, $this->metermaintenancecharge);\n }\n if ($this->isColumnModified(KluBillTableMap::COL_DISCOUNTS)) {\n $criteria->add(KluBillTableMap::COL_DISCOUNTS, $this->discounts);\n }\n if ($this->isColumnModified(KluBillTableMap::COL_OTHERCHARGES)) {\n $criteria->add(KluBillTableMap::COL_OTHERCHARGES, $this->othercharges);\n }\n if ($this->isColumnModified(KluBillTableMap::COL_PENALTYCHARGES)) {\n $criteria->add(KluBillTableMap::COL_PENALTYCHARGES, $this->penaltycharges);\n }\n if ($this->isColumnModified(KluBillTableMap::COL_TAXCHARGES)) {\n $criteria->add(KluBillTableMap::COL_TAXCHARGES, $this->taxcharges);\n }\n if ($this->isColumnModified(KluBillTableMap::COL_CHARGES)) {\n $criteria->add(KluBillTableMap::COL_CHARGES, $this->charges);\n }\n if ($this->isColumnModified(KluBillTableMap::COL_ROUTINECHARGES)) {\n $criteria->add(KluBillTableMap::COL_ROUTINECHARGES, $this->routinecharges);\n }\n if ($this->isColumnModified(KluBillTableMap::COL_BILLSERVICERATE)) {\n $criteria->add(KluBillTableMap::COL_BILLSERVICERATE, $this->billservicerate);\n }\n if ($this->isColumnModified(KluBillTableMap::COL_BUILDINGTYPE)) {\n $criteria->add(KluBillTableMap::COL_BUILDINGTYPE, $this->buildingtype);\n }\n if ($this->isColumnModified(KluBillTableMap::COL_ROUTE)) {\n $criteria->add(KluBillTableMap::COL_ROUTE, $this->route);\n }\n if ($this->isColumnModified(KluBillTableMap::COL_USAGETYPE)) {\n $criteria->add(KluBillTableMap::COL_USAGETYPE, $this->usagetype);\n }\n if ($this->isColumnModified(KluBillTableMap::COL_SERVICE_CHARGE)) {\n $criteria->add(KluBillTableMap::COL_SERVICE_CHARGE, $this->service_charge);\n }\n if ($this->isColumnModified(KluBillTableMap::COL_PREVIOUS_BALANCE)) {\n $criteria->add(KluBillTableMap::COL_PREVIOUS_BALANCE, $this->previous_balance);\n }\n if ($this->isColumnModified(KluBillTableMap::COL_PAYMENT_RECEIVED)) {\n $criteria->add(KluBillTableMap::COL_PAYMENT_RECEIVED, $this->payment_received);\n }\n if ($this->isColumnModified(KluBillTableMap::COL_LAST_PAYMENT_RECEIVED_DATE)) {\n $criteria->add(KluBillTableMap::COL_LAST_PAYMENT_RECEIVED_DATE, $this->last_payment_received_date);\n }\n if ($this->isColumnModified(KluBillTableMap::COL_CURRENT_CHARGE)) {\n $criteria->add(KluBillTableMap::COL_CURRENT_CHARGE, $this->current_charge);\n }\n if ($this->isColumnModified(KluBillTableMap::COL_TOTAL_DUE)) {\n $criteria->add(KluBillTableMap::COL_TOTAL_DUE, $this->total_due);\n }\n if ($this->isColumnModified(KluBillTableMap::COL_INVOICE_NO)) {\n $criteria->add(KluBillTableMap::COL_INVOICE_NO, $this->invoice_no);\n }\n if ($this->isColumnModified(KluBillTableMap::COL_RECEIPT_NO)) {\n $criteria->add(KluBillTableMap::COL_RECEIPT_NO, $this->receipt_no);\n }\n if ($this->isColumnModified(KluBillTableMap::COL_DATE_CREATED)) {\n $criteria->add(KluBillTableMap::COL_DATE_CREATED, $this->date_created);\n }\n if ($this->isColumnModified(KluBillTableMap::COL_CREATOR)) {\n $criteria->add(KluBillTableMap::COL_CREATOR, $this->creator);\n }\n if ($this->isColumnModified(KluBillTableMap::COL_STATUS)) {\n $criteria->add(KluBillTableMap::COL_STATUS, $this->status);\n }\n\n return $criteria;\n }",
"public function getModifiedArrayCopy()\n {\n $columns = array_intersect_key(\n $this->data,\n array_filter($this->modifiedDataFields)\n );\n\n return array_diff_key(\n $columns,\n array_combine(array_keys($this->relations), array_keys($this->relations))\n );\n }",
"protected function applyCriteria(){\n\n if( $this->skipCriteria === true )\n return $this;\n\n $criteria = $this->getCriteria();\n\n foreach($criteria as $c){\n if( $c instanceof Criteria ){\n $this->query = $c->apply($this->query, $this);\n }\n }\n\n return $this;\n }",
"public function buildCriteria()\n\t{\n\t\t$criteria = new Criteria(VpoRequestPeer::DATABASE_NAME);\n\n\t\tif ($this->isColumnModified(VpoRequestPeer::ID)) $criteria->add(VpoRequestPeer::ID, $this->id);\n\t\tif ($this->isColumnModified(VpoRequestPeer::HAZARDOUS_CARGO_FLAG)) $criteria->add(VpoRequestPeer::HAZARDOUS_CARGO_FLAG, $this->hazardous_cargo_flag);\n\t\tif ($this->isColumnModified(VpoRequestPeer::REQUEST_DATE)) $criteria->add(VpoRequestPeer::REQUEST_DATE, $this->request_date);\n\t\tif ($this->isColumnModified(VpoRequestPeer::REQUEST_REASON_DESC)) $criteria->add(VpoRequestPeer::REQUEST_REASON_DESC, $this->request_reason_desc);\n\t\tif ($this->isColumnModified(VpoRequestPeer::AGENCY_NAME)) $criteria->add(VpoRequestPeer::AGENCY_NAME, $this->agency_name);\n\t\tif ($this->isColumnModified(VpoRequestPeer::REQ_FIRST_NAME)) $criteria->add(VpoRequestPeer::REQ_FIRST_NAME, $this->req_first_name);\n\t\tif ($this->isColumnModified(VpoRequestPeer::REQ_LAST_NAME)) $criteria->add(VpoRequestPeer::REQ_LAST_NAME, $this->req_last_name);\n\t\tif ($this->isColumnModified(VpoRequestPeer::AGENCY_DIVISION)) $criteria->add(VpoRequestPeer::AGENCY_DIVISION, $this->agency_division);\n\t\tif ($this->isColumnModified(VpoRequestPeer::REQ_ADDRESS1)) $criteria->add(VpoRequestPeer::REQ_ADDRESS1, $this->req_address1);\n\t\tif ($this->isColumnModified(VpoRequestPeer::REQ_ADDRESS2)) $criteria->add(VpoRequestPeer::REQ_ADDRESS2, $this->req_address2);\n\t\tif ($this->isColumnModified(VpoRequestPeer::REQ_CITY)) $criteria->add(VpoRequestPeer::REQ_CITY, $this->req_city);\n\t\tif ($this->isColumnModified(VpoRequestPeer::REQ_STATE)) $criteria->add(VpoRequestPeer::REQ_STATE, $this->req_state);\n\t\tif ($this->isColumnModified(VpoRequestPeer::REQ_COUNTRY)) $criteria->add(VpoRequestPeer::REQ_COUNTRY, $this->req_country);\n\t\tif ($this->isColumnModified(VpoRequestPeer::REQ_ZIPCODE)) $criteria->add(VpoRequestPeer::REQ_ZIPCODE, $this->req_zipcode);\n\t\tif ($this->isColumnModified(VpoRequestPeer::REQ_OFFICE_PHONE)) $criteria->add(VpoRequestPeer::REQ_OFFICE_PHONE, $this->req_office_phone);\n\t\tif ($this->isColumnModified(VpoRequestPeer::REQ_OFFICE_COMMENT)) $criteria->add(VpoRequestPeer::REQ_OFFICE_COMMENT, $this->req_office_comment);\n\t\tif ($this->isColumnModified(VpoRequestPeer::REQ_MOBILE_PHONE)) $criteria->add(VpoRequestPeer::REQ_MOBILE_PHONE, $this->req_mobile_phone);\n\t\tif ($this->isColumnModified(VpoRequestPeer::REQ_MOBILE_COMMENT)) $criteria->add(VpoRequestPeer::REQ_MOBILE_COMMENT, $this->req_mobile_comment);\n\t\tif ($this->isColumnModified(VpoRequestPeer::REQ_FAX_PHONE)) $criteria->add(VpoRequestPeer::REQ_FAX_PHONE, $this->req_fax_phone);\n\t\tif ($this->isColumnModified(VpoRequestPeer::REQ_FAX_COMMENT)) $criteria->add(VpoRequestPeer::REQ_FAX_COMMENT, $this->req_fax_comment);\n\t\tif ($this->isColumnModified(VpoRequestPeer::REQ_PAGER_PHONE)) $criteria->add(VpoRequestPeer::REQ_PAGER_PHONE, $this->req_pager_phone);\n\t\tif ($this->isColumnModified(VpoRequestPeer::REQ_PAGER_COMMENT)) $criteria->add(VpoRequestPeer::REQ_PAGER_COMMENT, $this->req_pager_comment);\n\t\tif ($this->isColumnModified(VpoRequestPeer::REQ_OTHER_PHONE1)) $criteria->add(VpoRequestPeer::REQ_OTHER_PHONE1, $this->req_other_phone1);\n\t\tif ($this->isColumnModified(VpoRequestPeer::REQ_OTHER_COMMENT1)) $criteria->add(VpoRequestPeer::REQ_OTHER_COMMENT1, $this->req_other_comment1);\n\t\tif ($this->isColumnModified(VpoRequestPeer::REQ_OTHER_PHONE2)) $criteria->add(VpoRequestPeer::REQ_OTHER_PHONE2, $this->req_other_phone2);\n\t\tif ($this->isColumnModified(VpoRequestPeer::REQ_OTHER_COMMENT2)) $criteria->add(VpoRequestPeer::REQ_OTHER_COMMENT2, $this->req_other_comment2);\n\t\tif ($this->isColumnModified(VpoRequestPeer::REQ_OTHER_PHONE3)) $criteria->add(VpoRequestPeer::REQ_OTHER_PHONE3, $this->req_other_phone3);\n\t\tif ($this->isColumnModified(VpoRequestPeer::REQ_OTHER_COMMENT3)) $criteria->add(VpoRequestPeer::REQ_OTHER_COMMENT3, $this->req_other_comment3);\n\t\tif ($this->isColumnModified(VpoRequestPeer::REQ_EMAIL)) $criteria->add(VpoRequestPeer::REQ_EMAIL, $this->req_email);\n\t\tif ($this->isColumnModified(VpoRequestPeer::REQ_ALT_EMAIL)) $criteria->add(VpoRequestPeer::REQ_ALT_EMAIL, $this->req_alt_email);\n\t\tif ($this->isColumnModified(VpoRequestPeer::CONTACT_NOTES)) $criteria->add(VpoRequestPeer::CONTACT_NOTES, $this->contact_notes);\n\t\tif ($this->isColumnModified(VpoRequestPeer::ORIGIN_CITY)) $criteria->add(VpoRequestPeer::ORIGIN_CITY, $this->origin_city);\n\t\tif ($this->isColumnModified(VpoRequestPeer::ORIGIN_STATE)) $criteria->add(VpoRequestPeer::ORIGIN_STATE, $this->origin_state);\n\t\tif ($this->isColumnModified(VpoRequestPeer::DEST_CITY)) $criteria->add(VpoRequestPeer::DEST_CITY, $this->dest_city);\n\t\tif ($this->isColumnModified(VpoRequestPeer::DEST_STATE)) $criteria->add(VpoRequestPeer::DEST_STATE, $this->dest_state);\n\t\tif ($this->isColumnModified(VpoRequestPeer::PREFERRED_DATE)) $criteria->add(VpoRequestPeer::PREFERRED_DATE, $this->preferred_date);\n\t\tif ($this->isColumnModified(VpoRequestPeer::ALTERNATIVE_DATE)) $criteria->add(VpoRequestPeer::ALTERNATIVE_DATE, $this->alternative_date);\n\t\tif ($this->isColumnModified(VpoRequestPeer::TRANSPORT_TYPE)) $criteria->add(VpoRequestPeer::TRANSPORT_TYPE, $this->transport_type);\n\t\tif ($this->isColumnModified(VpoRequestPeer::REQUEST_POSTED_DATE)) $criteria->add(VpoRequestPeer::REQUEST_POSTED_DATE, $this->request_posted_date);\n\t\tif ($this->isColumnModified(VpoRequestPeer::REQUEST_POSTED_TO_AFA_ORG_ID)) $criteria->add(VpoRequestPeer::REQUEST_POSTED_TO_AFA_ORG_ID, $this->request_posted_to_afa_org_id);\n\t\tif ($this->isColumnModified(VpoRequestPeer::REQUES_PROCESSED_DATE)) $criteria->add(VpoRequestPeer::REQUES_PROCESSED_DATE, $this->reques_processed_date);\n\t\tif ($this->isColumnModified(VpoRequestPeer::REQUEST_DISPOSITION)) $criteria->add(VpoRequestPeer::REQUEST_DISPOSITION, $this->request_disposition);\n\t\tif ($this->isColumnModified(VpoRequestPeer::CALLER_NAME)) $criteria->add(VpoRequestPeer::CALLER_NAME, $this->caller_name);\n\t\tif ($this->isColumnModified(VpoRequestPeer::CALLER_PHONE)) $criteria->add(VpoRequestPeer::CALLER_PHONE, $this->caller_phone);\n\t\tif ($this->isColumnModified(VpoRequestPeer::REQUEST_POST_RESULTS)) $criteria->add(VpoRequestPeer::REQUEST_POST_RESULTS, $this->request_post_results);\n\t\tif ($this->isColumnModified(VpoRequestPeer::REQUESTER_VPO_USER_ID)) $criteria->add(VpoRequestPeer::REQUESTER_VPO_USER_ID, $this->requester_vpo_user_id);\n\t\tif ($this->isColumnModified(VpoRequestPeer::SOURCE)) $criteria->add(VpoRequestPeer::SOURCE, $this->source);\n\t\tif ($this->isColumnModified(VpoRequestPeer::SOAP_POST_FROM_AFA_ORG_ID)) $criteria->add(VpoRequestPeer::SOAP_POST_FROM_AFA_ORG_ID, $this->soap_post_from_afa_org_id);\n\t\tif ($this->isColumnModified(VpoRequestPeer::SOAP_POST_REQUEST_ID)) $criteria->add(VpoRequestPeer::SOAP_POST_REQUEST_ID, $this->soap_post_request_id);\n\t\tif ($this->isColumnModified(VpoRequestPeer::REQUEST_PROCESSED_BY)) $criteria->add(VpoRequestPeer::REQUEST_PROCESSED_BY, $this->request_processed_by);\n\n\t\treturn $criteria;\n\t}",
"public function defineCriteriaAttributes()\n {\n return [\n 'userId' => [AttributeType::Number],\n 'chargeId' => [AttributeType::Number],\n 'membershipSubscriptionId' => [AttributeType::Number],\n 'status' => [AttributeType::String]\n ];\n }",
"private function applyCriteria()\n {\n foreach( $this->criteria as $criterion )\n {\n $this->query = $criterion->apply( $this->query, $this );\n }\n\n return $this;\n }",
"private function getUpdateableClause () {\n\t\t$where = new Where;\n\t\tforeach ($this->primaryKeys as $key) {\n\t\t\t$value = $this->retreive($key);\n\t\t\tif ($value){\n\t\t\t\t$where->equals($key, $this->retreive($key));\n\t\t\t} else {\n\t\t\t\tthrow new \\Exception(\"Primary key (\". $key .\") has no value!\");\n\t\t\t}\n\t\t}\n\n\t\treturn $where;\n\t}",
"public function getModifiedSearchCriterias()\n {\n $modifiedCriterias = array();\n\n $searchCriterias = $this->getSearchCriterias();\n $parameters = $this->_cleanSearchParams($this->getParameters());\n if (!empty($searchCriterias) && !empty($parameters)) {\n\n $i = 0;\n foreach ($parameters as $key => $parameter) {\n $modifiedCriterias[$key] = $searchCriterias[$i];\n $i++;\n }\n }\n\n return $modifiedCriterias;\n }",
"protected function getConditions()\n {\n $entityPk = (array)$this->mapper->getConfig()->getPrimaryKey();\n $conditions = [];\n foreach ($entityPk as $col) {\n $val = $this->entityHydrator->get($this->entity, $col);\n if ($val) {\n $conditions[$col] = $val;\n }\n }\n\n // not enough columns? reset\n if (count($conditions) != count($entityPk)) {\n return [];\n }\n\n return $conditions;\n }",
"public function defineCriteriaAttributes()\n\t{\n\t\treturn array(\n\t\t\t'slug' => AttributeType::String,\n\t\t\t'sectionId' => AttributeType::Number,\n\t\t\t'authorId' => AttributeType::Number,\n\t\t\t'authorGroupId' => AttributeType::Number,\n\t\t\t'authorGroup' => AttributeType::String,\n\t\t\t'section' => AttributeType::Mixed,\n\t\t\t'editable' => AttributeType::Bool,\n\t\t\t'postDate' => AttributeType::Mixed,\n\t\t\t'after' => AttributeType::Mixed,\n\t\t\t'before' => AttributeType::Mixed,\n\t\t\t'status' => array(AttributeType::String, 'default' => EntryModel::LIVE),\n\t\t\t'order' => array(AttributeType::String, 'default' => 'postDate desc'),\n\t\t);\n\t}",
"protected function functionCriteria() {\n // should not be searched.\n\n $criteria = new CDbCriteria;\n\n if (!is_array($this->kunjungan)){\n $this->kunjungan = 0;\n }\n \n $criteria->addBetweenCondition('date(tglmasukpenunjang)', $this->tglAwal, $this->tglAkhir);\n $criteria->compare('kunjungan', $this->kunjungan);\n\t\tif(!empty($this->instalasiasal_id)){\n\t\t\t$criteria->addCondition('instalasiasal_id ='.$this->instalasiasal_id);\n\t\t}\n if (!empty($this->instalasiasal_id)){\n if (!is_array($this->ruanganasal_id)){\n $this->ruanganasal_id = 0;\n }\n }\n\t\tif(!empty($this->carabayar_id)){\n\t\t\t$criteria->addCondition('carabayar_id ='.$this->carabayar_id);\n\t\t}\n\t\tif(!empty($this->carabayar_id)){\n\t\t\t$criteria->addCondition('penjamin_id ='.$this->carabayar_id);\n\t\t}\n\t\tif(!empty($this->ruanganasal_id)){\n\t\t\t$criteria->addCondition('ruanganasal_id ='.$this->ruanganasal_id);\n\t\t}\n $criteria->addCondition('ruanganpenunj_id = '.Yii::app()->user->getState('ruangan_id'));\n\n return $criteria;\n }",
"public function buildCriteria()\n {\n $criteria = new Criteria(ActionTypePeer::DATABASE_NAME);\n\n if ($this->isColumnModified(ActionTypePeer::ID)) $criteria->add(ActionTypePeer::ID, $this->id);\n if ($this->isColumnModified(ActionTypePeer::CREATEDATETIME)) $criteria->add(ActionTypePeer::CREATEDATETIME, $this->createdatetime);\n if ($this->isColumnModified(ActionTypePeer::CREATEPERSON_ID)) $criteria->add(ActionTypePeer::CREATEPERSON_ID, $this->createperson_id);\n if ($this->isColumnModified(ActionTypePeer::MODIFYDATETIME)) $criteria->add(ActionTypePeer::MODIFYDATETIME, $this->modifydatetime);\n if ($this->isColumnModified(ActionTypePeer::MODIFYPERSON_ID)) $criteria->add(ActionTypePeer::MODIFYPERSON_ID, $this->modifyperson_id);\n if ($this->isColumnModified(ActionTypePeer::DELETED)) $criteria->add(ActionTypePeer::DELETED, $this->deleted);\n if ($this->isColumnModified(ActionTypePeer::CLAZZ)) $criteria->add(ActionTypePeer::CLAZZ, $this->class);\n if ($this->isColumnModified(ActionTypePeer::GROUP_ID)) $criteria->add(ActionTypePeer::GROUP_ID, $this->group_id);\n if ($this->isColumnModified(ActionTypePeer::CODE)) $criteria->add(ActionTypePeer::CODE, $this->code);\n if ($this->isColumnModified(ActionTypePeer::NAME)) $criteria->add(ActionTypePeer::NAME, $this->name);\n if ($this->isColumnModified(ActionTypePeer::TITLE)) $criteria->add(ActionTypePeer::TITLE, $this->title);\n if ($this->isColumnModified(ActionTypePeer::FLATCODE)) $criteria->add(ActionTypePeer::FLATCODE, $this->flatcode);\n if ($this->isColumnModified(ActionTypePeer::SEX)) $criteria->add(ActionTypePeer::SEX, $this->sex);\n if ($this->isColumnModified(ActionTypePeer::AGE)) $criteria->add(ActionTypePeer::AGE, $this->age);\n if ($this->isColumnModified(ActionTypePeer::AGE_BU)) $criteria->add(ActionTypePeer::AGE_BU, $this->age_bu);\n if ($this->isColumnModified(ActionTypePeer::AGE_BC)) $criteria->add(ActionTypePeer::AGE_BC, $this->age_bc);\n if ($this->isColumnModified(ActionTypePeer::AGE_EU)) $criteria->add(ActionTypePeer::AGE_EU, $this->age_eu);\n if ($this->isColumnModified(ActionTypePeer::AGE_EC)) $criteria->add(ActionTypePeer::AGE_EC, $this->age_ec);\n if ($this->isColumnModified(ActionTypePeer::OFFICE)) $criteria->add(ActionTypePeer::OFFICE, $this->office);\n if ($this->isColumnModified(ActionTypePeer::SHOWINFORM)) $criteria->add(ActionTypePeer::SHOWINFORM, $this->showinform);\n if ($this->isColumnModified(ActionTypePeer::GENTIMETABLE)) $criteria->add(ActionTypePeer::GENTIMETABLE, $this->gentimetable);\n if ($this->isColumnModified(ActionTypePeer::SERVICE_ID)) $criteria->add(ActionTypePeer::SERVICE_ID, $this->service_id);\n if ($this->isColumnModified(ActionTypePeer::QUOTATYPE_ID)) $criteria->add(ActionTypePeer::QUOTATYPE_ID, $this->quotatype_id);\n if ($this->isColumnModified(ActionTypePeer::CONTEXT)) $criteria->add(ActionTypePeer::CONTEXT, $this->context);\n if ($this->isColumnModified(ActionTypePeer::AMOUNT)) $criteria->add(ActionTypePeer::AMOUNT, $this->amount);\n if ($this->isColumnModified(ActionTypePeer::AMOUNTEVALUATION)) $criteria->add(ActionTypePeer::AMOUNTEVALUATION, $this->amountevaluation);\n if ($this->isColumnModified(ActionTypePeer::DEFAULTSTATUS)) $criteria->add(ActionTypePeer::DEFAULTSTATUS, $this->defaultstatus);\n if ($this->isColumnModified(ActionTypePeer::DEFAULTDIRECTIONDATE)) $criteria->add(ActionTypePeer::DEFAULTDIRECTIONDATE, $this->defaultdirectiondate);\n if ($this->isColumnModified(ActionTypePeer::DEFAULTPLANNEDENDDATE)) $criteria->add(ActionTypePeer::DEFAULTPLANNEDENDDATE, $this->defaultplannedenddate);\n if ($this->isColumnModified(ActionTypePeer::DEFAULTENDDATE)) $criteria->add(ActionTypePeer::DEFAULTENDDATE, $this->defaultenddate);\n if ($this->isColumnModified(ActionTypePeer::DEFAULTEXECPERSON_ID)) $criteria->add(ActionTypePeer::DEFAULTEXECPERSON_ID, $this->defaultexecperson_id);\n if ($this->isColumnModified(ActionTypePeer::DEFAULTPERSONINEVENT)) $criteria->add(ActionTypePeer::DEFAULTPERSONINEVENT, $this->defaultpersoninevent);\n if ($this->isColumnModified(ActionTypePeer::DEFAULTPERSONINEDITOR)) $criteria->add(ActionTypePeer::DEFAULTPERSONINEDITOR, $this->defaultpersonineditor);\n if ($this->isColumnModified(ActionTypePeer::MAXOCCURSINEVENT)) $criteria->add(ActionTypePeer::MAXOCCURSINEVENT, $this->maxoccursinevent);\n if ($this->isColumnModified(ActionTypePeer::SHOWTIME)) $criteria->add(ActionTypePeer::SHOWTIME, $this->showtime);\n if ($this->isColumnModified(ActionTypePeer::ISMES)) $criteria->add(ActionTypePeer::ISMES, $this->ismes);\n if ($this->isColumnModified(ActionTypePeer::NOMENCLATIVESERVICE_ID)) $criteria->add(ActionTypePeer::NOMENCLATIVESERVICE_ID, $this->nomenclativeservice_id);\n if ($this->isColumnModified(ActionTypePeer::ISPREFERABLE)) $criteria->add(ActionTypePeer::ISPREFERABLE, $this->ispreferable);\n if ($this->isColumnModified(ActionTypePeer::PRESCRIBEDTYPE_ID)) $criteria->add(ActionTypePeer::PRESCRIBEDTYPE_ID, $this->prescribedtype_id);\n if ($this->isColumnModified(ActionTypePeer::SHEDULE_ID)) $criteria->add(ActionTypePeer::SHEDULE_ID, $this->shedule_id);\n if ($this->isColumnModified(ActionTypePeer::ISREQUIREDCOORDINATION)) $criteria->add(ActionTypePeer::ISREQUIREDCOORDINATION, $this->isrequiredcoordination);\n if ($this->isColumnModified(ActionTypePeer::ISREQUIREDTISSUE)) $criteria->add(ActionTypePeer::ISREQUIREDTISSUE, $this->isrequiredtissue);\n if ($this->isColumnModified(ActionTypePeer::TESTTUBETYPE_ID)) $criteria->add(ActionTypePeer::TESTTUBETYPE_ID, $this->testtubetype_id);\n if ($this->isColumnModified(ActionTypePeer::JOBTYPE_ID)) $criteria->add(ActionTypePeer::JOBTYPE_ID, $this->jobtype_id);\n if ($this->isColumnModified(ActionTypePeer::MNEM)) $criteria->add(ActionTypePeer::MNEM, $this->mnem);\n\n return $criteria;\n }",
"public function __clone() {\n if ($this->_where) {\n $this->_where = clone $this->_where;\n }\n\n if ($this->_having) {\n $this->_having = clone $this->_having;\n }\n }",
"public function getCriteria();",
"public function __clone() {\n foreach ($this->conditions as $i => $condition) {\n $this->conditions[$i] = clone $condition;\n }\n }",
"protected function applyCriteria()\n {\n if ($this->skipCriteria === true) {\n return $this;\n }\n\n $criteria = $this->getCriteria();\n\n if ($criteria) {\n foreach ($criteria as $c) {\n $this->model = $c->apply($this->model, $this);\n }\n }\n\n return $this;\n }",
"public function buildCriteria()\n\t{\n\t\t$criteria = new Criteria(PostPeer::DATABASE_NAME);\n\n\t\tif ($this->isColumnModified(PostPeer::ID)) $criteria->add(PostPeer::ID, $this->id);\n\t\tif ($this->isColumnModified(PostPeer::PARTIE_ID)) $criteria->add(PostPeer::PARTIE_ID, $this->partie_id);\n\t\tif ($this->isColumnModified(PostPeer::REPLICA_POST_ID)) $criteria->add(PostPeer::REPLICA_POST_ID, $this->replica_post_id);\n\t\tif ($this->isColumnModified(PostPeer::TYPE)) $criteria->add(PostPeer::TYPE, $this->type);\n\t\tif ($this->isColumnModified(PostPeer::TITLE)) $criteria->add(PostPeer::TITLE, $this->title);\n\t\tif ($this->isColumnModified(PostPeer::URL)) $criteria->add(PostPeer::URL, $this->url);\n\t\tif ($this->isColumnModified(PostPeer::TEXT)) $criteria->add(PostPeer::TEXT, $this->text);\n\t\tif ($this->isColumnModified(PostPeer::PHOTO_FILE)) $criteria->add(PostPeer::PHOTO_FILE, $this->photo_file);\n\t\tif ($this->isColumnModified(PostPeer::PHOTO_URL)) $criteria->add(PostPeer::PHOTO_URL, $this->photo_url);\n\t\tif ($this->isColumnModified(PostPeer::QUOTE)) $criteria->add(PostPeer::QUOTE, $this->quote);\n\t\tif ($this->isColumnModified(PostPeer::QUOTE_AUTHOR)) $criteria->add(PostPeer::QUOTE_AUTHOR, $this->quote_author);\n\t\tif ($this->isColumnModified(PostPeer::LINK_TITLE)) $criteria->add(PostPeer::LINK_TITLE, $this->link_title);\n\t\tif ($this->isColumnModified(PostPeer::LINK_URL)) $criteria->add(PostPeer::LINK_URL, $this->link_url);\n\t\tif ($this->isColumnModified(PostPeer::LINK_IMAGE)) $criteria->add(PostPeer::LINK_IMAGE, $this->link_image);\n\t\tif ($this->isColumnModified(PostPeer::VIDEO_URL)) $criteria->add(PostPeer::VIDEO_URL, $this->video_url);\n\t\tif ($this->isColumnModified(PostPeer::TOTAL_INDEX)) $criteria->add(PostPeer::TOTAL_INDEX, $this->total_index);\n\t\tif ($this->isColumnModified(PostPeer::BEST_BADGE_1)) $criteria->add(PostPeer::BEST_BADGE_1, $this->best_badge_1);\n\t\tif ($this->isColumnModified(PostPeer::BEST_BADGE_2)) $criteria->add(PostPeer::BEST_BADGE_2, $this->best_badge_2);\n\t\tif ($this->isColumnModified(PostPeer::IS_PUBLISHED)) $criteria->add(PostPeer::IS_PUBLISHED, $this->is_published);\n\t\tif ($this->isColumnModified(PostPeer::IS_FEATURED)) $criteria->add(PostPeer::IS_FEATURED, $this->is_featured);\n\t\tif ($this->isColumnModified(PostPeer::COMMENTS_COUNT)) $criteria->add(PostPeer::COMMENTS_COUNT, $this->comments_count);\n\t\tif ($this->isColumnModified(PostPeer::CREATED_AT)) $criteria->add(PostPeer::CREATED_AT, $this->created_at);\n\t\tif ($this->isColumnModified(PostPeer::UPDATED_AT)) $criteria->add(PostPeer::UPDATED_AT, $this->updated_at);\n\n\t\treturn $criteria;\n\t}",
"private function &normalizeCriteria($criteria) {\n\n $result = array();\n $lastFieldName = null;\n\n foreach($criteria as $key => $value) {\n\n if (is_numeric($key)) {\n\n // $value is either a field name, value, conjunction, literal sql, or another array of criteria\n\n if ($lastFieldName !== null) {\n $result[] = new Octopus_Model_Restriction_Field($this->getModelInstance(), $lastFieldName, $value);\n $lastFieldName = null;\n } else if (is_array($value)) {\n $result[] = $this->normalizeCriteria($value);\n $lastFieldName = null;\n } else if ($value instanceof Octopus_Model_Restriction) {\n $result[] = $value;\n } else {\n\n $uvalue = strtoupper($value);\n\n if ($uvalue === 'OR' || $uvalue === 'AND') {\n if (count($result)) {\n $result[] = $uvalue;\n }\n $lastFieldName = null;\n } else if ($lastFieldName === null) {\n\n if (Octopus_Model_Restriction_Field::looksLikeFieldExpression($value)) {\n $lastFieldName = $value;\n } else {\n // Probably literal SQL\n $result[] = new Octopus_Model_Restriction_Sql($value);\n }\n\n }\n }\n\n continue;\n }\n\n // $key is either a field name or a conjunction or NOT\n $ukey = strtoupper($key);\n\n if ($ukey === 'NOT') {\n $result[] = array('NOT' => $this->normalizeCriteria($value));\n } else if ($ukey === 'AND' || $ukey === 'OR') {\n $result[] = $ukey;\n $result[] = $this->normalizeCriteria($value);\n } else {\n // Two scenarios:\n // 1. $key is a field name and $value is a corresponding filter value\n // 2. $key is literal SQL and $value is an array of parameters to go with it\n if (Octopus_Model_Restriction_Field::looksLikeFieldExpression($key)) {\n $result[] = new Octopus_Model_Restriction_Field($this->getModelInstance(), $key, $value);\n } else {\n $result[] = new Octopus_Model_Restriction_Sql($key, $value);\n }\n }\n }\n\n return $result;\n }",
"public function applyCriteria() {\n if ($this->skipCriteria === true) {\n return $this;\n }\n\n foreach ($this->getCriteria() as $criteria) {\n if ($criteria instanceof Criteria) {\n $this->model = $criteria->apply($this->model, $this);\n }\n }\n\n return $this;\n }",
"public function getModifiedColumns()\n {\n return $this->modifiedColumns ? array_keys($this->modifiedColumns) : [];\n }",
"public function getModifiedColumns()\n {\n return $this->modifiedColumns ? array_keys($this->modifiedColumns) : [];\n }",
"public function getModifiedColumns()\n {\n return $this->modifiedColumns ? array_keys($this->modifiedColumns) : [];\n }",
"public function getModifiedColumns()\n {\n return $this->modifiedColumns ? array_keys($this->modifiedColumns) : [];\n }",
"public function getModifiedColumns()\n {\n return $this->modifiedColumns ? array_keys($this->modifiedColumns) : [];\n }",
"public function getModifiedColumns()\n {\n return $this->modifiedColumns ? array_keys($this->modifiedColumns) : [];\n }",
"public function getModifiedColumns()\n {\n return $this->modifiedColumns ? array_keys($this->modifiedColumns) : [];\n }",
"public function getModifiedColumns()\n {\n return $this->modifiedColumns ? array_keys($this->modifiedColumns) : [];\n }",
"public function getModifiedColumns()\n {\n return $this->modifiedColumns ? array_keys($this->modifiedColumns) : [];\n }",
"public function getModifiedColumns()\n {\n return $this->modifiedColumns ? array_keys($this->modifiedColumns) : [];\n }",
"public function getModifiedColumns()\n {\n return $this->modifiedColumns ? array_keys($this->modifiedColumns) : [];\n }",
"public function getModifiedColumns()\n {\n return $this->modifiedColumns ? array_keys($this->modifiedColumns) : [];\n }",
"public function getCriteria()\n {\n return $this->criteria;\n }",
"public function getCriteria()\n {\n return $this->criteria;\n }",
"private function values($appendPrimaryKey = true) {\r\n\t\t$c = get_called_class();\r\n\r\n\t\t$return = array();\r\n\t\tforeach ($c::getRequirements() as $column => $details) {\r\n\t\t\tif($c::$primaryKey != $column) {\r\n\t\t\t\t$property = substr($column,1,strlen($column)-2);\r\n\t\t\t\tif(in_array($property, array('creationDate','updateDate'))) {\r\n\t\t\t\t\t$return[] = $this->$property->format('Y-m-d H:i:s');\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$return[] = $this->$property;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tif($appendPrimaryKey) {\r\n\t\t\t$return[] = $this->{substr($c::$primaryKey,1,strlen($c::$primaryKey)-2)}; }\r\n\t\treturn $return;\r\n\t}",
"private function addCriteriaCondition(\n array $criteria,\n array &$columns,\n array &$values,\n array &$conditions\n ): void {\n $platform = $this->getDatabasePlatform();\n\n foreach ($criteria as $columnName => $value) {\n if ($value === null) {\n $conditions[] = $platform->getIsNullExpression($columnName);\n continue;\n }\n\n $columns[] = $columnName;\n $values[] = $value;\n $conditions[] = $columnName . ' = ?';\n }\n }",
"public function getCriteria(){\n return $this->criteria;\n }",
"public function buildPkeyCriteria()\n {\n $criteria = ChildOrdrhedQuery::create();\n $criteria->add(OrdrhedTableMap::COL_SESSIONID, $this->sessionid);\n $criteria->add(OrdrhedTableMap::COL_RECNO, $this->recno);\n $criteria->add(OrdrhedTableMap::COL_ORDERNO, $this->orderno);\n\n return $criteria;\n }",
"public function buildPkeyCriteria()\n {\n $criteria = new Criteria(YearPeer::DATABASE_NAME);\n $criteria->add(YearPeer::ID, $this->id);\n\n return $criteria;\n }",
"public function getNewChildSelectOptions()\n {\n $conditions = [\n ['value' => $this->getType(), 'label' => __('Conditions Combination')],\n $this->_attributeFactory->create()->getNewChildSelectOptions(),\n ];\n\n $conditions = array_merge_recursive(parent::getNewChildSelectOptions(), $conditions);\n return $conditions;\n }",
"public function getCriteria()\n\t{\n\t\treturn $this->criteria;\n\t}",
"public function buildCriteria()\n\t{\n\t\t$criteria = new Criteria(VenuePeer::DATABASE_NAME);\n\n\t\tif ($this->isColumnModified(VenuePeer::VENUEID)) $criteria->add(VenuePeer::VENUEID, $this->venueid);\n\t\tif ($this->isColumnModified(VenuePeer::ADDRESS)) $criteria->add(VenuePeer::ADDRESS, $this->address);\n\t\tif ($this->isColumnModified(VenuePeer::ADDRESS2)) $criteria->add(VenuePeer::ADDRESS2, $this->address2);\n\t\tif ($this->isColumnModified(VenuePeer::CITY)) $criteria->add(VenuePeer::CITY, $this->city);\n\t\tif ($this->isColumnModified(VenuePeer::PROVINCE)) $criteria->add(VenuePeer::PROVINCE, $this->province);\n\t\tif ($this->isColumnModified(VenuePeer::COUNTRY)) $criteria->add(VenuePeer::COUNTRY, $this->country);\n\t\tif ($this->isColumnModified(VenuePeer::LATITUDE)) $criteria->add(VenuePeer::LATITUDE, $this->latitude);\n\t\tif ($this->isColumnModified(VenuePeer::LONGITUDE)) $criteria->add(VenuePeer::LONGITUDE, $this->longitude);\n\t\tif ($this->isColumnModified(VenuePeer::PHONE)) $criteria->add(VenuePeer::PHONE, $this->phone);\n\t\tif ($this->isColumnModified(VenuePeer::NAME)) $criteria->add(VenuePeer::NAME, $this->name);\n\t\tif ($this->isColumnModified(VenuePeer::DESCRIPTION)) $criteria->add(VenuePeer::DESCRIPTION, $this->description);\n\t\tif ($this->isColumnModified(VenuePeer::WEBSITE)) $criteria->add(VenuePeer::WEBSITE, $this->website);\n\t\tif ($this->isColumnModified(VenuePeer::TWITTER)) $criteria->add(VenuePeer::TWITTER, $this->twitter);\n\t\tif ($this->isColumnModified(VenuePeer::FACEBOOK)) $criteria->add(VenuePeer::FACEBOOK, $this->facebook);\n\t\tif ($this->isColumnModified(VenuePeer::RSSFEED)) $criteria->add(VenuePeer::RSSFEED, $this->rssfeed);\n\t\tif ($this->isColumnModified(VenuePeer::CLOSED)) $criteria->add(VenuePeer::CLOSED, $this->closed);\n\t\tif ($this->isColumnModified(VenuePeer::LASTFMID)) $criteria->add(VenuePeer::LASTFMID, $this->lastfmid);\n\t\tif ($this->isColumnModified(VenuePeer::SLUG)) $criteria->add(VenuePeer::SLUG, $this->slug);\n\t\tif ($this->isColumnModified(VenuePeer::HASPHOTOS)) $criteria->add(VenuePeer::HASPHOTOS, $this->hasphotos);\n\t\tif ($this->isColumnModified(VenuePeer::SUBMITTEDBYUSER)) $criteria->add(VenuePeer::SUBMITTEDBYUSER, $this->submittedbyuser);\n\n\t\treturn $criteria;\n\t}",
"public function buildWhereClause()\n {\n $criterias = $this->bean->ownCriteria;\n if (empty($criterias)) {\n return '1';\n }// find all because there are no criterias\n $where = array();\n $this->filter_values = array();\n //$mask = \" %s %s %s\"; // login, field, op (with masked value)\n $n = 0;\n foreach ($criterias as $id=>$criteria) {\n if (! $criteria->op) {\n continue;\n } // skip all entries that say any!\n if ($criteria->value === null || $criteria->value === '') {\n continue;\n } // skip all empty\n $n++;\n $logic = 'AND ';//$criteria->logic;\n if ($n == 1) {\n $logic = '';\n }\n $where[] = $logic.$criteria->makeWherePart($this);\n }\n\n if (empty($where)) {\n return '1';\n }// find all because there was no active criteria\n\n $where = implode(' ', $where);\n return $where;\n }",
"public function criteriaSearch()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\tif(!empty($this->tunjangan_id)){\n\t\t\t$criteria->addCondition('tunjangan_id = '.$this->tunjangan_id);\n\t\t}\n\t\tif(!empty($this->pangkat_id)){\n\t\t\t$criteria->addCondition('pangkat_id = '.$this->pangkat_id);\n\t\t}\n\t\tif(!empty($this->jabatan_id)){\n\t\t\t$criteria->addCondition('jabatan_id = '.$this->jabatan_id);\n\t\t}\n\t\tif(!empty($this->komponengaji_id)){\n\t\t\t$criteria->addCondition('komponengaji_id = '.$this->komponengaji_id);\n\t\t}\n\t\t$criteria->compare('nominaltunjangan', str_replace('.','',$this->nominaltunjangan));\n\t\t$criteria->compare('tunjangan_aktif',isset($this->tunjangan_aktif)?$this->tunjangan_aktif:true);\n\n\t\treturn $criteria;\n\t}",
"public function orig_search() {\n // Warning: Please modify the following code to remove attributes that\n // should not be searched.\n\n $criteria = new CDbCriteria;\n\n $criteria->compare('rowtype', $this->rowtype, true);\n $criteria->compare('anno_registrazione', $this->anno_registrazione, true);\n $criteria->compare('tipo_transazione', $this->tipo_transazione, true);\n $criteria->compare('id_causale', $this->id_causale, true);\n $criteria->compare('id_cassa', $this->id_cassa, true);\n $criteria->compare('id_controparte', $this->id_controparte);\n $criteria->compare('descrizione', $this->descrizione, true);\n $criteria->compare('importo', $this->importo, true);\n $criteria->compare('data_doc', $this->data_doc, true);\n $criteria->compare('riferim_doc', $this->riferim_doc, true);\n $criteria->compare('data_pagam', $this->data_pagam, true);\n $criteria->compare('des_pagam', $this->des_pagam, true);\n\n return new CActiveDataProvider(get_class($this), array(\n 'criteria' => $criteria,\n ));\n }",
"public function getCriteriaList() {\n return $this->_get(6);\n }",
"public function updateColumns()\n\t{\n\t\treturn $this->updateColumns;\n\t}",
"public function getQueryCriteria(): array\n {\n return [\n 'created_after' => new DateValidator,\n 'created_before' => new DateValidator,\n 'id_greater_than' => new PositiveIntValidator,\n 'id_less_than' => new PositiveIntValidator,\n 'name' => new StringValidator,\n 'updated_before' => new DateValidator,\n 'updated_after' => new DateValidator\n ];\n }",
"public function buildPkeyCriteria()\n {\n $criteria = new Criteria(SanitasiPeer::DATABASE_NAME);\n $criteria->add(SanitasiPeer::SEKOLAH_ID, $this->sekolah_id);\n $criteria->add(SanitasiPeer::SEMESTER_ID, $this->semester_id);\n\n return $criteria;\n }",
"public function buildPkeyCriteria()\n\t{\n\t\t$criteria = new Criteria(MmPeer::DATABASE_NAME);\n\n\t\t$criteria->add(MmPeer::ID, $this->id);\n\n\t\treturn $criteria;\n\t}",
"public function buildPkeyCriteria()\n {\n $criteria = new Criteria(MontacargasPeer::DATABASE_NAME);\n $criteria->add(MontacargasPeer::IDMONTACARGAS, $this->idmontacargas);\n\n return $criteria;\n }",
"public function isModified()\n {\n return !!$this->modifiedColumns;\n }",
"public function isModified()\n {\n return !!$this->modifiedColumns;\n }",
"public function isModified()\n {\n return !!$this->modifiedColumns;\n }",
"public function isModified()\n {\n return !!$this->modifiedColumns;\n }",
"public function isModified()\n {\n return !!$this->modifiedColumns;\n }",
"public function isModified()\n {\n return !!$this->modifiedColumns;\n }",
"public function isModified()\n {\n return !!$this->modifiedColumns;\n }",
"public function isModified()\n {\n return !!$this->modifiedColumns;\n }",
"public function isModified()\n {\n return !!$this->modifiedColumns;\n }",
"public function isModified()\n {\n return !!$this->modifiedColumns;\n }",
"public function isModified()\n {\n return !!$this->modifiedColumns;\n }",
"public function isModified()\n {\n return !!$this->modifiedColumns;\n }",
"private function setCustomWhere()\n\t{\n\t\tif ($this->customQuery->where) {\n\t\t\t$this->where = array_merge_recursive($this->customQuery->where, $this->where);\n\t\t}\n\n\t\treturn $this;\n\t}",
"public function buildPkeyCriteria()\n {\n $criteria = new Criteria(JadwalPeer::DATABASE_NAME);\n $criteria->add(JadwalPeer::SEKOLAH_ID, $this->sekolah_id);\n $criteria->add(JadwalPeer::SEMESTER_ID, $this->semester_id);\n $criteria->add(JadwalPeer::ID_RUANG, $this->id_ruang);\n $criteria->add(JadwalPeer::HARI, $this->hari);\n\n return $criteria;\n }",
"public function buildPkeyCriteria()\n {\n $criteria = new Criteria(BangunanPeer::DATABASE_NAME);\n $criteria->add(BangunanPeer::ID_BANGUNAN, $this->id_bangunan);\n\n return $criteria;\n }",
"public function buildPkeyCriteria()\n {\n $criteria = new Criteria(EventPeer::DATABASE_NAME);\n $criteria->add(EventPeer::ID, $this->id);\n\n return $criteria;\n }",
"protected function hydrateCriteria($builder, array $criteria = array())\n {\n foreach ($criteria as $fieldName => $fieldValue) {\n $builder->field($fieldName)->equals($fieldValue);\n// $builder->addOr($builder->expr()->field($fieldName)->equals($fieldValue));\n }\n }",
"public function getCriteria()\n {\n $criterias = array();\n foreach ($this->validators as $validator) {\n $criterias = array_merge($criterias, $validator->getCriteria());\n }\n \n return $criterias;\n }",
"private function buildWhere()\n {\n $query = array();\n\n // Make sure there's something to do\n if (isset($this->query['where']) and count($this->query['where'])) {\n foreach ($this->query['where'] as $group => $conditions) {\n $group = array(); // Yes, because the $group above is not used, get over it.\n foreach ($conditions as $condition => $value) {\n // Get column name\n $cond = explode(\" \", $condition);\n $column = str_replace('`', '', $cond[0]);\n $safeColumn = $this->columnName($column);\n\n // Make the column name safe\n $condition = str_replace($column, $safeColumn, $condition);\n\n // Add value to the bind queue\n $valueBindKey = str_replace(array('.', '`'), array('_', ''), $safeColumn);\n\n if (!empty($value) or $value !== null) {\n $this->valuesToBind[$valueBindKey] = $value;\n }\n\n // Add condition to group\n $group[] = str_replace(\"?\", \":{$valueBindKey}\", $condition);\n }\n\n // Add the group\n $query[] = \"(\" . implode(\" AND \", $group) . \")\";\n }\n\n // Return\n return \"WHERE \" . implode(\" OR \", $query);\n }\n }",
"public function buildPkeyCriteria()\n\t{\n\t\t$criteria = new Criteria(CidadePeer::DATABASE_NAME);\n\t\t$criteria->add(CidadePeer::ID, $this->id);\n\n\t\treturn $criteria;\n\t}",
"public function buildPkeyCriteria()\n {\n $criteria = ChildUserQuery::create();\n $criteria->add(UserTableMap::COL_ID, $this->id);\n $criteria->add(UserTableMap::COL_NICKNAME, $this->nickname);\n\n return $criteria;\n }"
] | [
"0.666515",
"0.6526073",
"0.647717",
"0.639994",
"0.63983405",
"0.6311204",
"0.63012093",
"0.621998",
"0.6197674",
"0.6170997",
"0.6169226",
"0.61616975",
"0.61544293",
"0.6142662",
"0.61252797",
"0.611494",
"0.60872996",
"0.60780376",
"0.6043785",
"0.60407835",
"0.60352856",
"0.6035203",
"0.60311157",
"0.6022152",
"0.60169065",
"0.59514844",
"0.5947399",
"0.5942623",
"0.5916563",
"0.58349586",
"0.5784692",
"0.57750756",
"0.570158",
"0.5699869",
"0.56684554",
"0.56351745",
"0.55479217",
"0.55335623",
"0.5488105",
"0.5484422",
"0.54515076",
"0.54496294",
"0.5415529",
"0.5414078",
"0.54018223",
"0.5385223",
"0.5350255",
"0.53492254",
"0.5343538",
"0.5343538",
"0.5343538",
"0.5343538",
"0.5343538",
"0.5343538",
"0.5343538",
"0.5343538",
"0.5343538",
"0.5343538",
"0.5343538",
"0.5343538",
"0.5338658",
"0.5338658",
"0.5305986",
"0.5271472",
"0.5258414",
"0.525788",
"0.5250773",
"0.5249583",
"0.523532",
"0.5230262",
"0.5200552",
"0.517684",
"0.5136707",
"0.5134699",
"0.5121669",
"0.5120817",
"0.51096064",
"0.5107169",
"0.51020443",
"0.51011026",
"0.51011026",
"0.51011026",
"0.51011026",
"0.51011026",
"0.51011026",
"0.51011026",
"0.51011026",
"0.51011026",
"0.51011026",
"0.51011026",
"0.51011026",
"0.51001805",
"0.50944877",
"0.5088715",
"0.5069065",
"0.5051093",
"0.504276",
"0.50421727",
"0.50361466",
"0.5027271"
] | 0.60224503 | 23 |
Builds a Criteria object containing the primary key for this object. Unlike buildCriteria() this method includes the primary key values regardless of whether or not they have been modified. | public function buildPkeyCriteria()
{
$criteria = new Criteria(OperationPrimesPeer::DATABASE_NAME);
$criteria->add(OperationPrimesPeer::OP_PRIME_ID, $this->op_prime_id);
return $criteria;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function buildPkeyCriteria()\n\t{\n\t\t$criteria = new Criteria(CidadePeer::DATABASE_NAME);\n\t\t$criteria->add(CidadePeer::ID, $this->id);\n\n\t\treturn $criteria;\n\t}",
"public function buildPkeyCriteria()\n {\n $criteria = new Criteria(YearPeer::DATABASE_NAME);\n $criteria->add(YearPeer::ID, $this->id);\n\n return $criteria;\n }",
"public function buildPkeyCriteria()\n\t{\n\t\t$criteria = new Criteria(MmPeer::DATABASE_NAME);\n\n\t\t$criteria->add(MmPeer::ID, $this->id);\n\n\t\treturn $criteria;\n\t}",
"public function buildPkeyCriteria()\n\t{\n\t\t$criteria = new Criteria(UserPeer::DATABASE_NAME);\n\n\t\t$criteria->add(UserPeer::ID, $this->id);\n\n\t\treturn $criteria;\n\t}",
"public function buildPkeyCriteria()\n\t{\n\t\t$criteria = new Criteria(UserPeer::DATABASE_NAME);\n\n\t\t$criteria->add(UserPeer::ID, $this->id);\n\n\t\treturn $criteria;\n\t}",
"public function buildPkeyCriteria()\n\t{\n\t\t$criteria = new Criteria(CampaignPeer::DATABASE_NAME);\n\n\t\t$criteria->add(CampaignPeer::ID, $this->id);\n\n\t\treturn $criteria;\n\t}",
"public function buildPkeyCriteria()\n\t{\n\t\t$criteria = new Criteria(UsuarioPeer::DATABASE_NAME);\n\t\t$criteria->add(UsuarioPeer::ID, $this->id);\n\n\t\treturn $criteria;\n\t}",
"public function buildPkeyCriteria()\n {\n $criteria = ChildKluBillQuery::create();\n $criteria->add(KluBillTableMap::COL_ID, $this->id);\n\n return $criteria;\n }",
"public function buildPkeyCriteria()\n\t{\n\t\t$criteria = new Criteria(VpoRequestPeer::DATABASE_NAME);\n\n\t\t$criteria->add(VpoRequestPeer::ID, $this->id);\n\n\t\treturn $criteria;\n\t}",
"public function buildPkeyCriteria()\n {\n $criteria = ChildArticleQuery::create();\n $criteria->add(ArticleTableMap::COL_ARTICLE_ID, $this->article_id);\n\n return $criteria;\n }",
"public function buildPkeyCriteria()\n {\n $criteria = new Criteria(EventPeer::DATABASE_NAME);\n $criteria->add(EventPeer::ID, $this->id);\n\n return $criteria;\n }",
"public function buildPkeyCriteria()\n\t{\n\t\t$criteria = new Criteria(PostPeer::DATABASE_NAME);\n\n\t\t$criteria->add(PostPeer::ID, $this->id);\n\n\t\treturn $criteria;\n\t}",
"public function buildPkeyCriteria()\n {\n $criteria = new Criteria(SekolahPaudPeer::DATABASE_NAME);\n $criteria->add(SekolahPaudPeer::SEKOLAH_ID, $this->sekolah_id);\n\n return $criteria;\n }",
"public function buildPkeyCriteria()\n {\n $criteria = ChildBiblioQuery::create();\n $criteria->add(BiblioTableMap::COL_BIBLIO_ID, $this->biblio_id);\n\n return $criteria;\n }",
"public function buildPkeyCriteria()\n {\n $criteria = ChildAliMemberQuery::create();\n $criteria->add(AliMemberTableMap::COL_ID, $this->id);\n\n return $criteria;\n }",
"public function buildPkeyCriteria()\n {\n $criteria = ChildIssuesQuery::create();\n $criteria->add(IssuesTableMap::COL_ID, $this->id);\n\n return $criteria;\n }",
"public function buildPkeyCriteria()\n\t{\n\t\t$criteria = new Criteria(C060InventarioPeer::DATABASE_NAME);\n\n\t\t$criteria->add(C060InventarioPeer::CO_NUM_INVENTARIO, $this->co_num_inventario);\n\n\t\treturn $criteria;\n\t}",
"public function buildPkeyCriteria()\n {\n $criteria = new Criteria(MontacargasPeer::DATABASE_NAME);\n $criteria->add(MontacargasPeer::IDMONTACARGAS, $this->idmontacargas);\n\n return $criteria;\n }",
"public function buildPkeyCriteria()\n\t{\n\t\t$criteria = new Criteria(VenuePeer::DATABASE_NAME);\n\t\t$criteria->add(VenuePeer::VENUEID, $this->venueid);\n\n\t\treturn $criteria;\n\t}",
"public function buildPkeyCriteria()\n {\n $criteria = ChildUserQuery::create();\n $criteria->add(UserTableMap::COL_ID, $this->id);\n $criteria->add(UserTableMap::COL_NICKNAME, $this->nickname);\n\n return $criteria;\n }",
"public function buildPkeyCriteria()\n {\n $criteria = ChildOrdrhedQuery::create();\n $criteria->add(OrdrhedTableMap::COL_SESSIONID, $this->sessionid);\n $criteria->add(OrdrhedTableMap::COL_RECNO, $this->recno);\n $criteria->add(OrdrhedTableMap::COL_ORDERNO, $this->orderno);\n\n return $criteria;\n }",
"public function buildPkeyCriteria()\n {\n $criteria = new Criteria(BangunanPeer::DATABASE_NAME);\n $criteria->add(BangunanPeer::ID_BANGUNAN, $this->id_bangunan);\n\n return $criteria;\n }",
"public function buildPkeyCriteria()\n\t{\n\t\t$criteria = new Criteria(UsuarioPeer::DATABASE_NAME);\n\t\t$criteria->add(UsuarioPeer::CO_USUARIO, $this->co_usuario);\n\n\t\treturn $criteria;\n\t}",
"public function buildPkeyCriteria()\n {\n $criteria = ChildPhoneBookQuery::create();\n $criteria->add(PhoneBookTableMap::COL_PHADTYPE, $this->phadtype);\n $criteria->add(PhoneBookTableMap::COL_PHADID, $this->phadid);\n $criteria->add(PhoneBookTableMap::COL_PHADSUBID, $this->phadsubid);\n $criteria->add(PhoneBookTableMap::COL_PHADSUBIDSEQ, $this->phadsubidseq);\n $criteria->add(PhoneBookTableMap::COL_PHADCONT, $this->phadcont);\n\n return $criteria;\n }",
"public function buildPkeyCriteria()\n {\n $criteria = ChildTblProdInfoQuery::create();\n $criteria->add(TblProdInfoTableMap::COL_PROD_ID, $this->prod_id);\n\n return $criteria;\n }",
"public function buildPkeyCriteria()\n {\n $criteria = ChildCommandeQuery::create();\n $criteria->add(CommandeTableMap::COL_ID_COMMANDE, $this->id_commande);\n\n return $criteria;\n }",
"public function buildPkeyCriteria()\n {\n $criteria = new Criteria(JadwalPeer::DATABASE_NAME);\n $criteria->add(JadwalPeer::SEKOLAH_ID, $this->sekolah_id);\n $criteria->add(JadwalPeer::SEMESTER_ID, $this->semester_id);\n $criteria->add(JadwalPeer::ID_RUANG, $this->id_ruang);\n $criteria->add(JadwalPeer::HARI, $this->hari);\n\n return $criteria;\n }",
"public function buildPkeyCriteria()\n {\n $criteria = new Criteria(SanitasiPeer::DATABASE_NAME);\n $criteria->add(SanitasiPeer::SEKOLAH_ID, $this->sekolah_id);\n $criteria->add(SanitasiPeer::SEMESTER_ID, $this->semester_id);\n\n return $criteria;\n }",
"public function buildPkeyCriteria()\n {\n $criteria = ChildSalesHistoryNotesQuery::create();\n $criteria->add(SalesHistoryNotesTableMap::COL_SHNTTYPE, $this->shnttype);\n $criteria->add(SalesHistoryNotesTableMap::COL_SHNTSEQ, $this->shntseq);\n $criteria->add(SalesHistoryNotesTableMap::COL_SHNTKEY2, $this->shntkey2);\n $criteria->add(SalesHistoryNotesTableMap::COL_SHNTFORM, $this->shntform);\n\n return $criteria;\n }",
"public function buildPkeyCriteria()\n\t{\n\t\t$criteria = new Criteria(J019tParticipantesPeer::DATABASE_NAME);\n\n\t\t$criteria->add(J019tParticipantesPeer::CO_PARTICIPANTE, $this->co_participante);\n\n\t\treturn $criteria;\n\t}",
"public function buildPkeyCriteria()\n {\n $criteria = new Criteria(ActionTypePeer::DATABASE_NAME);\n $criteria->add(ActionTypePeer::ID, $this->id);\n\n return $criteria;\n }",
"public function buildPkeyCriteria()\n {\n $criteria = ChildPoReceivingHeadQuery::create();\n $criteria->add(PoReceivingHeadTableMap::COL_POTHNBR, $this->pothnbr);\n\n return $criteria;\n }",
"public function PrimaryKey() {\n\t\t\treturn $this->intId;\n\t\t}",
"public function PrimaryKey() {\n\t\t\treturn $this->intId;\n\t\t}",
"public static function primaryKey()\n {\n $obj = new PrimaryKey();\n $obj->type = 'int';\n $obj->size = 10;\n $obj->auto_increment = true;\n $obj->primary_key = true;\n\n return $obj;\n }",
"public function primaryKey()\n {\n return $this->set('primary_key', true);\n }",
"public function makePrimaryKey()\n {\n $this->mapping['id'] = true;\n\n return $this;\n }",
"private static function genPrimaryKeyWhereClause() {\n return \"WHERE \" . self::ID_KEY . \"=\" . self::transformForPreparedStatement(self::ID_KEY);\n }",
"public function primary_key()\n\t{\n\t\treturn $this->primary_key;\n\t}",
"public function buildPkeyCriteria()\n {\n $criteria = new Criteria(FeatureCvtermPeer::DATABASE_NAME);\n $criteria->add(FeatureCvtermPeer::FEATURE_CVTERM_ID, $this->feature_cvterm_id);\n\n return $criteria;\n }",
"public static function primaryKey()\n {\n return ['_id'];\n }",
"protected function _getPrimaryKeyValue(){\n $primaryKey = $this->_getPrimaryKey();\n return $this->{$primaryKey};\n }",
"public function getPrimaryKey()\r\n\t{\r\n\t\treturn $this->primaryKey;\r\n\t}",
"protected function getPrimaryKeyCondition($primaryKeyValue) {\n return array(\n 'where' => \"{$this->_primaryKeyElement} = ?\",\n 'bindings' => array($primaryKeyValue)\n );\n }",
"public function getPrimaryKey()\n {\n return $this->primaryKey;\n }",
"protected function _getPrimaryIdKey()\n {\n if ($this->_primaryIdKey == null) {\n $info = $this->_getTable()->info();\n\n $this->_primaryIdKey = (string) array_shift($info[Zend_Db_Table_Abstract::PRIMARY]);\n }\n\n return $this->_primaryIdKey;\n }",
"function getPrimary_key()\n {\n if (!isset($this->aPrimary_key)) {\n $this->aPrimary_key = array('id_ubi' => $this->iid_ubi, 'id_tarifa' => $this->iid_tarifa, 'year' => $this->iyear, 'id_serie' => $this->iid_serie);\n }\n return $this->aPrimary_key;\n }",
"public static function primaryKey()\n {\n return static::PRIMARY_KEY;\n }",
"public function getPrimaryKey();",
"public function getPrimaryKey();",
"public function getPrimaryKey();",
"function get_primary_key_column()\n {\n return $this->object->_primary_key_column;\n }",
"abstract public function getPrimaryKey();",
"abstract public function getPrimaryKey();",
"public function primary(): self\n {\n $this->query = \" PRIMARY KEY \";\n return $this;\n }",
"protected function _getPrimaryKeyAttributes(){\n\t\treturn ActiveRecordMetaData::getPrimaryKeys($this->_source, $this->_schema);\n\t}",
"public function primary_key(){\n $table_columns = $this->meta();\n\n $primary_key_column = NULL;\n foreach ($table_columns as $col) :\n if($col->primary_key):\n $primary_key_column = $col->name;\n endif;\n endforeach;\n\n return $primary_key_column; \n }",
"protected function generateKeyFromCriteria(Mephex_Model_Criteria $criteria)\n\t{\n\t\tif($criteria->hasCriteriaFields(array('id')))\n\t\t{\n\t\t\treturn 'id=' . $criteria->getCriteriaValue('id');\n\t\t}\n\t\t\n\t\treturn null;\n\t}",
"function get_primary_key_column()\n {\n return $this->_primary_key_column;\n }",
"protected function getPrimaryKey()\n {\n return $this->getSubject()->getLastEntityId();\n }",
"function getPrimary_key()\n {\n if (!isset($this->aPrimary_key)) {\n $this->aPrimary_key = array('id_nom' => $this->iid_nom, 'id_nivel' => $this->iid_nivel);\n }\n return $this->aPrimary_key;\n }",
"function getPrimaryKey() {\n\t\treturn $this->_ID;\n\t}",
"function getPrimaryKey() {\n\t\treturn $this->_ID;\n\t}",
"function getPrimaryKey() {\n\t\treturn $this->_ID;\n\t}",
"public function getPrimaryKeyField()\n\t{\n\t\treturn $this->primaryKey;\n\t}",
"function getPrimary_key()\n {\n if (!isset($this->aPrimary_key)) {\n $this->aPrimary_key = array('id_dl' => $this->iid_dl);\n }\n return $this->aPrimary_key;\n }",
"public function buildCriteria()\n {\n $criteria = new Criteria(PhoneBookTableMap::DATABASE_NAME);\n\n if ($this->isColumnModified(PhoneBookTableMap::COL_PHADTYPE)) {\n $criteria->add(PhoneBookTableMap::COL_PHADTYPE, $this->phadtype);\n }\n if ($this->isColumnModified(PhoneBookTableMap::COL_PHADID)) {\n $criteria->add(PhoneBookTableMap::COL_PHADID, $this->phadid);\n }\n if ($this->isColumnModified(PhoneBookTableMap::COL_PHADSUBID)) {\n $criteria->add(PhoneBookTableMap::COL_PHADSUBID, $this->phadsubid);\n }\n if ($this->isColumnModified(PhoneBookTableMap::COL_PHADSUBIDSEQ)) {\n $criteria->add(PhoneBookTableMap::COL_PHADSUBIDSEQ, $this->phadsubidseq);\n }\n if ($this->isColumnModified(PhoneBookTableMap::COL_PHADCONT)) {\n $criteria->add(PhoneBookTableMap::COL_PHADCONT, $this->phadcont);\n }\n if ($this->isColumnModified(PhoneBookTableMap::COL_PHADINTL)) {\n $criteria->add(PhoneBookTableMap::COL_PHADINTL, $this->phadintl);\n }\n if ($this->isColumnModified(PhoneBookTableMap::COL_PHADTELENBR)) {\n $criteria->add(PhoneBookTableMap::COL_PHADTELENBR, $this->phadtelenbr);\n }\n if ($this->isColumnModified(PhoneBookTableMap::COL_PHADTELEEXT)) {\n $criteria->add(PhoneBookTableMap::COL_PHADTELEEXT, $this->phadteleext);\n }\n if ($this->isColumnModified(PhoneBookTableMap::COL_PHADINTLNBR)) {\n $criteria->add(PhoneBookTableMap::COL_PHADINTLNBR, $this->phadintlnbr);\n }\n if ($this->isColumnModified(PhoneBookTableMap::COL_PHADINTLEXT)) {\n $criteria->add(PhoneBookTableMap::COL_PHADINTLEXT, $this->phadintlext);\n }\n if ($this->isColumnModified(PhoneBookTableMap::COL_PHADFAXNBR)) {\n $criteria->add(PhoneBookTableMap::COL_PHADFAXNBR, $this->phadfaxnbr);\n }\n if ($this->isColumnModified(PhoneBookTableMap::COL_PHADIFAXNBR)) {\n $criteria->add(PhoneBookTableMap::COL_PHADIFAXNBR, $this->phadifaxnbr);\n }\n if ($this->isColumnModified(PhoneBookTableMap::COL_PHADCELLNBR)) {\n $criteria->add(PhoneBookTableMap::COL_PHADCELLNBR, $this->phadcellnbr);\n }\n if ($this->isColumnModified(PhoneBookTableMap::COL_PHADICELLNBR)) {\n $criteria->add(PhoneBookTableMap::COL_PHADICELLNBR, $this->phadicellnbr);\n }\n if ($this->isColumnModified(PhoneBookTableMap::COL_PHADHOMENBR)) {\n $criteria->add(PhoneBookTableMap::COL_PHADHOMENBR, $this->phadhomenbr);\n }\n if ($this->isColumnModified(PhoneBookTableMap::COL_PHADIHOMENBR)) {\n $criteria->add(PhoneBookTableMap::COL_PHADIHOMENBR, $this->phadihomenbr);\n }\n if ($this->isColumnModified(PhoneBookTableMap::COL_PHADWEBADDR)) {\n $criteria->add(PhoneBookTableMap::COL_PHADWEBADDR, $this->phadwebaddr);\n }\n if ($this->isColumnModified(PhoneBookTableMap::COL_PHADEMAILADDR)) {\n $criteria->add(PhoneBookTableMap::COL_PHADEMAILADDR, $this->phademailaddr);\n }\n if ($this->isColumnModified(PhoneBookTableMap::COL_PHADNAME)) {\n $criteria->add(PhoneBookTableMap::COL_PHADNAME, $this->phadname);\n }\n if ($this->isColumnModified(PhoneBookTableMap::COL_PHADCONTNAME)) {\n $criteria->add(PhoneBookTableMap::COL_PHADCONTNAME, $this->phadcontname);\n }\n if ($this->isColumnModified(PhoneBookTableMap::COL_DATEUPDTD)) {\n $criteria->add(PhoneBookTableMap::COL_DATEUPDTD, $this->dateupdtd);\n }\n if ($this->isColumnModified(PhoneBookTableMap::COL_TIMEUPDTD)) {\n $criteria->add(PhoneBookTableMap::COL_TIMEUPDTD, $this->timeupdtd);\n }\n if ($this->isColumnModified(PhoneBookTableMap::COL_DUMMY)) {\n $criteria->add(PhoneBookTableMap::COL_DUMMY, $this->dummy);\n }\n\n return $criteria;\n }",
"public function getPrimaryKey()\n {\n return $this->getOpPrimeId();\n }",
"public static function primaryKey() {\n return (new static)->getKeyName();\n }",
"public static function primaryKey()\n {\n return ['id'];\n }",
"public static function primaryKey()\n {\n return ['id'];\n }",
"protected static function buildConditionByPk($primary_key)\n {\n if (!is_array($primary_key)) {\n throw new InvalidParameterException(\n _s('Primary Key is no array, maybe you wanted to use AbstractModelWithId instead?')\n );\n }\n\n $sql = \" (\";\n\n // add each column to query\n foreach (array_keys($primary_key) as $i => $key) {\n if ($i > 0) {\n $sql .= \" AND \";\n }\n $sql .= \"\\\"\".$key.\"\\\" = :\".$key;\n }\n $sql .= \") \";\n\n return [\n 'sql' => $sql,\n 'params' => $primary_key\n ];\n }",
"public function getPrimaryKey()\n {\n if ($this->_primaryKey === null) {\n $schema = $this->getSchema();\n $key = $schema->getPrimaryKey();\n if (count($key) === 1) {\n $key = $key[0];\n }\n $this->_primaryKey = $key;\n }\n\n return $this->_primaryKey;\n }",
"private function _fetch_table_primary_key()\n {\n if ($this->primary_key == null) {\n $this->primary_key = preg_replace('/(_m|_model)?$/', '', strtolower(get_class($this))) . '_id';\n }\n }",
"private function _fetch_table_primary_key()\n {\n if ($this->primary_key == null) {\n $this->primary_key = preg_replace('/(_m|_model)?$/', '', strtolower(get_class($this))) . '_id';\n }\n }",
"function getPrimary_key()\n {\n if (!isset($this->aPrimary_key)) {\n $this->aPrimary_key = array('id_activ' => $this->iid_activ, 'id_asignatura' => $this->iid_asignatura, 'id_nom' => $this->iid_nom);\n }\n return $this->aPrimary_key;\n }",
"abstract function getPrimaryKey();",
"function getPrimary_key()\n {\n if (!isset($this->aPrimary_key)) {\n $this->aPrimary_key = array('id_item' => $this->iid_item);\n }\n return $this->aPrimary_key;\n }",
"function getPrimary_key()\n {\n if (!isset($this->aPrimary_key)) {\n $this->aPrimary_key = array('id_item' => $this->iid_item);\n }\n return $this->aPrimary_key;\n }",
"function PrimaryKey ( $cPrimaryKey=null )\n{\n if ( isset($cPrimaryKey) ) {\n $cPrimaryKey = $this->_FixCase_($cPrimaryKey);\n if ( $this->_PrimaryKeyStr != $cPrimaryKey || $this->_inLoading_ ) {\n $this->_PrimaryKeyStr = $cPrimaryKey;\n if ( $this->KeyName() == '' ) $this->KeyName($cPrimaryKey);\n }\n return true;\n } else {\n return $this->_PrimaryKeyStr;\n }\n}",
"public static function primaryKey()\n {\n return 'id';\n }",
"public function buildCriteria()\n\t{\n\t\t$criteria = new Criteria(CidadePeer::DATABASE_NAME);\n\n\t\tif ($this->isColumnModified(CidadePeer::ID)) $criteria->add(CidadePeer::ID, $this->id);\n\t\tif ($this->isColumnModified(CidadePeer::UF_ID)) $criteria->add(CidadePeer::UF_ID, $this->uf_id);\n\t\tif ($this->isColumnModified(CidadePeer::NOME)) $criteria->add(CidadePeer::NOME, $this->nome);\n\t\tif ($this->isColumnModified(CidadePeer::SLUG)) $criteria->add(CidadePeer::SLUG, $this->slug);\n\t\tif ($this->isColumnModified(CidadePeer::LONGITUDE)) $criteria->add(CidadePeer::LONGITUDE, $this->longitude);\n\t\tif ($this->isColumnModified(CidadePeer::LATITUDE)) $criteria->add(CidadePeer::LATITUDE, $this->latitude);\n\n\t\treturn $criteria;\n\t}",
"public function primaryKey()\n {\n return $this->data[static::$primaryKey] ?? null;\n }",
"function getPrimary_key()\n {\n if (!isset($this->aPrimary_key)) {\n $this->aPrimary_key = array('id_situacion' => $this->iid_situacion);\n }\n return $this->aPrimary_key;\n }",
"public function getPk()\n {\n return $this->{static::primaryKey()};\n }",
"public static function getPk(){\n return static::$_primaryKey;\n }",
"function pk_key() {\r\n\t\t$c = 0;\r\n\t\tfor($i = 0; $i < count ( $this->fields ); $i ++) {\r\n\t\t\tif ($this->fields [$i] ['PK'] == 'yes') {\r\n\t\t\t\t$pk_key [$c] = $this->fields [$i] ['VAR'];\r\n\t\t\t\t$c ++;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn $pk_key;\r\n\t}",
"public function buildCriteria()\n {\n $criteria = new Criteria(BiblioTableMap::DATABASE_NAME);\n\n if ($this->isColumnModified(BiblioTableMap::COL_BIBLIO_ID)) {\n $criteria->add(BiblioTableMap::COL_BIBLIO_ID, $this->biblio_id);\n }\n if ($this->isColumnModified(BiblioTableMap::COL_TITLE)) {\n $criteria->add(BiblioTableMap::COL_TITLE, $this->title);\n }\n if ($this->isColumnModified(BiblioTableMap::COL_SOR)) {\n $criteria->add(BiblioTableMap::COL_SOR, $this->sor);\n }\n if ($this->isColumnModified(BiblioTableMap::COL_EDITION)) {\n $criteria->add(BiblioTableMap::COL_EDITION, $this->edition);\n }\n if ($this->isColumnModified(BiblioTableMap::COL_ISBN_ISSN)) {\n $criteria->add(BiblioTableMap::COL_ISBN_ISSN, $this->isbn_issn);\n }\n if ($this->isColumnModified(BiblioTableMap::COL_PUBLISHER_ID)) {\n $criteria->add(BiblioTableMap::COL_PUBLISHER_ID, $this->publisher_id);\n }\n if ($this->isColumnModified(BiblioTableMap::COL_PUBLISH_YEAR)) {\n $criteria->add(BiblioTableMap::COL_PUBLISH_YEAR, $this->publish_year);\n }\n if ($this->isColumnModified(BiblioTableMap::COL_COLLATION)) {\n $criteria->add(BiblioTableMap::COL_COLLATION, $this->collation);\n }\n if ($this->isColumnModified(BiblioTableMap::COL_SERIES_TITLE)) {\n $criteria->add(BiblioTableMap::COL_SERIES_TITLE, $this->series_title);\n }\n if ($this->isColumnModified(BiblioTableMap::COL_CALL_NUMBER)) {\n $criteria->add(BiblioTableMap::COL_CALL_NUMBER, $this->call_number);\n }\n if ($this->isColumnModified(BiblioTableMap::COL_LANGUAGE_ID)) {\n $criteria->add(BiblioTableMap::COL_LANGUAGE_ID, $this->language_id);\n }\n if ($this->isColumnModified(BiblioTableMap::COL_SOURCE)) {\n $criteria->add(BiblioTableMap::COL_SOURCE, $this->source);\n }\n if ($this->isColumnModified(BiblioTableMap::COL_PUBLISH_PLACE_ID)) {\n $criteria->add(BiblioTableMap::COL_PUBLISH_PLACE_ID, $this->publish_place_id);\n }\n if ($this->isColumnModified(BiblioTableMap::COL_CLASSIFICATION)) {\n $criteria->add(BiblioTableMap::COL_CLASSIFICATION, $this->classification);\n }\n if ($this->isColumnModified(BiblioTableMap::COL_NOTES)) {\n $criteria->add(BiblioTableMap::COL_NOTES, $this->notes);\n }\n if ($this->isColumnModified(BiblioTableMap::COL_IMAGE)) {\n $criteria->add(BiblioTableMap::COL_IMAGE, $this->image);\n }\n if ($this->isColumnModified(BiblioTableMap::COL_FILE_ATT)) {\n $criteria->add(BiblioTableMap::COL_FILE_ATT, $this->file_att);\n }\n if ($this->isColumnModified(BiblioTableMap::COL_OPAC_HIDE)) {\n $criteria->add(BiblioTableMap::COL_OPAC_HIDE, $this->opac_hide);\n }\n if ($this->isColumnModified(BiblioTableMap::COL_PROMOTED)) {\n $criteria->add(BiblioTableMap::COL_PROMOTED, $this->promoted);\n }\n if ($this->isColumnModified(BiblioTableMap::COL_LABELS)) {\n $criteria->add(BiblioTableMap::COL_LABELS, $this->labels);\n }\n if ($this->isColumnModified(BiblioTableMap::COL_FREQUENCY_ID)) {\n $criteria->add(BiblioTableMap::COL_FREQUENCY_ID, $this->frequency_id);\n }\n if ($this->isColumnModified(BiblioTableMap::COL_SPEC_DETAIL_INFO)) {\n $criteria->add(BiblioTableMap::COL_SPEC_DETAIL_INFO, $this->spec_detail_info);\n }\n if ($this->isColumnModified(BiblioTableMap::COL_INPUT_DATE)) {\n $criteria->add(BiblioTableMap::COL_INPUT_DATE, $this->input_date);\n }\n if ($this->isColumnModified(BiblioTableMap::COL_LAST_UPDATE)) {\n $criteria->add(BiblioTableMap::COL_LAST_UPDATE, $this->last_update);\n }\n if ($this->isColumnModified(BiblioTableMap::COL_UID)) {\n $criteria->add(BiblioTableMap::COL_UID, $this->uid);\n }\n\n return $criteria;\n }",
"public function getPrimaryKey()\n\t{\n\t\treturn $this->getCoParticipante();\n\t}",
"public function getPKField() {\n return $this->_key_field;\n }",
"public function getPrimaryKey()\n {\n return $this->getid();\n }",
"public function buildCriteria()\n {\n $criteria = new Criteria(ArticleTableMap::DATABASE_NAME);\n\n if ($this->isColumnModified(ArticleTableMap::COL_ARTICLE_ID)) {\n $criteria->add(ArticleTableMap::COL_ARTICLE_ID, $this->article_id);\n }\n if ($this->isColumnModified(ArticleTableMap::COL_DESCRIPTION)) {\n $criteria->add(ArticleTableMap::COL_DESCRIPTION, $this->description);\n }\n if ($this->isColumnModified(ArticleTableMap::COL_PRICE)) {\n $criteria->add(ArticleTableMap::COL_PRICE, $this->price);\n }\n if ($this->isColumnModified(ArticleTableMap::COL_CREATION)) {\n $criteria->add(ArticleTableMap::COL_CREATION, $this->creation);\n }\n if ($this->isColumnModified(ArticleTableMap::COL_VISIBLE)) {\n $criteria->add(ArticleTableMap::COL_VISIBLE, $this->visible);\n }\n if ($this->isColumnModified(ArticleTableMap::COL_SHAPE_ID)) {\n $criteria->add(ArticleTableMap::COL_SHAPE_ID, $this->shape_id);\n }\n if ($this->isColumnModified(ArticleTableMap::COL_CAKE_TYPE_ID)) {\n $criteria->add(ArticleTableMap::COL_CAKE_TYPE_ID, $this->cake_type_id);\n }\n\n return $criteria;\n }",
"public function buildCriteria()\n {\n $criteria = new Criteria(UserTableMap::DATABASE_NAME);\n\n if ($this->isColumnModified(UserTableMap::COL_ID)) {\n $criteria->add(UserTableMap::COL_ID, $this->id);\n }\n if ($this->isColumnModified(UserTableMap::COL_NICKNAME)) {\n $criteria->add(UserTableMap::COL_NICKNAME, $this->nickname);\n }\n if ($this->isColumnModified(UserTableMap::COL_EMAIL)) {\n $criteria->add(UserTableMap::COL_EMAIL, $this->email);\n }\n if ($this->isColumnModified(UserTableMap::COL_AGE)) {\n $criteria->add(UserTableMap::COL_AGE, $this->age);\n }\n if ($this->isColumnModified(UserTableMap::COL_SEX)) {\n $criteria->add(UserTableMap::COL_SEX, $this->sex);\n }\n if ($this->isColumnModified(UserTableMap::COL_CREATED_AT)) {\n $criteria->add(UserTableMap::COL_CREATED_AT, $this->created_at);\n }\n if ($this->isColumnModified(UserTableMap::COL_UPDATED_AT)) {\n $criteria->add(UserTableMap::COL_UPDATED_AT, $this->updated_at);\n }\n\n return $criteria;\n }",
"public function buildCriteria()\n {\n $criteria = new Criteria(YearPeer::DATABASE_NAME);\n\n if ($this->isColumnModified(YearPeer::ID)) $criteria->add(YearPeer::ID, $this->id);\n if ($this->isColumnModified(YearPeer::NAME)) $criteria->add(YearPeer::NAME, $this->name);\n if ($this->isColumnModified(YearPeer::IS_ACTIVE)) $criteria->add(YearPeer::IS_ACTIVE, $this->is_active);\n if ($this->isColumnModified(YearPeer::IS_CLOSED)) $criteria->add(YearPeer::IS_CLOSED, $this->is_closed);\n if ($this->isColumnModified(YearPeer::FROM_DATE)) $criteria->add(YearPeer::FROM_DATE, $this->from_date);\n if ($this->isColumnModified(YearPeer::TO_DATE)) $criteria->add(YearPeer::TO_DATE, $this->to_date);\n if ($this->isColumnModified(YearPeer::SORTABLE_RANK)) $criteria->add(YearPeer::SORTABLE_RANK, $this->sortable_rank);\n\n return $criteria;\n }",
"public function preparePrimaryKeyName()\n {\n $this->primaryKeyName = $this->getOption('primary');\n\n if (empty($this->primaryKeyName)) {\n $this->primaryKeyName = 'id';\n }\n }",
"public function getPrimaryKey()\n\t{\n\t\treturn $this->_rowKey;\n\t}",
"public function getPrimaryKey()\n {\n return $this->getId();\n }",
"public function getPrimaryKey()\n {\n return $this->getId();\n }",
"public function getPrimaryKey()\n {\n return $this->getId();\n }",
"public function getPrimaryKey()\n {\n return $this->getId();\n }"
] | [
"0.7406122",
"0.7295676",
"0.7288419",
"0.72496676",
"0.72496676",
"0.7239242",
"0.7178724",
"0.712078",
"0.70241076",
"0.70038855",
"0.6992874",
"0.6935167",
"0.6832735",
"0.6814747",
"0.681366",
"0.6757555",
"0.6749308",
"0.6729448",
"0.6685484",
"0.66692054",
"0.6663361",
"0.666056",
"0.66556156",
"0.66313",
"0.66198266",
"0.661662",
"0.661573",
"0.6605034",
"0.6599207",
"0.65200365",
"0.6372942",
"0.6295375",
"0.62504",
"0.62504",
"0.62295574",
"0.62111366",
"0.62102246",
"0.61504364",
"0.61106944",
"0.59978527",
"0.5987753",
"0.59802175",
"0.595105",
"0.5933374",
"0.59263915",
"0.5905082",
"0.5893383",
"0.58795774",
"0.5868683",
"0.5868683",
"0.5868683",
"0.58369726",
"0.58171415",
"0.58171415",
"0.5800791",
"0.5780807",
"0.5761741",
"0.5755812",
"0.5752918",
"0.5748454",
"0.574649",
"0.57413024",
"0.57413024",
"0.57413024",
"0.5723535",
"0.57188267",
"0.57108665",
"0.5707146",
"0.5696967",
"0.5692699",
"0.5692699",
"0.5688871",
"0.5684042",
"0.5681426",
"0.5681426",
"0.56598896",
"0.5658371",
"0.5657734",
"0.5657734",
"0.5655851",
"0.56544214",
"0.56469876",
"0.564072",
"0.56385565",
"0.5619019",
"0.5612679",
"0.5608012",
"0.5595919",
"0.55897224",
"0.5586505",
"0.55841684",
"0.5575814",
"0.5568634",
"0.5565685",
"0.5545093",
"0.5540351",
"0.55399185",
"0.55399185",
"0.55399185",
"0.55399185"
] | 0.64913183 | 30 |
Returns the primary key for this object (row). | public function getPrimaryKey()
{
return $this->getOpPrimeId();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getPrimaryKey()\n\t{\n\t\treturn $this->_rowKey;\n\t}",
"public function PrimaryKey() {\n\t\t\treturn $this->intId;\n\t\t}",
"public function PrimaryKey() {\n\t\t\treturn $this->intId;\n\t\t}",
"public function primary_key()\n\t{\n\t\treturn $this->primary_key;\n\t}",
"public function getPrimaryKey(phpDataMapper_Model_Row $row)\n\t{\n\t\t$pkField = $this->getPrimaryKeyField();\n\t\treturn $row->$pkField;\n\t}",
"public function getPrimaryKey()\r\n\t{\r\n\t\treturn $this->primaryKey;\r\n\t}",
"public function getPrimaryKey() {\n\t\treturn $this->_key_primary->name;\n\t}",
"public function getPrimaryKey()\n {\n return $this->primaryKey;\n }",
"function get_primary_key_column()\n {\n return $this->object->_primary_key_column;\n }",
"protected function _getPrimaryKey(): string\n {\n if (!$this->_primaryKey) {\n $primaryKey = (array)$this->_table->getPrimaryKey();\n $this->_primaryKey = $primaryKey[0];\n }\n\n return $this->_primaryKey;\n }",
"public function getPk()\n {\n return $this->{static::primaryKey()};\n }",
"public function get_primary_row(){\r\n $result = $this->db->query(\"SHOW KEYS FROM \". $this->db->formatTableName($this->table). \"\r\n WHERE Key_name = %s\"\r\n , \"PRIMARY\");\r\n $pk = \"\";\r\n foreach ($result as $res){\r\n $pk = $res[\"Column_name\"];\r\n }\r\n return $pk;\r\n }",
"public function getPrimaryKey()\n {\n return $this->getPothnbr();\n }",
"public function getPrimaryKey()\n {\n return $this->getid();\n }",
"protected function _getPrimaryIdKey()\n {\n if ($this->_primaryIdKey == null) {\n $info = $this->_getTable()->info();\n\n $this->_primaryIdKey = (string) array_shift($info[Zend_Db_Table_Abstract::PRIMARY]);\n }\n\n return $this->_primaryIdKey;\n }",
"public function getPrimaryKey() {\n return $this->_data->getDeepValue('indexes/primary/columns/0', null);\n }",
"public function getPrimaryKey();",
"public function getPrimaryKey();",
"public function getPrimaryKey();",
"public static function getPk(){\n return static::$_primaryKey;\n }",
"public function getPrimaryKey()\n {\n if ($this->_primaryKey === null) {\n $schema = $this->getSchema();\n $key = $schema->getPrimaryKey();\n if (count($key) === 1) {\n $key = $key[0];\n }\n $this->_primaryKey = $key;\n }\n\n return $this->_primaryKey;\n }",
"function getPrimaryKey() {\n\t\treturn $this->_ID;\n\t}",
"function getPrimaryKey() {\n\t\treturn $this->_ID;\n\t}",
"function getPrimaryKey() {\n\t\treturn $this->_ID;\n\t}",
"public function getPrimaryKey()\n\t{\n\t\treturn $this->getId();\n\t}",
"public function getPrimaryKey()\n\t{\n\t\treturn $this->getId();\n\t}",
"public function getPrimaryKey()\n\t{\n\t\treturn $this->getId();\n\t}",
"public function getPrimaryKey()\n\t{\n\t\treturn $this->getId();\n\t}",
"public function getPrimaryKey()\n\t{\n\t\treturn $this->getId();\n\t}",
"public function getPrimaryKey()\n\t{\n\t\treturn $this->getId();\n\t}",
"public function getPrimaryKey()\n\t{\n\t\treturn $this->getId();\n\t}",
"public function getPrimaryKey()\n\t{\n\t\treturn $this->getId();\n\t}",
"public function getPrimaryKeyField()\n\t{\n\t\treturn $this->primaryKey;\n\t}",
"public function getPrimaryKey()\n {\n return $this->getId();\n }",
"public function getPrimaryKey()\n {\n return $this->getId();\n }",
"public function getPrimaryKey()\n {\n return $this->getId();\n }",
"public function getPrimaryKey()\n {\n return $this->getId();\n }",
"public function getPrimaryKey()\n {\n return $this->getId();\n }",
"function get_primary_key_column()\n {\n return $this->_primary_key_column;\n }",
"public function primary_key(){\n $table_columns = $this->meta();\n\n $primary_key_column = NULL;\n foreach ($table_columns as $col) :\n if($col->primary_key):\n $primary_key_column = $col->name;\n endif;\n endforeach;\n\n return $primary_key_column; \n }",
"private function getPrimaryKey()\n {\n $result = database()->fetchResult('SHOW KEYS FROM ' . $this->table . ' WHERE Key_name = \"PRIMARY\"');\n\n return ($result['Column_name'] ?? null);\n }",
"public function getPrimaryKey()\n\t{\n\t\treturn $this->name;\n\t}",
"public function getPrimaryKey()\n {\n $cols = $this->info('cols');\n return $cols[0];\n }",
"public function getPrimaryKey()\n {\n return $this->getSekolahId();\n }",
"public static function getPrimaryKey()\n {\n return self::getRepo()->getPrimaryKey();\n }",
"public static function primaryKey()\n {\n return static::PRIMARY_KEY;\n }",
"public function primaryKey()\n {\n return $this->data[static::$primaryKey] ?? null;\n }",
"public function getPrimaryKey() {\n\t\tif ((bool) $this->_result) {\n\t\t\tif (isset($this->_result[0])) return (int) $this->_result[0];\n\t\t\telse parent::throwGetColException('PollTemplatesModel::getPrimaryKey', __LINE__, __FILE__);\n\t\t}\n\t\telse return parent::throwNoResException('PollTemplatesModel::getPrimaryKey', __LINE__, __FILE__);\n\t}",
"public static function primaryKey() {\n return (new static)->getKeyName();\n }",
"public function getPrimaryKeyColumn() : string\n {\n return $this->primaryKey;\n }",
"public function primaryKey()\n {\n return $this->set('primary_key', true);\n }",
"public function getPrimaryKeyName()\n {\n return self::$primary_key_name;\n }",
"abstract public function getPrimaryKey();",
"abstract public function getPrimaryKey();",
"public function getPrimaryKeyFieldName(){\n\t\treturn $this->primaryKey;\n\t}",
"public function getPrimaryKeyName()\n {\n return $this->primaryKeyName;\n }",
"public function getPrimaryKey() {\n\t\tif ((bool) $this->_result) {\n\t\t\tif (isset($this->_result[0])) return (int) $this->_result[0];\n\t\t\telse parent::throwGetColException('ProjectsListingsModel::getPrimaryKey', __LINE__, __FILE__);\n\t\t}\n\t\telse return parent::throwNoResException('ProjectsListingsModel::getPrimaryKey', __LINE__, __FILE__);\n\t}",
"protected function getPrimaryKey()\n {\n return $this->getSubject()->getLastEntityId();\n }",
"public function getPrimaryKey()\n {\n return $this->getArticleId();\n }",
"function getPrimary_key()\n {\n if (!isset($this->aPrimary_key)) {\n $this->aPrimary_key = array('id_item' => $this->iid_item);\n }\n return $this->aPrimary_key;\n }",
"function getPrimary_key()\n {\n if (!isset($this->aPrimary_key)) {\n $this->aPrimary_key = array('id_item' => $this->iid_item);\n }\n return $this->aPrimary_key;\n }",
"function getPrimary_key()\n {\n if (!isset($this->aPrimary_key)) {\n $this->aPrimary_key = array('id_dl' => $this->iid_dl);\n }\n return $this->aPrimary_key;\n }",
"public function getId()\n {\n return $this->{self::getPrimaryKey()};\n }",
"public function getPk()\n {\n return $this->_pk;\n }",
"function getPrimary_key()\n {\n if (!isset($this->aPrimary_key)) {\n $this->aPrimary_key = array('id_ubi' => $this->iid_ubi, 'id_tarifa' => $this->iid_tarifa, 'year' => $this->iyear, 'id_serie' => $this->iid_serie);\n }\n return $this->aPrimary_key;\n }",
"public function getID()\n {\n return $this->getKey();\n }",
"public function getPrimaryKey() {\n\t\tif ((bool) $this->_result) {\n\t\t\tif (isset($this->_result[0])) return (int) $this->_result[0];\n\t\t\telse parent::throwGetColException('CampaignDefinitionsModel::getPrimaryKey', __LINE__, __FILE__);\n\t\t}\n\t\telse return parent::throwNoResException('CampaignDefinitionsModel::getPrimaryKey', __LINE__, __FILE__);\n\t}",
"abstract function getPrimaryKey();",
"public function getPrimaryKey()\n\t{\n\t\treturn $this->getCoParticipante();\n\t}",
"public function getKeyName()\n {\n return $this->primaryKey;\n }",
"public function getKeyName()\n {\n return $this->primaryKey;\n }",
"function getPrimary_key()\n {\n if (!isset($this->aPrimary_key)) {\n $this->aPrimary_key = array('id_nom' => $this->iid_nom, 'id_nivel' => $this->iid_nivel);\n }\n return $this->aPrimary_key;\n }",
"public function getPrimaryKey() {\n\t\tif ((bool) $this->_result) {\n\t\t\tif (isset($this->_result[0])) return (int) $this->_result[0];\n\t\t\telse parent::throwGetColException('DiscussCategoriesModel::getPrimaryKey', __LINE__, __FILE__);\n\t\t}\n\t\telse return parent::throwNoResException('DiscussCategoriesModel::getPrimaryKey', __LINE__, __FILE__);\n\t}",
"protected function _getPrimaryKey(){\n $def = $this->_getDef();\n foreach($def as $column){\n if($column['primary'] === true){\n return $column['field_name'];\n }\n }\n \n return false;\n }",
"public function getPrimaryKey()\n {\n return $this->getIdmontacargas();\n }",
"public function getPrimaryKeyField()\n\t{\n\t\tif ($this->primaryKeyField === null)\n\t\t{\n\t\t\tthrow new DataMapper_Exception('No primary key field set for ' . __CLASS__);\n\t\t}\n\t\treturn $this->primaryKeyField;\n\t}",
"public function id()\n\t{\n\t\treturn $this->get($this->meta()->primary_key);\n\t}",
"public function getKey()\n {\n return $this->id;\n }",
"public function key()\r\n\t{\r\n\t\treturn $this->elements[$this->i]->get($this->obj->primaryKey);\r\n\t}",
"public function getRowId() {\n return $this->_row_id;\n }",
"public function getPrimaryKey()\n\t{\n\t\treturn $this->getCoNumInventario();\n\t}",
"public function getPrimaryKey()\n\t{\n\t\treturn $this->getCoUsuario();\n\t}",
"protected function _getPrimaryKeyValue(){\n $primaryKey = $this->_getPrimaryKey();\n return $this->{$primaryKey};\n }",
"public function get_id()\n {\n $pkey = static::tinydb_get_table_info()->primary_key;\n if (is_array($pkey)) {\n $val = array();\n foreach ($pkey as $field) {\n $val[$field] = \\TinyDb\\Internal\\SqlDataAdapters::decode(static::tinydb_get_table_info()->field_info($field)->type,\n $this->tinydb_rowdata[$field]);\n }\n } else {\n $val = \\TinyDb\\Internal\\SqlDataAdapters::decode(static::tinydb_get_table_info()->field_info($pkey)->type,\n $this->tinydb_rowdata[$pkey]);\n }\n\n\n return $val;\n }",
"public function getPKField() {\n return $this->_key_field;\n }",
"public function getPrimaryKey()\n\t{\n $indexes = $this->getIndexes();\n\n foreach ($indexes as $index){\n if ($index['Key_name'] == \"PRIMARY\"){\n return $index;\n }\n }\n\n \t\t\n\t}",
"public function get_primary_column()\n {\n }",
"public function getRowID() {\n return $this->_row_id;\n }",
"function getPrimaryKey() {\n\n $count = $this->find('count');\n $primaryKey = $count + 1;\n\n if ($this->find('count', array('conditions' => array($this->name . '.' . $this->primaryKey => $primaryKey))) > 0) {\n\n $i = (int) $count;\n\n while ($i >= 1) {\n\n $i += 1;\n\n $primaryKey = $i;\n\n $returnValue = $this->find('count', array('conditions' => array($this->name . '.' . $this->primaryKey => $primaryKey)));\n\n if ($returnValue == 0) {\n\n break;\n }\n\n $i++;\n }\n\n return $primaryKey;\n } else {\n\n return $primaryKey;\n }\n }",
"function getPrimary_key()\n {\n if (!isset($this->aPrimary_key)) {\n $this->aPrimary_key = array('id_region' => $this->iid_region);\n }\n return $this->aPrimary_key;\n }",
"public static function primaryKey()\n {\n $obj = new PrimaryKey();\n $obj->type = 'int';\n $obj->size = 10;\n $obj->auto_increment = true;\n $obj->primary_key = true;\n\n return $obj;\n }",
"private function _fetch_primary_key()\n {\n if($this->primaryKey == NULl)\n {\n $this->primaryKey = $this->db->query(\"SHOW KEYS FROM `\".$this->_table.\"` WHERE Key_name = 'PRIMARY'\")->row()->Column_name;\n }\n }",
"public function getId()\n {\n return $this->getPrimaryKey();\n }",
"public function getId()\n {\n return $this->getPrimaryKey();\n }",
"public function getId()\n {\n return $this->getPrimaryKey();\n }",
"public function getId()\n {\n return $this->getPrimaryKey();\n }",
"public function getKeyName()\n {\n if (!$this->primaryKey) {\n if ($key = $this->getPrimaryFromFields()) {\n $this->primaryKey = $key;\n } else {\n $this->primaryKey = 'id';\n }\n }\n\n return $this->primaryKey;\n }",
"function getPrimary_key()\n {\n if (!isset($this->aPrimary_key)) {\n $this->aPrimary_key = array('id_activ' => $this->iid_activ, 'id_asignatura' => $this->iid_asignatura, 'id_nom' => $this->iid_nom);\n }\n return $this->aPrimary_key;\n }",
"public function get_key($row) {\n return null;\n }",
"public function id()\n {\n return $this->read($this->metadata['pk']->name);\n }"
] | [
"0.85950845",
"0.8418874",
"0.8418874",
"0.84149414",
"0.8307529",
"0.8239426",
"0.8181039",
"0.8176757",
"0.81353986",
"0.81147987",
"0.81039685",
"0.8069813",
"0.80607855",
"0.80430776",
"0.80196464",
"0.79963756",
"0.79677147",
"0.79677147",
"0.79677147",
"0.7962187",
"0.7935954",
"0.79153526",
"0.79153526",
"0.79153526",
"0.7906709",
"0.7906709",
"0.7906709",
"0.7906709",
"0.7906709",
"0.7906709",
"0.7906709",
"0.7906709",
"0.79066455",
"0.7905249",
"0.7905249",
"0.7905249",
"0.7905249",
"0.7905249",
"0.7897293",
"0.78440976",
"0.7829844",
"0.78295803",
"0.77920806",
"0.7769749",
"0.776519",
"0.77541256",
"0.7737338",
"0.7724106",
"0.7722161",
"0.77131724",
"0.7701345",
"0.76775503",
"0.76613617",
"0.76613617",
"0.7657197",
"0.76559764",
"0.7653149",
"0.76395726",
"0.75985616",
"0.753782",
"0.753782",
"0.7524857",
"0.75234365",
"0.75207454",
"0.74961174",
"0.7483462",
"0.74815387",
"0.74696976",
"0.74685985",
"0.7467527",
"0.7467527",
"0.7456203",
"0.7448219",
"0.7444611",
"0.7424288",
"0.7412219",
"0.74061006",
"0.7401048",
"0.7391764",
"0.73908615",
"0.73877406",
"0.7383756",
"0.7379053",
"0.7366221",
"0.73637366",
"0.7359662",
"0.7351296",
"0.73508054",
"0.7339407",
"0.73342633",
"0.7332215",
"0.73283595",
"0.7327817",
"0.7327817",
"0.7327817",
"0.7327817",
"0.73156536",
"0.73141634",
"0.73117477",
"0.7308547"
] | 0.7568625 | 59 |
Generic method to set the primary key (op_prime_id column). | public function setPrimaryKey($key)
{
$this->setOpPrimeId($key);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function setOpPrimeId($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_numeric($v)) {\n $v = (int) $v;\n }\n }\n if ($this->op_prime_id !== $v) {\n $this->op_prime_id = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OP_PRIME_ID;\n }\n\n\n return $this;\n }",
"public function getPrimaryKey()\n {\n return $this->getOpPrimeId();\n }",
"public function setPrimaryKey($key)\n\t{\n\t\t$this->setCoParticipante($key);\n\t}",
"private function alterPrimaryKey()\n {\n if(is_array($this->primaryKeyValue)){\n // check for auto increment\n $autoIncrement = $this->primaryKeyValue['auto_increment'];\n if($autoIncrement){\n $increment = \" AUTO_INCREMENT, AUTO_INCREMENT=1\";\n }\n\n $this->addCollectionQuery(\n \"\n --\n -- AUTO_INCREMENT for table `{$this->tableName}`\n --\n ALTER TABLE `{$this->tableName}`\n MODIFY {$this->createColumnDefinition($this->primaryKeyValue)}{$increment};\n \"\n );\n }\n }",
"public function setPrimaryKey($key)\n {\n $this->setPothnbr($key);\n }",
"public function getOpPrimeId()\n {\n\n return $this->op_prime_id;\n }",
"function setPrimaryKey($pkey_name){\n\n\t\t$this->pkey = $pkey_name;\n\n\t}",
"function setPrimaryKey($inKey) {\n\t\tlist($ID) = explode(self::PRIMARY_KEY_SEPARATOR, $inKey);\n\t\t$this->setID($ID);\n\t}",
"function setPrimaryKey($inKey) {\n\t\tlist($ID) = explode(self::PRIMARY_KEY_SEPARATOR, $inKey);\n\t\t$this->setID($ID);\n\t}",
"public function setPrimaryKey($key)\n\t{\n\t\t$this->setId($key);\n\t}",
"public function setPrimaryKey($key)\n\t{\n\t\t$this->setId($key);\n\t}",
"public function setPrimaryKey($key)\n\t{\n\t\t$this->setId($key);\n\t}",
"public function setPrimaryKey($key)\n\t{\n\t\t$this->setId($key);\n\t}",
"public function setPrimaryKey($key)\n\t{\n\t\t$this->setId($key);\n\t}",
"public function setPrimaryKey($key)\n\t{\n\t\t$this->setId($key);\n\t}",
"public function setPrimaryKey($key)\n\t{\n\t\t$this->setId($key);\n\t}",
"public function setPrimaryKey($key)\n\t{\n\t\t$this->setId($key);\n\t}",
"public function setPrimaryKey($key)\n\t{\n\t\t$this->setCoNumInventario($key);\n\t}",
"private function _fetch_table_primary_key()\n {\n if ($this->primary_key == null) {\n $this->primary_key = preg_replace('/(_m|_model)?$/', '', strtolower(get_class($this))) . '_id';\n }\n }",
"private function _fetch_table_primary_key()\n {\n if ($this->primary_key == null) {\n $this->primary_key = preg_replace('/(_m|_model)?$/', '', strtolower(get_class($this))) . '_id';\n }\n }",
"public function setOpId($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_numeric($v)) {\n $v = (int) $v;\n }\n }\n if ($this->op_id !== $v) {\n $this->op_id = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OP_ID;\n }\n\n if ($this->aOperations !== null && $this->aOperations->getOpId() !== $v) {\n $this->aOperations = null;\n }\n\n\n return $this;\n }",
"public function setPrimaryKey($key)\n {\n $this->setProdId($key);\n }",
"public function setPrimaryKey($key) {\n $this->primaryKey = $key;\n }",
"public function setPrimaryKey($key)\n {\n $this->setSekolahId($key);\n }",
"public function setPrimaryKey($key)\n {\n $this->setid($key);\n }",
"public function setPrimaryKey($key)\n {\n $this->setId($key);\n }",
"public function setPrimaryKey($key)\n {\n $this->setId($key);\n }",
"public function setPrimaryKey($key)\n {\n $this->setId($key);\n }",
"public function setPrimaryKey($key)\n {\n $this->setId($key);\n }",
"public function setPrimaryKey($key)\n {\n $this->setId($key);\n }",
"public function setPrimaryKey($key)\n {\n $this->setIdmontacargas($key);\n }",
"public function setPrimary_key($a_id = '')\n {\n if (is_array($a_id)) {\n $this->aPrimary_key = $a_id;\n foreach ($a_id as $nom_id => $val_id) {\n if (($nom_id == 'id_ubi') && $val_id !== '') $this->iid_ubi = (int)$val_id;\n if (($nom_id == 'id_tarifa') && $val_id !== '') $this->iid_tarifa = (int)$val_id;\n if (($nom_id == 'year') && $val_id !== '') $this->iyear = (int)$val_id;\n if (($nom_id == 'id_serie') && $val_id !== '') $this->iid_serie = (int)$val_id;\n }\n }\n }",
"public function setPrimaryKey($key)\n {\n $this->setIDCommande($key);\n }",
"public function setPrimaryKey($key)\n\t{\n\t\t$this->setCoUsuario($key);\n\t}",
"public function set_primary_key_field($primary_key_field = NULL)\n\t{\n\t\t$this->_primary_key_field = $primary_key_field;\n\t}",
"public function setPrimaryKey($key)\n {\n $this->setArticleId($key);\n }",
"public function setPrimary_key($a_id = '')\n {\n if (is_array($a_id)) {\n $this->aPrimary_key = $a_id;\n foreach ($a_id as $nom_id => $val_id) {\n if (($nom_id == 'id_nom') && $val_id !== '') $this->iid_nom = (int)$val_id;\n if (($nom_id == 'id_nivel') && $val_id !== '') $this->iid_nivel = (int)$val_id;\n }\n }\n }",
"public function setPrimary_key($a_id = '')\n {\n if (is_array($a_id)) {\n $this->aPrimary_key = $a_id;\n foreach ($a_id as $nom_id => $val_id) {\n if (($nom_id == 'id_activ') && $val_id !== '') $this->iid_activ = (int)$val_id;\n if (($nom_id == 'id_asignatura') && $val_id !== '') $this->iid_asignatura = (int)$val_id;\n if (($nom_id == 'id_nom') && $val_id !== '') $this->iid_nom = (int)$val_id;\n }\n }\n }",
"public function setPrimaryKey($primaryKey);",
"public function setPrimaryKey($key)\n {\n $this->setBiblioId($key);\n }",
"public function setPrimaryKey($key)\n {\n $this->setIdBangunan($key);\n }",
"abstract public function getPrimaryKey();",
"abstract public function getPrimaryKey();",
"abstract function getPrimaryKey();",
"public function setPrimary_key($a_id = '')\n {\n if (is_array($a_id)) {\n $this->aPrimary_key = $a_id;\n foreach ($a_id as $nom_id => $val_id) {\n if (($nom_id == 'id_situacion') && $val_id !== '') $this->iid_situacion = (int)$val_id; \n }\n }\n }",
"protected function _getPrimaryIdKey()\n {\n if ($this->_primaryIdKey == null) {\n $info = $this->_getTable()->info();\n\n $this->_primaryIdKey = (string) array_shift($info[Zend_Db_Table_Abstract::PRIMARY]);\n }\n\n return $this->_primaryIdKey;\n }",
"public function PrimaryKey() {\n\t\t\treturn $this->intId;\n\t\t}",
"public function PrimaryKey() {\n\t\t\treturn $this->intId;\n\t\t}",
"function getPrimary_key()\n {\n if (!isset($this->aPrimary_key)) {\n $this->aPrimary_key = array('id_nom' => $this->iid_nom, 'id_nivel' => $this->iid_nivel);\n }\n return $this->aPrimary_key;\n }",
"public function preparePrimaryKeyName()\n {\n $this->primaryKeyName = $this->getOption('primary');\n\n if (empty($this->primaryKeyName)) {\n $this->primaryKeyName = 'id';\n }\n }",
"public function setPrimary_key($a_id = '')\n {\n if (is_array($a_id)) {\n $this->aPrimary_key = $a_id;\n foreach ($a_id as $nom_id => $val_id) {\n if (($nom_id == 'nivel_stgr') && $val_id !== '') $this->inivel_stgr = (int)$val_id;\n }\n }\n }",
"public function setPrimary_key($a_id = '')\n {\n if (is_array($a_id)) {\n $this->aPrimary_key = $a_id;\n foreach ($a_id as $nom_id => $val_id) {\n if (($nom_id == 'id_item') && $val_id !== '') $this->iid_item = (int)$val_id; \n }\n }\n }",
"public function setPrimary_key($a_id = '')\n {\n if (is_array($a_id)) {\n $this->aPrimary_key = $a_id;\n foreach ($a_id as $nom_id => $val_id) {\n if (($nom_id == 'id_item') && $val_id !== '') $this->iid_item = (int)$val_id; \n }\n }\n }",
"function getPrimary_key()\n {\n if (!isset($this->aPrimary_key)) {\n $this->aPrimary_key = array('id_ubi' => $this->iid_ubi, 'id_tarifa' => $this->iid_tarifa, 'year' => $this->iyear, 'id_serie' => $this->iid_serie);\n }\n return $this->aPrimary_key;\n }",
"public function primary_key()\n\t{\n\t\treturn $this->primary_key;\n\t}",
"function getPrimKey($fk1, $fk2, $pkCol, $fk1Col, $fk2Col, $table)\n\t{\n\t\t//intialize variable\n\t\t$pkId\t= 0;\n\t\t\n\t\t//statement\n\t\t$sql\t= \"SELECT \".$pkCol.\" FROM \".$table. \n\t\t\t\t \" WHERE \".$fk1Col.\"='\".$fk1.\"' \n\t\t\t\t AND \".$fk2Col.\"='\".$fk2.\"'\";\n\t\t\n\t\t$query\t= mysql_query($sql);\n\t\t\n\t\t\n\t\tif(mysql_num_rows($query) > 0)\n\t\t{\t\n\t\t\twhile($result = mysql_fetch_object($query))\n\t\t\t{\n\t\t\t\t$pkId\t= $result->$pkCol;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//return\n\t\treturn $pkId;\n\t\t\n\t}",
"function primary_key()\r\n\t{\r\n\t\treturn 'key';\r\n\t}",
"function setPrimaryKey($inKey) {\n\t\tlist($movieID, $CountryID) = explode(self::PRIMARY_KEY_SEPARATOR, $inKey);\n\t\t$this->setMovieID($movieID);\n\t\t$this->setCountryID($CountryID);\n\t}",
"public function formSetPrimarykey($pk, $pkval) {\r\n $this->pk = $pk;\r\n $this->pkVal = $pkval;\r\n return $this;\r\n }",
"public function setOperationPrimeCurrencyId($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_numeric($v)) {\n $v = (int) $v;\n }\n }\n if ($this->operation_prime_currency_id !== $v) {\n $this->operation_prime_currency_id = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OPERATION_PRIME_CURRENCY_ID;\n }\n\n if ($this->aRCurrencies !== null && $this->aRCurrencies->getRCurrencyId() !== $v) {\n $this->aRCurrencies = null;\n }\n\n\n return $this;\n }",
"function getPrimary_key()\n {\n if (!isset($this->aPrimary_key)) {\n $this->aPrimary_key = array('nivel_stgr' => $this->inivel_stgr);\n }\n return $this->aPrimary_key;\n }",
"function getPrimary_key()\n {\n if (!isset($this->aPrimary_key)) {\n $this->aPrimary_key = array('id_activ' => $this->iid_activ, 'id_asignatura' => $this->iid_asignatura, 'id_nom' => $this->iid_nom);\n }\n return $this->aPrimary_key;\n }",
"public function setIdKey($idKey);",
"public function setPrimaryKey($key)\n {\n $this->setFeatureCvtermId($key);\n }",
"public function setPrimary_key($a_id = '')\n {\n if (is_array($a_id)) {\n $this->aPrimary_key = $a_id;\n foreach ($a_id as $nom_id => $val_id) {\n if (($nom_id == 'id_dl') && $val_id !== '') $this->iid_dl = $val_id;\n }\n }\n }",
"protected function setUpPrimaryKey()\n {\n $this->getOldTable()->createColumn('foo', Type::STRING, array('length' => 50));\n $this->getOldTable()->createColumn('bar', Type::STRING, array('length' => 50));\n\n $this->getOldTable()->createPrimaryKey(array('foo'), 'pk');\n\n $this->createOldTable();\n }",
"public function setPrimaryKey()\n {\n\tif ( $this->isFrozen()) throw new FreezeException();\n\t$this->primaryKey= true;\n }",
"function getPrimary_key()\n {\n if (!isset($this->aPrimary_key)) {\n $this->aPrimary_key = array('id_dl' => $this->iid_dl);\n }\n return $this->aPrimary_key;\n }",
"public function setPrimary_key($a_id = '')\n {\n if (is_array($a_id)) {\n $this->aPrimary_key = $a_id;\n foreach ($a_id as $nom_id => $val_id) {\n if (($nom_id == 'id_region') && $val_id !== '') $this->iid_region = (int)$val_id;\n }\n }\n }",
"function getPrimary_key()\n {\n if (!isset($this->aPrimary_key)) {\n $this->aPrimary_key = array('id_situacion' => $this->iid_situacion);\n }\n return $this->aPrimary_key;\n }",
"public function setPrimaryKey($keys)\n {\n $this->setSekolahId($keys[0]);\n $this->setSemesterId($keys[1]);\n }",
"public function setPrimaryKey($key)\n\t{\n\t\t$this->setVenueid($key);\n\t}",
"public function setKeyFromData()\n\t{\n\t\t$key = isset($this->data[$this->primaryKey])\n\t\t\t? $this->data[$this->primaryKey]\n\t\t\t: null;\n\n\t\tif ($key !== null && !is_numeric($key)) {\n\t\t\t$key = Hash::decode($key);\n\t\t}\n\n\t\t$this->key = $key;\n\t}",
"public function getPrimaryKey();",
"public function getPrimaryKey();",
"public function getPrimaryKey();",
"public function setPrimaryKey(string $key = null)\n {\n if (empty($key)) {\n $class = explode('\\\\', get_class($this));\n $this->primaryKey = strtolower(array_pop($class)) . '_id';\n return $this;\n }\n $this->primaryKey = $key;\n return $this;\n }",
"public function setPrimaryKey($keys)\n {\n $this->setSessionid($keys[0]);\n $this->setRecno($keys[1]);\n $this->setOrderno($keys[2]);\n }",
"function getPrimary_key()\n {\n if (!isset($this->aPrimary_key)) {\n $this->aPrimary_key = array('id_item' => $this->iid_item);\n }\n return $this->aPrimary_key;\n }",
"function getPrimary_key()\n {\n if (!isset($this->aPrimary_key)) {\n $this->aPrimary_key = array('id_item' => $this->iid_item);\n }\n return $this->aPrimary_key;\n }",
"public function setAsPrimaryColumn(): self;",
"public function primary(): self\n {\n $this->query = \" PRIMARY KEY \";\n return $this;\n }",
"public function setPrimaryKey($primaryKey)\r\n\t{\r\n\t\t$this->primaryKey = $primaryKey;\r\n\t}",
"private function _fetch_primary_key()\n {\n if($this->primaryKey == NULl)\n {\n $this->primaryKey = $this->db->query(\"SHOW KEYS FROM `\".$this->_table.\"` WHERE Key_name = 'PRIMARY'\")->row()->Column_name;\n }\n }",
"public function setOpPrimeNumero($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_numeric($v)) {\n $v = (int) $v;\n }\n }\n if ($this->op_prime_numero !== $v) {\n $this->op_prime_numero = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OP_PRIME_NUMERO;\n }\n\n\n return $this;\n }",
"public function setPrimaryKey($key)\n {\n $this->_primaryKey = $key;\n\n return $this;\n }",
"public function setPrimaryKey($keys)\n {\n $this->setPhadtype($keys[0]);\n $this->setPhadid($keys[1]);\n $this->setPhadsubid($keys[2]);\n $this->setPhadsubidseq($keys[3]);\n $this->setPhadcont($keys[4]);\n }",
"function setObjectTablePK($a_column_name)\n\t{\n\t\tif (!isset($a_column_name))\n\t\t{\n\t\t\t$this->ilErr->raiseError(get_class($this).\"::setObjectTablePK(): No column name given!\",$this->ilErr->WARNING);\n\t\t}\n\n\t\t$this->obj_pk = $a_column_name;\n\t\treturn true;\n\t}",
"public function setPrimary(column &$col) {\n\t\t$name = $col['name'];\n\t\t$this->$name->primary = true;\n\t\treturn $this->_alter();\n\t}",
"protected function setPrimaryKey($key)\n {\n $this->primaryKey = !is_null($key) ? $key : static::$defaultPrimaryKey;\n\n return $this;\n }",
"public function changePrimaryKey($columns)\r\n {\r\n\r\n }",
"public function setPrimaryKey($keys)\n {\n $this->setSekolahId($keys[0]);\n $this->setSemesterId($keys[1]);\n $this->setIdRuang($keys[2]);\n $this->setHari($keys[3]);\n }",
"public function setPrimaryKey($key)\n {\n $this->primaryKey = $key;\n\n return $this;\n }",
"public function getPrimaryKey()\n {\n return $this->getProdId();\n }",
"protected function loadPrimaryKeys()\n {\n $identifier = $this->getTable()->getIdentifier();\n if (is_array($identifier))\n {\n foreach ($identifier as $_key)\n {\n $this->primaryKey[] = new sfDoctrineAdminColumn($_key);\n }\n } else {\n $this->primaryKey[] = new sfDoctrineAdminColumn($identifier);\n }\n\n if (!empty($this->primaryKeys))\n {\n throw new sfException('You cannot use the admin generator on a model which does not have any primary keys defined');\n }\n }",
"protected function doInsert(PropelPDO $con)\n {\n $modifiedColumns = array();\n $index = 0;\n\n $this->modifiedColumns[] = OperationPrimesPeer::OP_PRIME_ID;\n if (null !== $this->op_prime_id) {\n throw new PropelException('Cannot insert a value for auto-increment primary key (' . OperationPrimesPeer::OP_PRIME_ID . ')');\n }\n\n // check the columns in natural order for more readable SQL queries\n if ($this->isColumnModified(OperationPrimesPeer::OP_PRIME_ID)) {\n $modifiedColumns[':p' . $index++] = '`op_prime_id`';\n }\n if ($this->isColumnModified(OperationPrimesPeer::OP_ID)) {\n $modifiedColumns[':p' . $index++] = '`op_id`';\n }\n if ($this->isColumnModified(OperationPrimesPeer::OP_PRIME_LIBELLE)) {\n $modifiedColumns[':p' . $index++] = '`op_prime_libelle`';\n }\n if ($this->isColumnModified(OperationPrimesPeer::OP_PRIME_NUMERO)) {\n $modifiedColumns[':p' . $index++] = '`op_prime_numero`';\n }\n if ($this->isColumnModified(OperationPrimesPeer::GDL_ART_ID)) {\n $modifiedColumns[':p' . $index++] = '`gdl_art_id`';\n }\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_CURRENCY_ID)) {\n $modifiedColumns[':p' . $index++] = '`operation_prime_currency_id`';\n }\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_TYPE_ID)) {\n $modifiedColumns[':p' . $index++] = '`operation_prime_r_reward_type_id`';\n }\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_EXPEDITION_MODE_ID)) {\n $modifiedColumns[':p' . $index++] = '`operation_prime_r_reward_expedition_mode_id`';\n }\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_TRANSPORTER_ID)) {\n $modifiedColumns[':p' . $index++] = '`operation_prime_r_reward_transporter_id`';\n }\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_FIXED_AMOUNT)) {\n $modifiedColumns[':p' . $index++] = '`operation_prime_fixed_amount`';\n }\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_PRODUCT_PRICE_POURCENTAGE)) {\n $modifiedColumns[':p' . $index++] = '`operation_prime_product_price_pourcentage`';\n }\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_MAXIMUM_AMOUNT)) {\n $modifiedColumns[':p' . $index++] = '`operation_prime_maximum_amount`';\n }\n\n $sql = sprintf(\n 'INSERT INTO `operation_primes` (%s) VALUES (%s)',\n implode(', ', $modifiedColumns),\n implode(', ', array_keys($modifiedColumns))\n );\n\n try {\n $stmt = $con->prepare($sql);\n foreach ($modifiedColumns as $identifier => $columnName) {\n switch ($columnName) {\n case '`op_prime_id`':\n $stmt->bindValue($identifier, $this->op_prime_id, PDO::PARAM_INT);\n break;\n case '`op_id`':\n $stmt->bindValue($identifier, $this->op_id, PDO::PARAM_INT);\n break;\n case '`op_prime_libelle`':\n $stmt->bindValue($identifier, $this->op_prime_libelle, PDO::PARAM_STR);\n break;\n case '`op_prime_numero`':\n $stmt->bindValue($identifier, $this->op_prime_numero, PDO::PARAM_INT);\n break;\n case '`gdl_art_id`':\n $stmt->bindValue($identifier, $this->gdl_art_id, PDO::PARAM_INT);\n break;\n case '`operation_prime_currency_id`':\n $stmt->bindValue($identifier, $this->operation_prime_currency_id, PDO::PARAM_INT);\n break;\n case '`operation_prime_r_reward_type_id`':\n $stmt->bindValue($identifier, $this->operation_prime_r_reward_type_id, PDO::PARAM_INT);\n break;\n case '`operation_prime_r_reward_expedition_mode_id`':\n $stmt->bindValue($identifier, $this->operation_prime_r_reward_expedition_mode_id, PDO::PARAM_INT);\n break;\n case '`operation_prime_r_reward_transporter_id`':\n $stmt->bindValue($identifier, $this->operation_prime_r_reward_transporter_id, PDO::PARAM_INT);\n break;\n case '`operation_prime_fixed_amount`':\n $stmt->bindValue($identifier, $this->operation_prime_fixed_amount, PDO::PARAM_INT);\n break;\n case '`operation_prime_product_price_pourcentage`':\n $stmt->bindValue($identifier, $this->operation_prime_product_price_pourcentage, PDO::PARAM_INT);\n break;\n case '`operation_prime_maximum_amount`':\n $stmt->bindValue($identifier, $this->operation_prime_maximum_amount, PDO::PARAM_INT);\n break;\n }\n }\n $stmt->execute();\n } catch (Exception $e) {\n Propel::log($e->getMessage(), Propel::LOG_ERR);\n throw new PropelException(sprintf('Unable to execute INSERT statement [%s]', $sql), $e);\n }\n\n try {\n $pk = $con->lastInsertId();\n } catch (Exception $e) {\n throw new PropelException('Unable to get autoincrement id.', $e);\n }\n $this->setOpPrimeId($pk);\n\n $this->setNew(false);\n }",
"public function getTablePrimaryKey()\n {\n return 'p.id';\n }",
"public function key()\n\t{\n\t\tif (empty($this->key) && !empty($this->definition->primary))\n\t\t{\n\t\t\t$keys = array_values(\n\t\t\t\tarray_filter(\n\t\t\t\t\tpreg_split('~[\\s,]+~', $this->definition->primary)\n\t\t\t\t)\n\t\t\t);\n\t\t\t$keys = array_map(\n\t\t\t\tfunction ($key) {\n\t\t\t\t\treturn Normalise::toVariable($key);\n\t\t\t\t},\n\t\t\t\t$keys\n\t\t\t);\n\n\t\t\t$this->key = count($keys) > 1 ? $keys : array_shift($keys);\n\t\t}\n\n\t\tif (empty($this->key) && $this->has('id'))\n\t\t{\n\t\t\t$this->key = 'id';\n\t\t}\n\n\t\treturn $this->key;\n\t}",
"public function setPrimaryKey($keys)\n {\n $this->setShnttype($keys[0]);\n $this->setShntseq($keys[1]);\n $this->setShntkey2($keys[2]);\n $this->setShntform($keys[3]);\n }",
"function get_primary_key_column()\n {\n return $this->_primary_key_column;\n }"
] | [
"0.6875452",
"0.6530969",
"0.64509064",
"0.64460796",
"0.63987476",
"0.63456076",
"0.62977344",
"0.6285413",
"0.6285413",
"0.6252991",
"0.6252991",
"0.6252991",
"0.6252991",
"0.6252991",
"0.6252991",
"0.6252991",
"0.6252991",
"0.6252182",
"0.62244624",
"0.62244624",
"0.621682",
"0.62142813",
"0.6176768",
"0.61588657",
"0.6130517",
"0.61304337",
"0.61304337",
"0.61304337",
"0.61304337",
"0.61304337",
"0.6121144",
"0.6089356",
"0.60764444",
"0.6071078",
"0.6016408",
"0.5999564",
"0.5968361",
"0.59671986",
"0.59379554",
"0.5887367",
"0.5842139",
"0.58409685",
"0.58409685",
"0.58366215",
"0.5765397",
"0.57556415",
"0.5749794",
"0.5749794",
"0.5742221",
"0.57398176",
"0.57366294",
"0.5727297",
"0.5727297",
"0.57269704",
"0.57122815",
"0.5692624",
"0.5668626",
"0.563629",
"0.5605474",
"0.55917585",
"0.55761045",
"0.55744505",
"0.55662966",
"0.556579",
"0.556296",
"0.5543139",
"0.55367744",
"0.55340093",
"0.5521232",
"0.55117995",
"0.5509757",
"0.54916763",
"0.5491073",
"0.54840463",
"0.54840463",
"0.54840463",
"0.5477944",
"0.54656225",
"0.54542446",
"0.54542446",
"0.5448736",
"0.54470307",
"0.54339236",
"0.54108983",
"0.5386386",
"0.53713375",
"0.53630495",
"0.53511757",
"0.53385",
"0.53111947",
"0.531104",
"0.5291026",
"0.5284435",
"0.5268571",
"0.5258306",
"0.52564865",
"0.5236732",
"0.52362585",
"0.5235925",
"0.5235808"
] | 0.7266264 | 0 |
Returns true if the primary key for this object is null. | public function isPrimaryKeyNull()
{
return null === $this->getOpPrimeId();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function isPrimaryKeyNull()\n {\n\n return null === $this->getid();\n }",
"public function isPrimaryKeyNull()\n {\n return null === $this->getId();\n }",
"public function isPrimaryKeyNull()\n {\n return null === $this->getId();\n }",
"public function isPrimaryKeyNull()\n {\n return null === $this->getId();\n }",
"public function isPrimaryKeyNull()\n {\n return (null === $this->getId()) && (null === $this->getNickname());\n }",
"public function isPrimaryKeyNull()\n {\n\n return null === $this->getId();\n }",
"public function isPrimaryKeyNull()\n {\n\n return null === $this->getId();\n }",
"public function isPrimaryKeyNull()\n\t{\n\t\treturn null === $this->getId();\n\t}",
"public function isPrimaryKeyNull()\n\t{\n\t\treturn null === $this->getId();\n\t}",
"public function isPrimaryKeyNull()\n {\n return null === $this->getPothnbr();\n }",
"public function isPrimaryKeyNull()\n {\n return (null === $this->getPhadtype()) && (null === $this->getPhadid()) && (null === $this->getPhadsubid()) && (null === $this->getPhadsubidseq()) && (null === $this->getPhadcont());\n }",
"public function isPrimaryKeyNull()\n {\n return null === $this->getProdId();\n }",
"public function isPrimaryKeyNull()\n {\n\n return null === $this->getSekolahId();\n }",
"public function isPrimaryKeyNull()\n {\n return (null === $this->getSessionid()) && (null === $this->getRecno()) && (null === $this->getOrderno());\n }",
"public function isPrimaryKeyNull()\n\t{\n\t\treturn null === $this->getCoUsuario();\n\t}",
"public function isPrimaryKeyNull()\n {\n return null === $this->getIDCommande();\n }",
"public function isPrimaryKeyNull()\n {\n\n return null === $this->getIdmontacargas();\n }",
"public function isPrimaryKeyNull()\n {\n return null === $this->getArticleId();\n }",
"public function isPrimaryKeyNull()\n {\n return (null === $this->getShnttype()) && (null === $this->getShntseq()) && (null === $this->getShntkey2()) && (null === $this->getShntform());\n }",
"public function isPrimaryKeyNull()\n {\n\n return (null === $this->getSekolahId()) && (null === $this->getSemesterId());\n }",
"public function isPrimaryKeyNull()\n {\n return null === $this->getBiblioId();\n }",
"public function isPrimaryKeyNull()\n {\n\n return null === $this->getIdBangunan();\n }",
"public function isPrimaryKeyNull()\n {\n\n return (null === $this->getSekolahId()) && (null === $this->getSemesterId()) && (null === $this->getIdRuang()) && (null === $this->getHari());\n }",
"public function isPrimaryKeyNull()\n\t{\n\t\treturn null === $this->getVenueid();\n\t}",
"public function isPrimaryKeyNull()\n {\n\n return null === $this->getFeatureCvtermId();\n }",
"public function hasAutoIncrementPrimaryKey()\n {\n return null !== $this->getAutoIncrementPrimaryKey();\n }",
"public function isPrimaryKey()\n {\n return $this->isPrimaryKey;\n }",
"public function isPrimaryKey()\n {\n return $this->isPrimaryKey;\n }",
"public function hasPrimaryKey()\n {\n return count($this->getPrimaryKey()) > 0;\n }",
"public function isPrimaryKey()\n {\n\treturn $this->primaryKey;\n }",
"function isPrimaryKey(): bool;",
"public function isPkField()\n {\n if ($this->key == \"PRI\"){\n return true;\n } else {\n return false;\n }\n }",
"public function hasId()\n {\n return $this->id !== null;\n }",
"public function checkPkValues() {\n foreach ($this->getPkValues() as $pk) {\n if (empty($pk))\n return false;\n }\n\n return true;\n }",
"public function hasId(): bool\n {\n return $this->id !== null;\n }",
"public function hasPrimary() {\n\t\tforeach($this->Columns() as $column) {\n\t\t\tif($this->$column->primary) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"public function valid() {\n return ( ! is_null($this->key()));\n }",
"public function valid()\n {\n return !is_null($this->key());\n }",
"public function valid()\n {\n return $this->key() !== null;\n }",
"public function valid()\n {\n return ($this->key() !== null);\n }",
"public function valid()\n {\n return ($this->key() !== null);\n }",
"public function valid()\n {\n return ($this->key() !== null);\n }",
"public function valid() {\n return ($this->key() !== null);\n }",
"public function valid() {\n return ($this->key() !== null);\n }",
"public function exists() {\n\t\treturn !is_null($this->id);\n\t}",
"public function hasCompositePrimaryKey()\n {\n return count($this->getPrimaryKey()) > 1;\n }",
"public static function hasIdProperty(): bool\n {\n return static::getIdProperty() !== null;\n }",
"public function is_null() { return is_null($this->obj); }",
"public function is_null(): bool\n {\n return $this->is_null;\n }",
"public function valid(): bool\n {\n return $this->key() !== null && $this->key() !== false;\n }",
"public function valid()\n {\n $key = $this->key();\n return ($key !== false && $key !== null);\n }",
"public function isPKSequenceOrIdentity() : bool {\n return true;\n }",
"public function hasPaddleId()\n {\n return ! is_null($this->paddle_id);\n }",
"function exists()\r\n\t{\r\n\t\treturn ( ! empty($this->id));\r\n\t}",
"public function isPrimaryKey($isPrimaryKey = null)\n {\n if ($isPrimaryKey !== null) {\n $this->isPrimaryKey = (bool)$isPrimaryKey;\n }\n return $this->isPrimaryKey;\n }",
"public function hasKey()\n\t{\n\t\treturn !empty($this->key);\n\t}",
"public function hasId()\n {\n $attributes = $this->getAttributes();\n\n if ( ! isset($attributes['id'])) return false;\n\n return true;\n }",
"public function hasId(): bool\n {\n return $this->getEntityDao()->hasId();\n }",
"public function exists()\n {\n return !empty($this->ID);\n }",
"public function hasPrimaryKeyColumns(){\n return $this->_has(4);\n }",
"function exists() {\n\t return !empty($this->id);\n\t}",
"public function hasMaconomyId(): bool\n {\n return !empty($this->data['instancekeyField']);\n }",
"public function isPk($pk) {\n\t\treturn filter_var($pk, FILTER_VALIDATE_INT) !== false;\n }",
"public function valid()\n {\n $key = key($this->_object);\n return ($key !== null && $key !== false);\n }",
"public function supportsInsertNullPk();",
"public function isRecord() {\n return count($this->primaryKeys) === 1;\n }",
"public function exists()\n {\n return ! is_null($this->first([Grammar::VIRTUAL_META_ID_COLUMN]));\n }",
"public function exists()\n {\n return ($this->id) ? true : false;\n }",
"public function hasSyncKey()\n {\n return $this->get(self::SYNC_KEY) !== null;\n }",
"static function HasPrimaryKey($dbName, $tableName) {\n $sql = \"SELECT 1\n FROM information_schema.columns\n WHERE table_schema = '$dbName'\n and table_name='$tableName'\n and column_key = 'PRI'\";\n $val = DbManager::query($sql);\n if (count($val) > 0 && $val != false) {\n return true;\n } else {\n return false;\n }\n }",
"public function isSetId()\n {\n return !empty($this->_fields['Id']['FieldValue']);\n }",
"public function valid()\n {\n\n if ($this->container['lob_id'] === null) {\n return false;\n }\n return true;\n }",
"public function exists()\n {\n return ($this->id > 0) ? true : false;\n }",
"public function hasIdentity() : bool\n {\n return !empty($this->identity);\n }",
"public function hasPaystackId()\n {\n return ! is_null($this->paystack_id);\n }",
"public function hasKey()\n {\n return isset($this->key);\n }",
"public function hasKey()\n {\n return isset($this->key);\n }",
"public function valid()\n {\n return (null !== key($this->data));\n }",
"public function isPrimaryKey($metadata, $field)\n {\n if (isset($metadata['fieldMappings'][$field])\n && isset($metadata['fieldMappings'][$field]['id'])\n && $metadata['fieldMappings'][$field]['id'])\n {\n return true;\n }\n\n return false;\n }",
"#[\\ReturnTypeWillChange]\n public function valid()\n {\n return key($this->_data) !== null;\n }",
"public function isNew()\n {\n if (static::getId()=== null) {\n return true;\n } else {\n return false;\n }\n }",
"public function isPKAutoIncr()\r\n {\r\n if(is_array($this->cols) && array_key_exists($this->getPKField(), $this->cols))\r\n {\r\n return $this->cols[$this->pkField]->isAutoIncr;\r\n }else{\r\n return false;\r\n }\r\n }",
"public function valid()\n {\n return $this->key === 0;\n }",
"public function isNullable()\n {\n\treturn $this->isNullable && true;\n }",
"public function hasGuid(): bool\n {\n return null !== $this->guid;\n }",
"public function isAllowPkInsert()\n {\n return $this->allowPkInsert;\n }",
"public function hasId() {\n return $this->_has(1);\n }",
"public function hasId() {\n return $this->_has(1);\n }",
"public function hasId() {\n return $this->_has(1);\n }",
"public function hasId() {\n return $this->_has(1);\n }",
"public function hasId() {\n return $this->_has(1);\n }",
"public function hasId() {\n return $this->_has(1);\n }",
"public function hasId() {\n return $this->_has(1);\n }",
"public function hasId() {\n return $this->_has(1);\n }",
"public function hasId() {\n return $this->_has(1);\n }",
"public function hasId() {\n return $this->_has(1);\n }",
"public function hasId() {\n return $this->_has(1);\n }",
"public function hasId() {\n return $this->_has(1);\n }",
"public function hasId() {\n return $this->_has(1);\n }",
"public function hasIdentity()\n {\n return !empty($this->storage[$this->storageKey]);\n }"
] | [
"0.84790915",
"0.84544814",
"0.84544814",
"0.84544814",
"0.8447244",
"0.8424832",
"0.8424832",
"0.84234697",
"0.84234697",
"0.8402295",
"0.8382674",
"0.83412915",
"0.83093476",
"0.82835287",
"0.82737416",
"0.8239393",
"0.8228147",
"0.82255316",
"0.8206747",
"0.81994236",
"0.8144139",
"0.8083553",
"0.80567896",
"0.8025754",
"0.79069567",
"0.7697868",
"0.76132655",
"0.76132655",
"0.75314903",
"0.7505397",
"0.71362936",
"0.70991546",
"0.704084",
"0.6992842",
"0.6967642",
"0.6944779",
"0.6925539",
"0.688207",
"0.68819183",
"0.68689066",
"0.68689066",
"0.68689066",
"0.6868753",
"0.6868753",
"0.6811001",
"0.6809393",
"0.6792567",
"0.6720618",
"0.6712622",
"0.66986895",
"0.667756",
"0.6644783",
"0.6621574",
"0.6619313",
"0.6613721",
"0.66135776",
"0.6603561",
"0.65635234",
"0.65022784",
"0.65016127",
"0.6471992",
"0.64667916",
"0.6435493",
"0.64218277",
"0.63205427",
"0.63038146",
"0.62765294",
"0.627375",
"0.6268891",
"0.62683153",
"0.6247436",
"0.62352365",
"0.62344587",
"0.6219747",
"0.6219226",
"0.6213431",
"0.6213431",
"0.6212519",
"0.6192467",
"0.6189184",
"0.6178892",
"0.6170388",
"0.6161686",
"0.61606735",
"0.61556596",
"0.61544883",
"0.6142335",
"0.6142335",
"0.6142335",
"0.6142335",
"0.6142335",
"0.6142335",
"0.6142335",
"0.6142335",
"0.6142335",
"0.6142335",
"0.6142335",
"0.6142335",
"0.6142335",
"0.6141563"
] | 0.83426905 | 11 |
Sets contents of passed object to values from current object. If desired, this method can also make copies of all associated (fkey referrers) objects. | public function copyInto($copyObj, $deepCopy = false, $makeNew = true)
{
$copyObj->setOpId($this->getOpId());
$copyObj->setOpPrimeLibelle($this->getOpPrimeLibelle());
$copyObj->setOpPrimeNumero($this->getOpPrimeNumero());
$copyObj->setGdlArtId($this->getGdlArtId());
$copyObj->setOperationPrimeCurrencyId($this->getOperationPrimeCurrencyId());
$copyObj->setOperationPrimeRRewardTypeId($this->getOperationPrimeRRewardTypeId());
$copyObj->setOperationPrimeRRewardExpeditionModeId($this->getOperationPrimeRRewardExpeditionModeId());
$copyObj->setOperationPrimeRRewardTransporterId($this->getOperationPrimeRRewardTransporterId());
$copyObj->setOperationPrimeFixedAmount($this->getOperationPrimeFixedAmount());
$copyObj->setOperationPrimeProductPricePourcentage($this->getOperationPrimeProductPricePourcentage());
$copyObj->setOperationPrimeMaximumAmount($this->getOperationPrimeMaximumAmount());
if ($deepCopy && !$this->startCopy) {
// important: temporarily setNew(false) because this affects the behavior of
// the getter/setter methods for fkey referrer objects.
$copyObj->setNew(false);
// store object hash to prevent cycle
$this->startCopy = true;
foreach ($this->getOperationPrestationss() as $relObj) {
if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves
$copyObj->addOperationPrestations($relObj->copy($deepCopy));
}
}
foreach ($this->getOperationScenariis() as $relObj) {
if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves
$copyObj->addOperationScenarii($relObj->copy($deepCopy));
}
}
foreach ($this->getLnkOperationPrimeRCountriess() as $relObj) {
if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves
$copyObj->addLnkOperationPrimeRCountries($relObj->copy($deepCopy));
}
}
//unflag object copy
$this->startCopy = false;
} // if ($deepCopy)
if ($makeNew) {
$copyObj->setNew(true);
$copyObj->setOpPrimeId(NULL); // this is a auto-increment column, so set to default value
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function set_obj(&$obj)\n{\n\t$this->_obj = $obj;\n}",
"function setObject($object);",
"public function & fromObjectRef( & $a_object )\r\n\t{\r\n\t\tif(!is_object($a_object))\r\n\t\t\treturn $this;\r\n\r\n\t\tif($a_object instanceof ZRegistry)\r\n\t\t\t$this->m_data = $this->getDataRef();\r\n\t\telse\r\n\t\t{\r\n\t\t\t$d = array();\r\n\t\t\tforeach(get_object_vars($a_object) as $k => $v)\r\n\t\t\t\t$d[$k] = & $a_object->$k;\r\n\t\t\t$this->m_data = $d;\r\n\t\t}\r\n\t\treturn $this;\r\n\t}",
"public function setObject(object $object): self;",
"public function setObject(object $object): void;",
"private function deepObjToRef()\n {\n $allFields = $this->toArray();\n foreach ($allFields as $key => $val) {\n if ($val instanceof \\Phalcore\\Models\\Mongo) {\n if (!isset($val->_id)) $val->save();\n $val = Mongo\\AdHocDBRef::create($val);\n $this->$key = $val;\n } elseif (is_array($val)) {\n list ($converted, $changed) = $this->_recO2R($val);\n if ($changed)\n $this->$key = $converted;\n }\n }\n }",
"public function set_object($_object)\n {\n $this->_object = $_object;\n\n return $this;\n }",
"public function __clone()\n {\n foreach ($this as $key => $val)\n {\n if (is_object($val) || is_array($val))\n $this->{$key} = unserialize(serialize($val));\n }\n }",
"private function deepRefToObj()\n {\n $allFields = $this->toArray();\n foreach ($allFields as $key => $val) {\n if (Mongo\\AdHocDBRef::isRef($val)) {\n $val = Mongo\\AdHocDBRef::expand($val);\n $this->$key = $val;\n } elseif (is_array($val)) {\n list ($converted, $changed) = $this->_recR2O($val);\n if ($changed)\n $this->$key = $converted;\n }\n }\n }",
"public function __clone() {\n\t\t$vars = get_object_vars($this);\n\t\tforeach ($vars as $key => $value) {\n\t\t\tif (is_object($value)) {\n\t\t\t\t$this->$key = clone $value;\n\t\t\t} else {\n\t\t\t\t$this->$key = $value;\n\t\t\t}\n\t\t}\n\t}",
"public function __clone() {\n\t\t$vars = get_object_vars($this);\n\t\tforeach ($vars as $key => $value) {\n\t\t\tif (is_object($value)) {\n\t\t\t\t$this->$key = clone $value;\n\t\t\t} else {\n\t\t\t\t$this->$key = $value;\n\t\t\t}\n\t\t}\n\t}",
"public function __clone()\n {\n $vars = get_object_vars($this);\n foreach ($vars as $key => $value) {\n if (is_object($value)) {\n $this->$key = clone $value;\n } else {\n $this->$key = $value;\n }\n }\n }",
"public function __clone()\n {\n $vars = get_object_vars($this);\n foreach ($vars as $key => $value) {\n if (is_object($value)) {\n $this->$key = clone $value;\n } else {\n $this->$key = $value;\n }\n }\n }",
"public function __clone()\n {\n $vars = get_object_vars($this);\n foreach ($vars as $key => $value) {\n if (is_object($value)) {\n $this->$key = clone $value;\n } else {\n $this->$key = $value;\n }\n }\n }",
"public function __clone()\n\t{\n\t\tforeach ($this as $k => $v)\n\t\t{\n\t\t\tif ((is_object($v)) || is_array($v)) {\n\t\t\t\t$this->{$k} = unserialize(serialize($v));\n\t\t\t}\n\t\t}\n\t}",
"public function __clone()\n\t{\n\t\tforeach ($this as $k => $v)\n\t\t{\n\t\t\tif ((is_object($v)) || is_array($v)) {\n\t\t\t\t$this->{$k} = unserialize(serialize($v));\n\t\t\t}\n\t\t}\n\t}",
"public function __clone()\n {\n foreach ((array) get_object_vars($this) as $k => $v) {\n $this->$k = null;\n }\n }",
"public function __clone()\n\t{\n\t\tforeach ($this as $k => $v)\n\t\t{\n\t\t\tif (is_object($v) || is_array($v))\n\t\t\t{\n\t\t\t\t$this->{$k} = unserialize(serialize($v));\n\t\t\t}\n\t\t}\n\t}",
"function setRefFields($val) {\n $this->_refFields = $val;\n }",
"public function __clone()\n {\n foreach ($this->children as $key => $value) {\n if (is_object($value)) {\n $this->children[$key] = clone $value;\n }\n }\n }",
"public function setObject($object) {\n $this->object = $object;\n }",
"function copyFrom($name) {\n\t\tif (is_array(self::ref($name)))\n\t\t\t$this->object=self::ref($name);\n\t}",
"function __clone()\r\n\t{\r\n\t\tforeach ($this as $key => $value)\r\n\t\t{\r\n\t\t\tif (is_object($value))\r\n\t\t\t{\r\n\t\t\t\t$this->{$key} = clone($value);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"function copySameFrom ( &$otherObject ) {\n \t\t$myVars = get_object_vars($this);\n \t\t$otherVars = get_object_vars($otherObject);\n \t\t\n \t\tforeach (array_keys($myVars) as $varName) {\n \t\t\tif (key_exists($varName, $otherVars))\n\t \t\t\t$this->$varName = $otherVars[$varName];\n \t\t}\n \t}",
"private function setObject($object) {\n $this->object = $object;\n }",
"public function set($object, $mapping);",
"public function __clone()\n {\n foreach (get_object_vars($this) as $property => $value) {\n if (is_object($value)) {\n $this->{$property} = clone $value;\n } elseif (is_array($value)) {\n foreach ($value as $value_key => $value_item) {\n if (is_object($value_item)) {\n $this->{$property}[$value_key] = clone $value_item;\n }\n }\n }\n }\n }",
"public function setObjectData(&$data)\n {\n $objVarNames = array_keys(get_object_vars($this));\n $theData = $data;\n if (is_object($theData)) $theData = get_object_vars($data);\n foreach($theData as $propertyName => &$propertyValue)\n {\n foreach ($objVarNames as &$varName)\n {\n if (strcasecmp($varName, $propertyName) == 0)\n {\n $this->$varName = $propertyValue;\n }\n }\n }\n }",
"public function __clone()\n {\n $this->_id = null;\n $this->_key = null;\n $this->_rev = null;\n // do not change the _changed flag here\n }",
"protected function setFromCache($object)\r\n {\r\n // TODO: Implement setFromCache() method.\r\n }",
"public function update( &$object );",
"public function setObject($object, $key = null) {\r\n if($key) {\r\n $this->objects[$key] = $object;\r\n }\r\n else {\r\n $this->objects[] = $object;\r\n }\r\n }",
"public function setAll($args = [], $reassign = false);",
"public function _cloned($obj)\n {\n $this->new = true;\n $this->data = [];\n $this->attr($obj);\n $this->init();\n }",
"public function setObjectForKey($key, $object)\n {\n $this->setObjectForKeyWithLifeTimePathAndDomain($key, $object, '_');\n }",
"public function setAttributesByRef (&$attributes)\n {\n\n foreach ($attributes as $key => &$value)\n {\n\n $this->attributes[$key] =& $value;\n\n }\n\n }",
"public function & fromObject( $a_object )\r\n\t{\r\n\t\tif(!is_object($a_object))\r\n\t\t\treturn $this;\r\n\r\n\t\tif($a_object instanceof ZRegistry)\r\n\t\t\t$this->fromArray($a_object->toArray());\r\n\t\telse if($a_object instanceof ZModel)\r\n\t\t\t$this->fromArray((array)$a_object->export());\r\n\t\telse\r\n\t\t\t$this->fromArray(get_object_vars($a_object));\r\n\r\n\t\treturn $this;\r\n\t}",
"public function __clone() {\n foreach ($this->properties as $name => $property) {\n $this->properties[$name] = clone $property;\n $this->properties[$name]->setContext($name, $this);\n }\n }",
"public function setReferences($val)\n {\n $this->_propDict[\"references\"] = $val;\n return $this;\n }",
"function set_object( $objname, &$obj, $scope='', $tagname=null ){\n\n if( $scope=='global' ){\n $this->ctx[0]['_obj_'][$objname] = &$obj;\n return 1;\n }\n\n for( $x=count($this->ctx)-1; $x>=0; $x-- ){\n if( !is_null($tagname) ){\n if( isset($this->ctx[$x]['_obj_']) && ($this->ctx[$x]['name']==$tagname) ){\n $this->ctx[$x]['_obj_'][$objname] = &$obj;\n return 1;\n }\n }\n else{\n if( isset($this->ctx[$x]['_obj_']) ){\n $this->ctx[$x]['_obj_'][$objname] = &$obj;\n return 1;\n }\n }\n }\n\n }",
"function set($data) {\n\tif (! is_object($data)) throw new Exception('Supplied argument is not an object.');\n\t\n\tforeach (get_object_vars($data) as $prop=>$val) {\n\t if (property_exists($this,$prop)) {\n\t\t$this->$prop = $val;\n\t }\n\t}\n\t\n }",
"public function setMetaFrom($object);",
"function assignObject()\n\t{\n\t\tif ($this->id != 0)\n\t\t{\n\t\t\tif ($this->call_by_reference)\n\t\t\t{\n\t\t\t\t$this->object =& new ilObjAICCLearningModule($this->id, true);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$this->object =& new ilObjAICCLearningModule($this->id, false);\n\t\t\t}\n\t\t}\n\t}",
"public function set($key, $object)\n {\n $this->items[$key] = $object;\n }",
"public static function set_object($object) {\n\t\tif($object instanceof \\stdClass) {\n\t\t\t$object = new WPChaosDataObject($object);\n\t\t}\n\t\tself::$object = $object;\n\t}",
"function test_object_refs() {\n\t\t$key = rand_str();\n\t\t$object_a = new stdClass;\n\t\t$object_a->foo = 'alpha';\n\t\t$this->cache->set( $key, $object_a );\n\t\t$object_a->foo = 'bravo';\n\t\t$object_b = $this->cache->get( $key );\n\t\t$this->assertEquals( 'alpha', $object_b->foo );\n\t\t$object_b->foo = 'charlie';\n\t\t$this->assertEquals( 'bravo', $object_a->foo );\n\n\t\t$key = rand_str();\n\t\t$object_a = new stdClass;\n\t\t$object_a->foo = 'alpha';\n\t\t$this->cache->add( $key, $object_a );\n\t\t$object_a->foo = 'bravo';\n\t\t$object_b = $this->cache->get( $key );\n\t\t$this->assertEquals( 'alpha', $object_b->foo );\n\t\t$object_b->foo = 'charlie';\n\t\t$this->assertEquals( 'bravo', $object_a->foo );\n\t}",
"public function update_object ($obj)\n {\n parent::update_object ($obj);\n $this->access_id = $obj->id;\n }",
"public function update_object ($obj)\n {\n parent::update_object ($obj);\n $this->access_id = $obj->id;\n }",
"public static function assignByRef($key,&$value) {\r\n\t\tself::$_smarty->assignByRef($key,$value);\r\n\t}",
"function setAllData(&$data) {\n\t\t$this->_data =& $data;\n\t}",
"abstract public function set();",
"public function setParametersByRef (&$parameters)\n {\n\n foreach ($parameters as $key => &$value)\n {\n\n $this->parameters[$key] =& $value;\n\n }\n\n }",
"public function & setDataRef( & $a_data )\r\n\t{\r\n\t\tswitch(gettype($a_data))\r\n\t\t{\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase 'array':\r\n\t\t\t\t$this->fromArrayRef($a_data);\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase 'object':\r\n\t\t\t\t$this->fromObjectRef($a_data);\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\t\treturn $this;\r\n\t}",
"public function __clone()\n {\n foreach ( $this->props as $path => $propStorage )\n {\n $this->props[$path] = clone $propStorage;\n }\n }",
"public function __clone()\n {\n foreach ($this->data as $key => $value) {\n if ($value instanceof self) {\n $this[$key] = clone $value;\n }\n }\n }",
"public function setObject($object)\n {\n $this->object = $object;\n\n return $this;\n }",
"function object_assign(object $object, Arrayable|iterable $data, bool $overwrite = true): object\n {\n if ($data instanceof Arrayable) {\n $data = $data->toArray();\n }\n\n foreach ($data as $name => $value) {\n data_set($object, $name, $value, $overwrite);\n }\n\n return $object;\n }",
"function copyto($key) {\n\t\t$var=&\\Base::instance()->ref($key);\n\t\tforeach ($this->item as $key=>$field)\n\t\t\t$var[$key]=$field;\n\t}",
"protected function setProperties()\n {\n foreach ($this->data as $key => $value) {\n $this->$key = $value;\n }\n }",
"public function __construct($object) {\n foreach ($object as $key => $value) :\n $k = \"_$key\";\n $this->$k = $value;\n endforeach;\n }",
"abstract public function object_data(&$data);",
"function setObject(mofilmTrack $inObject) {\n\t\treturn $this->_setValue($inObject);\n\t}",
"public function update_object ($obj)\n {\n parent::update_object ($obj);\n $this->access_id = $obj->parent_folder_id ();\n }",
"public function __clone()\n {\n // so that both the original object and the clone\n // can work without interfering with each other.\n $this->context = hash_copy($this->context);\n }",
"function __set($name,$value) {\n\t\t$this->object[$name]=$value;\n\t}",
"protected function fillProperties()\n {\n foreach ($this as $key => $value) {\n if ($this->isPrivate($key)) {\n continue;\n }\n $this->currentProperties[\"{$key}\"] = $value;\n $this->newProperties[\"{$key}\"] = $value;\n }\n }",
"public function exchangeObject($data)\n {\n foreach ($data AS $key => $datum) {\n if (property_exists($this, $key)) {\n $this->{$key} = $datum;\n }\n }\n }",
"function prepareData(){\n $this->ref = array();\n foreach($this->getIterator() as $junk=>$item){\n // current values\n $id = $item[$this->id_field];\n \n // save item\n $this->items[$id] = $item;\n \n // save relation\n if(isset($item[$this->parent_id_field])) {\n $this->ref[$item[$this->parent_id_field]][] = $id;\n } else {\n $this->ref[undefined][] = $id;\n }\n }\n }",
"public function merge(EGmap3ObjectBase $object)\n\t{\n\t\tforeach ($object as $k => $v) {\n\t\t\tif ($v !== null) {\n\t\t\t\t$this->$k = $v;\n\t\t\t}\n\t\t}\n\t}",
"function setRef($name, &$value) {\n $this->vars[$name] =& $value; //is_object($value) ? $value->fetch() : $value;\n }",
"public function setRef($ref);",
"public function __clone()\n {\n $this->_objectTag = clone $this->_objectTag;\n }",
"public function __clone()\n {\n $this->items = ConfigUtil::cloneItems($this->items);\n $this->fields = ConfigUtil::cloneObjects($this->fields);\n }",
"public function __clone()\n {\n $this->reset(TRUE);\n }",
"public function fill(?\\stdClass $obj): void\n {\n if (is_object($obj)) {\n $object_vars = get_object_vars($obj);\n\n if (!empty($object_vars)) {\n foreach ($object_vars as $var => $value) {\n if (property_exists($this, $var)) {\n $this->$var = $value;\n }\n }\n }\n }\n }",
"public function assignRef (mixed $value, mixed $value)\n {\n }",
"private function __replaceReference($DBObject) {\n\t\tglobal $connect;\n\t\trequire_once('CORE/extensionManager.inc.php');\n\t\t$class_list = getReferenceTablesList($this->__table);\n\t\tforeach($class_list as $table=>$fieldname) {\n\t\t\trequire_once($this->getTableName($table));\n\t\t\t$class_name=\"DBObj_\".$table;\n\t\t\t$DBObjRefTarget=new $class_name;\n\t\t\t$item = $DBObjRefTarget->__DBMetaDataField[$fieldname];\n\t\t\tif (isset($item['params']['CascadeMerge']) && $item['params']['CascadeMerge']) {\n\t\t\t\t$DBObjRefTarget->$fieldname=$this->id;\n\t\t\t\t$nb1=$DBObjRefTarget->find();\n\t\t\t\t$DBObjRefTarget->fetch();\n\t\t\t\t\n\t\t\t\t$DBObjRefOther=new $class_name;\n\t\t\t\t$DBObjRefOther->$fieldname=$DBObject->id;\n\t\t\t\t$nb2=$DBObjRefOther->find();\n\t\t\t\t$DBObjRefOther->fetch();\n\n\t\t\t\tif (($nb1==1) && ($nb2==1) && ($DBObjRefTarget->id>0) && ($DBObjRefOther->id)) {\n\t\t\t\t\t$DBObjRefTarget->merge($DBObjRefOther);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\trequire_once(\"CORE/Lucterios_Error.inc.php\");\n\t\t\t\t\tthrow new LucteriosException(IMPORTANT,\"Fusion impossible.\");\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$q=\"UPDATE $table SET $fieldname=$this->id WHERE $fieldname=$DBObject->id\";\n\t\t\t\t$connect->execute($q,true);\n\t\t\t}\n\t\t}\n\t\tif($this->Heritage != \"\")\n\t\t\t$this->Super->__replaceReference($DBObject->Super);\n\t}",
"public function __clone() {\n\t\t$this->session = clone $this->session;\n\t\t$this->fees_api = clone $this->fees_api;\n\t}",
"public function setObject(?string $object): self\n {\n $this->object = $object;\n\n return $this;\n }",
"public function setObject(?string $object): self\n {\n $this->object = $object;\n\n return $this;\n }",
"public function setObject(?string $object): self\n {\n $this->object = $object;\n\n return $this;\n }",
"public function copyData($object)\n {\n if ($object instanceof CNabuDataObject) {\n $this->data = $object->data;\n } elseif (is_array($object)) {\n $this->data = $object;\n }\n }",
"public function setReference( &$ref ) {\n\t\t$this->items = $ref;\n\t\treturn $this;\n\t}",
"function © () {\n \t\t$newObject =& $this->shallowCopy();\n \t\treturn $newObject->postCopy();\n \t}",
"function apply_fix($old_obj){\t\r\r\n\t\t// to be copied vars\r\r\n\t\t$vars = array('active_modules','active_plugins','setting');\r\r\n\t\t// set\r\r\n\t\tforeach($vars as $var){\r\r\n\t\t\t// var\r\r\n\t\t\t$this->{$var} = (isset( $old_obj->{$var} ) ) ? $old_obj->{$var} : '';\r\r\n\t\t}\t\t\t\t\t\r\r\n\t\t// save\r\r\n\t\t$this->save();\t\r\r\n\t}",
"public function initWithObjects()\n {\n $this->array = func_get_args();\n return $this;\n }",
"public function setObject(string $object): void\n {\n $this->_object = $object;\n }",
"public function setObject(string $object): void\n {\n $this->_object = $object;\n }",
"public static function aliases(&$object) {\n\t\t\t$object->protocol = &$object->scheme;\n\t\t\t$object->username = &$object->user;\n\t\t\t$object->password = &$object->pass;\n\t\t\t$object->domain = &$object->host;\n\t\t\t$object->fqdn = &$object->host;\n\t\t}",
"public function setObject(RenderableInterface $object = null)\n {\n $this->__currentelement = null;\n $this->_object = $object;\n\n if (is_array($this->__vars) && 0 < count($this->__vars)) {\n foreach ($this->__vars as $key => $var) {\n if ($var === $object) {\n $this->__currentelement = $key;\n }\n }\n }\n\n return $this;\n }",
"public function setObject($key, $value)\n {\n $this->objectCache[$key] = $value;\n }",
"function __clone()\n {\n // it will point to same object.\n $this->object1 = clone $this->object1;\n }",
"function copyto($key) {\n\t\t$var=&\\Base::instance()->ref($key);\n\t\tforeach ($this->document as $key=>$field)\n\t\t\t$var[$key]=$field;\n\t}",
"public function setRef($ref)\n {\n $this->_ref = $ref;\n }",
"public function setProperties($obj){\n\t\tforeach(((array)$obj) as $prop => $val)\n\t\t{\n\t\t\t$this->$prop = $obj->$prop;\n\t\t}\n\t}",
"public function setCacheReferencedObjects($cacheReferencedObjects) {}",
"public function __clone()\n {\n foreach ($this->parameters as $key => $child) {\n $this->parameters[$key] = clone $child;\n $this->parameters[$key]->parent = $this;\n }\n }",
"public function __clone()\n {\n foreach ($this->_associations as $i => $association) {\n $this->_associations[$i] = clone $association;\n }\n }",
"final public function __clone()\n {\n $this->aliased = false;\n }",
"abstract public function setContext($context_object);",
"function assignTo($dest)\r\n {\r\n // make sure modified() is not always called while assigning new values\r\n $dest->startUpdate();\r\n\r\n $dest->setFamily($this->getFamily());\r\n $dest->setSize($this->getSize());\r\n $dest->setColor($this->getColor());\r\n $dest->setAlign($this->getAlign());\r\n $dest->setStyle($this->getStyle());\r\n $dest->setCase($this->getCase());\r\n $dest->setLineHeight($this->getLineHeight());\r\n $dest->setVariant($this->getVariant());\r\n $dest->setWeight($this->getWeight());\r\n\r\n $dest->endUpdate();\r\n }"
] | [
"0.63792884",
"0.63141745",
"0.62218314",
"0.6142023",
"0.599788",
"0.5935298",
"0.5898167",
"0.58387905",
"0.58187747",
"0.5757193",
"0.5757193",
"0.57347876",
"0.57347876",
"0.57347876",
"0.5731154",
"0.5731154",
"0.57304007",
"0.5725446",
"0.5714366",
"0.56989557",
"0.5693526",
"0.5668315",
"0.5653675",
"0.5647616",
"0.5613",
"0.5599318",
"0.55598325",
"0.55354726",
"0.5504614",
"0.54849356",
"0.5480539",
"0.5477577",
"0.54429185",
"0.5442783",
"0.5412339",
"0.53698146",
"0.5365533",
"0.53557044",
"0.53444296",
"0.53274024",
"0.53213644",
"0.530927",
"0.53010875",
"0.5294879",
"0.5275988",
"0.5244915",
"0.52386516",
"0.52386516",
"0.5231229",
"0.52262765",
"0.5224827",
"0.52240694",
"0.52168036",
"0.51992404",
"0.5197986",
"0.5192898",
"0.5188621",
"0.5185873",
"0.5176385",
"0.5170627",
"0.5150608",
"0.5145561",
"0.5144638",
"0.5141523",
"0.51369673",
"0.51319635",
"0.5125872",
"0.5119711",
"0.5116208",
"0.5102867",
"0.50992",
"0.50961083",
"0.5091642",
"0.5074482",
"0.5064765",
"0.50627756",
"0.5056734",
"0.50486183",
"0.50431335",
"0.50431335",
"0.50431335",
"0.5042297",
"0.5038317",
"0.50265425",
"0.5023407",
"0.5019501",
"0.5013378",
"0.5013378",
"0.50089",
"0.50056356",
"0.4985944",
"0.4975574",
"0.49751163",
"0.49741963",
"0.4972076",
"0.49633124",
"0.49549526",
"0.49531627",
"0.49409705",
"0.4940722",
"0.4932871"
] | 0.0 | -1 |
Makes a copy of this object that will be inserted as a new row in table when saved. It creates a new object filling in the simple attributes, but skipping any primary keys that are defined for the table. If desired, this method can also make copies of all associated (fkey referrers) objects. | public function copy($deepCopy = false)
{
// we use get_class(), because this might be a subclass
$clazz = get_class($this);
$copyObj = new $clazz();
$this->copyInto($copyObj, $deepCopy);
return $copyObj;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function copyAttributesToKey()\n\t{\n\t\t$primarykey = $this->factory->getPrimarykey ;\n\t\tforeach( $primarykey->fields as $n=>$field )\n\t\t{\n\t\t\t$this->key[$field] = $this->$field ;\n\t\t}\n\t}",
"public function CopyRecord()\n {\n $rec = $this->GetActiveRecord();\n if (!$rec) return;\n foreach ($rec as $k=>$v)\n $rec[$k] = addslashes($v);\n global $g_BizSystem;\n // get new record array\n $recArr = $this->GetDataObj()->NewRecord();\n\n $rec[\"Id\"] = $recArr[\"Id\"]; // replace with new Id field. TODO: consider different ID generation type\n $this->m_RecordRow->SetRecordArr($rec);\n $ok = $this->GetDataObj()->InsertRecord($rec);\n if (!$ok)\n return $this->ProcessDataObjError($ok);\n return $this->ReRender();\n }",
"public function __clone()\n {\n $this->table = clone $this->table;\n }",
"static function createObject () {\n $query = 'insert into '.Config::getTablePrifix().self::getTableName().' (';\n $feilds = self::getFeildNames();\n $query .= implode(',',$feilds);\n $query .= ') values(';\n foreach ($feilds as $feild) {\n if ($feild != current($feilds)) {\n $query .= ',';\n }\n $query .= '\\''.Database::escape(self::getFeildValue($feild)).'\\'';\n }\n $query .= ')';\n Database::query($query);\n // update the id feild value\n $lastInsertId = Database::queryAsObject('select max(id) as lastid from '.Config::getTablePrifix().self::getTableName());\n self::setFeildValue(self::getIdFeild(),$lastInsertId->lastid);\n return $this;\n }",
"public function __clone()\n {\n // If the entity has an identity, proceed as normal.\n if ($this->id) {\n // unset identifiers\n $this->setId(0);\n \n // init validator\n $this->initValidator();\n \n // reset Workflow\n $this->resetWorkflow();\n \n $this->setCreatedDate(null);\n $this->setCreatedUserId(null);\n $this->setUpdatedDate(null);\n $this->setUpdatedUserId(null);\n \n \n }\n // otherwise do nothing, do NOT throw an exception!\n }",
"public function clone() {\n\t\t\t$class = get_called_class();\n\t\t\t$obj = new $class($this->_db);\n\t\t\t$obj->setFromArray($this->toArray());\n\t\t\t$obj->setChanged($this->hasChanged());\n\t\t\treturn $obj;\n\t\t}",
"protected function createNew() {\n $this->db->insert($this->tableName, $this->mapToDatabase());\n $this->id = $this->db->insert_id();\n }",
"function makeClone()\n {\n $this->id = 0;\n }",
"public function __clone()\n {\n $this->_id = null;\n $this->_key = null;\n $this->_rev = null;\n // do not change the _changed flag here\n }",
"public function save() {\n\t\tif (array_intersect_key($this->toArray(TRUE), array_flip($this->primary))) {\n\t\t\t$this->update();\n\t\t} else {\n\t\t\t$this->insert();\n\t\t}\n\t\treturn $this;\n\t}",
"public function toObject(): self\n {\n $this->key_by_column_name = true;\n $this->to_object = true;\n\n return $this;\n }",
"public function copy(): Model\n {\n $new = $this->replicate();\n $new->push();\n\n return $new;\n }",
"public function run(): static\n {\n $pkFields = $this->findPrimaryKeyFields();\n $this->table->setPrimaryKeyFields($pkFields);\n\n $fieldDefList = $this->getFieldDefList();\n\n $this->populateFieldsIntoTable($fieldDefList);\n\n return $this;\n }",
"public function __clone()\n {\n parent::__clone();\n $this->hasOneRelationships = clone $this->hasOneRelationships;\n $this->hasManyRelationships = clone $this->hasManyRelationships;\n }",
"function get_copy()\r\n\t{\r\n\t\t$copy = clone($this);\r\n\r\n\t\t$copy->id = NULL;\r\n\r\n\t\treturn $copy;\r\n\t}",
"function ©( )\n {\n $new = $this;\n $new->unsetID();\n $new->store();\n\n return $new;\n }",
"public function makePrimaryKey()\n {\n $this->mapping['id'] = true;\n\n return $this;\n }",
"public function save(){\n global $wpdb;\n $table_name = $wpdb->prefix.static::$_table;\n \n $data = [];\n $pk = $this->getPk();\n foreach($this->_datas as $key => $value){\n if($key!=$pk && in_array($key, static::$_fields)){\n $data[$key] = $value.'';\n }\n }\n \n if( isset( $this->$pk ) ){\n // Update row\n $wpdb->update(\n $table_name,\n $data,\n [$pk=>$this->$pk]\n );\n }else{\n // Insert row\n $wpdb->insert(\n $table_name,\n $data\n );\n $this->$pk = $wpdb->insert_id;\n }\n \n return $this;\n }",
"public function create () {\n reset($this->__fields);\n $pk = key($this->__fields);\n $form = $this->getForm();\n $placeholders = array();\n\n foreach ($form as $k => $v) {\n $placeholders[$k] = ':' . $k;\n }\n\n $sql = sprintf(\n 'INSERT INTO %s (%s) VALUES (%s)'\n , $this->getTableName()\n , implode(',', array_keys($placeholders))\n , implode(',', $placeholders)\n );\n\n $stmt = $this->__db->prepare($sql);\n\n foreach ($form as $k => $v) {\n if (is_object($v->getData()) && get_class($v->getData()) == 'DateTime') {\n $stmt->bindValue($k, $v->getData(), $this->__fields[$k]['type']);\n } else {\n $stmt->bindValue($k, $v->getData());\n }\n }\n\n $stmt->execute();\n $this->$pk = $this->__db->lastInsertId();\n\n return $this;\n }",
"public function __clone()\n\t{\n\t\tforeach ($this as $k => $v)\n\t\t{\n\t\t\tif (is_object($v) || is_array($v))\n\t\t\t{\n\t\t\t\t$this->{$k} = unserialize(serialize($v));\n\t\t\t}\n\t\t}\n\t}",
"public function __clone()\n {\n foreach ($this as $key => $val)\n {\n if (is_object($val) || is_array($val))\n $this->{$key} = unserialize(serialize($val));\n }\n }",
"public function __clone()\n\t{\n\t\tforeach ($this as $k => $v)\n\t\t{\n\t\t\tif ((is_object($v)) || is_array($v)) {\n\t\t\t\t$this->{$k} = unserialize(serialize($v));\n\t\t\t}\n\t\t}\n\t}",
"public function __clone()\n\t{\n\t\tforeach ($this as $k => $v)\n\t\t{\n\t\t\tif ((is_object($v)) || is_array($v)) {\n\t\t\t\t$this->{$k} = unserialize(serialize($v));\n\t\t\t}\n\t\t}\n\t}",
"public function __clone()\n {\n foreach ((array) get_object_vars($this) as $k => $v) {\n $this->$k = null;\n }\n }",
"public function __clone()\n {\n // if the entity has no identity do nothing, do NOT throw an exception\n if (!($this->id)) {\n return;\n }\n \n // otherwise proceed\n \n // unset identifiers\n $this->setId(0);\n \n // reset workflow\n $this->resetWorkflow();\n \n $this->setCreatedBy(null);\n $this->setCreatedDate(null);\n $this->setUpdatedBy(null);\n $this->setUpdatedDate(null);\n \n \n // clone categories\n $categories = $this->categories;\n $this->categories = new ArrayCollection();\n foreach ($categories as $c) {\n $newCat = clone $c;\n $this->categories->add($newCat);\n $newCat->setEntity($this);\n }\n }",
"public function __clone()\n {\n // if the entity has no identity do nothing, do NOT throw an exception\n if (!$this->id) {\n return;\n }\n \n // otherwise proceed\n \n // unset identifier\n $this->setId(0);\n \n // reset workflow\n $this->setWorkflowState('initial');\n \n // reset upload fields\n $this->setAvatarUpload(null);\n \n $this->setCreatedBy(null);\n $this->setCreatedDate(null);\n $this->setUpdatedBy(null);\n $this->setUpdatedDate(null);\n \n \n // clone categories\n $categories = $this->categories;\n $this->categories = new ArrayCollection();\n foreach ($categories as $c) {\n $newCat = clone $c;\n $this->categories->add($newCat);\n $newCat->setEntity($this);\n }\n }",
"protected function _create()\n {\n $entry = $this->_db->createRow();\n foreach ($this->getFields() as $key => $value) {\n $entry->{$key} = $value;\n }\n return $entry->save();\n }",
"public function create_record() {\n $class = get_called_class();\n\n if ($this->does_exist()) {\n return false;\n }\n\n $db = DB::connect();\n\n $attributes = '';\n $values = '';\n\n // Loop through all the attributes to get the attributes and values\n foreach (get_object_vars($this) as $key => $value) {\n // We dont add the id of the object, as it is autoincremented\n if ($value == null) {\n continue;\n }\n\n $attributes = $attributes . \" $key,\";\n\n // We cannot add an object to sql statemnt. if the value is an object, get the id of it\n if (gettype($value) == 'object') {\n $value = $value->id;\n } elseif (gettype($value) === 'string') {\n $value = \"'\" . $value . \"'\";\n }\n\n $values = $values . \" $value,\";\n\n }\n\n // Delete the last comma\n $attributes = substr_replace($attributes, \" \", -1);\n $values = substr_replace($values, \" \", -1);\n\n $sql = $db->prepare(\"INSERT INTO \" . $class . \" (\" . $attributes . \") VALUES (\" . $values . \")\");\n $sql->execute();\n\n return true;\n }",
"public function __clone()\n {\n $this->_id = null;\n }",
"public function __clone() {\n\t\t$vars = get_object_vars($this);\n\t\tforeach ($vars as $key => $value) {\n\t\t\tif (is_object($value)) {\n\t\t\t\t$this->$key = clone $value;\n\t\t\t} else {\n\t\t\t\t$this->$key = $value;\n\t\t\t}\n\t\t}\n\t}",
"public function __clone() {\n\t\t$vars = get_object_vars($this);\n\t\tforeach ($vars as $key => $value) {\n\t\t\tif (is_object($value)) {\n\t\t\t\t$this->$key = clone $value;\n\t\t\t} else {\n\t\t\t\t$this->$key = $value;\n\t\t\t}\n\t\t}\n\t}",
"function clone_record($db_table) {\n $db_obj = new db_class();\n $typeHash = $db_obj->columnTypeHash($this->table_title);\n \n $sql = 'INSERT INTO ' . $this->table_title ;\n $typeList = '';\n $columns = ' (' ;\n $values = '(' ;\n $paramList = array();\n $count = 0;\n \n foreach($db_table as $key => $value) {\n if($count > 0){ \n $columns .= ',' ; \n $values .= ',';\n }\n $columns .= $key;\n $values .= '?';\n $paramList[] = $value;\n $typeList .= $typeHash[$key];\n \n $count++;\n }\n \n $columns .= ')';\n $values .= ')';\n $sql .= $columns . ' VALUES ' . $values;\n \n showArray(array($sql, $typeList, $paramList));\n \n $db_obj->closeDB();\n \n }",
"public function reset() {\r\n\t\tforeach ($this->_metadata->getNames() as $name){\r\n\t\t\tif($this->isPrimaryKey($name)){\r\n\t\t\t\t$this->_record[$name] = $this->getPrimaryKey() ;\r\n\t\t\t}else{\r\n\t\t\t\t$this->_record[$name] = $this->{$name} ;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn $this->_record ;\r\n\t}",
"public function cleanCopy()\n {\n $clone = clone $this;\n $clone->setEagerLoader(clone $this->getEagerLoader());\n $clone->triggerBeforeFind();\n $clone->enableAutoFields(false);\n $clone->limit(null);\n $clone->order([], true);\n $clone->offset(null);\n $clone->mapReduce(null, null, true);\n $clone->formatResults(null, true);\n $clone->setSelectTypeMap(new TypeMap());\n $clone->decorateResults(null, true);\n\n return $clone;\n }",
"public function save() {\n\t\tif( $this->isAddingNew() ) {\n\t\t\t//Insert record\n\t\t\t$key = $this->getConnection()->insert( $this->_updateBuffer, $this );\n\n\t\t\t//remove all state from this object (including isAddingNew)\n\t\t\t$this->clear();\n\n\t\t\t//Pull just this new record\n\t\t\t$method = \"where\" . $this->getTable()->getPrimaryKey();\n\t\t\t$this->$method( $key );\n\t\t} else {\n\t\t\t$updatedRecord = $this->getConnection()->update( $this->_updateBuffer, $this );\n\t\t\t$this->_recordset[ $this->_currentRow ] = $updatedRecord[0];\n\t\t}\n\n\t\t$this->_updateBuffer = array();\n\t\treturn $this;\n\t}",
"public function __clone()\n {\n $vars = get_object_vars($this);\n foreach ($vars as $key => $value) {\n if (is_object($value)) {\n $this->$key = clone $value;\n } else {\n $this->$key = $value;\n }\n }\n }",
"public function __clone()\n {\n $vars = get_object_vars($this);\n foreach ($vars as $key => $value) {\n if (is_object($value)) {\n $this->$key = clone $value;\n } else {\n $this->$key = $value;\n }\n }\n }",
"public function __clone()\n {\n $vars = get_object_vars($this);\n foreach ($vars as $key => $value) {\n if (is_object($value)) {\n $this->$key = clone $value;\n } else {\n $this->$key = $value;\n }\n }\n }",
"public static function createTable(){\n if (RBModel::recreateTable(get_called_class()) == false){\n return;\n }\n\n $bean = R::dispense( strtolower(get_called_class()));\n $fields = get_class_vars(get_called_class());\n \n foreach( $fields as $field=>$value){\n\n \n //ignora as variaveis que começam com _\n if ($field[0] == \"_\" || $field == \"id\"){\n continue;\n }\n\n $r = new ReflectionProperty(get_called_class(), $field);\n $comment = strtolower($r->getDocComment());\n\n if (strstr($comment,\"@varchar\")){\n $value = \"\";\n } else\n if (strstr($comment,\"@int\")){\n $value = 0;\n } else\n if (strstr($comment,\"@date\")){\n $value = \"1990-01-01\";\n } else\n if (strstr($comment,\"@datetime\")){\n $value = \"1990-01-01 00:00:00\";\n } else\n if (strstr($comment,\"@double\")){\n $value = 0.0;\n } else\n if (strstr($comment,\"@bool\")){\n $value = false;\n } else\n if (strstr($comment,\"@money\")){\n $value = \"10.00\";\n }\n \n \n $bean->$field = $value;\n }\n \n R::store($bean);\n R::trash($bean);\n }",
"protected function setUpPrimaryKey()\n {\n $this->getOldTable()->createColumn('foo', Type::STRING, array('length' => 50));\n $this->getOldTable()->createColumn('bar', Type::STRING, array('length' => 50));\n\n $this->getOldTable()->createPrimaryKey(array('foo'), 'pk');\n\n $this->createOldTable();\n }",
"public function __clone()\n {\n $this->constructedObjectId = spl_object_hash($this);\n }",
"public function resetForClone()\n {\n // reset any fields for successful clone\n $this->id = null;\n return $this;\n }",
"public function __clone()\n {\n foreach ($this->_associations as $i => $association) {\n $this->_associations[$i] = clone $association;\n }\n }",
"public function __clone()\r\n {\r\n $schema = new self();\r\n\r\n $schema->columns = $this->columns;\r\n $schema->lastError = '';\r\n\r\n return $schema;\r\n }",
"protected function _beforeSave()\n\t{\n\t\tparent::_beforeSave();\n\n $date = Mage::getModel('core/date')->date('Y-m-d H:i:s');\n\t\tif ($this->isObjectNew()) {\n\t\t\t$this->setCreatedAt($date);\n\t\t\t$this->setUpdatedAt($date);\n\t\t} else {\n\t\t\t$this->setUpdatedAt($date);\n\t\t}\t\n\t\t\n\t\treturn $this;\n\t}",
"function __clone()\r\n\t{\r\n\t\tforeach ($this as $key => $value)\r\n\t\t{\r\n\t\t\tif (is_object($value))\r\n\t\t\t{\r\n\t\t\t\t$this->{$key} = clone($value);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public function getClone($withParameters = true) {\n\t\t$clone = new static($this->sqlAdapter, $this->idField, $this->class);\n\t\tif( $withParameters ) {\n\t\t\t$clone->parameters = $this->parameters;\n\t\t}\n\t\treturn $clone;\n\t}",
"public function __clone()\r\n {\r\n $this->document = [];\r\n $this->document_id = 0;\r\n\r\n $this->documentTotal = 0;\r\n $this->documentExchageTotal = 0;\r\n\r\n $this->associatedDocuments = [];\r\n }",
"public function update_simple_assocs()\n {\n Logger::getInstance()->po_log(\"PO:update_simple_assocs\");\n\n foreach( $this->hasOne as $attr => $type )\n {\n $obj = $this->attributeValues[ $attr ]; // Valor es un objeto (puede ser null!)\n\n // El objeto debe estar cargado para poder pedirle el id\n if ( $obj !== PersistentObject::NOT_LOADED_ASSOC )\n {\n $refAttrName = DatabaseNormalization::simpleAssoc( $attr );\n if ($obj)\n {\n // Si es MTI, el id de cualquier clase parcial será el mismo.\n $this->attributeValues[ $refAttrName ] = $obj->getId(); // seteo ref_id, ej. \"email_id\"\n }\n else\n {\n $this->attributeValues[ $refAttrName ] = NULL; // Si no hay objeto, la referencia es NULL.\n }\n }\n }\n }",
"static function saveObject () {\n $query = 'update '.Config::getTablePrifix().self::getTableName().' set ';\n $feilds = self::getFeildNames();\n $query .= implode(',',$feilds);\n $query .= ') values(';\n foreach ($feilds as $feild) {\n if ($feild != current($feilds)) {\n $query .= ',';\n }\n $query .= $feild.' = \\''.Database::escape(self::getFeildValue($feild)).'\\'';\n }\n $query .= ' where '.self::getIdFeild().' = \\''.self::getFeildValue(self::getIdFeild()).'\\'';\n Database::query($query);\n return $this;\n }",
"public function __clone()\n {\n unset($this->id);\n }",
"protected function initialiseFromPrimary()\n {\n foreach ($this->from as $key => $from) {\n if (isset($from->primary)) {\n } else {\n $this->from[$key]->primary = false;\n }\n }\n\n return $this;\n }",
"public function makePrimary()\n {\n $this->primary = 1;\n $this->save();\n self::where('church_id', $this->church_id)\n ->where('id', '!=', $this->id)\n ->update(['primary' => 0]);\n }",
"public function getNewModel()\n { if (isset($this->oModel))\n {\n if (get_class($this->oModel) !== $this->modelClassName)\n {\n // yes we do\n $this->resetModel();\n\n }\n else\n {\n // no, we do not\n }\n }\n else\n {\n // we have no record instance - create one\n $this->resetModel();\n }\n\n return clone $this->oModel;\n }",
"public function create()\n {\n foreach ($this->_getColumns() as $column) {\n $data[$column] = $this->get($column);\n }\n\n $data['updated_at'] = \\Carbon\\Carbon::now()->toDateTimeString();\n $data['is_active'] = true;\n $this->_localConfig->database()->insert($this->_getTable(), $data);\n\n return $this;\n }",
"function create()\n {\n $this->_getConnection();\n $this->preSave();\n $req = 'INSERT INTO `'.$this->_con->pfx.$this->_table.'` SET'.\"\\n\";\n $fields = array();\n $assoc = array();\n foreach ($this->_cols as $col=>$val) {\n $field = new $val['type']();\n if ($col == 'id') {\n continue;\n } elseif ($field->type == 'manytomany') {\n // If is a defined array, we need to associate.\n if (is_array($this->$col)) {\n $assoc[$val['model']] = $this->$col;\n }\n continue;\n }\n $fields[] = '`'.$col.'` = \\''.$this->_con->esc($this->$col).'\\'';\n }\n $req .= implode(','.\"\\n\", $fields);\n if (!$this->_con->execute($req)) {\n throw new Exception($this->_con->error());\n }\n if (false === ($id=$this->_con->getLastID())) {\n throw new Exception($this->_con->error());\n }\n $this->_data['id'] = $id;\n foreach ($assoc as $model=>$ids) {\n $this->batchAssoc($model, $ids);\n }\n return true;\n }",
"protected function _beforeSave()\r\n {\r\n parent::_beforeSave();\r\n $now = Mage::getSingleton('core/date')->gmtDate();\r\n if ($this->isObjectNew()) {\r\n $this->setCreatedAt($now);\r\n }\r\n $this->setUpdatedAt($now);\r\n return $this;\r\n }",
"public function create(){\n\n $id=0;\n $attributes = $this->prepared_attributes_insert();\n\t\t\n\t $sql = \"INSERT INTO \".static::$table_name.\" (\";\n\t $sql .= join(\",\",array_keys($attributes));\n\t $sql .= \") VALUES (\"; \n $sql .= join(\",\",array_values($attributes));\t\t \n $sql .= \") \";\n \n $idf = static::$id_field;\n \n $this->{static::$id_field} = static::db()->insert($sql);\n static::db()->free_statement();\n if (static::$idf !== -1)\n {\n\t return true;\n\t } else {\n\t return false;\n\t }\n }",
"public function prepAttributesForSave()\n\t{\n\t\t$attributes = $this->defineAttributes();\n\t\t$attributes['dateUpdated'] = array('0' => AttributeType::DateTime, 'required' => true);\n\t\t$attributes['dateCreated'] = array('0' => AttributeType::DateTime, 'required' => true);\n\n\t\tforeach ($attributes as $name => $config)\n\t\t{\n\t\t\t$config = ModelHelper::normalizeAttributeConfig($config);\n\t\t\t$value = $this->getAttribute($name);\n\n\t\t\t$this->setAttribute($name, ModelHelper::packageAttributeValue($config, $value, true));\n\t\t}\n\n\t\t// Populate dateCreated and uid if this is a new record\n\t\tif ($this->isNewRecord())\n\t\t{\n\t\t\t$this->dateCreated = DateTimeHelper::currentTimeForDb();\n\t\t\t$this->uid = StringHelper::UUID();\n\t\t}\n\n\t\t// Update the dateUpdated\n\t\t$this->dateUpdated = DateTimeHelper::currentTimeForDb();\n\t}",
"public function _cloned($obj)\n {\n $this->new = true;\n $this->data = [];\n $this->attr($obj);\n $this->init();\n }",
"function prepareForCopy() {\n\t\t$this->id = null;\n\t}",
"function create($dq=null){\n\t\tif($this->id)throw new APortalException(\"Object already have ID, cannot create again\",$this);\n\n\t\t// First we are going to create entry in obj table\n\t\t$dq_obj = $this->api->db->dsql();\n\t\t$dq_obj->set('type',$this->type);\n\t\t$dq_obj->set('name',$this->name);\n\t\t$dq_obj->table(\"obj\");\n\t\t$this->id = $dq_obj->do_insert();\n\n\t\t// Now we are creating entry in supplementary table\n\t\t$dq=$this->prepareSave($dq);\n\t\t$dq->set('id',$this->id);\n\t\ttry {\n\t\t\t$id=$dq->do_replace();\n\t\t} catch (SQLException $e){\n\t\t\t// Perhaps table does not exist. We will try to create it and repeat query.\n\t\t\t$this->createTable();\n\t\t\t$dq->do_replace();\n\t\t}\n\n\t\t$this->name='Object #'.$this->id;\n\t\t$this->short_name='obj_'.$this->id;\n\t\treturn $this;\n\t}",
"function __construct($row = null) {\n $this->_data = array();\n $this->_extra = array();\n if (!isset(self::$_defaults[$this->getObjectName()])) {\n // maintain the default data (column values) separately\n self::$_defaults[$this->getObjectName()] = array();\n $this->loadDefaults();\n }\n\n // clone from the default data. much faster than reloading the column values every time\n $def =& self::$_defaults[$this->getObjectName()];\n foreach ($def as $k => &$d) {\n $this->_data[$k] = clone $d;\n }\n\n if (is_array($row)) {\n $this->loadFromRow($row);\n } else if (is_int($row)) {\n $this->setValue('id', $row);\n }\n }",
"protected function _beforeSave()\n {\n parent::_beforeSave();\n $now = Mage::getSingleton('core/date')->gmtDate();\n if ($this->isObjectNew()) {\n $this->setCreatedAt($now);\n }\n $this->setUpdatedAt($now);\n return $this;\n }",
"public function prep() : self\n {\n\n $this->prepRelations();\n\n return $this;\n }",
"public function prepareSave()\n {\n $info = $this->getInfoInstance();\n\n $info->setCcNumberEnc($info->encrypt($info->getCcNumber()));\n $info->setCcCidEnc($info->encrypt($info->getCcCid()));\n\n $info\n ->setCcNumber(null)\n ->setCcCid(null);\n\n return $this;\n }",
"public function create(array $attributes = []){\n $data_built = $this->buildData($attributes);\n /*\n | Run afterCreating() methods...\n */\n $primary_key = (new $this->class)->getKeyName();\n $client = new Query($this->class);\n $last_primary_key = $client->getLastPrimaryKeyValue();\n\n if(is_subclass_of($data_built, Model::class)){\n $data_built->$primary_key = ++$last_primary_key;\n }else{\n foreach($data_built as $item){\n $item->$primary_key = ++$last_primary_key;\n }\n }\n\n $client->fill($data_built);\n return $data_built;\n }",
"public function fresh()\n {\n if ($this->hasModel() && $this->exists()) {\n return odb($this->db(), $this->table())->find((int) $this->data['id']);\n }\n\n return $this;\n }",
"public function copy($cap = false, $generateNewId = true)\n\t{\n\t\t//refresh the ID attribute.\n\t\t$rows = $this->getRows();\n\t\t$this->row['id'] = $rows['id'];\n\n\t\treturn $this->create($cap, $generateNewId);\n\t}",
"protected function createModelInstance(&$row) {\n\n // NOTE: Because $row might contain extra fields (like from a join,\n // We have to use the public 'setData' (which only tries to set fields\n // that exist).\n\n $class = $this->_modelClass;\n $id = $row[$this->getModelPrimaryKey()];\n $instance = new $class($id);\n $instance->setData($row);\n $instance->escaped = $this->escaped;\n\n return $instance;\n }",
"public function syncOriginal(): Model\n {\n $this->original = $this->getAttributes();\n\n return $this;\n }",
"function create () {\n\t\t$stm = DB::$pdo->prepare(\"insert into `generated_object` ({$generator_insert_columns}) \n\t\t\t\t\t\t\t\t values ({$generator_insert_values})\");\n\t\t// generator bind hook\n\t\t$stm->execute();\n\n\t\t$this->id = DB::$pdo->lastInsertId();\n\t}",
"public function save() {\n\n $this->get(\"id\") ? $this->_update() : $this->_create();\n return $this;\n\n }",
"public function newEntryModel();",
"public function updateRecord() {\n $model = self::model()->findByAttributes(array('id_customer' => $this->id_customer, 'id_supplier' => $this->id_supplier));\n\n //model is new, so create a copy with the keys set\n if (null === $model) {\n //we don't use clone $this as it can leave off behaviors and events\n $model = new self;\n $model->id_customer = $this->id_customer;\n $model->id_supplier = $this->id_supplier;\n }\n $model->save(false);\n return $model;\n }",
"protected function resetFromPrimary()\n {\n foreach ($this->from as $key => $from) {\n $this->from[$key]->primary = false;\n }\n\n return $this;\n }",
"function &shallowCopy () {\n \t\t$class = get_class($this);\n \t\t$newObject =& new $class;\n \t\t\n \t\t$varList = array_keys(get_object_vars($this));\n \t\tforeach ($varList as $varName) {\n \t\t\tif (is_object($this->$varName))\n \t\t\t\t$newObject->$varName =& $this->$varName;\n \t\t\telse\n\t \t\t\t$newObject->$varName = $this->$varName;\n \t\t}\n \t\t\n \t\treturn $newObject;\n \t}",
"private static function _objectify(DaoQuery $qry, array $row)\n {\n // Populate the focus object\n $fClass = $qry->getFocusClass();\n $newEntity = new $fClass;\n $newEntity->setId($row['id']);\n DaoMap::loadMap(strtolower($fClass));\n foreach (DaoMap::$map[strtolower($fClass)] as $field => $properties)\n {\n //ignore metadata\n if (trim($field) === '_')\n continue;\n //if it's just a private data for this entity class\n if (!isset($properties['rel']))\n $value = $row[$field];\n //if it's a relationship then we need to consider repopulate object(s)\n else if ($properties['rel'] === DaoMap::MANY_TO_ONE || ($properties['rel'] === DaoMap::ONE_TO_ONE))\n {\n //creates a empty object\n $id = $row[$field . 'Id'];\n $cls = DaoMap::$map[strtolower($fClass)][$field]['class'];\n $value = new $cls;\n $value->setId($id);\n $value->setProxyMode(true);\n }\n else if ($properties['rel'] === DaoMap::ONE_TO_MANY || ($properties['rel'] === DaoMap::MANY_TO_MANY))\n {\n $value = array(); //creates an empty array to stand out as an array\n }\n else\n continue;\n self::_setProperty($newEntity, $field, $value);\n }\n return $newEntity;\n }",
"public function __clone()\n {\n parent::__clone();\n $this->_stockItem = null;\n $this->_stockItems = null;\n $this->_inStockStockItems = null;\n return $this;\n }",
"public function create(array $attributes = [])\n {\n return tap($this->newModelInstance($attributes), function ($instance) {\n if (method_exists($instance, 'isTableShard')) {\n if ($instance->isTableShard()) {\n $instance->setTable($instance->getShardTable());\n }\n }\n $instance->save();\n });\n }",
"public function __clone()\n {\n $this->id = null;\n\n // Generate a new identifier\n $identifier = Uuid::uuid1()->toString();\n $this->identifier = $identifier;\n $this->uri = 'local:'.$this->identifier;\n\n // Set last change/update to now\n $this->updatedAt = new \\DateTimeImmutable();\n $this->changedAt = $this->updatedAt;\n }",
"public function save(){\n if($this->id == 0) {\n // Object is new and needs to be created\n return $this->insert();\n }\n }",
"private static function duplicateRecord($from, $to) {\n $fields = $from->as_array();\n unset($fields['id']);\n foreach ($fields as $name => $value) {\n $to->$name = $value;\n }\n\n return $to;\n }",
"public function __clone()\n {\n foreach ($this->data as $key => $value) {\n if ($value instanceof self) {\n $this[$key] = clone $value;\n }\n }\n }",
"protected function _prepareEnrtyForSave()\n {\n $object = $this->getObject();\n if (!($object instanceof Varien_Object)) {\n Mage::throwException(Mage::helper('googlebase')->__('Object model is not specified to save Google Base entry.'));\n }\n\n $this->_setUniversalData();\n\n $attributes = $this->getAttributeValues();\n if (is_array($attributes) && count($attributes)) {\n foreach ($attributes as $name => $data) {\n\n $name = $this->_normalizeString($name);\n $value = isset($data['value']) ? $data['value'] : '';\n $type = isset($data['type']) && $data['type'] ? $data['type'] : self::DEFAULT_ATTRIBUTE_TYPE;\n\n $customSetter = '_setAttribute' . ucfirst($name);\n if (method_exists($this, $customSetter)) {\n $this->$customSetter($name, $value, $type);\n } else {\n $this->_setAttribute($name, $value, $type);\n }\n }\n }\n return $this;\n }",
"public function save(){\n\n if (!$this->preSave()) {\n return FALSE;\n }\n\n $reference = $this->_getReference();\n $pk = $this->_getPK();\n\n $data = get_object_vars($this);\n\n if (empty($pk) && $pk !== NULL) {\n throw new \\Exception('Model PK is empty!');\n }\n\n if (is_array($pk)) {\n $pkv = [];\n $_pkv = [];\n $insert = TRUE;\n foreach ($pk as $c) {\n if (!empty($data[$c])) {\n $pkv[] = $data[$c];\n $_pkv[$c] = $data[$c];\n // unset($data[$c]);\n $insert = FALSE;\n }\n }\n\n if (!$insert) {\n $insert = is_null(self::getWhere($_pkv));\n }\n\n\n } else {\n $pkv = !empty($data[$pk]) ? $data[$pk] : NULL;\n $_pkv = [$pk => $pkv];\n\n // Se for AUTO INCREMENT remove dos campos a serem INSERIDOS/ALTERADOS\n if (self::_isPkAi())\n unset($data[$pk]);\n\n $insert = empty($pkv);\n }\n\n unset($data['__error']);\n\n foreach ($data as $key => $value) {\n if (strpos($key, '_') === 0)\n unset($data[$key]);\n }\n\n if ($insert) {\n\n if (array_key_exists('created', $data))\n $data['created'] = Date('Y-m-d H:i:s');\n\n if (array_key_exists('updated', $data))\n unset($data['updated']);\n\n\n $res = self::$connection->insert($reference, $data)->execute();\n\n if ($res && $pk !== NULL && !is_array($pk))\n $this->{'set'.$pk}(self::$connection->lastInsertId());\n\n } else {\n\n if (array_key_exists('updated', $data))\n $data['updated'] = Date('Y-m-d H:i:s');\n\n if (array_key_exists('created', $data))\n unset($data['created']);\n\n $res = self::$connection->update($reference, $data, $_pkv)->execute();\n\n }\n\n if ($res)\n $this->refresh();\n\n $this->afterSave($res);\n\n return $res;\n\n }",
"static private function _reuseAfterSave(dDbRow3 $object, $onlyFields = false)\n {\n // Isso significa que temos os originais e o isLoaded() antigo.\n $className = get_called_class();\n $maxSlots = self::structGet('allowReusable');\n if (!$maxSlots) {\n return new $className($onlyFields);\n }\n\n // --> Se mudou o primaryKey, então tenho que des-carregar tudo o que fazia referência ao ID antigo.\n // --> Se o objeto não estava no sistema de reusables, então tenho que adicioná-lo\n // --> Se o objeto não estava alocado, mas outro estava com o mesmo id/onlyFields, mantenha-o desalocado\n // --> Se o objeto não estava alocado, mas nenhum outro também estava, aloque-o\n $primaryKey = self::structGet('primaryKey');\n $primaryVal = $object->getValue($primaryKey);\n if ($object->isLoaded()) {\n $primaryOri = $object->getOriginal($primaryKey);\n\n if ($primaryVal != $primaryOri) {\n $compareKey = \"{$primaryOri}(\";\n $compareLen = strlen($compareKey);\n foreach (self::$reusable[$className] as $reuseKey => $reuseItem) {\n if (substr($reuseKey, 0, $compareLen) == $compareKey) {\n unset(self::$reusable[$className][$reuseKey]);\n }\n }\n }\n }\n\n if (!isset(self::$reusable[$className])) {\n self::$reusable[$className] = array();\n }\n\n $onlyFields = (sizeof($object->fieldValues) == sizeof(self::structGet('fieldProps',\n 'simple'))) ? false : implode(\",\", array_keys($object->fieldValues));\n if (self::reuseExists($primaryVal, $onlyFields)) {\n return false;\n }\n\n self::_reuseAllocate(1);\n if (sizeof(self::$reusable[$className]) < $maxSlots) {\n // Só vamos alocar se houverem slots disponíveis.\n $tryKey = $primaryVal . \"(\" . ($onlyFields ? $onlyFields : 'all') . \")\";\n self::$reusable[$className][$tryKey] = array('objRef' => $object, 'inUse' => 1);\n }\n return true;\n }",
"public function save()\n {\n\n // generate all column's sql query\n $column_names = '';\n $column_values = '';\n foreach ($this->columns as $field_name => $column_obj)\n {\n if ($column_obj->columnName === null) {\n $column_names .= $field_name.', ';\n } else {\n $column_names .= $column_obj->columnName.', ';\n }\n $column_values .= $column_obj->generateValueForSQL().', ';\n }\n $column_names = substr($column_names, 0, -1);\n $column_values = substr($column_values, 0, -1);\n $this_table_name = $this->table_name;\n $this_id = $this->id;\n\n if ($this->id === 0) {\n // This object is not saved yet.\n $query = 'INSERT INTO $this_table_name ($column_names) VALUES ($column_values);';\n // Execute query\n } else {\n // This object is on the DB.\n $query = 'INSERT INTO $this_table_name ($column_names) VALUES ($column_values) WHERE id=$this_id;';\n // Execute query\n }\n\n mysql_run_query($query);\n\n }",
"public function __clone(){\n\t trigger_error('La clonación de este objeto no está permitida', E_USER_ERROR);\n\t }",
"function __clone()\n\t{\n\t\t$relations = array();\n\n\t\tif (!empty($this->relations))\n\t\t{\n\t\t\t/** @var Relation[] $relations */\n\t\t\tforeach ($this->relations as $key => $relation)\n\t\t\t{\n\t\t\t\t$relations[$key] = clone($relation);\n\t\t\t\t$relations[$key]->reset();\n\t\t\t}\n\t\t}\n\n\t\t$this->relations = $relations;\n\t}",
"function factory($id,$row) {\n\t\t$mapper=clone($this);\n\t\t$mapper->reset();\n\t\t$mapper->id=$id;\n\t\tforeach ($row as $field=>$val)\n\t\t\t$mapper->document[$field]=$val;\n\t\t$mapper->query=[clone($mapper)];\n\t\tif (isset($mapper->trigger['load']))\n\t\t\t\\Base::instance()->call($mapper->trigger['load'],$mapper);\n\t\treturn $mapper;\n\t}",
"function ctools_export_new_object($table, $set_defaults = TRUE) {\r\n $schema = ctools_export_get_schema($table);\r\n $export = $schema['export'];\r\n\r\n $object = new $export['object'];\r\n foreach ($schema['fields'] as $field => $info) {\r\n if (isset($info['object default'])) {\r\n $object->$field = $info['object default'];\r\n }\r\n else if (isset($info['default'])) {\r\n $object->$field = $info['default'];\r\n }\r\n else {\r\n $object->$field = NULL;\r\n }\r\n }\r\n\r\n if ($set_defaults) {\r\n // Set some defaults so this data always exists.\r\n // We don't set the export_type property here, as this object is not saved\r\n // yet. We do give it NULL so we don't generate notices trying to read it.\r\n $object->export_type = NULL;\r\n $object->{$export['export type string']} = t('Local');\r\n }\r\n return $object;\r\n}",
"public function newObject(array $row = array())\n {\n return $this->object_factory->newObject($row);\n }",
"public function __clone()\n {\n $keep_prefix = 'CLASS_';\n $keep_len = strlen($keep_prefix);\n $keep_prefix2 = 'CONF_';\n $keep_len2 = strlen($keep_prefix2);\n foreach ((array) get_object_vars($this) as $k => $v) {\n if (substr($k, 0, $keep_len) === $keep_prefix) {\n continue;\n }\n if (substr($k, 0, $keep_len2) === $keep_prefix2) {\n continue;\n }\n $this->$k = null;\n }\n }",
"public function __clone() {\n if ($this->_where) {\n $this->_where = clone $this->_where;\n }\n\n if ($this->_having) {\n $this->_having = clone $this->_having;\n }\n }",
"function createObject()\n {\n $stmt = $this->mysqli->prepare(\"INSERT INTO object(`name`, `description`, `price`, `typeCoin`, `weight`, `volume`, `limitationStrength`,\n `limitationDex`, `limitationCons`, `limitationInt`, `limitationWis`,`typeObject`, `primal`)\n VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?)\");\n $stmt->bind_param(\n \"ssisiiiiiiisi\",\n $this->name,\n $this->description,\n $this->price,\n $this->typeCoin,\n $this->weight,\n $this->volume,\n $this->limitationStrength,\n $this->limitationDex,\n $this->limitationCons,\n $this->limitationInt,\n $this->limitationWis,\n $this->typeObject,\n $this->primal\n );\n $stmt->execute();\n $this->id = $this->mysqli->insert_id;\n $stmt->close();\n }",
"public function __clone() {\n $this->a = clone $this->a;\n $this->b = clone $this->b;\n parent::__clone();\n }",
"public function as_object() {\r\n $this->fetch_mode = 'object';\r\n return $this;\r\n }",
"public static function instantation($the_record){ //Its the same as $row\n //$the_object = new self; // Bse of inheritance problem ,this as to change in late static\n $calling_class = get_called_class();\n $the_object = new $calling_class;\n \n \n// $the_object->id =$found_user['id'];\n// $the_object->username =$found_user['username'];\n// $the_object->password =$found_user['password'];\n// $the_object->First_Name =$found_user['first_name'];\n// $the_object->Last_Name =$found_user['last_name'];\n// \n foreach ($the_record as $the_attribute =>$value){\n if ($the_object->has_the_attribute($the_attribute)){\n \n $the_object->$the_attribute=$value; // Value is attribute in database\n } \n }\n return $the_object; \n \n }",
"function createNewEntry( $doAllowPrimaryKeyUpdate=false ) \n { \n\t parent::createNewEntry( $doAllowPrimaryKeyUpdate );\n\t \n\t //$ccTransID = $this->getID(); \n\t $values = $this->getArrayOfValues();\n// \t echo \"<pre>\".print_r($values,true).\"</pre>\";\n\t \n\t if (isset($values['reg_id']))\n\t {\n\t \n\t\t // update balance owing column in cim_reg_registration table\n\t\t $singleReg = new RowManager_RegistrationManager($values['reg_id']);\n// \t\t $singleReg_list = $singleReg->getListIterator();\n// \t\t $singleReg_array = $singleReg_list->getDataList();\n// \t\t \n// \t\t reset($singleReg_array);\n// \t\t $record = current($singleReg_array);\n// \t\t $oldBalance = $record['registration_balance'];\n\t\t \n\t\t\t $balanceGetter = new FinancialTools();\n\t\t\t $balance = array();\n// \t\t\t $balance['registration_balance'] = $oldBalance - $record['cctransaction_amount'];\n\t\t\t $balance['registration_balance'] = $balanceGetter->simpleCalcBalanceOwing($values['reg_id']);\t\n\t\t\t $singleReg->loadFromArray( $balance );\n\t\t\t $singleReg->updateDBTable();\t\t\t\n\t\t }\t \n }",
"public function copyFromDbRow($row) {\r\n $map = static::getDbMap();\r\n if ($map && (is_object($row) || is_array($row))) {\r\n\r\n $row = (object) $row;\r\n $primaryKey = $map[static::getDbPrimaryKey()];\r\n\r\n foreach($map as $property => $column) {\r\n if (property_exists($row, $column) && property_exists($this, $property)) {\r\n $this->$property = $row->$column;\r\n if ($column === $primaryKey) {\r\n $this->$property = (int) $this->$property;\r\n }\r\n }\r\n }\r\n }\r\n }"
] | [
"0.6332107",
"0.6199207",
"0.6152271",
"0.6049933",
"0.60402656",
"0.6009334",
"0.59361887",
"0.59313196",
"0.5866712",
"0.58038366",
"0.58002037",
"0.57633096",
"0.5755122",
"0.5726678",
"0.5712836",
"0.57038164",
"0.5701268",
"0.56782615",
"0.5671927",
"0.5607715",
"0.5601292",
"0.5579708",
"0.5579708",
"0.557607",
"0.5544975",
"0.55416054",
"0.5529635",
"0.55272055",
"0.55200493",
"0.550203",
"0.550203",
"0.54943085",
"0.5480786",
"0.54721713",
"0.546281",
"0.5443873",
"0.5443873",
"0.5443873",
"0.54097235",
"0.5407216",
"0.540483",
"0.5392585",
"0.53822756",
"0.537859",
"0.5339337",
"0.5327516",
"0.5325642",
"0.5322082",
"0.5317524",
"0.5313183",
"0.5300476",
"0.52801204",
"0.5275023",
"0.527232",
"0.5261726",
"0.5258507",
"0.52539575",
"0.5244761",
"0.523136",
"0.5224994",
"0.5223794",
"0.5219819",
"0.52127385",
"0.52094936",
"0.5195738",
"0.5179334",
"0.5175873",
"0.5170315",
"0.51684105",
"0.51662177",
"0.51655465",
"0.515877",
"0.5157312",
"0.5155938",
"0.5149227",
"0.51489794",
"0.5142883",
"0.51420647",
"0.51359206",
"0.512813",
"0.5121741",
"0.51109",
"0.5109064",
"0.51027817",
"0.5096708",
"0.5090502",
"0.5077635",
"0.50717425",
"0.5056288",
"0.5054258",
"0.5053088",
"0.5043301",
"0.50423163",
"0.5039507",
"0.50367564",
"0.5035097",
"0.50255686",
"0.50204617",
"0.5019209",
"0.501688",
"0.50162345"
] | 0.0 | -1 |
Returns a peer instance associated with this om. Since Peer classes are not to have any instance attributes, this method returns the same instance for all member of this class. The method could therefore be static, but this would prevent one from overriding the behavior. | public function getPeer()
{
if (self::$peer === null) {
self::$peer = new OperationPrimesPeer();
}
return self::$peer;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getPeer()\n {\n if (self::$peer === null) {\n self::$peer = new SekolahPaudPeer();\n }\n\n return self::$peer;\n }",
"public function getPeer()\n {\n if (self::$peer === null) {\n self::$peer = new MontacargasPeer();\n }\n\n return self::$peer;\n }",
"public function getPeer()\n\t{\n\t\tif (self::$peer === null) {\n\t\t\tself::$peer = new UserPeer();\n\t\t}\n\t\treturn self::$peer;\n\t}",
"public function getPeer()\n\t{\n\t\tif (self::$peer === null) {\n\t\t\tself::$peer = new UserPeer();\n\t\t}\n\t\treturn self::$peer;\n\t}",
"public function getPeer()\n\t{\n\t\tif (self::$peer === null) {\n\t\t\tself::$peer = new VenuePeer();\n\t\t}\n\t\treturn self::$peer;\n\t}",
"public function getPeer()\n\t{\n\t\tif (self::$peer === null) {\n\t\t\tself::$peer = new MmPeer();\n\t\t}\n\t\treturn self::$peer;\n\t}",
"public function getPeer()\n {\n if (self::$peer === null) {\n self::$peer = new JadwalPeer();\n }\n\n return self::$peer;\n }",
"public function getPeer()\n {\n if (self::$peer === null) {\n self::$peer = new EventPeer();\n }\n\n return self::$peer;\n }",
"public function getPeer()\n\t{\n\t\tif (self::$peer === null) {\n\t\t\tself::$peer = new C060InventarioPeer();\n\t\t}\n\t\treturn self::$peer;\n\t}",
"public function getPeer()\n\t{\n\t\tif (self::$peer === null) {\n\t\t\tself::$peer = new J019tParticipantesPeer();\n\t\t}\n\t\treturn self::$peer;\n\t}",
"public function getPeer()\n {\n if (self::$peer === null) {\n self::$peer = new BangunanPeer();\n }\n\n return self::$peer;\n }",
"public function getPeer()\n {\n if (self::$peer === null) {\n self::$peer = new SanitasiPeer();\n }\n\n return self::$peer;\n }",
"public function getPeer()\n\t{\n\t\tif (self::$peer === null) {\n\t\t\tself::$peer = new VpoRequestPeer();\n\t\t}\n\t\treturn self::$peer;\n\t}",
"public function getPeer()\n {\n if (self::$peer === null) {\n self::$peer = new YearPeer();\n }\n\n return self::$peer;\n }",
"public function getPeer()\n\t{\n\t\tif (self::$peer === null) {\n\t\t\tself::$peer = new CampaignPeer();\n\t\t}\n\t\treturn self::$peer;\n\t}",
"public function getPeer()\n\t{\n\t\tif (self::$peer === null) {\n\t\t\tself::$peer = new PostPeer();\n\t\t}\n\t\treturn self::$peer;\n\t}",
"public function getPeer()\n\t{\n\t\tif (self::$peer === null) {\n\t\t\tself::$peer = new UsuarioPeer();\n\t\t}\n\t\treturn self::$peer;\n\t}",
"public function getPeer()\n\t{\n\t\tif (self::$peer === null) {\n\t\t\tself::$peer = new UsuarioPeer();\n\t\t}\n\t\treturn self::$peer;\n\t}",
"public static function getInstance() {\n return Doctrine_Core::getTable('Peer');\n }",
"public function getPeer()\n {\n if (self::$peer === null) {\n self::$peer = new ActionTypePeer();\n }\n\n return self::$peer;\n }",
"public function getPeer()\n\t{\n\t\tif (self::$peer === null) {\n\t\t\tself::$peer = new CidadePeer();\n\t\t}\n\t\treturn self::$peer;\n\t}",
"public function getPeer()\n {\n if (self::$peer === null) {\n self::$peer = new FeatureCvtermPeer();\n }\n\n return self::$peer;\n }",
"public function party()\n {\n return new Party($this->connection);\n }",
"public function getInstance() {\r\n\t\tif ($this->ref) {\r\n\t\t\treturn $this->getRef();\r\n\t\t}\r\n\t\treturn $this;\r\n\t}",
"public function get(int $fd): Peer\n {\n return $this->peers[$fd] ?? $this->add($fd);\n }",
"public function verifyPeer() {\n $this->_do_not_verify_peer = FALSE;\n return $this;\n }",
"public function getInstance()\n {\n return $this;\n }",
"public function getInstance() {\n\t\treturn $this->instance;\n\t}",
"public function getInstance()\n {\n return $this->instance;\n }",
"public function getInstance()\n {\n return $this->instance;\n }",
"public function getInstance()\n {\n return $this->instance;\n }",
"public function getInstance()\n {\n return $this->instance;\n }",
"public function getInstance(): self\n {\n return $this;\n }",
"public function PPPoEClient()\n {\n return new PPPoEClient($this->talker);\n }",
"public function instance() {\n\t\n\t\treturn $this;\n\t\n\t}",
"public function getPeerInfo();",
"public static function getInstance()\n {\n return self::$instance ?? self::getNewInstance();\n }",
"public function get_instance() {\r\n\t\treturn $this->obj;\r\n\t}",
"public function get_instance()\n\t{\n\t\treturn $this;\n\t}",
"public function get_instance()\n\t{\n\t\treturn $this;\n\t}",
"public static function me()\n {\n if (!static::$inctance) {\n static::$inctance = new static();\n }\n\n return static::$inctance;\n }",
"public function EoIP()\n {\n return new EoIP($this->talker);\n }",
"public static function instance(): self\n {\n return self::$instance ??= new self();\n }",
"public function getPeerName()\n {\n return $this->peerName;\n }",
"public static function get()\n\t{\n\t\tif(null == self::$_instance)\n\t\t{\n\t\t\treturn new self();\n\t\t}\n\n\t\treturn self::$_instance;\n\t}",
"public static function get()\n {\n if (is_null(self::$instance)) {\n self::$instance = new self();\n }\n return self::$instance;\n }",
"public function getUserInstance()\n {\n $entity = null;\n\n if ($this instanceof \\User) {\n $entity = $this;\n } elseif ($this instanceof \\PortalUser) {\n $this->setPortalId();\n $entity = $this->getRelated('User');\n } else {\n $entity = $this->getPortalUser()->getRelated('User');\n }\n\n $this->checkJoin($this, $entity);\n\n return $entity;\n }",
"public static function get() \n {\n if (!isset(self::$instance)) {\n self::$instance = new self;\n }\n\n return self::$instance;\n }",
"public static function getInstance() {\n // Check to see if an instance has already\n // been created\n if (is_null(self::$oInstance)) {\n // If not, return a new instance\n return self::setInstance();\n } else {\n // If so, return the previously created\n // instance\n return self::$oInstance;\n }\n }",
"public function getPeerIp()\n {\n return isset($this->peer_ip) ? $this->peer_ip : '';\n }",
"public static function instance() {\n if (static::$instance === null) {\n static::$instance = static::resolve_connection();\n }\n\n return static::$instance;\n }",
"public static function instance() {\n return self::$instance;\n }",
"public function getpeerinfo(){\n return $this->bitcoin->getpeerinfo();\n }",
"public static function get_instance() {\n\t\tif ( ! self::$_instance instanceof Join ) {\n\t\t\tself::$_instance = new self();\n\t\t}\n\n\t\treturn self::$_instance;\n\t}",
"public static function get() {\n\t\tif ( self::$instance === null )\n\t\t\tself::$instance = new self();\n\n\t\treturn self::$instance;\n\t}",
"function get() {\n\t\tif (!self::$instance) self::$instance = new self;\n\t\treturn self::$instance;\n\t}",
"protected function getObject()\n {\n return $this;\n }",
"public static function get_instance() {\n\n if ( ! self::$instance instanceof self ) {\n self::$instance = new self;\n }\n\n return self::$instance;\n\n }",
"public static function instance(): self\n {\n return static::$instance ??= new static();\n }",
"public function getObject()\n {\n return $this;\n }",
"public static function get() {\r\n\r\n\t\tif ( self::$instance == null ) {\r\n\t\t\tself::$instance = new self();\r\n\t\t}\r\n\r\n\t\treturn self::$instance;\r\n\r\n\t}",
"abstract public function get_instance();",
"public static function instance() {\r\n return self::$instance;\r\n }",
"public function get_instance() {\n if ( null == self::$instance ) {\n self::$instance = new self;\n }\n return self::$instance;\n }",
"final public function getThis()\n {\n return $this->instance;\n }",
"public static function get() {\n\t\tif ( self::$instance == null ) {\n\t\t\tself::$instance = new self();\n\t\t}\n\t\treturn self::$instance;\n\t}",
"public function PPPoEServer()\n {\n return new PPPoEServer($this->talker);\n }",
"public function getInstance()\n {\n return self::$instance;\n }",
"public static function get_instance() {\n\n\t\treturn null === self::$instance ? new self() : self::$instance;\n\n\t}",
"public static function get_instance() {\n\t\tif ( !is_a( self::$instance, __CLASS__ ) ) {\n\t\t\tself::$instance = new self();\n\t\t}\n\t\treturn self::$instance;\n\t}",
"public function getInstance()\r\n {\r\n if (self::$instance === NULL) {\r\n self::$instance = new self;\r\n }\r\n\r\n return self::$instance;\r\n }",
"public function get_point_owner()\n {\n $player_obj = User::find($this->player_id);\n\n return $player_obj;\n }",
"function AbstractUserPeer() {\n }",
"function getOwner() \n {\n return $this->instance->getOwner();\n }",
"public static function self() {\n\n\t\treturn self::factory( 'self' );\n\n\t}",
"public static function self() {\n\n\t\treturn self::factory( 'self' );\n\t}",
"public static function instance() {\n\n\t\t\tif ( is_null( self::$instance ) ) {\n\t\t\t\tself::$instance = new self();\n\t\t\t}\n\n\t\t\treturn self::$instance;\n\n\t\t}",
"public static function instance() {\n if ( empty( self::$instance ) ) {\n self::$instance = new self;\n }\n\n return self::$instance;\n }",
"public static function instance() {\n\t\t\tif ( is_null( self::$instance ) ) {\n\t\t\t\tself::$instance = new self();\n\t\t\t}\n\n\t\t\treturn self::$instance;\n\t\t}",
"public static function instance() {\n\t\t\tif ( is_null( self::$instance ) ) {\n\t\t\t\tself::$instance = new self();\n\t\t\t}\n\n\t\t\treturn self::$instance;\n\t\t}",
"static public function get_instance()\n\t{\n\t\tif(self::$v_instance === null)\n\t\t{\n\t\t\tself::$v_instance = new self;\n\t\t}\n\t\treturn self::$v_instance;\n\t}",
"public static function instance() {\n\t\t\tif ( is_null( self::$_instance ) ) {\n\t\t\t\tself::$_instance = new self();\n\t\t\t}\n\t\t\treturn self::$_instance;\n\t\t}",
"public static function instance() {\n\t\t\tif ( is_null( self::$_instance ) ) {\n\t\t\t\tself::$_instance = new self();\n\t\t\t}\n\t\t\treturn self::$_instance;\n\t\t}",
"public static function instance() {\n\t\t\tif ( is_null( self::$_instance ) ) {\n\t\t\t\tself::$_instance = new self();\n\t\t\t}\n\t\t\treturn self::$_instance;\n\t\t}",
"public static function instance() {\n\t\t\tif ( is_null( self::$_instance ) ) {\n\t\t\t\tself::$_instance = new self();\n\t\t\t}\n\t\t\treturn self::$_instance;\n\t\t}",
"public static function instance() {\n\t\t\tif ( is_null( self::$_instance ) ) {\n\t\t\t\tself::$_instance = new self();\n\t\t\t}\n\t\t\treturn self::$_instance;\n\t\t}",
"public static function instance() {\n\t\t\tif ( is_null( self::$_instance ) ) {\n\t\t\t\tself::$_instance = new self();\n\t\t\t}\n\t\t\treturn self::$_instance;\n\t\t}",
"public function getPobj()\n {\n return $this;\n }",
"public static function instance() {\n\t\t\tif ( is_null( self::$_instance ) )\n\t\t\t\tself::$_instance = new self();\n\n\t\t\treturn self::$_instance;\n\t\t}",
"public static function get_instance() {\n\n\t\t\t// Check if instance is already exists.\n\t\t\tif ( is_null( self::$instance ) ) {\n\t\t\t\tself::$instance = new self();\n\t\t\t}\n\n\t\t\treturn self::$instance;\n\t\t}",
"public static function instance() {\n\t\treturn static::$instance;\n\t}",
"public static function get_instance() {\n \t\tstatic $instance = null;\n \t\tif (is_null($instance)) {\n \t\t\t$instance = new self();\n \t\t}\n \t\treturn $instance;\n \t}",
"public function player() : Player\n {\n return $this->player;\n }",
"public function get_pessoa()\n {\n // loads the associated object\n if (empty($this->pessoa))\n $this->pessoa = new Pessoa($this->ref_pessoa);\n \n // returns the associated object\n return $this->pessoa;\n }",
"public static function get_instance() {\n\t\treturn self::$instance;\n\t}",
"public static function get_instance() {\n\t\treturn self::$instance;\n\t}",
"public static function get_instance()\n {\n NULL === self::$instance and self::$instance = new self;\n return self::$instance;\n }",
"public static function getInstance(){\r\n\t\treturn ($i = &self::$instance) ? $i : $i = new self;\r\n\t}",
"function getVotingMember() {\n\t\treturn Member::get()->byID($this->MemberID);\n\t}",
"public static function instance()\r\n\t\t{\r\n\t\t\t\r\n\t\t\tif ( ! self::$instance instanceof self )\r\n\t\t\t{\r\n\t\t\t\tself::$instance = new self;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\treturn self::$instance;\r\n\t\t}"
] | [
"0.7497994",
"0.7390064",
"0.72943497",
"0.72943497",
"0.7292093",
"0.71942556",
"0.7158952",
"0.70897853",
"0.70610696",
"0.7024857",
"0.70201725",
"0.6810748",
"0.68051",
"0.67704856",
"0.67646056",
"0.6665654",
"0.65204406",
"0.65204406",
"0.64775974",
"0.64626306",
"0.6274998",
"0.6228542",
"0.58446807",
"0.5693327",
"0.5657152",
"0.5597096",
"0.55442125",
"0.5537062",
"0.55368406",
"0.55368406",
"0.55368406",
"0.55368406",
"0.5497905",
"0.5489917",
"0.54844266",
"0.5470566",
"0.5359253",
"0.5358575",
"0.5347633",
"0.5347633",
"0.53334814",
"0.5306953",
"0.52931833",
"0.52667224",
"0.5223017",
"0.52207875",
"0.51834595",
"0.5183432",
"0.51777315",
"0.5167905",
"0.51659733",
"0.51574415",
"0.5151286",
"0.5149871",
"0.5131645",
"0.51316243",
"0.5126672",
"0.5118065",
"0.511208",
"0.511068",
"0.51014006",
"0.5097486",
"0.50936085",
"0.50924003",
"0.5088488",
"0.5073055",
"0.50718826",
"0.506668",
"0.5065232",
"0.506142",
"0.5058516",
"0.5053916",
"0.5044591",
"0.50402343",
"0.5038526",
"0.50327075",
"0.5032608",
"0.5023735",
"0.5022588",
"0.5022588",
"0.5019993",
"0.50198215",
"0.50198215",
"0.50198215",
"0.50198215",
"0.50198215",
"0.50198215",
"0.50108194",
"0.5009678",
"0.5009538",
"0.50024116",
"0.49996778",
"0.4999565",
"0.49919978",
"0.4990979",
"0.4990979",
"0.49793103",
"0.49780148",
"0.4974235",
"0.49742147"
] | 0.6366558 | 20 |
Declares an association between this object and a Operations object. | public function setOperations(Operations $v = null)
{
if ($v === null) {
$this->setOpId(NULL);
} else {
$this->setOpId($v->getOpId());
}
$this->aOperations = $v;
// Add binding for other direction of this n:n relationship.
// If this object has already been added to the Operations object, it will not be re-added.
if ($v !== null) {
$v->addOperationPrimes($this);
}
return $this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function __construct(Operation $operation)\n {\n $this->operation = $operation;\n }",
"public function add(Operation $operation);",
"public function addOperation(string $operation): OperationInterface;",
"private function setOperation(OperatorInterface $operation)\n {\n \t$this->operation = $operation;\n }",
"public function setOperation($operation)\n {\n $this->operation = $operation;\n }",
"function setOperation($operation) {\n $this->checkChange();\n\n $this->operation = $operation;\n return $this;\n }",
"public function setOperation(OperationInterface $operation)\n {\n $this->operation = $operation;\n }",
"public function setOperation($operation) {\n\t\t$this->operation = $operation;\n\t\treturn $this;\n\t}",
"public function setOperation($value)\n {\n return $this->set('Operation', $value);\n }",
"public function setOperation($value)\n {\n return $this->set('Operation', $value);\n }",
"public function setOperation($value)\n {\n return $this->set('Operation', $value);\n }",
"public function setOperation($value)\n {\n return $this->set('Operation', $value);\n }",
"public function setOperation($value)\n {\n return $this->set('Operation', $value);\n }",
"public function setOperation($value)\n {\n return $this->set('Operation', $value);\n }",
"public function setOperation($operation)\n {\n $this->operation = $operation;\n return $this;\n }",
"public function setOperation(Operation $operation)\n {\n $this->operation = $operation;\n\n return $this;\n }",
"function setOperationnode($node){\n\t\t$this->operationNode = $node;\n\t}",
"public function setOperation($operation)\n {\n $this->operation = $operation;\n\n return $this;\n }",
"public function addOperation(ckWsdlOperation $operation)\r\n {\r\n $this->operations[] = $operation;\r\n }",
"public function createUserOperationAction()\n {\n /** @var Object_Operation $operation */\n $data = $this->getRequestData();\n if (isset($data['title']) && isset($data['activity_id'])) {\n $user = Object_User::getById($this->getDeviceSession()->getUserId());\n\n $folder = Object_Folder::getByPath('/operations/' . $user->getKey() . \"-operations\");\n if (!$folder) {\n $folder = new Object_Folder();\n $folder->setKey($user->getKey() . \"-operations\");\n $folder->setParentId(4);\n $folder->save();\n }\n\n $geo = new Object_Data_Geopoint($data['longtitude'], $data['latitude']);\n\n $operation = new Object_Operation();\n $operation->setCreator($user);\n $operation->setTitle($data['title']);\n $operation->setExplanation(isset($data['explanation']) ? $data['explanation'] : \"\");\n $operation->setLocation($geo);\n $operation->setPhoto(isset($data['photo']) ? Asset_Image::getById($data['photo']) : \"\");\n $operation->setVideo(isset($data['video']) ? Asset_Video::getById($data['video']) : \"\");\n $operation->setActivity(Object_Activity::getById($data['activity_id']));\n $operation->setKey(Pimcore_File::getValidFilename($user->getKey() . \"-\" . $data['title'] . \"-\" . time()));\n $operation->setPublished(true);\n $operation->setParentId($folder->getId());\n if (!$operation->save()) {\n $this->setErrorResponse('cannot save Operation object');\n }\n } else {\n $this->setErrorResponse('title and activity_id is mandatory field for this request!');\n }\n\n $this->_helper->json($operation);\n }",
"protected function getSetUpOperation()\n {\n return new \\PHPUnit_Extensions_Database_Operation_Composite(array(\n new Db\\Operation\\Truncate(),\n new Db\\Operation\\Insert(),\n ));\n }",
"public function operation($operation);",
"public function addOperation($operation)\n {\n if (!in_array($operation, $this->operations, true)) {\n $this->operations[] = $operation;\n }\n }",
"public function initializeObject()\n {\n $operationsAndFinalOperationNames = static::buildOperationsAndFinalOperationNames($this->objectManager);\n $this->operations = $operationsAndFinalOperationNames[0];\n $this->finalOperationNames = $operationsAndFinalOperationNames[1];\n }",
"public function inOperation(){\n //When an Operation is created we have to adjust the price of the inventory\n //and the quantity\n //We adjust the price of the inventory based on the last In\n $this->inventory->setQuantity($this->inventory->getQuantity() + $this->getQuantity());\n $this->inventory->setPrice($this->price);\n $this->type = \"IN\";\n }",
"public final function __construct(WAT_OP_Object_Interface $metadata) {\n\t\t$this->metadata = $metadata;\n\n\t\t// init attributes\n\t\t// get metadata for attributes\n\t\t$attributes_metadata = $this->metadata->__getAttributes();\n\t\t// instanciate attribute-objects and store them\n\t\tforeach ($attributes_metadata as $attribute_metadata) {\n\t\t\t$this->attributes[$attribute_metadata->getName()] = new WAT_OP_Attribute($attribute_metadata);\n\t\t\t$this->attributes[$attribute_metadata->getName()]->setObject($this);\n\t\t}\n\t\n\t\t// get all relations\n\t\t$relations = $this->metadata->__getPackage()->getRelationsByObject($this);\n\n\t\t// if there are relations create the attributes\n\t\tif(is_array($relations)) {\n\t\t\t$relation_attribute_names = array_keys($relations);\n\t\t\tforeach ($relation_attribute_names as $relation_attribute_name) {\n\t\t\t\t$this->relation_attributes[$relation_attribute_name] = new WAT_OP_RelationAttribute($this, $relation_attribute_name, $relations[$relation_attribute_name]);\n\t\t\t}\n\t\t}\n\t}",
"private function createOperatorDefinition()\n {\n $id = $this->getServiceId('operator');\n if (!$this->container->has($id)) {\n $definition = new Definition($this->getServiceClass('operator'));\n $definition->setArguments([\n new Reference($this->getManagerServiceId()),\n new Reference($this->getEventDispatcherServiceId()),\n new Reference($this->getServiceId('configuration')),\n $this->container->getParameter('kernel.debug')\n ]);\n $this->container->setDefinition($id, $definition);\n }\n }",
"public function getOperation();",
"protected function getSetUpOperation()\n {\n return new \\PHPUnit_Extensions_Database_Operation_Composite(array(\n \\PHPUnit_Extensions_Database_Operation_Factory::DELETE_ALL(),\n \\PHPUnit_Extensions_Database_Operation_Factory::INSERT()\n ));\n }",
"public function __construct() {\n\t\tparent::__construct();\n\t\t\n\t\t$this->extension = new AtomicOperationsExtension();\n\t\t$this->applyExtension($this->extension);\n\t}",
"public function testAddOperation()\n {\n $patch = new Patch();\n $op = new Resources\\MockAtomic();\n $patch->addOperation($op);\n\n $this->assertNotEmpty(json_decode($patch));\n }",
"public function __construct()\n\t{\n\t\t$this->has_one['product'] = array('Products_m', 'id', 'product_id');\n\t\t// $this->soft_deletes = TRUE;\n\t\tparent::__construct();\n\t}",
"public function addService($operation, $service)\n {\n $this->services[$operation] = $service;\n }",
"public function setOperations(array $operations): Options\n\t{\n\t\t$this->operations = $operations;\n\n\t\treturn $this;\n\t}",
"public function getOperations()\r\n {\r\n return $this->operations;\r\n }",
"public function setOperationRef($operationRef)\n {\n $this->operationRef = $operationRef;\n return $this;\n }",
"public function setOperation(LdapOperationInterface $operation = null);",
"public function __construct($uri = \"\")\n {\n if(strlen($uri) == 0)\n {\n $uri = DEFAULT_ODATA_SERVICE_URL;\n }\n\n if (Utility::reverseFind($uri, '/') != strlen($uri) - 1)\n {\n $uri = $uri . '/';\n }\n\n $this->_baseURI = $uri;\n parent::__construct($this->_baseURI);\n $this->_entities = array(\n \"Categories\",\n \"CustomerDemographics\",\n \"Customers\",\n \"Employees\",\n \"Order_Details\",\n \"Orders\",\n \"Products\",\n \"Region\",\n \"Shippers\",\n \"Suppliers\",\n \"Territories\");\n $this->_entitySet2Type = array(\n \"categories\" => \"Categories\", \n \"customerdemographics\" => \"CustomerDemographics\", \n \"customers\" => \"Customers\", \n \"employees\" => \"Employees\", \n \"order_details\" => \"Order_Details\", \n \"orders\" => \"Orders\", \n \"products\" => \"Products\", \n \"region\" => \"Region\", \n \"shippers\" => \"Shippers\", \n \"suppliers\" => \"Suppliers\", \n \"territories\" => \"Territories\");\n $this->_entityType2Set = array(\n \"categories\" => \"Categories\", \n \"customerdemographics\" => \"CustomerDemographics\", \n \"customers\" => \"Customers\", \n \"employees\" => \"Employees\", \n \"order_details\" => \"Order_Details\", \n \"orders\" => \"Orders\", \n \"products\" => \"Products\", \n \"region\" => \"Region\", \n \"shippers\" => \"Shippers\", \n \"suppliers\" => \"Suppliers\", \n \"territories\" => \"Territories\");\n\n $this->_association = array(\n \"FK_Products_Categories\" => array(\n \"Categories\" => \"0..1\" ,\n \"Products\" => \"*\" ), \n \"FK_Orders_Customers\" => array(\n \"Customers\" => \"0..1\" ,\n \"Orders\" => \"*\" ), \n \"FK_Employees_Employees\" => array(\n \"Employees\" => \"0..1\" ,\n \"Employees1\" => \"*\" ), \n \"FK_Orders_Employees\" => array(\n \"Employees\" => \"0..1\" ,\n \"Orders\" => \"*\" ), \n \"FK_Order_Details_Orders\" => array(\n \"Orders\" => \"1\" ,\n \"Order_Details\" => \"*\" ), \n \"FK_Order_Details_Products\" => array(\n \"Products\" => \"1\" ,\n \"Order_Details\" => \"*\" ), \n \"FK_Orders_Shippers\" => array(\n \"Shippers\" => \"0..1\" ,\n \"Orders\" => \"*\" ), \n \"FK_Products_Suppliers\" => array(\n \"Suppliers\" => \"0..1\" ,\n \"Products\" => \"*\" ), \n \"FK_Territories_Region\" => array(\n \"Region\" => \"1\" ,\n \"Territories\" => \"*\" ), \n \"CustomerCustomerDemo\" => array(\n \"CustomerDemographics\" => \"*\" ,\n \"Customers\" => \"*\" ), \n \"EmployeeTerritories\" => array(\n \"Employees\" => \"*\" ,\n \"Territories\" => \"*\" ));\n\n \n $this->_Categories = new DataServiceQuery('/'.'Categories', $this);\n $this->_CustomerDemographics = new DataServiceQuery('/'.'CustomerDemographics', $this);\n $this->_Customers = new DataServiceQuery('/'.'Customers', $this);\n $this->_Employees = new DataServiceQuery('/'.'Employees', $this);\n $this->_Order_Details = new DataServiceQuery('/'.'Order_Details', $this);\n $this->_Orders = new DataServiceQuery('/'.'Orders', $this);\n $this->_Products = new DataServiceQuery('/'.'Products', $this);\n $this->_Region = new DataServiceQuery('/'.'Region', $this);\n $this->_Shippers = new DataServiceQuery('/'.'Shippers', $this);\n $this->_Suppliers = new DataServiceQuery('/'.'Suppliers', $this);\n $this->_Territories = new DataServiceQuery('/'.'Territories', $this);\n\n }",
"public function __construct() {\n\t\t$this->addedObjects = new \\SplObjectStorage();\n\t\t$this->removedObjects = new \\SplObjectStorage();\n\t\t$this->objectType = str_replace(array('\\\\Repository\\\\', 'Repository'), array('\\\\Model\\\\', ''), $this->FLOW3_AOP_Proxy_getProxyTargetClassName());\n\t}",
"public function setOperationId($var)\n {\n GPBUtil::checkString($var, True);\n $this->operation_id = $var;\n\n return $this;\n }",
"public function getOperations()\n {\n return $this->operations;\n }",
"public function testAddOperation()\n\t{\n\t\t$this->adder->setA(42);\n\t\t$this->adder->add();\n\t\t$this->assertEquals(42, $this->adder->getSum(), 'dont added correctly');\n\t}",
"abstract public function saveOperation(OperationInterface $op);",
"public function __construct( $operation )\n {\n parent::__construct(\n \"The operation '$operation' is not permitted.\"\n );\n }",
"public function getOperationsClient()\n {\n return $this->operationsClient;\n }",
"public function getOperationsClient()\n {\n return $this->operationsClient;\n }",
"public function getOperationsClient()\n {\n return $this->operationsClient;\n }",
"public function getOperationsClient()\n {\n return $this->operationsClient;\n }",
"public function getOperationsClient()\n {\n return $this->operationsClient;\n }",
"public function getOperationsClient()\n {\n return $this->operationsClient;\n }",
"public function getOperationsClient()\n {\n return $this->operationsClient;\n }",
"public function getOperationsClient()\n {\n return $this->operationsClient;\n }",
"public function getOperationsClient()\n {\n return $this->operationsClient;\n }",
"public function getOperationsClient()\n {\n return $this->operationsClient;\n }",
"public function getOperationsClient()\n {\n return $this->operationsClient;\n }",
"public function getOperationsClient()\n {\n return $this->operationsClient;\n }",
"public function getOperationsClient()\n {\n return $this->operationsClient;\n }",
"protected function setOperation( $op, $opt = null )\n {\n if(!$this->operation) {\n switch ($op) {\n case 'select':\n $this->operation = new Select(['isDistinct' => $opt]);\n break;\n }\n }\n else throw new \\Exception(\"WpSqlBuilder - Trying to add new operation to existing query.\", 1);\n }",
"public final function getSetupOperation() : Composite {\n\t\treturn new Composite([\n\t\t\tFactory::DELETE_ALL(),\n\t\t\tFACTORY::INSERT()\n\t\t]);\n\t}",
"function getOperation() {\n return $this->operation;\n }",
"public function setOperation(?RuleOperation $value): void {\n $this->getBackingStore()->set('operation', $value);\n }",
"public function __construct(){\n\t\t\t\t$this->listeObjets = [];\n\n\t\t\t\t//Récupérer le nom de l'objet à partir du nom du manager. Utile pour cibler la bonne table.\n\t\t\t\t$this->nomObjet = stripslashes(get_class($this));\n\t\t\t\t$this->nomObjet = str_replace(\"manager\", \"\", $this->nomObjet);\n\t\t\t\t$this->nomObjet = str_replace(\"Manager\", \"\", $this->nomObjet);\n\n\t\t\t\t//Si la connexion n'existe pas à l'instanciation du premier manager, la créer.\n\t\t\t\tif(self::$bdd == NULL){\n\t\t\t\t\tself::$bdd = self::creerConnexion(\"evalAssociation\");\n\t\t\t\t}\n\t\t\t}",
"public function updateUserOperationAction()\n {\n /** @var Object_Operation $operation */\n $data = $this->getRequestData();\n if (isset($data['operation_id'])) {\n $operation = Object_Operation::getById($data['operation_id']);\n if (!$operation) {\n $this->setErrorResponse('no Operation with this operation_id!');\n } elseif ($this->getDeviceSession()->getUserId() != $operation->getCreator()->getId()) {\n $this->setErrorResponse('you have no rights to change this Operation!');\n } else {\n if (isset($data['title'])) {\n $operation->setTitle($data['title']);\n }\n if (isset($data['explanation'])) {\n $operation->setExplanation($data['explanation']);\n }\n if (isset($data['photo'])) {\n $operation->setPhoto(Asset_Image::getById($data['photo']));\n }\n if (isset($data['video'])) {\n $operation->setVideo(Asset_Video::getById($data['video']));\n }\n if (isset($data['latitude']) && isset($data['longtitude'])) {\n $geo = new Object_Data_Geopoint($data['longtitude'], $data['latitude']);\n $operation->setLocation($geo);\n }\n if (isset($data['activity_id'])) {\n $operation->setActivity(Object_Activity::getById($data['activity_id']));\n }\n if (!$operation->save()) {\n $this->setErrorResponse('cannot update Operation object');\n }\n }\n } else {\n $this->setErrorResponse('operation_id is mandatory field for this request!');\n }\n\n $this->_helper->json($operation);\n }",
"protected function getSetUpOperation()\n {\n return new PHPUnit_Extensions_Database_Operation_Composite([\n new Zend_Test_PHPUnit_Db_Operation_Truncate(),\n new Zend_Test_PHPUnit_Db_Operation_Insert(),\n ]);\n }",
"public function initialize()\n {\n $this->belongsTo('cons_order_id', '\\Orders', 'id', array('alias' => 'Orders'));\n $this->belongsTo('order_id', '\\Orders', 'id', array('alias' => 'Orders'));\n }",
"public function initialize()\n {\n $this->setSchema(\"atiempo_prod\");\n $this->hasMany('id', 'AcCartaAvalDetalle', 'id_carta', ['alias' => 'AcCartaAvalDetalle']);\n }",
"public function clearOperations()\n {\n $this->_operations = array();\n\n return $this;\n }",
"public function __construct(array $parent = array(), array $child = array(), $op = null)\n {\n $this\n ->setParent($parent)\n ->setChild($child)\n ->setOp($op);\n }",
"public function operations();",
"public function operationable()\n {\n return $this->morphTo();\n }",
"public function getOperationId()\n {\n return $this->operation_id;\n }",
"public function initialize()\n {\n $this->setSchema(\"sistema\");\n $this->setSource(\"rol\");\n $this->hasMany('id_rol', 'Usuarios', 'id_rol', ['alias' => 'Usuarios']);\n }",
"public function __construct()\n {\n $this->table = 'products';\n $this->primary_key = 'id';\n \n $this->has_many['pictures'] = array(\n 'foreign_model' => 'Pictures_model',\n 'foreign_table' => 'pictures',\n 'foreign_key' => 'product_id',\n 'local_key' => 'id'\n );\n \n $this->has_many['options'] = array(\n 'foreign_model' => 'Product_options_model',\n 'foreign_table' => 'product_options',\n 'foreign_key' => 'product_id',\n 'local_key' => 'id'\n );\n\n \n \n parent::__construct();\n }",
"public function model()\n {\n return Operation::class;\n }",
"public function initialize() {\n $this->setSchema(\"coopdb\");\n $this->setSource(\"pedidosdetalle\");\n $this->belongsTo('IDKEY', 'Pedidos', 'TxnID', ['alias' => 'Pedidos']);\n }",
"function getOperation() {\n\t\treturn $this->get('_operation', $this->get('operation'));\n\t}",
"private function addObjectToProcess($object, $operation)\n {\n $meta = $this->objectManager->getClassMetadata(get_class($object));\n \n if (!isset($this->configs[$meta->name])) {\n $config = $this->getConfiguration($this->objectManager, $meta->name);\n if (!empty($config)) {\n $this->configs[$meta->name] = $config; \n }\n }\n \n if (isset($this->configs[$meta->name])) {\n $config = $this->configs[$meta->name];\n $groups = $this->getGroups($object, $meta);\n $hash = $this->getHash($groups, $config['useObjectClass']);\n $identifier = spl_object_hash($object);\n \n // Object informations\n $info = array('meta' => $meta, 'object' => $object, 'groups' => $groups, 'hash' => $hash, 'identifier' => $identifier, 'operation' => $operation);\n \n // An update = a deletion + an insertion\n if ($operation === self::TO_UPDATE) {\n // Get database groups and position of object\n // and create an object with those values (object to delete)\n $uow = $this->objectManager->getUnitOfWork();\n $changeSet = $uow->getEntityChangeSet($object);\n \n // Restore old groups\n $hasChanged = false;\n $oldObject = clone $object;\n if (isset($config['groups'])) {\n foreach ($groups as $key => $group) {\n if (array_key_exists($key, $changeSet) && $changeSet[$key][0] != $changeSet[$key][1]) {\n $meta->getReflectionProperty($key)->setValue($oldObject, $changeSet[$key][0]);\n $hasChanged = true;\n }\n }\n }\n \n // Restore old position\n if (array_key_exists($config['position'], $changeSet)) {\n $oldPosition = $changeSet[$config['position']][0];\n $meta->getReflectionProperty($config['position'])->setValue($oldObject, $oldPosition);\n if ($changeSet[$config['position']][0] != $changeSet[$config['position']][1]) {\n $hasChanged = true;\n }\n }\n \n if ($hasChanged) {\n // Old groups\n $oldGroups = $this->getGroups($oldObject, $meta);\n \n // Old hash\n $oldHash = $this->getHash($oldGroups, $config['useObjectClass']);\n\n // Old info use to delete \"old\" object\n $oldInfo = $info;\n $oldInfo['object'] = $oldObject;\n $oldInfo['groups'] = $oldGroups;\n $oldInfo['hash'] = $oldHash;\n $oldInfo['operation'] = self::TO_DELETE;\n $this->toProcess[] = $oldInfo;\n \n // Add \"new\" object to process liste for insertion\n $info['operation'] = self::TO_INSERT;\n }\n }\n\n $this->toProcess[] = $info;\n }\n }",
"public function setOperation($operation)\n {\n $validValues = [\n OperationType::SALE,\n OperationType::AUTHORIZE\n ];\n\n if (in_array($operation, $validValues)) {\n $this->operation = $this->limitLength($operation, 32);\n } else {\n Utils::error(\"Invalid operation provided: \" . $operation);\n }\n\n return $this;\n }",
"public function setColumnAggregationOperations($operations)\n {\n foreach ($operations as $columnName => $operation) {\n $this->setColumnAggregationOperation($columnName, $operation);\n }\n }",
"public function getOperation()\n {\n return $this->operation;\n }",
"public function getOperation()\n {\n return $this->operation;\n }",
"public function getOperation()\n {\n return $this->operation;\n }",
"public function getOperation()\n {\n return $this->operation;\n }",
"public function getOperation()\n {\n return $this->operation;\n }",
"public function initialize()\n {\n $this->belongsTo('Cd_produto', 'App\\Models\\Produto', 'cd_produto', array('alias' => 'Produto'));\n $this->belongsTo('Cd_produto', 'App\\Models\\Produto', 'cd_produto', array('foreignKey' => true,'alias' => 'Produto'));\n }",
"function eZEnhancedObjectRelationType()\n {\n $this->eZDataType( EZ_DATATYPESTRING_ENHANCED_OBJECT_RELATION, ezi18n( 'kernel/classes/datatypes', \"Enhanced Object relation\", 'Datatype name' ),\n array( 'serialize_supported' => true ) );\n }",
"public function get_opm()\n {\n // loads the associated object\n if (empty($this->opm))\n $this->opm = new opm($this->opm_id);\n \n // returns the associated object\n return $this->opm;\n }",
"public function setOperationType($val)\n {\n $this->_propDict[\"operationType\"] = $val;\n return $this;\n }",
"public function initialize()\n {\n $this->hasMany(\"id\", \"Modules\\Models\\Orders\", \"member_id\", array(\n 'alias' => 'orders'\n ));\n }",
"public function getOperation() {\n\t\treturn $this->operation;\n\t}",
"protected function setupUpdateOperation()\n {\n $this->setupCreateOperation();\n }",
"protected function setupUpdateOperation()\n {\n $this->setupCreateOperation();\n }",
"protected function setupUpdateOperation()\n {\n $this->setupCreateOperation();\n }",
"protected function setupUpdateOperation()\n {\n $this->setupCreateOperation();\n }",
"protected function setupUpdateOperation()\n {\n $this->setupCreateOperation();\n }",
"protected function setupUpdateOperation()\n {\n $this->setupCreateOperation();\n }",
"protected function setupUpdateOperation()\n {\n $this->setupCreateOperation();\n }",
"protected function setupUpdateOperation()\n {\n $this->setupCreateOperation();\n }",
"protected function setupUpdateOperation()\n {\n $this->setupCreateOperation();\n }",
"protected function setupUpdateOperation()\n {\n $this->setupCreateOperation();\n }"
] | [
"0.6053557",
"0.604759",
"0.57971305",
"0.5765387",
"0.57174367",
"0.568574",
"0.56046474",
"0.55262667",
"0.5447006",
"0.5447006",
"0.5447006",
"0.5447006",
"0.5446227",
"0.54451036",
"0.54158425",
"0.5402796",
"0.5291226",
"0.528244",
"0.5247442",
"0.52103627",
"0.51819134",
"0.5174096",
"0.51523733",
"0.51323384",
"0.511514",
"0.511232",
"0.51101285",
"0.50962484",
"0.50907534",
"0.50817174",
"0.5001816",
"0.4989098",
"0.49800143",
"0.49753022",
"0.4961804",
"0.4936527",
"0.49350297",
"0.49174657",
"0.48745146",
"0.48562917",
"0.47992444",
"0.4793218",
"0.4780629",
"0.47702348",
"0.47689342",
"0.47689342",
"0.47689342",
"0.47689342",
"0.47689342",
"0.47689342",
"0.47689342",
"0.47689342",
"0.47689342",
"0.47689342",
"0.47689342",
"0.47689342",
"0.47689342",
"0.47581849",
"0.4737911",
"0.47304308",
"0.4722494",
"0.4691601",
"0.46720445",
"0.46718863",
"0.46607587",
"0.46556786",
"0.4610383",
"0.46054173",
"0.45971182",
"0.4592071",
"0.45885858",
"0.45799875",
"0.45656604",
"0.4558948",
"0.45555577",
"0.45423707",
"0.45282724",
"0.4523346",
"0.45222673",
"0.45201156",
"0.45201156",
"0.45201156",
"0.45201156",
"0.45201156",
"0.4519505",
"0.4515104",
"0.44979855",
"0.4493122",
"0.44929904",
"0.44924766",
"0.4490898",
"0.4490898",
"0.4490898",
"0.4490898",
"0.4490898",
"0.4490898",
"0.4490898",
"0.4490898",
"0.4490898",
"0.4490898"
] | 0.59830725 | 2 |
Get the associated Operations object | public function getOperations(PropelPDO $con = null, $doQuery = true)
{
if ($this->aOperations === null && ($this->op_id !== null) && $doQuery) {
$this->aOperations = OperationsQuery::create()->findPk($this->op_id, $con);
/* The following can be used additionally to
guarantee the related object contains a reference
to this object. This level of coupling may, however, be
undesirable since it could result in an only partially populated collection
in the referenced object.
$this->aOperations->addOperationPrimess($this);
*/
}
return $this->aOperations;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getOperation();",
"function getOperation() {\n\t\treturn $this->get('_operation', $this->get('operation'));\n\t}",
"function getOperation() {\n return $this->operation;\n }",
"public function getOperations()\r\n {\r\n return $this->operations;\r\n }",
"public function getOperations()\n {\n return $this->operations;\n }",
"public function getOperation()\n {\n return $this->operation;\n }",
"public function getOperation()\n {\n return $this->operation;\n }",
"public function getOperation()\n {\n return $this->operation;\n }",
"public function getOperation()\n {\n return $this->operation;\n }",
"public function getOperation()\n {\n return $this->operation;\n }",
"public function getOperation() {\n\t\treturn $this->operation;\n\t}",
"public function getOperation($name);",
"public function getOperationsClient()\n {\n return $this->operationsClient;\n }",
"public function getOperationsClient()\n {\n return $this->operationsClient;\n }",
"public function getOperationsClient()\n {\n return $this->operationsClient;\n }",
"public function getOperationsClient()\n {\n return $this->operationsClient;\n }",
"public function getOperationsClient()\n {\n return $this->operationsClient;\n }",
"public function getOperationsClient()\n {\n return $this->operationsClient;\n }",
"public function getOperationsClient()\n {\n return $this->operationsClient;\n }",
"public function getOperationsClient()\n {\n return $this->operationsClient;\n }",
"public function getOperationsClient()\n {\n return $this->operationsClient;\n }",
"public function getOperationsClient()\n {\n return $this->operationsClient;\n }",
"public function getOperationsClient()\n {\n return $this->operationsClient;\n }",
"public function getOperationsClient()\n {\n return $this->operationsClient;\n }",
"public function getOperationsClient()\n {\n return $this->operationsClient;\n }",
"public static function getInstance(): Operation\r\n {\r\n $className = static::class;\r\n if (!isset(self::$instances[$className])) {\r\n self::$instances[$className] = new static();\r\n }\r\n return self::$instances[$className];\r\n }",
"public function model()\n {\n return Operation::class;\n }",
"public function get_opm()\n {\n // loads the associated object\n if (empty($this->opm))\n $this->opm = new opm($this->opm_id);\n \n // returns the associated object\n return $this->opm;\n }",
"public function getOperation()\n {\n $objDataBase = $this->_connectSuperDataBase();\n\n $objDataBase->executeQueryStoreProcedure('get_Operations');\n\n\t $row = $objDataBase->exploreAllArraySelect();\n\n if (!isset($row)) {\n $row[0]['Pk_operation'] = 1;\n $row[0]['name'] = Class_Config::get('operation');\n $row[0]['domain'] = Class_Config::get('domain');\n }\n\t\n\n return $row;\n }",
"public function getOperations()\n {\n $operations = [];\n foreach (static::attributes() as $attribute => $type) {\n if ($type === Operation::class && isset($this->$attribute)) {\n $operations[$attribute] = $this->$attribute;\n }\n }\n return $operations;\n }",
"public function getOperation()\n {\n return $this->getRequest()->operation;\n }",
"public function getOperation(): string\n {\n return $this->operation;\n }",
"public function getOperation(): string\n {\n return $this->operation;\n }",
"public function getOperations() {\n return $this->__getFunctions();\n }",
"public function getOperationWithResponses(): Operation\n {\n $this->assignAnnotations();\n $this->assignDocBlockExceptions();\n $this->assignSchema();\n $this->assignDefaultResponses();\n\n return $this->operation;\n }",
"public function getCalculateOperation($operator) {\n switch ($operator) {\n case \"*\":\n $operation = new Multiplication();\n break;\n case \"/\":\n $operation = new Division();\n break;\n case \"+\":\n $operation = new Addition();\n break;\n case \"-\":\n $operation = new Subtraction();\n break;\n }\n return $operation;\n }",
"public function getOperationContext();",
"public function get_opm()\n {\n // loads the associated object\n if (empty($this->opm))\n $this->opm = new OPM($this->opm_id);\n \n // returns the associated object\n return $this->opm;\n }",
"public function addOperation(string $operation): OperationInterface;",
"public function getService($operation)\n {\n return $this->services[$operation];\n }",
"protected function getCrudOperation() {\n\t\treturn $this->crudOperation;\n\t}",
"public function operation($operation);",
"public function getOperationId()\n {\n return $this->operation_id;\n }",
"public function operationable()\n {\n return $this->morphTo();\n }",
"public function getObject()\n\t{\n\t\t// Create the OPF instance.\n\t\treturn new Opf_Class($this->_serviceLocator->get('template.Opt'));\n\t}",
"public function getOpinions()\n {\n return $this->hasMany(Opinions::class, ['task_id' => 'id']);\n }",
"public function getOope()\n {\n return $this->hasOne(ObjetivoOperativo::className(), ['oope_id' => 'oope_id']);\n }",
"public function getOps(): array\n {\n return $this->ops;\n }",
"function getOperationInfo() {\n return userpoints_get_info($this->getOperation());\n }",
"public function show(Operation $operation)\n {\n $array = [\n 'operation' => $operation,\n 'client' => $operation->Client,\n 'compte' => $operation->Compte,\n 'type' => $operation->Type\n ];\n return $operation;\n }",
"public function getOperationType()\n {\n return $this->operation_type;\n }",
"public function getOp()\n {\n return $this->Op;\n }",
"public function getOp()\n {\n return $this->Op;\n }",
"public function relCooperations() {\n return Job::query()\n ->join('ownership', 'ownership.tobjsid', 'jobs.sId')\n ->select('jobs.*')\n ->where('ownership.fobjsid', parent::__get('sId'))\n ->where('jobs.type', Job::TYPE_COOPERATION)\n ->get();\n }",
"private function findOperation(RequestInterface $request): OperationAddress\n {\n $pathFinder = new PathFinder(\n $this->adapted->getSchema(),\n $request->getUri(),\n $request->getMethod()\n );\n\n $operations = $pathFinder->search();\n if (\\count($operations) === 0) {\n throw new OperationNotFoundException($request);\n }\n\n foreach ($operations as $operation) {\n //If we got an exact path match, we use the current Operation\n if ($operation->path() === $request->getUri()->getPath()) {\n return $operation;\n }\n }\n\n //If we haven't an exact match, use the first in the list\n return $operations[0];\n }",
"public function get()\n {\n return $this->operator->get();\n }",
"public function clearOperations()\n {\n $this->_operations = array();\n\n return $this;\n }",
"public static function getOperation(\\GraphQL\\Language\\AST\\DocumentNode $document, $operationName = null)\n {\n }",
"public function getOperation(): ?RuleOperation {\n $val = $this->getBackingStore()->get('operation');\n if (is_null($val) || $val instanceof RuleOperation) {\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'operation'\");\n }",
"public function relFullOperations() {\n return Job::query()\n ->join('ownership', 'ownership.tobjsid', 'jobs.sId')\n ->select('jobs.*')\n ->where('ownership.fobjsid', parent::__get('sId'))\n ->where('jobs.type', Job::TYPE_FULL_OP)\n ->get();\n }",
"public static function cooperations() {\n return self::query()\n ->join('ownership', 'ownership.fobjsid', 'vp.sId')\n ->join('jobs', 'ownership.tobjsid', 'jobs.sId')\n ->select('vp.*')\n ->where('jobs.type', Job::TYPE_COOPERATION);\n }",
"public function getObject()\n {\n return $this->forgeObject();\n }",
"public function setOperation($operation) {\n\t\t$this->operation = $operation;\n\t\treturn $this;\n\t}",
"public static function lastOp()\n {\n if (!self::$_lastOp) {\n trigger_error('Curl did not complete any operation yet!', E_USER_ERROR);\n }\n return (object) self::$_lastOp;\n }",
"public function setOperation($operation)\n {\n $this->operation = $operation;\n return $this;\n }",
"public function getObject()\n {\n return $this;\n }",
"public function model()\n {\n return Operate::class;\n }",
"public function getOpis()\n {\n return $this->opis;\n }",
"protected function getSetUpOperation()\n {\n return new \\PHPUnit_Extensions_Database_Operation_Composite(array(\n new Db\\Operation\\Truncate(),\n new Db\\Operation\\Insert(),\n ));\n }",
"function setOperation($operation) {\n $this->checkChange();\n\n $this->operation = $operation;\n return $this;\n }",
"private function givenServiceWithOperations()\n {\n // Response GetBook types\n $responseBookName = new ComplexType($this->config, 'Method_Get_Book_Response_BOOK_BOOK_NAME');\n $responseBookName->addMember('string', 'bookName', false);\n $responseBook = new ComplexType($this->config, 'Method_Get_Book_Response_BOOK');\n $responseBook->addMember('int', 'bookId', false);\n // Base type example\n $responseBook->setBaseType($responseBookName);\n $returnGetBookType = new ComplexType($this->config, 'Get_Book_Type_Response');\n $returnGetBookType->addMember('Method_Get_Book_Response_BOOK', 'book_response', false);\n // Request GetBook types\n $bookType = new Enum($this->config, 'Book_Type_Enumeration', 'string');\n $bookType->addValue('fiction');\n $bookType->addValue('comedy');\n $requestBook = new ComplexType($this->config, 'Method_Get_Book_Request_BOOK');\n $requestBook->addMember('int', 'bookId', false);\n $requestBook->addMember('Book_Type_Enumeration', 'genre', false);\n $requestGetBook = new ComplexType($this->config, 'Get_Book_Type_Request');\n $requestGetBook->addMember('Method_Get_Book_Request_BOOK', 'book_request', false);\n // Operation GetBook\n $getBookOperation = new Operation('GetBook', 'Get_Book_Type_Request $request', 'Get Book', 'Get_Book_Type_Response');\n // Response GetAuthors type\n $responseAuthor = new ComplexType($this->config, 'Get_Authors_Response_Author');\n $responseAuthor->addMember('int', 'authorId', false);\n $responseAuthor->addMember('string', 'authorName', false);\n $returnGetAuthors = new ComplexType($this->config, 'Method_Get_Authors_Response');\n $returnGetAuthors->addMember('Get_Authors_Response_Author[]', 'Get_Authors_Response_Author', false);\n // Request GetAuthors type\n $requestGetAuthor = new ComplexType($this->config, 'Method_Get_Authors_Request');\n $requestGetAuthor->addMember('Method_Get_Book_Request_BOOK', 'book_request', false);\n // Operation GetAuthors\n $getAuthorsOperator = new Operation('GetAuthor', 'Method_Get_Authors_Request $request', 'Get Authors', 'Method_Get_Authors_Response');\n // Request SetVersion\n $requestSetVersion = new ComplexType($this->config, 'Method_Set_Version_Request');\n // Operation SetVersion\n $setVersionOperator = new Operation('SetVersion', 'Method_Set_Version_Request $request', 'Set version', null);\n // Service creation\n $types = [\n $responseBookName,\n $responseBook,\n $returnGetBookType,\n $requestBook,\n $requestGetBook,\n $responseAuthor,\n $returnGetAuthors,\n $requestGetAuthor,\n $bookType,\n $requestSetVersion,\n ];\n $service = new Service($this->config, 'Book_Shell', $types, 'Book shells');\n $service->addOperation($getBookOperation);\n $service->addOperation($getAuthorsOperator);\n $service->addOperation($setVersionOperator);\n\n return $service;\n }",
"public function getOperationsAt($offset)\n {\n return $this->get(self::_OPERATIONS, $offset);\n }",
"function getCommandById($op,$id){\n\t$sql = \"select * from common_cmd where cmd_type=\".$id;\n\t$res = $op->getResult($sql);\n\t$c = new Command();\n\twhile($row = mysql_fetch_row($res)){\n\t\t$c->cmd_type = $row[0];\n $c->content = $row[1];\n $c->need_sudo = $row[2];\n $c->cmd_desc= $row[3];\n\t}\n\treturn $c;\n}",
"public function setOperation($operation)\n {\n $this->operation = $operation;\n\n return $this;\n }",
"public function getUserOperationByIdAction()\n {\n /** @var Object_Operation $operation */\n $data = $this->getRequestData();\n if (isset($data['operation_id'])) {\n $operation = Object_Operation::getById($data['operation_id']);\n if (!$operation) {\n $this->setErrorResponse('no Operation with this operation_id!');\n } elseif ($this->getDeviceSession()->getUserId() != $operation->getCreator()->getId()) {\n $this->setErrorResponse('no Operation for this user with current operation_id!');\n }\n } else {\n $this->setErrorResponse('operation_id is mandatory field for this request!');\n }\n $this->_helper->json($operation);\n }",
"public function getOpId()\n {\n\n return $this->op_id;\n }",
"public function getObject()\n {\n return $this->_object;\n }",
"public function operations();",
"public function getObject()\n {\n return $this->object;\n }",
"public function getObject()\n {\n return $this->object;\n }",
"public function getOperationsFile($path) {\n\n $operations = array();\n if (isset($this->filesOperations[$path])) {\n foreach ($this->filesOperations[$path] as $operationPath) {\n $operations = array_merge($operations, $this->getOperation($operationPath));\n }\n }\n\n return $operations;\n }",
"public function getOperation($operator) {\n switch($operator) {\n case '+' :\n $operation = 'add';\n break;\n case '-' :\n $operation = 'subtract';\n break;\n case '*' :\n $operation = 'multiply';\n break;\n case '/' :\n $operation = 'divide';\n break;\n case '%' :\n $operation = 'modulus';\n break;\n case '^' :\n $operation = 'exponentiation';\n break;\n default :\n throw new Exception(\"Calculator does not support this operator\");\n }\n\n return $operation;\n }",
"public function getOperationInfo()\n {\n $value = $this->get(self::OPERATIONINFO);\n return $value === null ? (string)$value : $value;\n }",
"public function getOperationScenariisJoinOperations($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN)\n {\n $query = OperationScenariiQuery::create(null, $criteria);\n $query->joinWith('Operations', $join_behavior);\n\n return $this->getOperationScenariis($query, $con);\n }",
"protected function getObject()\n {\n return $this;\n }",
"private function getObject() {\n return $this->object;\n }",
"public function get_object()\n {\n return $this->object;\n }",
"public function getObject() {\n return $this->object;\n }",
"public function get($name, $optParams = [])\n {\n $params = ['name' => $name];\n $params = array_merge($params, $optParams);\n return $this->call('get', [$params], Operation::class);\n }",
"public function getToken($operation)\n {\n return $this->_token($operation);\n }",
"public function access($op, $id = NULL) {\n return entity_access($op, $this->entityType, isset($id) ? $this->wrapper($id)->value() : NULL);\n }",
"public function get_object()\n {\n return $this->_object;\n }",
"public function getObject()\n {\n $object = Doctrine::getTable($this->getModel())->findOneById($this->getModelId());\n\n return $object;\n }",
"public function getUserOperationsAction()\n {\n $operation = new Workapp_Operation();\n $this->_helper->json($operation->getOperationList(array('user_id' => $this->getDeviceSession()->getUserId())));\n }",
"public function useOperationsQuery($relationAlias = null, $joinType = Criteria::LEFT_JOIN)\n {\n return $this\n ->joinOperations($relationAlias, $joinType)\n ->useQuery($relationAlias ? $relationAlias : 'Operations', 'OperationsQuery');\n }",
"public function get($id)\n\t{\n\t\t$result = TipoOperadora::find($id);\n\t\treturn $result;\n\t}",
"public function setOperation(Operation $operation)\n {\n $this->operation = $operation;\n\n return $this;\n }",
"public function getOperator();",
"public function getOperator();",
"function getOperation() {\n\t\tif (isset($_POST['operation'])){\n\t\t\treturn $_POST['operation'];\n\t\t}\n\t\treturn \"index\";\n\t}"
] | [
"0.76069534",
"0.72876245",
"0.7067388",
"0.70176464",
"0.70038265",
"0.6994003",
"0.6994003",
"0.6994003",
"0.6994003",
"0.6994003",
"0.69636476",
"0.66260177",
"0.6568861",
"0.6568861",
"0.6568861",
"0.6568861",
"0.6568861",
"0.6568861",
"0.6568861",
"0.6568861",
"0.6568861",
"0.6568861",
"0.6568861",
"0.6568861",
"0.6568861",
"0.6546146",
"0.6523561",
"0.638637",
"0.63861907",
"0.6219416",
"0.6208221",
"0.6184258",
"0.6184258",
"0.6151459",
"0.61129594",
"0.6066306",
"0.6006547",
"0.5960075",
"0.59487605",
"0.5936847",
"0.59352475",
"0.58727527",
"0.5862647",
"0.5802152",
"0.5771779",
"0.5732118",
"0.56760705",
"0.5653891",
"0.5641288",
"0.56308854",
"0.5612687",
"0.55780476",
"0.55780476",
"0.5557099",
"0.5516083",
"0.54744905",
"0.5372171",
"0.5353728",
"0.5344547",
"0.5344457",
"0.5329987",
"0.5328729",
"0.53262776",
"0.53208256",
"0.5316132",
"0.5302265",
"0.5290357",
"0.5259805",
"0.5259521",
"0.5233996",
"0.5229389",
"0.52180505",
"0.52033347",
"0.52007264",
"0.5196993",
"0.5187562",
"0.51869524",
"0.517182",
"0.5168491",
"0.5168491",
"0.5163053",
"0.5160442",
"0.5157986",
"0.5156553",
"0.51484954",
"0.5140908",
"0.5140408",
"0.5139606",
"0.513869",
"0.512935",
"0.51279974",
"0.51066285",
"0.51048833",
"0.5103545",
"0.5060681",
"0.50587434",
"0.5049369",
"0.50483066",
"0.50483066",
"0.50412846"
] | 0.62571454 | 29 |
Declares an association between this object and a RCurrencies object. | public function setRCurrencies(RCurrencies $v = null)
{
if ($v === null) {
$this->setOperationPrimeCurrencyId(NULL);
} else {
$this->setOperationPrimeCurrencyId($v->getRCurrencyId());
}
$this->aRCurrencies = $v;
// Add binding for other direction of this n:n relationship.
// If this object has already been added to the RCurrencies object, it will not be re-added.
if ($v !== null) {
$v->addOperationPrimes($this);
}
return $this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function currency(): BelongsTo;",
"public function currency()\n {\n return $this->hasOne(Currencies::class , 'id' , 'currencies_id');\n }",
"public function currency(): BelongsTo\n {\n return $this->belongsTo('App\\Models\\Currency');\n }",
"public function getCurrencies2()\n {\n return $this->hasMany(Currency::className(), ['ar_gl_acc_id' => 'account_id']);\n }",
"public function getCurrencies()\n {\n return $this->hasMany(Currency::className(), ['ap_gl_acc_id' => 'account_id']);\n }",
"public function currency()\n {\n \t// belongsTo(RelatedModel, foreignKey = curr_id, keyOnRelatedModel = curr_id)\n \treturn $this->belongsTo('App\\Currency','curr_id','curr_id');\n }",
"public function getCurrencies1()\n {\n return $this->hasMany(Currency::className(), ['ap_dp_gl_acc_id' => 'account_id']);\n }",
"public function currency() \n {\n return $this->belongsTo('App\\Models\\Currency\\Currency');\n }",
"public function currency() \n {\n return $this->belongsTo('App\\Models\\Currency\\Currency');\n }",
"public function currency() {\n return $this->hasOne('App\\Currency', 'id', 'currency_id');\n }",
"public function currency()\n\t{\n\t\treturn $this->belongsTo('App\\Currency','curr_id','curr_id');\n\t}",
"public function currency()\n {\n return $this->belongsTo('F3\\Models\\Currency');\n }",
"public function currency()\n {\n return $this->belongsTo(Currency::class);\n }",
"public function getCurrency()\n {\n return $this->hasOne(Currency::className(), ['id' => 'currency_id']);\n }",
"public function currencies()\n\t{\n\t\treturn $this->belongsToMany(Currency::class);\n\t}",
"public function getCurrencies0()\n {\n return $this->hasMany(Currency::className(), ['ap_disc_gl_acc_id' => 'account_id']);\n }",
"public function getCurrencies3()\n {\n return $this->hasMany(Currency::className(), ['ar_disc_gl_acc_id' => 'account_id']);\n }",
"public function getCurrencies4()\n {\n return $this->hasMany(Currency::className(), ['ar_dp_gl_acc_id' => 'account_id']);\n }",
"public function currency()\n {\n return $this->belongsTo('App\\Models\\Currency','currency_code','code');\n }",
"protected function _construct()\n {\n $this->_init(CarrierModel::RATE_TABLE_NAME, 'rate_id');\n }",
"public function toCurrency()\n {\n return $this->belongsTo(Currency::class, 'to_currency_id', 'id');\n }",
"public function currency_code(){\n return $this->hasMany('App\\CurrencyCode','cid','id');\n }",
"public function getCurrencies6()\n {\n return $this->hasMany(Currency::className(), ['writeoff_gl_acc_id' => 'account_id']);\n }",
"public function getCrate()\n {\n return $this->hasOne(Crates::className(), ['id' => 'id_crate']);\n }",
"public function populate()\n {\n $currenciesCodes = [];\n $currencies = $this\n ->currencyRepository\n ->findAll();\n\n /**\n * Create an array of all active currency codes.\n *\n * @var CurrencyInterface $currency\n */\n foreach ($currencies as $currency) {\n if ($currency->getIso() != $this->defaultCurrency) {\n $currenciesCodes[] = $currency->getIso();\n }\n }\n\n /**\n * Get rates for all of the enabled and active currencies.\n */\n $rates = $this\n ->currencyExchangeRatesAdapter\n ->getExchangeRates(\n $this->defaultCurrency,\n $currenciesCodes\n );\n\n /**\n * @var CurrencyInterface $sourceCurrency\n */\n $sourceCurrency = $this\n ->currencyRepository\n ->findOneBy([\n 'iso' => $this->defaultCurrency,\n ]);\n\n /**\n * [\n * \"EUR\" => \"1,378278\",\n * \"YEN\" => \"0,784937\",\n * ].\n */\n foreach ($rates as $code => $rate) {\n\n /**\n * @var CurrencyInterface $targetCurrency\n */\n $targetCurrency = $this\n ->currencyRepository\n ->findOneBy([\n 'iso' => $code,\n ]);\n\n if (!($targetCurrency instanceof CurrencyInterface)) {\n continue;\n }\n\n /**\n * check if this is a new exchange rate, or if we have to\n * create a new one.\n */\n $exchangeRate = $this\n ->currencyExchangeRateObjectDirector\n ->findOneBy([\n 'sourceCurrency' => $sourceCurrency,\n 'targetCurrency' => $targetCurrency,\n ]);\n\n if (!($exchangeRate instanceof CurrencyExchangeRateInterface)) {\n $exchangeRate = $this\n ->currencyExchangeRateObjectDirector\n ->create();\n }\n\n $exchangeRate\n ->setExchangeRate($rate)\n ->setSourceCurrency($sourceCurrency)\n ->setTargetCurrency($targetCurrency);\n\n $this\n ->currencyExchangeRateObjectDirector\n ->save($exchangeRate);\n }\n\n return $this;\n }",
"public function getCurrencies7()\n {\n return $this->hasMany(Currency::className(), ['exchg_gl_acc_id' => 'account_id']);\n }",
"public function getCurrencyType()\n {\n return $this->hasOne(CurrencyType::className(), ['id' => 'currency_type_id']);\n }",
"public function currency_details(){\n return $this->hasMany('App\\CurrencyDetail','cid','id');\n\n }",
"public function initialize()\n {\n $this->setSource('Customer');\n $this->hasMany(\"Number\", \"Arrears\", \"CustomerNumber\");\n $this->hasMany(\"Number\", \"Charge\", \"CustomerNumber\");\n\n $c = $this;\n $c->IsCut = 0;\n $c->ArrearsCount = 0;\n $c->CutCount = 0;\n $c->IsClean = 0;\n $c->IsControl = 0;\n $c->Money = 0;\n $c->IsRent = 0;\n $c->RenterPhone = \"\";\n\n $c->CanCut = 0;\n $c->IsSpecial = 0;\n $c->CutStyle=\"\";\n $c->PressCount = 0;\n }",
"public function exchangeRate()\n {\n return $this->belongsTo(ExchangeRate::class);\n }",
"public function getCurrencies5()\n {\n return $this->hasMany(Currency::className(), ['rounding_gl_acc_id' => 'account_id']);\n }",
"public function setCurrency(Currency|string $currency): self;",
"public function fromCurrency()\n {\n return $this->belongsTo(Currency::class, 'from_currency_id', 'id');\n }",
"public function __construct()\n {\n $this->currencies = include(resource_path(\"/currencies.php\"));\n $this->defaultCurrency = config(\"currency.default\");\n parent::__construct();\n }",
"public function initialize()\n {\n $this->setSchema(\"cubicfox\");\n $this->setSource(\"rates\");\n\n $this->hasManyToMany(\n \"id\",\n \"Users\",\n \"user_id\", \n \"product_id\",\n \"Products\",\n \"id\"\n );\n }",
"public function currencyCalculations()\n {\n return $this->hasMany('App\\CurrencyCalculation');\n }",
"public function initialize()\n {\n $this->setSchema(\"c5_espositori\");\n $this->setSource(\"exhibitors\");\n $this->hasMany('id', 'Reservations', 'exhibitors_id', ['alias' => 'Reservations', 'reusable' => true]);\n $this->hasMany('id', 'Reservations', 'padre_id', ['alias' => 'Padri']);\n }",
"public function insurerContract(): BelongsTo\n {\n return $this->belongsTo(InsurerContract::class, 'insurer_contract_id');\n }",
"function eZProductCurrency( $id=-1 )\r\n {\r\n if ( $id != -1 )\r\n {\r\n $this->ID = $id;\r\n $this->get( $this->ID );\r\n }\r\n }",
"public function creditcard()\n {\n return $this->hasMany('App\\Models\\Invoice');\n }",
"public function getCurrencies();",
"function ciborium_stripe(){\n $this->subscriptionTypes = self::getPublicSubscriptionOptions();\n }",
"public function initialize()\n {\n $this->hasMany('id', 'Entities\\Campaign', 'id_factor', array('alias' => 'Campaign'));\n $this->hasMany('id', 'Entities\\FactorActivity', 'id_factor', array('alias' => 'FactorActivity'));\n $this->hasMany('id', 'Entities\\FactorAdminAuth', 'id_factor', array('alias' => 'FactorAdminAuth'));\n $this->hasOne('id', 'Entities\\FactorAuth', 'id_factor', array('alias' => 'FactorAuth'));\n $this->hasOne('id', 'Entities\\FactorBalance', 'id_factor', array('alias' => 'FactorBalance'));\n $this->hasOne('id', 'Entities\\FactorFiscal', 'id_factor', array('alias' => 'FactorFiscal'));\n $this->hasOne('id', 'Entities\\FactorMeta', 'id_factor', array('alias' => 'FactorMeta'));\n $this->hasMany('id', 'Entities\\FactorNetwork', 'id_factor', array('alias' => 'FactorNetwork'));\n $this->hasOne('id', 'Entities\\FactorReference', 'id_factor', array('alias' => 'FactorReference'));\n $this->hasOne('id', 'Entities\\FactorRegion', 'id_factor', array('alias' => 'FactorRegion'));\n $this->hasMany('id', 'Entities\\FactorSession', 'id_factor', array('alias' => 'FactorSession'));\n $this->hasMany('id', 'Entities\\FactorTransaction', 'id_factor', array('alias' => 'FactorTransaction'));\n $this->belongsTo('id_exchange', 'Entities\\Exchange', 'id', array('foreignKey' => true, 'alias' => 'Exchange'));\n }",
"public function subsidiaries(){\n\n // hasMany(RelatedModel, foreignKeyOnRelatedModel = company_id, localKey = id)\n return $this->hasMany(Subsidiary::class);\n }",
"public function initialize()\n {\n /*$this->hasOne('id', 'Broadcasters', 'id', NULL);\n $this->hasOne('id', 'Clients', 'id', NULL);\n $this->hasMany('id', 'Credits', 'user_id', NULL);*/\n }",
"public function setCurrency($currency);",
"private function addManyRates()\n {\n $this->rates->addMany([\n 'USD' => [\n 'EUR' => 0.8014,\n 'CAD' => 1.1253,\n ],\n 'EUR' => [\n 'USD' => 1.2478,\n 'CAD' => 1.4045,\n ],\n ]);\n }",
"public function initialize()\n {\n $this->setSchema(\"gxc\");\n $this->hasMany('id', 'App\\Models\\YztIntegral', 'user_id', ['alias' => 'YztIntegral']);\n $this->hasMany('id', 'App\\Models\\YztShopCart', 'user_id', ['alias' => 'YztShopCart']);\n $this->hasMany('id', 'App\\Models\\YztShopComment', 'user_id', ['alias' => 'YztShopComment']);\n $this->hasMany('id', 'App\\Models\\YztShopCommentPraise', 'user_id', ['alias' => 'YztShopCommentPraise']);\n $this->hasMany('id', 'App\\Models\\YztShopLog', 'user_id', ['alias' => 'YztShopLog']);\n $this->hasMany('id', 'App\\Models\\YztShopOrder', 'user_id', ['alias' => 'YztShopOrder']);\n }",
"public function __construct($currenciesXMLPath) {\n $this->currencies = simplexml_load_file($currenciesXMLPath);\n }",
"function __construct ()\n\t\t{\n\t\t\tparent::__construct ('Charges', 'Charge', 'Charge');\n\t\t}",
"public function initialize(){\n $this->hasMany(\n \"category_id\", \n \"Multiple\\\\Frontend\\\\Models\\\\Products\", \n \"category\",\n array(\n \"reusable\" => true\n )\n );\n \n $this->hasManyToMany(\n \"category_id\", \n \"Multiple\\\\Frontend\\\\Models\\\\Products\", \n \"category\", \n \"vendor_id\", \n \"Multiple\\\\Frontend\\\\Models\\\\Vendor\", \n \"vendor_id\",\n array(\n \"reusable\" => true,\n \"alias\" => \"AliasVendorPro\"\n )\n );\n }",
"public function setCurrency(string $currency);",
"protected function init()\n {\n $this\n ->add(new OwnerRule('*', Order::class))\n ->add(new OwnerRule('*', Card::class))\n ->add(new OwnerRule('*', Setting::class))\n ->add(new OwnerRule('*', MyProduct::class))\n ->add(new OwnerRule('*', MyProductTag::class))\n ->add(new OwnerRule('*', MyProductCollection::class))\n ;\n }",
"public function initialize()\n {\n $this->hasMany('id' , 'Cars' , 'brand_id');\n }",
"function licencias()\n\t{\n\t\treturn $this->hasMany(\n\t\t\tLicencia::class,\n\t\t\t'Licencia_id',\n\t\t\t'id'\n\t\t);\n\t}",
"public function getCurrencyId()\n {\n return $this->currency_id;\n }",
"public function initialize()\n {\n $this->setSchema(\"mydb\");\n $this->setSource(\"paying\");\n $this->belongsTo('cid', 'Customers', 'cid', array('alias' => 'alias_customers'));\n $this->belongsTo('loanid', 'LoanInformation', 'loanid', array('alias' => 'alias_loan'));\n $this->hasManyToMany(\n 'payingid',\n 'Tracking',\n 'payingid', 'oid',\n 'DeptTrackers',\n 'oid',\n array(\n 'alias' => 'alias_depttrackers'\n )\n );\n }",
"public function filterByRCurrencies($rCurrencies, $comparison = null)\n {\n if ($rCurrencies instanceof RCurrencies) {\n return $this\n ->addUsingAlias(ROperationTypeSubTplCurrenciesPeer::R_OPERATION_TYPE_SUB_TPL_CURRENCY_R_CURRENCY_ID, $rCurrencies->getRCurrencyId(), $comparison);\n } elseif ($rCurrencies instanceof PropelObjectCollection) {\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n\n return $this\n ->addUsingAlias(ROperationTypeSubTplCurrenciesPeer::R_OPERATION_TYPE_SUB_TPL_CURRENCY_R_CURRENCY_ID, $rCurrencies->toKeyValue('PrimaryKey', 'RCurrencyId'), $comparison);\n } else {\n throw new PropelException('filterByRCurrencies() only accepts arguments of type RCurrencies or PropelCollection');\n }\n }",
"public function initialize()\n {\n $this->hasMany(\"id\", \"Modules\\Models\\Orders\", \"member_id\", array(\n 'alias' => 'orders'\n ));\n }",
"public function initialize()\n {\n $this->belongsTo('Cd_produto', 'App\\Models\\Produto', 'cd_produto', array('alias' => 'Produto'));\n $this->belongsTo('Cd_produto', 'App\\Models\\Produto', 'cd_produto', array('foreignKey' => true,'alias' => 'Produto'));\n }",
"public function initialize()\n {\n $this->belongsTo('cons_order_id', '\\Orders', 'id', array('alias' => 'Orders'));\n $this->belongsTo('order_id', '\\Orders', 'id', array('alias' => 'Orders'));\n }",
"public function initialize()\n {\n $this->setSchema(\"binopt\");\n $this->hasMany('id', 'Deposit', 'promo', ['alias' => 'Deposit']);\n }",
"public function __construct()\n {\n $this->itemPrices = new ArrayCollection();\n }",
"public function initialize()\n {\n $this->setSource('UserMoney');\n }",
"public function licencias()\n \t\t{\n \t\t\treturn $this->hasMany(Licencia::class);\n \t\t}",
"public function getRate()\n {\n return $this->hasOne(PaymentRate::class, ['id' => 'rate_id']);\n }",
"public function initialize()\n {\n \t$this->belongsTo('id_usuario', 'IbcUsuario', 'id_usuario', array(\n \t\t\t'reusable' => true\n \t));\n \t$this->belongsTo('id_periodo', 'CobPeriodo', 'id_periodo', array(\n \t\t\t'reusable' => true\n \t));\n \t$this->belongsTo('id_contrato', 'CobActaconteo', 'id_contrato', array(\n \t\t\t'reusable' => true\n \t));\n \t$this->belongsTo('id_ajuste_reportado', 'CobAjusteReportado', 'id_ajuste_reportado', array(\n \t\t\t'reusable' => true\n \t));\n \t$this->belongsTo('id_actaconteo_persona_facturacion', 'CobActaconteoPersonaFacturacion', 'id_actaconteo_persona_facturacion', array(\n \t\t\t'reusable' => true\n \t));\n }",
"function get( $id=-1 )\r\n {\r\n $db =& eZDB::globalDatabase();\r\n \r\n if ( $id != -1 )\r\n {\r\n $db->array_query( $currency_array, \"SELECT * FROM eZTrade_AlternativeCurrency WHERE ID='$id'\" );\r\n \r\n if ( count( $currency_array ) > 1 )\r\n {\r\n die( \"Error: Product currencies with the same ID was found in the database. This shouldn't happen.\" );\r\n }\r\n else if( count( $currency_array ) == 1 )\r\n {\r\n $this->ID =& $currency_array[0][$db->fieldName( \"ID\" )];\r\n $this->Name =& $currency_array[0][$db->fieldName( \"Name\" )];\r\n $this->Value =& $currency_array[0][$db->fieldName( \"Value\" )];\r\n $this->Sign =& $currency_array[0][$db->fieldName( \"Sign\" )];\r\n $this->PrefixSign =& $currency_array[0][$db->fieldName( \"PrefixSign\" )];\r\n }\r\n }\r\n }",
"public function getCurrency(){\n return $this->currency;\n }",
"public function rate(){\n $this->hasMany(Rate::class);\n }",
"protected function _construct()\r\n {\r\n $this->_init('ss_price', 'price_id');\r\n }",
"public function setCurrency($currency){\n $this->currency = $currency;\n }",
"public function initialize()\n {\n $this->hasMany('idmov', 'App\\Models\\MovEstoque', 'movimentacao_manual_estoque_idmov', array('alias' => 'MovEstoque'));\n $this->hasMany('idmov', 'App\\Models\\MovimentacaoManualEstoqueItem', 'idmov', array('alias' => 'MovimentacaoManualEstoqueItem'));\n $this->belongsTo('cd_ordem_servico_reparo', 'App\\Models\\OrdemServicoReparo', 'cd_ordem_servico', array('alias' => 'OrdemServicoReparo'));\n $this->belongsTo('cd_unidade', 'App\\Models\\UnidadeNegocio', 'cd_unidade', array('alias' => 'UnidadeNegocio'));\n $this->belongsTo('requerente', 'App\\Models\\Empresa', 'cd_empresa', array('alias' => 'Empresa'));\n $this->belongsTo('usuario_responsavel', 'App\\Models\\Usuario', 'cd_usuario', array('alias' => 'Usuario'));\n }",
"public function __construct(LicitacaoCN $licitacao)\n {\n $this->licitacao = $licitacao;\n }",
"public function __construct(LicitacaoCN $licitacao)\n {\n $this->licitacao = $licitacao;\n }",
"public function __construct($id)\n {\n $this->subscription = Subscription::with(['Company.User'])->find($id);\n }",
"public function initialize()\n {\n $this->hasMany('cd_desconto', 'App\\Models\\PdvVendasHasItens', 'cd_desconto', array('alias' => 'PdvVendasHasItens'));\n $this->belongsTo('cd_caixa', 'App\\Models\\PdvCaixa', 'cd_caixa', array('alias' => 'PdvCaixa'));\n $this->belongsTo('cd_produto', 'App\\Models\\Produto', 'cd_produto', array('alias' => 'Produto'));\n $this->belongsTo('cd_unidade_negocio', 'App\\Models\\UnidadeNegocio', 'cd_unidade', array('alias' => 'UnidadeNegocio'));\n $this->belongsTo('cd_usuario_criacao', 'App\\Models\\Usuario', 'cd_usuario', array('alias' => 'Usuario'));\n }",
"public function initialize()\n {\n $this->setSource('custom_fields_types');\n\n $this->hasMany(\n 'id',\n 'Canvas\\Models\\CustomFieldsTypesSettings',\n 'custom_fields_types_id',\n ['alias' => 'typesSetting']\n );\n }",
"public function initialize()\n {\n $this->setSchema(\"public\");\r\n $this->setSource(\"capacidad_clase\");\r\n $this->belongsTo('modelo_avion_id', '\\ModeloAvion', 'id', ['alias' => 'ModeloAvion']);\r\n $this->belongsTo('id_clases', '\\TipoClase', 'id', ['alias' => 'TipoClase']);\n }",
"function bindRecurringObject()\r\n\t{\r\n JTable::addIncludePath( JPATH_ADMINISTRATOR . '/components/com_calendar/tables' );\r\n\t\t$table = JTable::getInstance( 'Recurring', 'CalendarTable' );\r\n\t\t\r\n\t if (!empty($this->recurring_id))\r\n\t {\r\n\t $table->load( $this->recurring_id );\r\n\t }\r\n\t \r\n\t\t$table->trimProperties();\r\n\t\t\r\n\t\t$properties = $this->getProperties();\r\n\t\t$table_properties = $table->getProperties();\r\n\r\n\t\tforeach ($table_properties as $prop=>$value)\r\n\t\t{\r\n\t\t if (!array_key_exists($prop, $properties))\r\n\t\t {\r\n\t\t $this->$prop = $table->$prop;\r\n\t\t }\r\n\t\t}\r\n\t}",
"public function getCurrencyID()\n {\n return $this->currencyID;\n }",
"public function originPrices()\n {\n return $this->hasMany('App\\Price', 'origin_country_id');\n }",
"public function subscription()\n {\n return $this->hasOne('App\\Subscription');\n }",
"public function quoteAsset(){\n return $this->hasMany('App\\CePair','c2','id');\n }",
"public function initialize()\n {\n $this->belongsTo('company_id', 'Baka\\Auth\\Models\\Companies', 'id', ['alias' => 'company']);\n }",
"public function initialize()\n {\n $schema = new Infra();\n $this->setSchema($schema->getSchemaBanco());\n $this->setSource(\"contrato_financeiro_nota_anexo\");\n $this->belongsTo('id_anexo', 'Circuitos\\Models\\Anexos', 'id', ['alias' => 'Anexos']);\n $this->belongsTo('id_contrato_financeiro_nota', 'Circuitos\\Models\\ContratoFinanceiroNota', 'id', ['alias' => 'ContratoFinanceiroNota']);\n }",
"function set_values() {\n\t\tparent::set_values();\n\t\t$currency = new currency($this->_currency_id);\n\t\t\n\t\t$this->order_id->value = $this->_order_id;\n\t\t$this->timestamp->value = date(\"j M Y\");\n\t\t$this->total_amount->value = $currency->format_money($this->_total_amount);\n\t}",
"public function initialize()\n {\n $this->setSchema(\"fox_zeus\");\r\n $this->setSource(\"ubicacion\");\r\n $this->hasMany('codUbicacion', 'HistoricoMovimientos', 'codUbicacion', ['alias' => 'HistoricoMovimientos']);\r\n $this->belongsTo('codSecion', '\\Seccion', 'codSecion', ['alias' => 'Seccion']);\r\n $this->belongsTo('codZona', '\\Zona', 'codZona', ['alias' => 'Zona']);\r\n $this->belongsTo('codSector', '\\Sector', 'codSector', ['alias' => 'Sector']);\r\n $this->belongsTo('codAlmacen', '\\Almacen', 'codAlmacen', ['alias' => 'Almacen']);\r\n $this->belongsTo('codProducto', '\\Producto', 'codProducto', ['alias' => 'Producto']);\n }",
"public function setCurrencyCode($currencyCode);",
"public function __construct()\n {\n $exchange_rates = new ExchangeRatesService();\n\n $res = $exchange_rates->get('EUR');\n if($res->getStatusCode() === 200)\n $this->eur_data = json_decode( $res->getBody() );\n \n $res = $exchange_rates->get('USD');\n if($res->getStatusCode() === 200)\n $this->usd_data = json_decode( $res->getBody() );\n\n $res = $exchange_rates->get('GBP');\n if($res->getStatusCode() === 200)\n $this->gbp_data = json_decode( $res->getBody() );\n\n $res = $exchange_rates->get('RUB');\n if($res->getStatusCode() === 200)\n $this->rub_data = json_decode( $res->getBody() );\n }",
"public function credit()\n {\n return $this->morphOne(Credit::class, \"creditable\");\n }",
"public function initialize()\n {\n parent::initialize();\n $this->setSchema(\"salesDB\");\n $this->setSource(\"questionnaire\");\n $this->hasMany('id', 'App\\Models\\Question', 'questionnaire_id', ['alias' => 'Question']);\n $this->belongsTo('itinerary_type_id', 'App\\Models\\ItineraryType', 'id', ['alias' => 'ItineraryType']);\n $this->belongsTo('client_id', 'App\\Models\\Client', 'id', ['alias' => 'Client']);\n $this->belongsTo('user_created', 'App\\Models\\User', 'id', ['alias' => 'UserCreated']);\n $this->belongsTo('user_updated', 'App\\Models\\User', 'id', ['alias' => 'UserUpdated']);\n $this->belongsTo('questionnaire_type_id', 'App\\Models\\QuestionnaireType', 'id', ['alias' => 'QuestionnaireType']);\n $this->belongsTo('sync_status_id', 'App\\Models\\SyncStatus', 'id', ['alias' => 'SyncStatus']);\n }",
"public function __construct()\n {\n $this->suits = \\Config::get('enums.card_suits');\n $this->values = \\Config::get('enums.card_values');\n }",
"function setCurrencyCode(){\n switch($this->Currency){\n case \"USD\": $this->CurrencyCode = 840;\n break;\n case \"EUR\": $this->CurrencyCode = 978;\n break;\n case \"AUD\": $this->CurrencyCode = 036;\n break;\n case \"CAD\": $this->CurrencyCode = 124;\n break;\n case \"GBP\": $this->CurrencyCode = 826;\n break;\n case \"JPY\": $this->CurrencyCode = 392;\n break;\n }// end switch\n }",
"public function initialize()\n {\n $this->hasMany('cd', 'ShouhinMrs', 'shu_souko_mr_cd', array('alias' => 'ShouhinMrs'));\n $this->hasMany('cd', 'ShiireMeisaiDts', 'souko_mr_cd', array('alias' => 'ShiireMeisaiDts'));\n $this->hasMany('cd', 'UriageMeisaiDts', 'souko_mr_cd', array('alias' => 'UriageMeisaiDts'));\n $this->belongsTo('tantou_mr_cd', 'TantouMrs', 'cd', array('alias' => 'TantouMrs'));\n }",
"public function initialize()\n {\n $this->setSchema(\"atiempo_prod\");\n $this->hasMany('id', 'AcCartaAvalDetalle', 'id_carta', ['alias' => 'AcCartaAvalDetalle']);\n }",
"public function getCurrencies()\n {\n return $this->_currencies;\n }",
"public function initialize()\n {\n parent::initialize();\n $this->setSchema(\"salesDB\");\n $this->setSource(\"product_category\");\n $this->hasMany('id', 'App\\Models\\Product', 'product_category_id', ['alias' => 'Product']);\n $this->belongsTo('user_updated', 'App\\Models\\User', 'id', ['alias' => 'UserUpdated']);\n $this->belongsTo('user_created', 'App\\Models\\User', 'id', ['alias' => 'UserCreated']);\n $this->belongsTo('client_id', 'App\\Models\\Client', 'id', ['alias' => 'Client']);\n $this->belongsTo('sync_status_id', 'App\\Models\\SyncStatus', 'id', ['alias' => 'SyncStatus']);\n }",
"public function __construct() {\n\t\t$this->model = new Discounts();\n\t}",
"private function setCurrency()\n {\n $currency = $this->em->getRepository('ClubUserBundle:LocationConfig')->getObjectByKey('default_currency',$this->order->getLocation());\n\n $this->order->setCurrency($currency);\n $this->order->setCurrencyValue(1);\n }"
] | [
"0.6144362",
"0.6107907",
"0.6044287",
"0.6035505",
"0.6002561",
"0.59931403",
"0.59911215",
"0.5981195",
"0.5981195",
"0.59660006",
"0.59399104",
"0.5889619",
"0.5805352",
"0.57797533",
"0.57230693",
"0.5690607",
"0.56682974",
"0.5592939",
"0.55806094",
"0.5505901",
"0.55023974",
"0.546842",
"0.5442056",
"0.54374844",
"0.53277034",
"0.5309104",
"0.5253611",
"0.5252144",
"0.5225374",
"0.52059346",
"0.5204621",
"0.51694137",
"0.5108932",
"0.5079503",
"0.50482297",
"0.50001967",
"0.49746624",
"0.49627763",
"0.496226",
"0.4957285",
"0.4904892",
"0.48615786",
"0.48537642",
"0.48370728",
"0.48359972",
"0.48279265",
"0.48174998",
"0.48110598",
"0.48085716",
"0.48074555",
"0.4807177",
"0.4802581",
"0.48007178",
"0.48004308",
"0.47953326",
"0.47669485",
"0.47463244",
"0.47432962",
"0.47288993",
"0.4723728",
"0.46988133",
"0.46917242",
"0.46888775",
"0.46779308",
"0.46776044",
"0.46766552",
"0.46746498",
"0.4653419",
"0.46533117",
"0.4649521",
"0.46494764",
"0.46349776",
"0.4623978",
"0.4623241",
"0.4623241",
"0.46223792",
"0.46213728",
"0.46141618",
"0.4612354",
"0.46103916",
"0.46097544",
"0.46077234",
"0.4587317",
"0.45828596",
"0.4576515",
"0.45751765",
"0.45742995",
"0.45710966",
"0.45593512",
"0.45576942",
"0.45533377",
"0.45521685",
"0.45504576",
"0.45496744",
"0.45428696",
"0.45365554",
"0.45364627",
"0.4535944",
"0.45272514",
"0.45263737"
] | 0.5504256 | 20 |
Get the associated RCurrencies object | public function getRCurrencies(PropelPDO $con = null, $doQuery = true)
{
if ($this->aRCurrencies === null && ($this->operation_prime_currency_id !== null) && $doQuery) {
$this->aRCurrencies = RCurrenciesQuery::create()->findPk($this->operation_prime_currency_id, $con);
/* The following can be used additionally to
guarantee the related object contains a reference
to this object. This level of coupling may, however, be
undesirable since it could result in an only partially populated collection
in the referenced object.
$this->aRCurrencies->addOperationPrimess($this);
*/
}
return $this->aRCurrencies;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getCurrencies()\n {\n return $this->hasMany(Currency::className(), ['ap_gl_acc_id' => 'account_id']);\n }",
"public function getCurrencies();",
"public function getCurrency()\n {\n return $this->hasOne(Currency::className(), ['id' => 'currency_id']);\n }",
"public function currency()\n {\n return $this->hasOne(Currencies::class , 'id' , 'currencies_id');\n }",
"public function getCurrencies() {\n return $this->public([\n 'command' => 'returnCurrencies',\n ]);\n }",
"public function getCurrencies2()\n {\n return $this->hasMany(Currency::className(), ['ar_gl_acc_id' => 'account_id']);\n }",
"public function getCurrencies ()\n\t{\n\t\treturn $this->call ('public/getcurrencies');\n\t}",
"public function getCurrencies1()\n {\n return $this->hasMany(Currency::className(), ['ap_dp_gl_acc_id' => 'account_id']);\n }",
"function GetCurrencies()\n\t{\n\t\t$result = $this->sendRequest(\"GetCurrencies\", array());\t\n\t\treturn $this->getResultFromResponse($result);\n\t}",
"public function getCurrencies()\n {\n return $this->_currencies;\n }",
"public function currency()\n\t{\n\t\treturn $this->belongsTo('App\\Currency','curr_id','curr_id');\n\t}",
"public function obtainCurrency()\r\n {\r\n return $this->performRequest('GET', '/currency');\r\n }",
"function get( $id=-1 )\r\n {\r\n $db =& eZDB::globalDatabase();\r\n \r\n if ( $id != -1 )\r\n {\r\n $db->array_query( $currency_array, \"SELECT * FROM eZTrade_AlternativeCurrency WHERE ID='$id'\" );\r\n \r\n if ( count( $currency_array ) > 1 )\r\n {\r\n die( \"Error: Product currencies with the same ID was found in the database. This shouldn't happen.\" );\r\n }\r\n else if( count( $currency_array ) == 1 )\r\n {\r\n $this->ID =& $currency_array[0][$db->fieldName( \"ID\" )];\r\n $this->Name =& $currency_array[0][$db->fieldName( \"Name\" )];\r\n $this->Value =& $currency_array[0][$db->fieldName( \"Value\" )];\r\n $this->Sign =& $currency_array[0][$db->fieldName( \"Sign\" )];\r\n $this->PrefixSign =& $currency_array[0][$db->fieldName( \"PrefixSign\" )];\r\n }\r\n }\r\n }",
"public function currencies()\n {\n return $this->_call('public/getcurrencies', [], false);\n }",
"public function getCurrencies() {\n\n $currencies= array();\n $date = '';\n \n $client = \\Drupal::httpClient();\n $request = $client->get(self::LESSON3_RATES_SERVICE);\n $responseXML = $request->getBody();\n\n\n if (!empty($request) && isset($responseXML)) {\n\n $data = new \\SimpleXMLElement($responseXML);\n foreach ($data->Currency as $value) {\n $currencies[] = array(\n 'CharCode' => (string)$value->CharCode,\n 'Name' => (string)$value->Name,\n 'Rate' => (string)$value->Rate,\n );\n }\n\n foreach ($data->attributes() as $key => $val) {\n $date .= (string) $val;\n }\n \n \\Drupal::configFactory()\n ->getEditable('lesson3.settings')\n ->set('lesson3.currencies', $currencies)\n ->set('lesson3.date', $date)\n ->save();\n } \n\n return $currencies;\n }",
"public function getCurrencies0()\n {\n return $this->hasMany(Currency::className(), ['ap_disc_gl_acc_id' => 'account_id']);\n }",
"public function getCurrency();",
"public function getCurrency();",
"public function currency() {\n return $this->hasOne('App\\Currency', 'id', 'currency_id');\n }",
"public function getCurrencies3()\n {\n return $this->hasMany(Currency::className(), ['ar_disc_gl_acc_id' => 'account_id']);\n }",
"public function currencies()\n\t{\n\t\treturn $this->belongsToMany(Currency::class);\n\t}",
"public function getCurrencies7()\n {\n return $this->hasMany(Currency::className(), ['exchg_gl_acc_id' => 'account_id']);\n }",
"public function currency()\n {\n \t// belongsTo(RelatedModel, foreignKey = curr_id, keyOnRelatedModel = curr_id)\n \treturn $this->belongsTo('App\\Currency','curr_id','curr_id');\n }",
"public static function getAllCurrencies(){\r\n\t\t$db = JFactory::getDBO();\r\n\t\t$query = ' SELECT\r\n\t\t\t\t\th.*\r\n\t\t\t\t\tFROM #__hotelreservation_currencies h\r\n\t\t\t\t\tORDER BY description asc';\r\n\t\t$db->setQuery( $query );\r\n\t\treturn $db->loadObjectList();\r\n\t}",
"public function getCurrencies() {\n\t\t\t$currencies = CurrencyDenomination::all();\n\t\t\treturn response($currencies);\n\t\t}",
"public function getCurrencyRates()\n {\n return $this->curlCall();\n }",
"public function currency(): BelongsTo;",
"public function getCurrencies4()\n {\n return $this->hasMany(Currency::className(), ['ar_dp_gl_acc_id' => 'account_id']);\n }",
"public static function findById($id){\n $currency = null;\n $results = [];\n\n $results = self::find($id);\n if (is_array($results) && count($results) == 1)\n $currency = $results[0];\n return $currency;\n }",
"public function currency()\n {\n return $this->belongsTo('F3\\Models\\Currency');\n }",
"public function currency(): BelongsTo\n {\n return $this->belongsTo('App\\Models\\Currency');\n }",
"public function getRates()\n {\n return (new Rates)->fetchRates(); \n }",
"public function getCurrencyType()\n {\n return $this->hasOne(CurrencyType::className(), ['id' => 'currency_type_id']);\n }",
"public function getCrate()\n {\n return $this->hasOne(Crates::className(), ['id' => 'id_crate']);\n }",
"public function getCurrency(): Currency;",
"public function currency() \n {\n return $this->belongsTo('App\\Models\\Currency\\Currency');\n }",
"public function currency() \n {\n return $this->belongsTo('App\\Models\\Currency\\Currency');\n }",
"public function currency()\n {\n return $this->belongsTo(Currency::class);\n }",
"public function currencies(): CurrenciesResponse\n {\n $payload = Payload::list('currencies');\n\n $result = $this->transporter->get($payload->uri)->throw();\n\n return CurrenciesResponse::from(attributes: (array) $result->json('data'));\n }",
"public function getCurrencies6()\n {\n return $this->hasMany(Currency::className(), ['writeoff_gl_acc_id' => 'account_id']);\n }",
"function getCurrency()\r\n\t{\r\n\t\treturn $this->call_API('getCurrency');\r\n\t}",
"function &getAll()\r\n {\r\n $db =& eZDB::globalDatabase();\r\n \r\n $return_array = array();\r\n $currency_array = array();\r\n \r\n $db->array_query( $currency_array, \"SELECT ID FROM eZTrade_AlternativeCurrency ORDER BY Created\" );\r\n \r\n for ( $i=0; $i < count($currency_array); $i++ )\r\n {\r\n $return_array[$i] = new eZProductCurrency( $currency_array[$i][$db->fieldName( \"ID\" )], 0 );\r\n }\r\n \r\n return $return_array;\r\n }",
"public function currency()\n {\n return $this->belongsTo('App\\Models\\Currency','currency_code','code');\n }",
"public function getCurrenciesAction()\n {\n $repository = Shopware()->Models()->getRepository('Shopware\\Models\\Shop\\Currency');\n\n $builder = $repository->createQueryBuilder('c');\n $builder->select(\n [\n 'c.id as id',\n 'c.name as name',\n 'c.currency as currency',\n 'c.symbol as symbol',\n 'c.factor as factor',\n 'c.default as default'\n ]\n );\n\n $query = $builder->getQuery();\n\n $total = Shopware()->Models()->getQueryCount($query);\n\n $data = $query->getArrayResult();\n\n $this->View()->assign(\n [\n 'success' => true,\n 'data' => $data,\n 'total' => $total\n ]\n );\n }",
"public function getCurrency(){\n return $this->currency;\n }",
"public function toCurrency()\n {\n return $this->belongsTo(Currency::class, 'to_currency_id', 'id');\n }",
"public function getCurrencies5()\n {\n return $this->hasMany(Currency::className(), ['rounding_gl_acc_id' => 'account_id']);\n }",
"public function byId($id)\n {\n return $this->cache->tags('Currency')->rememberForever('Currency.byId.'.$id, function () use ($id) {\n return $this->CurrencyRepository->byId($id);\n });\n }",
"public function show($id)\n {\n return Currency::find($id);\n }",
"public static function getInstance()\n {\n return Doctrine_Core::getTable('Currency');\n }",
"public function currency_code(){\n return $this->hasMany('App\\CurrencyCode','cid','id');\n }",
"public function fetchRates()\n {\n $res = $this->_fetch($this->_cfg['ratesUri']);\n\n return $res;\n }",
"public function getCurrencyList()\n {\n if (null === $this->currencyList) {\n $this->setCurrencyList(new CurrencyList);\n }\n\n return $this->currencyList;\n }",
"public function getRate()\n {\n return $this->hasOne(PaymentRate::class, ['id' => 'rate_id']);\n }",
"public static function getRates() {\n $result = self::get(self::getPath('rates'));\n \n Return $result;\n }",
"public function getCurrencies(): array\n {\n $out = $this->request('getCurrencies');\n return $out['result'];\n }",
"function GetOurCurrency()\n\t{\n\t\t$result = $this->sendRequest(\"GetOurCurrency\", array());\t\n\t\treturn $this->getResultFromResponse($result);\n\t}",
"function GetBaseCurrency()\n\t{\n\t\t$result = $this->sendRequest(\"GetBaseCurrency\", array());\t\n\t\treturn $this->getResultFromResponse($result);\n\t}",
"abstract protected function getSupportedCurrencies();",
"public function getCurrency()\n {\n return $this->getData(self::CURRENCY);\n }",
"public function getCurrencies() {\n\t\treturn array(\"CNY\");\n\t}",
"public function getCurrency()\n {\n return isset($this->Currency) ? $this->Currency : null;\n }",
"public function getSourceCurrency();",
"public function getCurrency()\n {\n try {\n $currencyCode = $this->store->getCurrentCurrencyCode();\n $currencyObj = $this->locale->currency($currencyCode);\n $currency = array(\n 'isoCode' => $currencyCode,\n 'isoCodeNum' => null,\n 'name' => $currencyObj->getName(),\n 'sign' => $currencyObj->getSymbol()\n );\n } catch (Exception $exception) {\n $this->exceptionHandler->logException($exception);\n\n $currency = array(\n 'isoCode' => null,\n 'isoCodeNum' => null,\n 'name' => null,\n 'sign' => null\n );\n }\n\n return $currency;\n }",
"public function getSupportedCurrencies()\n {\n return response()->json(Currency::all());\n }",
"public function getCurrenciesAction()\n {\n $em = $this->getDoctrine()->getManager();\n $currencies = $em->getRepository('ApiBundle:Currency')->findAll();\n $view = $this->view($currencies);\n return $this->handleView($view);\n }",
"public function get()\n {\n return $this->coupon->get();\n }",
"public function currency_details(){\n return $this->hasMany('App\\CurrencyDetail','cid','id');\n\n }",
"public function getCurrencyId()\n {\n return $this->currency_id;\n }",
"public function getCurrency(): string;",
"public function getCurrency(): string;",
"public static function getCurrencies()\n {\n $currencies = [];\n\n foreach (static::$currencies as $currency)\n {\n $currencies[$currency] = $currency;\n }\n\n return $currencies;\n }",
"public function getCurrencyCode();",
"public function getCurrencyCode();",
"public function getCurrencyCode();",
"public function getCurrencyID()\n {\n return $this->currencyID;\n }",
"public function currencies()\n {\n $currencies = Currencies::with('Countries:name')->get();\n // dd($currencies);\n return view('setup.currencies.index', compact('currencies'));\n }",
"public function fromCurrency()\n {\n return $this->belongsTo(Currency::class, 'from_currency_id', 'id');\n }",
"public function get_currency()\n {\n $cart = $this->getService()->getSessionCart();\n\n $currencyService = $this->di['mod_service']('currency');\n $currency = $this->di['db']->load('Currency', $cart->currency_id);\n if (!$currency instanceof \\Model_Currency) {\n $currency = $currencyService->getDefault();\n }\n\n return $currencyService->toApiArray($currency);\n }",
"public function getRates()\n {\n # Convert the rates to a key / value array:\n return json_decode( json_encode($this->rates), true );\n }",
"public function listCurrenciesWithExchangeRate()\n {\n $service_response = $this->exchange_service\n ->getCurrenciesWithExchangeRate(\n auth()->user(),\n );\n return $service_response->success\n ? Responser::send(200, $service_response->data, $service_response->message)\n : Responser::sendError(400, $service_response->message, $service_response->message);\n }",
"public function getCurrencies()\n {\n return array(\"PLN\");\n }",
"public function getExchangeRates()\n {\n return Controllers\\ExchangeRatesController::getInstance();\n }",
"public function getCurrency()\n {\n return $this->currency;\n }",
"public function getCurrency()\n {\n return $this->currency;\n }",
"public function getCurrency()\n {\n return $this->currency;\n }",
"public function getCurrency()\n {\n return $this->currency;\n }",
"public function getCurrency()\n {\n return $this->currency;\n }",
"public function getCurrency()\n {\n return $this->currency;\n }",
"public function getCurrency()\n {\n return $this->currency;\n }",
"public function getCurrency()\n {\n return $this->currency;\n }",
"public function getRates()\n {\n return $this->_rates;\n }",
"public function currencyCalculations()\n {\n return $this->hasMany('App\\CurrencyCalculation');\n }",
"public function getCurrencyAndSymbol()\n {\n if($this->custom_checkbox1 == 'y'){\n return array('currency' => 'USD', 'symbol' => '$');\n }\n else if($this->location_1){\n return DBQuery::execute(function(){\n $main = DBConnection::getInstance()->getMain();\n $sql = $main->prepare(\"SELECT currency, symbol FROM Location_1 \"\n . \"WHERE id=:id\");\n $sql->bindParam(':id', $this->location_1);\n $sql->execute();\n return $sql->fetch(\\PDO::FETCH_BOTH);\n });\n }\n else{\n return array('currency' => 'USD', 'symbol' => '$');\n } \n }",
"public function returnCurrencies(): array\n {\n $currencies = [];\n foreach ($this->request('returnCurrencies') as $key => $response) {\n /* @var $currency Currency */\n $currencies[$key] = $this->factory(Currency::class, $response);\n }\n\n return $currencies;\n }",
"public function getCurrency() {\n\t\treturn $this->currency;\n\t}",
"public function populate()\n {\n $currenciesCodes = [];\n $currencies = $this\n ->currencyRepository\n ->findAll();\n\n /**\n * Create an array of all active currency codes.\n *\n * @var CurrencyInterface $currency\n */\n foreach ($currencies as $currency) {\n if ($currency->getIso() != $this->defaultCurrency) {\n $currenciesCodes[] = $currency->getIso();\n }\n }\n\n /**\n * Get rates for all of the enabled and active currencies.\n */\n $rates = $this\n ->currencyExchangeRatesAdapter\n ->getExchangeRates(\n $this->defaultCurrency,\n $currenciesCodes\n );\n\n /**\n * @var CurrencyInterface $sourceCurrency\n */\n $sourceCurrency = $this\n ->currencyRepository\n ->findOneBy([\n 'iso' => $this->defaultCurrency,\n ]);\n\n /**\n * [\n * \"EUR\" => \"1,378278\",\n * \"YEN\" => \"0,784937\",\n * ].\n */\n foreach ($rates as $code => $rate) {\n\n /**\n * @var CurrencyInterface $targetCurrency\n */\n $targetCurrency = $this\n ->currencyRepository\n ->findOneBy([\n 'iso' => $code,\n ]);\n\n if (!($targetCurrency instanceof CurrencyInterface)) {\n continue;\n }\n\n /**\n * check if this is a new exchange rate, or if we have to\n * create a new one.\n */\n $exchangeRate = $this\n ->currencyExchangeRateObjectDirector\n ->findOneBy([\n 'sourceCurrency' => $sourceCurrency,\n 'targetCurrency' => $targetCurrency,\n ]);\n\n if (!($exchangeRate instanceof CurrencyExchangeRateInterface)) {\n $exchangeRate = $this\n ->currencyExchangeRateObjectDirector\n ->create();\n }\n\n $exchangeRate\n ->setExchangeRate($rate)\n ->setSourceCurrency($sourceCurrency)\n ->setTargetCurrency($targetCurrency);\n\n $this\n ->currencyExchangeRateObjectDirector\n ->save($exchangeRate);\n }\n\n return $this;\n }",
"public function getId() {\r\n\t\treturn($this->_currency_id);\r\n\t}",
"public static function getInstance()\n {\n if (!is_object(self::$_instance)) //or if( is_null(self::$_instance) ) or if( self::$_instance == null )\n self::$_instance = new Currency();\n return self::$_instance;\n }",
"public function cryptoCurrencies()\n {\n $cryptoCurrencies = CryptoCurrency::all();\n return view('front.crypto_currencies', compact('cryptoCurrencies'));\n }"
] | [
"0.7242127",
"0.7235806",
"0.7165655",
"0.71164453",
"0.7097183",
"0.7017511",
"0.68971854",
"0.6812062",
"0.6783486",
"0.676509",
"0.66874903",
"0.66843104",
"0.66813636",
"0.66348356",
"0.6579358",
"0.6576165",
"0.6573496",
"0.6573496",
"0.65475804",
"0.65466976",
"0.65396994",
"0.648783",
"0.6465561",
"0.64587694",
"0.64308876",
"0.6412263",
"0.6408716",
"0.64058685",
"0.6390067",
"0.6383793",
"0.6380065",
"0.63782114",
"0.63685733",
"0.6367229",
"0.63654804",
"0.6357154",
"0.6357154",
"0.63175124",
"0.629875",
"0.62907505",
"0.6287576",
"0.6256813",
"0.6235538",
"0.62321454",
"0.6218806",
"0.6200633",
"0.61813444",
"0.6164296",
"0.61411184",
"0.6109088",
"0.6104385",
"0.61017394",
"0.60517806",
"0.604803",
"0.6047095",
"0.60213935",
"0.6017709",
"0.600983",
"0.6000288",
"0.5993028",
"0.59880704",
"0.59872335",
"0.5984298",
"0.598299",
"0.59773237",
"0.59508455",
"0.5942452",
"0.5940241",
"0.5915055",
"0.5899996",
"0.5899996",
"0.58764356",
"0.58603835",
"0.58603835",
"0.58603835",
"0.5851114",
"0.58486116",
"0.583699",
"0.58277524",
"0.5810529",
"0.5808883",
"0.57986474",
"0.5780103",
"0.57732147",
"0.57732147",
"0.57732147",
"0.57732147",
"0.57732147",
"0.57732147",
"0.57732147",
"0.57732147",
"0.57694936",
"0.5764795",
"0.5763443",
"0.5754269",
"0.5751394",
"0.57400554",
"0.57391447",
"0.57344276",
"0.57084465"
] | 0.6024091 | 55 |
Declares an association between this object and a RRewardTypes object. | public function setRRewardTypes(RRewardTypes $v = null)
{
if ($v === null) {
$this->setOperationPrimeRRewardTypeId(NULL);
} else {
$this->setOperationPrimeRRewardTypeId($v->getRRewardTypeId());
}
$this->aRRewardTypes = $v;
// Add binding for other direction of this n:n relationship.
// If this object has already been added to the RRewardTypes object, it will not be re-added.
if ($v !== null) {
$v->addOperationPrimes($this);
}
return $this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getRealestateType()\n {\n return $this->hasOne(RealEstateType::className(), ['id' => 'realestate_type_id']);\n }",
"public function setOperationPrimeRRewardTypeId($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_numeric($v)) {\n $v = (int) $v;\n }\n }\n if ($this->operation_prime_r_reward_type_id !== $v) {\n $this->operation_prime_r_reward_type_id = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OPERATION_PRIME_R_REWARD_TYPE_ID;\n }\n\n if ($this->aRRewardTypes !== null && $this->aRRewardTypes->getRRewardTypeId() !== $v) {\n $this->aRRewardTypes = null;\n }\n\n\n return $this;\n }",
"public static function register_type() {\n\t\tregister_graphql_enum_type(\n\t\t\t'RelationEnum',\n\t\t\t[\n\t\t\t\t'description' => __( 'The logical relation between each item in the array when there are more than one.', 'wp-graphql' ),\n\t\t\t\t'values' => [\n\t\t\t\t\t'AND' => [\n\t\t\t\t\t\t'name' => 'AND',\n\t\t\t\t\t\t'value' => 'AND',\n\t\t\t\t\t],\n\t\t\t\t\t'OR' => [\n\t\t\t\t\t\t'name' => 'OR',\n\t\t\t\t\t\t'value' => 'OR',\n\t\t\t\t\t],\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\t}",
"public function relationship($class, $type, $name, array $options = [])\n {\n }",
"public function setType(RecommendationTypeInterface $type);",
"public function setAwardType($value)\n {\n return $this->set('AwardType', $value);\n }",
"function eZEnhancedObjectRelationType()\n {\n $this->eZDataType( EZ_DATATYPESTRING_ENHANCED_OBJECT_RELATION, ezi18n( 'kernel/classes/datatypes', \"Enhanced Object relation\", 'Datatype name' ),\n array( 'serialize_supported' => true ) );\n }",
"public function CreateRelationship($type = self::RT_OFFICE_DOCUMENT, $target = 'document.xml') {\n\t\t$el = $this->createElement('Relationship');\n\t\t$this->_Relationships[] = $el;\n\t\t$el->setAttribute('Id', \"rId\".count($this->_Relationships));\n\t\t$el->setIdAttribute('Id', true);\n\t\t$el->setAttribute('Type', $type);\n\t\t$el->setAttribute('Target', $target);\n\t\t$this->_DocumentRoot->appendChild($el);\n\t}",
"public function initialize()\n {\n $this->setSource('custom_fields_types');\n\n $this->hasMany(\n 'id',\n 'Canvas\\Models\\CustomFieldsTypesSettings',\n 'custom_fields_types_id',\n ['alias' => 'typesSetting']\n );\n }",
"public function setResourceRelationshipType($resourceRelationshipType)\n {\n $this->resourceRelationshipType = $resourceRelationshipType;\n return $this;\n }",
"public function getType0()\n {\n return $this->hasOne(TypeRate::class, ['id' => 'type'])->inverseOf('rates');\n }",
"public function getOperationPrimeRRewardTypeId()\n {\n\n return $this->operation_prime_r_reward_type_id;\n }",
"public function type()\n {\n \t//return $this->belongsTo(Genre::class, 'foreing_key', 'id');\n \treturn $this->belongsTo(Type::class);\n }",
"public function addType($type);",
"public function setRecurrenceRegeneratedType($recurrenceRegeneratedType)\n {\n $this->recurrenceRegeneratedType = $recurrenceRegeneratedType;\n return $this;\n }",
"public function bookable(): MorphTo\n {\n return $this->morphTo('bookable', 'bookable_type', 'bookable_id', 'id');\n }",
"public function initialize()\n {\n // attributes\n $this->setName('r_user_types');\n $this->setPhpName('RUserTypes');\n $this->setClassname('RUserTypes');\n $this->setPackage('phoenix');\n $this->setUseIdGenerator(true);\n // columns\n $this->addPrimaryKey('r_user_type_id', 'RUserTypeId', 'INTEGER', true, 4, null);\n $this->addColumn('r_user_type_short_name', 'RUserTypeShortName', 'VARCHAR', true, 5, null);\n $this->addColumn('r_user_type_full_name', 'RUserTypeFullName', 'VARCHAR', false, 60, null);\n $this->addColumn('r_user_type_actif', 'RUserTypeActif', 'TINYINT', true, 1, 1);\n // validators\n $this->addValidator('r_user_type_short_name', 'maxLength', 'propel.validator.MaxLengthValidator', '5', 'Le champ r_user_type_short_name ne doit pas dépasser 5 caractères.');\n $this->addValidator('r_user_type_short_name', 'type', 'propel.validator.TypeValidator', 'string', 'Le champ r_user_type_short_name doit être un string.');\n $this->addValidator('r_user_type_full_name', 'maxLength', 'propel.validator.MaxLengthValidator', '60', 'Le champ r_user_type_full_name ne doit pas dépasser 60 caractères.');\n $this->addValidator('r_user_type_full_name', 'type', 'propel.validator.TypeValidator', 'string', 'Le champ r_user_type_full_name doit être un string.');\n $this->addValidator('r_user_type_actif', 'type', 'propel.validator.TypeValidator', 'int', 'Le champ r_user_type_actif doit être un int.');\n }",
"public function addType($type) {\n $this->type[] = $type;\n return $this;\n }",
"public function AddType($type) {\n $this->Types[] = $type;\n }",
"public function setup_types()\n {\n }",
"public function setRemediationType($var)\n {\n GPBUtil::checkEnum($var, \\Google\\Cloud\\AssuredWorkloads\\V1\\Violation\\Remediation\\RemediationType::class);\n $this->remediation_type = $var;\n\n return $this;\n }",
"public function save() {\n if ($this->isNew()) {\n $this->xpdo->log(MODx::LOG_LEVEL_INFO,'Creating default RegType');\n $regtype = $this->xpdo->newObject('RSVPMeRegType');\n $regtype->fromArray(array(\n 'name' => 'default',\n 'description' => 'default registration type',\n 'code' => (isset($this->code)) ? $this->code : '',\n 'fee' => (isset($this->fee)) ? $this->fee : '',\n ));\n\n $this->addMany($regtype);\n }\n\n /**\n * For now, only 1 registration type is allowed, so we will automatically\n * set the end date to the same as the date of the event. It will be set\n * independently in a future release.\n */\n if (!$this->isNew() && $this->isDirty('date')) {\n $regtypes = $this->getMany('RegistrationType');\n $regtype = array_pop($regtypes);\n $regtype->set('end',$this->get('date'));\n }\n\n /**\n * Since Registration Types will only be editable in a later version,\n * we need to make sure the 'secret code' stays synced\n */\n if (!$this->isNew() && (isset($this->code) || isset($this->fee))) {\n $regtypes = $this->getMany('RegistrationType');\n $regtype = array_pop($regtypes);\n\n if (isset($this->code)) {\n $regtype->set('code',$this->code);\n }\n if (isset($this->fee)) {\n $regtype->set('fee',$this->fee);\n }\n }\n\n /* now we can finish saving, this will also save related objects */\n return parent :: save();\n }",
"function roomify_conversations_add_unit_type_reference_field() {\n field_info_cache_clear();\n\n // \"conversation_unit_type_ref\" field.\n if (field_read_field('conversation_unit_type_ref') === FALSE) {\n $field = array(\n 'field_name' => 'conversation_unit_type_ref',\n 'type' => 'entityreference',\n 'cardinality' => 1,\n 'locked' => 1,\n 'settings' => array(\n 'target_type' => 'bat_type',\n ),\n );\n field_create_field($field);\n }\n\n // \"conversation_unit_type_ref\" field instance.\n if (field_read_instance('roomify_conversation', 'conversation_unit_type_ref', 'standard') === FALSE) {\n $instance = array(\n 'field_name' => 'conversation_unit_type_ref',\n 'entity_type' => 'roomify_conversation',\n 'label' => 'Unit type',\n 'bundle' => 'standard',\n 'required' => FALSE,\n 'widget' => array(\n 'type' => 'entityreference_autocomplete',\n ),\n );\n field_create_instance($instance);\n }\n}",
"public function type()\n {\n return $this->hasOne('App\\Type', 'question_type');\n }",
"public function cardType(): BelongsTo\n {\n return $this->belongsTo(CardType::class);\n }",
"public function setDefaultTypeData(){\n if(\n is_object($this->source) &&\n is_object($this->target)\n ){\n if(\n $this->source->isAbyss() ||\n $this->target->isAbyss()\n ){\n $this->scope = 'abyssal';\n $this->type = ['abyssal'];\n }else{\n $routeController = new Route();\n $route = $routeController->searchRoute($this->source->systemId, $this->target->systemId, 1);\n\n if($route['routePossible']){\n $this->scope = 'stargate';\n $this->type = ['stargate'];\n }else{\n $this->scope = 'wh';\n $this->type = ['wh_fresh'];\n }\n }\n }\n }",
"function register_aliment_brand_relationship() {\n\t\\IA\\One_To_Many_Post_Relationship::register_relationship( 'ia_aliment_brand', 'company', 'post' );\n}",
"public function getRelated()\n {\n return new $this->morphType();\n }",
"public static function getPointsRewardTypes()\n {\n return [\n self::REWARD_TYPE_POINTS,\n self::REWARD_TYPE_RANDOM_AMOUNT_OF_POINTS,\n ];\n }",
"public function equip_type()\n {\n return $this->hasOne(ReferenceProperty::class, 'id', 'equip_type_reference_id');\n }",
"public function type()\n {\n return $this->hasOne(Type::class);\n }",
"public function types() {\n return $this->hasMany(Type::class);\n }",
"public function setType($type)\n{\n$this->type = $type;\n\nreturn $this;\n}",
"public function child(){\n return $this->morphTo(null,'recharge_type','recharge_type_id');\n }",
"public function type()\n\t{\n\t\treturn $this->oneToOne(__NAMESPACE__ . '\\\\Type', 'id', 'type');\n\t}",
"public function getRRewardTypes(PropelPDO $con = null, $doQuery = true)\n {\n if ($this->aRRewardTypes === null && ($this->operation_prime_r_reward_type_id !== null) && $doQuery) {\n $this->aRRewardTypes = RRewardTypesQuery::create()->findPk($this->operation_prime_r_reward_type_id, $con);\n /* The following can be used additionally to\n guarantee the related object contains a reference\n to this object. This level of coupling may, however, be\n undesirable since it could result in an only partially populated collection\n in the referenced object.\n $this->aRRewardTypes->addOperationPrimess($this);\n */\n }\n\n return $this->aRRewardTypes;\n }",
"public function genreType($genreType)\n {\n $this->dailyTransaction->setGenreType($genreType);\n return $this;\n }",
"abstract public function register_type();",
"private function loadTypes() : void {\n\t\t$this->types[DuelType::DUEL_TYPE_1V1] = new DuelType($this, DuelType::DUEL_TYPE_1V1, LanguageUtils::translateColors(\"&l&31v1\"), Item::get(Item::MOB_HEAD, Skull::TYPE_HUMAN, 1), \"http://jacknoordhuis.net/minecraft/icons/items/397-3.png\", 2, 2);\n\t\t$this->types[DuelType::DUEL_TYPE_2v2] = new DuelType($this, DuelType::DUEL_TYPE_2v2, LanguageUtils::translateColors(\"&l&32v2\"), Item::get(Item::MOB_HEAD, Skull::TYPE_HUMAN, 2), \"http://jacknoordhuis.net/minecraft/icons/items/397-3.png\", 4, 4);\n\t\t$this->types[DuelType::DUEL_TYPE_FFA] = new DuelType($this, DuelType::DUEL_TYPE_FFA, LanguageUtils::translateColors(\"&l&3FFA\"), Item::get(Item::MOB_HEAD, Skull::TYPE_DRAGON, 1), \"http://jacknoordhuis.net/minecraft/icons/items/397-5.png\", 24, 2);\n\t}",
"public static function _register()\n {\n self::assignElements([\n 'UserID' => ['type' => 'UserIDType', 'xmlns' => self::XMLNS],\n 'ApprovedBiddingLimit' => ['type' => 'AmountType', 'xmlns' => self::XMLNS],\n 'DeclinedComment' => [],\n 'Status' => ['type' => 'BidderStatusCodeType', 'enum' => true, 'xmlns' => self::XMLNS]\n ], parent::NAME);\n\n self::assignAttributes([]);\n }",
"public function addMealType(){\n \t$id = $this->formValueForKey(\"mealTypeSelection\");\n \t\n \t$foundMealType = BLGenericRecord::recordMatchingKeyAndValue(\"MealType\", \"id\", $id);\n \t$this->currentRecipe()->addMealType($foundMealType);\n }",
"public function setType(string $type): self;",
"public function setType(string $type): self;",
"public function itemType(): HasOne\n {\n return $this->hasOne(ItemType::class, 'id', 'item_type_id');\n }",
"public function setRRewardTransporters(RRewardTransporters $v = null)\n {\n if ($v === null) {\n $this->setOperationPrimeRRewardTransporterId(NULL);\n } else {\n $this->setOperationPrimeRRewardTransporterId($v->getRRewardTransporterId());\n }\n\n $this->aRRewardTransporters = $v;\n\n // Add binding for other direction of this n:n relationship.\n // If this object has already been added to the RRewardTransporters object, it will not be re-added.\n if ($v !== null) {\n $v->addOperationPrimes($this);\n }\n\n\n return $this;\n }",
"public function __construct() {\n $this->_residentTypeArray = array(ResidentType::all);\n }",
"public function getTargetType()\n {\n if (array_key_exists(\"targetType\", $this->_propDict)) {\n if (is_a($this->_propDict[\"targetType\"], \"\\Beta\\Microsoft\\Graph\\Model\\MobileAppRelationshipType\") || is_null($this->_propDict[\"targetType\"])) {\n return $this->_propDict[\"targetType\"];\n } else {\n $this->_propDict[\"targetType\"] = new MobileAppRelationshipType($this->_propDict[\"targetType\"]);\n return $this->_propDict[\"targetType\"];\n }\n }\n return null;\n }",
"public function setType($type){ }",
"public function rateble()\n {\n return $this->morphTo();\n }",
"public function getItemTypes1()\n {\n return $this->hasMany(ItemType::className(), ['inventory_gl_acc_id' => 'account_id']);\n }",
"public function addUserAward(UserAward $l)\n\t{\n\t\tif ($this->collUserAwards === null) {\n\t\t\t$this->initUserAwards();\n\t\t}\n\t\tif (!in_array($l, $this->collUserAwards, true)) { // only add it if the **same** object is not already associated\n\t\t\tarray_push($this->collUserAwards, $l);\n\t\t\t$l->setUser($this);\n\t\t}\n\t}",
"public function setType($type);",
"public function setType($type);",
"public function setType($type);",
"public function setType($type);",
"public function setType($type);",
"public function setType($type);",
"public function setType($type);",
"public function setType($type);",
"public function getTypeLocation()\n {\n return $this->hasOne(TypeLocation::className(), ['id' => 'type_location_id']);\n }",
"public function getTypesOfPayersForRedeliveryAction(array $options = []): Model;",
"public function setType($type, $reassign = false);",
"public function paymentTypes(){\n return $this->hasMany(PaymentTypes::class);\n }",
"public function types()\n {\n return $this->belongsTo(Type::class);\n }",
"public function register_object_type(string $type_name, array $config)\n {\n }",
"public function setType($type) {}",
"public function add_rental_product( $types ){\n\n\t\n\t$types[ 'rental' ] = __( 'Rental' );\n\n\treturn $types;\n\n\t}",
"public static function register_type()\n {\n }",
"public static function register_type()\n {\n }",
"public static function register_type()\n {\n }",
"public static function register_type()\n {\n }",
"public static function register_type()\n {\n }",
"public static function register_type()\n {\n }",
"public static function register_type()\n {\n }",
"public static function register_type()\n {\n }",
"public static function register_type()\n {\n }",
"public static function register_type()\n {\n }",
"public static function register_type()\n {\n }",
"public static function register_type()\n {\n }",
"public static function register_type()\n {\n }",
"public static function register_type()\n {\n }",
"public static function register_type()\n {\n }",
"public static function register_type()\n {\n }",
"public static function register_type()\n {\n }",
"public static function register_type()\n {\n }",
"public static function register_type()\n {\n }",
"public static function register_type()\n {\n }",
"public static function register_type()\n {\n }",
"public static function register_type()\n {\n }",
"public static function register_type()\n {\n }",
"public static function register_type()\n {\n }",
"public static function register_type()\n {\n }",
"public static function register_type()\n {\n }",
"public static function register_type()\n {\n }",
"public static function register_type()\n {\n }",
"public static function register_type()\n {\n }",
"public static function register_type()\n {\n }",
"public static function register_type()\n {\n }",
"public static function register_type()\n {\n }",
"public static function register_type()\n {\n }"
] | [
"0.5562362",
"0.55607593",
"0.49305105",
"0.49097145",
"0.4901901",
"0.48768172",
"0.48591948",
"0.4843987",
"0.480192",
"0.4762195",
"0.47506163",
"0.47490352",
"0.47106567",
"0.46753082",
"0.466561",
"0.45896822",
"0.4582585",
"0.4569983",
"0.45372713",
"0.45235735",
"0.4521521",
"0.45082894",
"0.44810206",
"0.44806823",
"0.447957",
"0.4470043",
"0.4469938",
"0.44693863",
"0.44598",
"0.4440189",
"0.44343826",
"0.44314215",
"0.44240662",
"0.4417469",
"0.43906584",
"0.437978",
"0.43789554",
"0.4369412",
"0.43641526",
"0.43537602",
"0.43461165",
"0.43424758",
"0.43424758",
"0.43421614",
"0.43329263",
"0.43274894",
"0.43202618",
"0.43193316",
"0.43172106",
"0.42995423",
"0.42981035",
"0.42971233",
"0.42971233",
"0.42971233",
"0.42971233",
"0.42971233",
"0.42971233",
"0.42971233",
"0.42971233",
"0.429288",
"0.42905736",
"0.42900902",
"0.42888921",
"0.42887062",
"0.42754045",
"0.42698842",
"0.42695254",
"0.42608213",
"0.42608213",
"0.42608213",
"0.42608213",
"0.42608213",
"0.42608213",
"0.42608213",
"0.42608213",
"0.42608213",
"0.42608213",
"0.42608213",
"0.42608213",
"0.42608213",
"0.42608213",
"0.42608213",
"0.42608213",
"0.42608213",
"0.42608213",
"0.42608213",
"0.42608213",
"0.42608213",
"0.42608213",
"0.42608213",
"0.42608213",
"0.42608213",
"0.42608213",
"0.42608213",
"0.42608213",
"0.42608213",
"0.42608213",
"0.42608213",
"0.42608213",
"0.42608213"
] | 0.6618223 | 0 |
Get the associated RRewardTypes object | public function getRRewardTypes(PropelPDO $con = null, $doQuery = true)
{
if ($this->aRRewardTypes === null && ($this->operation_prime_r_reward_type_id !== null) && $doQuery) {
$this->aRRewardTypes = RRewardTypesQuery::create()->findPk($this->operation_prime_r_reward_type_id, $con);
/* The following can be used additionally to
guarantee the related object contains a reference
to this object. This level of coupling may, however, be
undesirable since it could result in an only partially populated collection
in the referenced object.
$this->aRRewardTypes->addOperationPrimess($this);
*/
}
return $this->aRRewardTypes;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static function getPointsRewardTypes()\n {\n return [\n self::REWARD_TYPE_POINTS,\n self::REWARD_TYPE_RANDOM_AMOUNT_OF_POINTS,\n ];\n }",
"public function getRealestateType()\n {\n return $this->hasOne(RealEstateType::className(), ['id' => 'realestate_type_id']);\n }",
"public function getReward()\n {\n return $this->get(self::_REWARD);\n }",
"public function getReward()\n {\n return $this->get(self::_REWARD);\n }",
"public function getReward()\n {\n return $this->get(self::_REWARD);\n }",
"public function getOperationPrimeRRewardTypeId()\n {\n\n return $this->operation_prime_r_reward_type_id;\n }",
"public function setRRewardTypes(RRewardTypes $v = null)\n {\n if ($v === null) {\n $this->setOperationPrimeRRewardTypeId(NULL);\n } else {\n $this->setOperationPrimeRRewardTypeId($v->getRRewardTypeId());\n }\n\n $this->aRRewardTypes = $v;\n\n // Add binding for other direction of this n:n relationship.\n // If this object has already been added to the RRewardTypes object, it will not be re-added.\n if ($v !== null) {\n $v->addOperationPrimes($this);\n }\n\n\n return $this;\n }",
"public function getTypesOfPayersForRedeliveryAction(array $options = []): Model;",
"public function getHireReward()\n {\n return $this->get(self::_HIRE_REWARD);\n }",
"public function getBestRankReward()\n {\n return $this->get(self::_BEST_RANK_REWARD);\n }",
"public function getType0()\n {\n return $this->hasOne(TypeRate::class, ['id' => 'type'])->inverseOf('rates');\n }",
"public function getDrawRankReward()\n {\n return $this->get(self::_DRAW_RANK_REWARD);\n }",
"public function getResistance()\n {\n $xary = array();\n foreach ($this->resistance as $info) {\n $xary[] = new Type($info->resource_id);\n }\n return $xary;\n }",
"public function getTypesOfPayersAction(array $options = []): Model;",
"public function getTypes();",
"public function getTypes();",
"public function getTypes();",
"public function getTypes();",
"protected function getTypes() {}",
"public static function getRewardsTranslations($rewardType = null)\n {\n $module = Module::getInstanceByName('gamifications');\n\n $translations = [\n self::REWARD_TYPE_POINTS => $module->l('Fixed points', __CLASS__),\n self::REWARD_TYPE_DISCOUNT => $module->l('Discount', __CLASS__),\n self::REWARD_TYPE_FREE_SHIPPING => $module->l('Free shipping', __CLASS__),\n self::REWARD_TYPE_GIFT => $module->l('Gift', __CLASS__),\n self::REWARD_TYPE_RANDOM_AMOUNT_OF_POINTS => $module->l('Random amount of points', __CLASS__),\n ];\n\n return (null === $rewardType) ? $translations : $translations[$rewardType];\n }",
"public function RateType()\n {\n return [\n 'erate' => 'Electronic Rate',\n 'tt' => 'Telegrafic Transfer',\n 'tc' => 'Travellers Cheque',\n 'bn' => 'Bank Notes',\n ];\n }",
"function get_related_to_types()\n{\n $types = [\n [\n 'key' => 'general_call',\n 'lang_key' => 'General Call'\n ],\n [\n 'key' => 'cold_calling',\n 'lang_key' => 'Cold Calling'\n ],\n [\n 'key' => 'satisfaction_call',\n 'lang_key' => 'Satisfaction Call'\n ],\n [\n 'key' => 'review_call',\n 'lang_key' => 'Review Call'\n ],\n [\n 'key' => 'referral_call',\n 'lang_key' => 'Referral Call'\n ],\n [\n 'key' => 'proposal',\n 'lang_key' => 'Proposal - Related'\n ],\n [\n 'key' => 'estimate',\n 'lang_key' => 'Estimate - Related'\n ],\n ];\n\n return hooks()->apply_filters('get_related_to_types', $types);\n}",
"public function getRewardCategories()\r\n {\r\n return Controllers\\RewardCategories::getInstance();\r\n }",
"public function getCargoTypesAction(array $options = []): Model;",
"public function getDrawReward()\n {\n return $this->get(self::_DRAW_REWARD);\n }",
"public function get_desired_types();",
"function list_revenue_type() \n\t\t{\n\t\t\t\n\t\t\t$this->db->order_by('revenue_type_value','ASC');\n\t\t\t\n\t\t\t$query\t\t\t\t\t=\t\t$this->db->get($this->table_name);\n\t\t\t\n\t\t\treturn $query->result();\n\t\t\t\n\t\t}",
"public function reward(): Collection\n {\n return $this->get('api/blocks/getReward');\n }",
"public static function get_possible_types()\n {\n }",
"public static function get_possible_types()\n {\n }",
"public static function get_possible_types()\n {\n }",
"public static function getTypes();",
"public function get_menu_type(){\n $this->db->where('user_role_id', 4);\n $menu_types = parent::get();\n return $menu_types;\n }",
"public function getRewardId()\n {\n return $this->reward_id;\n }",
"public function getRemediationType()\n {\n return $this->remediation_type;\n }",
"public function getActivityReward()\n {\n return $this->get(self::_ACTIVITY_REWARD);\n }",
"static public function getTypeList()\n\t{\n\t\t/*\n\t\t * Searches the Type folder for all different tournament types.\n\t\t * This is used for when a user is creating a tournament and want to select what type to use\n\t\t * The array is set up like so:\n\t\t * key: class name for tourney type (get_class() could be useful)\n\t\t * value: result of object getName()\n\t\t */\n\t\t$retarray = array();\n\t\tif ($dir = scandir(APPLICATION_PATH . '/models/VictoryCondition')) {\n\t\t\tforeach ($dir as $file) {\n\t\t\t\tif ($file != 'Abstract.php' && strtolower(substr($file, strrpos($file, '.') + 1)) == 'php') {\n\t\t\t\t\t$classname = 'Model_VictoryCondition_' . substr($file, 0, strrpos($file, '.'));\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (class_exists($classname)) {\n\t\t\t\t\t\t\t$instance = new $classname;\n\t\t\t\t\t\t\tif ($instance instanceof Model_VictoryCondition_Abstract) {\n\t\t\t\t\t\t\t\t$retarray[$classname] = $instance->getTypeName();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception $e) {}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn $retarray;\n\t}",
"public function get_types() {\n\n $q = $this->db->query('SELECT DISTINCT `rgl_type` , `vtr_type` \n FROM `t_reglements` \n LEFT JOIN `v_types_reglements` ON `vtr_id` = `rgl_type` ');\n if ($q->num_rows() > 0) {\n $resultat = $q->result();\n return $resultat;\n }\n else {\n return array();\n }\n }",
"public function getItemTypes1()\n {\n return $this->hasMany(ItemType::className(), ['inventory_gl_acc_id' => 'account_id']);\n }",
"public function getRelatedAudienceTypes() {\n\t\t$blocks = $this->Blocks();\n\t\t$relatedAudienceTypes = array();\n\t\tforeach($blocks as $block) {\n\t\t\tif(!in_array($block->AudienceType, $relatedAudienceTypes)) {\n\t\t\t\tarray_push($relatedAudienceTypes, $block->AudienceType);\n\t\t\t}\n\t\t}\n\t\treturn $relatedAudienceTypes;\n\t}",
"protected function rewards(){\n $return = [];\n //$rewards = $this->settings->load(['param = ?' , 'rewards']);\n $rewards = $this->site_settings['rewards'];\n foreach(explode(\",\" , $rewards) as $reward){\n list($percent , $val) = explode(\"*\" , $reward);\n $return[] = ['satoshi' => $val , 'chance' => $percent];\n }\n return $return;\n }",
"function get_all_types()\n {\n return $this->db->get('card_types')->result();\n }",
"public static function get_meta_type();",
"function GetHuntRewards () {\n return unserialize($this->hunt_rewards);\n }",
"public function getStayReward()\n {\n return $this->get(self::_STAY_REWARD);\n }",
"public function getTypesDecision()\n\t{\n\t\t$this->ensureTypeDecisionLoaded();\n\t\treturn new GmthBridgeIterator(new \\ArrayIterator($this->_types_decision),\n\t\t\t$this, '\\PhpExtended\\Gmth\\GmthBridgeTypeDecision');\n\t}",
"function getTypes() {\n\t\treturn $this->types;\n\t}",
"public static function getAll()\r\n {\r\n return self::$typeRegistry;\r\n }",
"public function get_type();",
"public function getEnumTypes()\n {\n return $this->postRequest('GetEnumTypes');\n }",
"public function getReturnCreditType() {\r\n\t\t$type = array();\r\n\t\t\t$type[1] = array('id' => 1, 'name' => 'Store Credit');\r\n\t\t\t$type[2] = array('id' => 2, 'name' => 'Cash');\r\n\t\treturn $type; //array\r\n\t}",
"public function getTypes(): array;",
"public function getTypes(): array;",
"public function getLoanType()\n\t\t{\n\t\t\t$loan_type_id = $this->getLoanTypeId();\n\t\t\t$ref_list = ECash::getFactory()->getReferenceList('LoanType');\n\t\t\treturn $ref_list[$loan_type_id];\n\t\t}",
"public function types() {\n return $this->hasMany(Type::class);\n }",
"public function betTypes()\n {\n return [\n self::TYPE_STRAIGHT,\n self::TYPE_RAMBLED,\n ];\n }",
"public function all()\n {\n return IncomeTypes::all();\n }",
"public static function getTypes()\n {\n return [\n ModelRegistry::TRANSACTION => ModelRegistry::getById(ModelRegistry::TRANSACTION)->label,\n ModelRegistry::PRODUCT => ModelRegistry::getById(ModelRegistry::PRODUCT)->label,\n ];\n }",
"public function getItemTypes2()\n {\n return $this->hasMany(ItemType::className(), ['cogs_gl_acc_id' => 'account_id']);\n }",
"public function get_types()\n {\n }",
"public function getTypes()\n {\n return get_object_vars($this);\n }",
"public function getAllTypes()\n {\n $this->db->select('*', FALSE);\n $this->db->from('item_type');\n $query = $this->db->get();\n return $query->result();\n }",
"public function getItemTypes()\n {\n return $this->hasMany(ItemType::className(), ['sales_gl_acc_id' => 'account_id']);\n }",
"public function rateble()\n {\n return $this->morphTo();\n }",
"public function setOperationPrimeRRewardTypeId($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_numeric($v)) {\n $v = (int) $v;\n }\n }\n if ($this->operation_prime_r_reward_type_id !== $v) {\n $this->operation_prime_r_reward_type_id = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OPERATION_PRIME_R_REWARD_TYPE_ID;\n }\n\n if ($this->aRRewardTypes !== null && $this->aRRewardTypes->getRRewardTypeId() !== $v) {\n $this->aRRewardTypes = null;\n }\n\n\n return $this;\n }",
"static public function get_restore_types() {\n return array(\n 'default' => get_string('default', 'grades'),\n 'ignore' => get_string('ignore', 'grades'),\n 'username' => get_string('username', 'moodle'),\n 'fullnameuser' => get_string('fullnameuser', 'moodle'), // User full name\n 'groupname' => get_string('groupname', 'group'),\n 'activityname' => get_string('basicltiname', 'lti'), // Moodle >= 2.2\n 'coursename' => get_string('coursename', 'grades'),\n );\n }",
"protected function _get_card_types()\n\t{\n\t\treturn mod('card_type')->get_list(array('status' => 1));\n\t}",
"public function getRewards()\r\n {\r\n return Controllers\\Rewards::getInstance();\r\n }",
"public function getTypes()\n {\n return $this->getData(self::TYPES);\n }",
"public function getTermRecordTypes() {\n \treturn $this->manager->getTermRecordTypes();\n\t}",
"public function storeRequest()\n {\n return StoreGenre::class;\n }",
"public function getWinnerType()\n {\n return $this->winnerType;\n }",
"public static function getTypes()\n {\n $sql = 'SELECT * FROM location_type';\n $command = Yii::app()->db->createCommand($sql);\n return $command->queryAll(true);\n }",
"function recharge_type() {\n\t\t$recharge_category_id = $_POST['recharge_category_id'];\n\t\tif (!empty($recharge_category_id)) {\n\t\t\t$category = $this -> conn -> get_table_field_doubles('recharge_type', 'recharge_type_status', 1, 'recharge_category_id', $recharge_category_id);\n\t\t\tforeach ($category as $key => $value) {\n\n\t\t\t\t$name = $value['recharge_type'];\n\t\t\t\t$category_id = $value['recharge_type_id'];\n\n\t\t\t\t$response[] = array('recharge_type_id' => $category_id, 'recharge_type' => $name, 'recharge_category_id' => $recharge_category_id);\n\t\t\t}\n\t\t\tif (!empty($response)) {\n\t\t\t\t$post = array(\"status\" => \"true\", 'recharge_category_id' => $recharge_category_id, \"message\" => $response);\n\t\t\t} else {\n\t\t\t\t$post = array('status' => \"false\", 'recharge_category_id' => $recharge_category_id, \"message\" => \"No Record Found\");\n\t\t\t}\n\n\t\t} else {\n\t\t\t$post = array('status' => \"false\", \"message\" => \"Missing parameter\", 'recharge_category_id' => $recharge_category_id);\n\t\t}\n\t\techo $this -> json($post);\n\t}",
"function getType() ;",
"function getType() ;",
"function getType() ;",
"function get_requests_types(){ \n $query = $this->db->get('type_request');\n return($query->result());\n }",
"protected abstract function get_meta_type();",
"public static function getGrandTypes();",
"public static function get_type_registry()\n {\n }",
"public function getTypes()\n {\n return $this->types;\n }",
"public function getTypes()\n {\n return $this->types;\n }",
"public function type()\n {\n return $this->hasOne(Type::class);\n }",
"public function getResourceRelationshipType()\n {\n return $this->resourceRelationshipType;\n }",
"public function ChallengeRate()\n {\n return $this->morphMany(Rate::class, 'rateable');\n }",
"public static function types()\n\t{\n\t\t$states = array(\n\t\t\t'blog' => __('Blog'),\n\t\t\t'page' => __('Page'),\n\t\t\t'user' => __('User')\n\t\t);\n\n\t\t$values = Module::action('gleez_types', $states);\n\n\t\treturn $values;\n\t}",
"function grabTypes(){\n\t\t$d=$this->find('all',array('order'=>array('id ASC')));\n\t\treturn $d;\n\t}",
"public function getBetTypes()\n {\n return $this->betTypes;\n }",
"public static function getRecurrentTransactionTypes()\n {\n return [\n Types::INIT_RECURRING_SALE,\n Types::INIT_RECURRING_SALE_3D,\n Types::SDD_INIT_RECURRING_SALE\n ];\n }",
"public function query()\n {\n return BloodType::query();\n }",
"public function type()\n {\n return $this->hasOne('App\\Type', 'question_type');\n }",
"protected function loadTypes()\n {\n return array(\n new RecaptchaType(\n $this->app['salberts_recaptcha2.public_key'],\n $this->app['salberts_recaptcha2.enabled'],\n $this->app['salberts_recaptcha2.ajax'],\n $this->app['salberts_recaptcha2.locale_key']\n )\n );\n }",
"public function get_type_list($survey_type_id=0)\r\n\t{\r\n\t\t$query = \"SELECT k.* FROM GES_M_kuesioner k WHERE k.survey_type_id = $survey_type_id \";\r\n\t\treturn $this->survey->query($query)->result();\r\n\r\n\t}",
"function currentTypes($id){\n\t$term_id = get_the_terms($id, 'marcato_type');\n\t$terms = \"\";\n\tforeach($term_id as $genre){\n\t//\tprint_r($genre->name);\n\t\t$terms .= strtolower($genre->name) . \" \";\n\t}\n\n\treturn $terms;\n}",
"public static function getAllTypes() {\r\n\t\t$class_name = get_class(new static());\r\n\t\treturn isset(self::$all_role_types[$class_name]) ? self::$all_role_types[$class_name] : [];\r\n\t}",
"public function getTypesItems()\n {\n return self::$_types;\n }",
"public function getTermSearchRecordTypes() {\n \treturn $this->manager->getTermSearchRecordTypes();\n\t}",
"function getType();",
"function getType();"
] | [
"0.62957644",
"0.6129088",
"0.6125551",
"0.6125551",
"0.6125551",
"0.60111535",
"0.5761432",
"0.564249",
"0.55206215",
"0.545008",
"0.5416678",
"0.53433645",
"0.53194183",
"0.53014135",
"0.528504",
"0.528504",
"0.528504",
"0.528504",
"0.5233182",
"0.5221547",
"0.5192538",
"0.51689446",
"0.5144767",
"0.5143796",
"0.51264334",
"0.5118873",
"0.5109296",
"0.51024354",
"0.50977695",
"0.50977695",
"0.50977695",
"0.509297",
"0.5077784",
"0.5076696",
"0.506866",
"0.50545233",
"0.50455874",
"0.5035889",
"0.5000645",
"0.4985508",
"0.49763677",
"0.49757025",
"0.4973947",
"0.49729586",
"0.49729362",
"0.49710095",
"0.4964553",
"0.49572074",
"0.49547416",
"0.49513134",
"0.49309775",
"0.49286613",
"0.49286613",
"0.49255514",
"0.49178064",
"0.48967633",
"0.48871857",
"0.48834568",
"0.48817956",
"0.48816484",
"0.48725182",
"0.48691636",
"0.48638958",
"0.48513275",
"0.48497012",
"0.48473918",
"0.48454267",
"0.48449856",
"0.48349088",
"0.48319831",
"0.48185337",
"0.48169667",
"0.48113987",
"0.48069024",
"0.4799097",
"0.47984168",
"0.47982123",
"0.47960126",
"0.4795347",
"0.47889382",
"0.47870982",
"0.4783223",
"0.4783223",
"0.4781809",
"0.47811484",
"0.47795856",
"0.47778657",
"0.47771358",
"0.47737312",
"0.47676304",
"0.47477996",
"0.4747422",
"0.4744926",
"0.47440705",
"0.47203434",
"0.4713793",
"0.47108963",
"0.47076157",
"0.4701989",
"0.4701989"
] | 0.6171596 | 1 |
Declares an association between this object and a RRewardExpeditionModes object. | public function setRRewardExpeditionModes(RRewardExpeditionModes $v = null)
{
if ($v === null) {
$this->setOperationPrimeRRewardExpeditionModeId(NULL);
} else {
$this->setOperationPrimeRRewardExpeditionModeId($v->getRRewardExpeditionModeId());
}
$this->aRRewardExpeditionModes = $v;
// Add binding for other direction of this n:n relationship.
// If this object has already been added to the RRewardExpeditionModes object, it will not be re-added.
if ($v !== null) {
$v->addOperationPrimes($this);
}
return $this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function setOperationPrimeRRewardExpeditionModeId($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_numeric($v)) {\n $v = (int) $v;\n }\n }\n if ($this->operation_prime_r_reward_expedition_mode_id !== $v) {\n $this->operation_prime_r_reward_expedition_mode_id = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OPERATION_PRIME_R_REWARD_EXPEDITION_MODE_ID;\n }\n\n if ($this->aRRewardExpeditionModes !== null && $this->aRRewardExpeditionModes->getRRewardExpeditionModeId() !== $v) {\n $this->aRRewardExpeditionModes = null;\n }\n\n\n return $this;\n }",
"public function getOperationPrimeRRewardExpeditionModeId()\n {\n\n return $this->operation_prime_r_reward_expedition_mode_id;\n }",
"public function getRRewardExpeditionModes(PropelPDO $con = null, $doQuery = true)\n {\n if ($this->aRRewardExpeditionModes === null && ($this->operation_prime_r_reward_expedition_mode_id !== null) && $doQuery) {\n $this->aRRewardExpeditionModes = RRewardExpeditionModesQuery::create()->findPk($this->operation_prime_r_reward_expedition_mode_id, $con);\n /* The following can be used additionally to\n guarantee the related object contains a reference\n to this object. This level of coupling may, however, be\n undesirable since it could result in an only partially populated collection\n in the referenced object.\n $this->aRRewardExpeditionModes->addOperationPrimess($this);\n */\n }\n\n return $this->aRRewardExpeditionModes;\n }",
"public function __construct(Expedition $expedition)\n {\n $this->expedition = $expedition;\n }",
"public function getMode()\n {\n return $this->hasOne(MsMode::className(), ['id' => 'mode_id']);\n }",
"public function setModeReglement($modeReglement) {\n $this->modeReglement = $modeReglement;\n return $this;\n }",
"function setInvitationMode($invitation_mode = 0) \n\t{\n\t\t$this->invitation_mode = $invitation_mode;\n }",
"public function setRRewardTypes(RRewardTypes $v = null)\n {\n if ($v === null) {\n $this->setOperationPrimeRRewardTypeId(NULL);\n } else {\n $this->setOperationPrimeRRewardTypeId($v->getRRewardTypeId());\n }\n\n $this->aRRewardTypes = $v;\n\n // Add binding for other direction of this n:n relationship.\n // If this object has already been added to the RRewardTypes object, it will not be re-added.\n if ($v !== null) {\n $v->addOperationPrimes($this);\n }\n\n\n return $this;\n }",
"function setInvitationAndMode($invitation = 0, $invitation_mode = 0)\n\t{\n\t\t$this->invitation_mode = $invitation_mode;\n\t\t$this->setInvitation($invitation);\n\t}",
"private function setModes(){\n\t\t\t\n\t\t\t$this->query_modes = array(\t\"version\"\t\t\t=> \"getVersion\",\n\t\t\t\t\t\t\t\t\t\t\"synsid_by_word\"\t=> \"getSynsetIds\",\n\t\t\t\t\t\t\t\t\t\t\"synset_by_id\"\t\t=> \"getSynset\",\n\t\t\t\t\t\t\t\t\t\t\"sense_by_word\"\t\t=> \"getSenses\",\n\t\t\t\t\t\t\t\t\t\t\"synsid_by_resid\"\t=> \"getSynsetIdsFromResourceID\",\n\t\t\t\t\t\t\t\t\t\t\"edge_by_synsid\"\t=> \"getEdges\"\n\t\t\t\t\t\t\t\t\t);\n\t\t}",
"public function setMode(array $options)\n {\n $this->soap(\"AVTransport\", \"SetPlayMode\", [\n \"NewPlayMode\" => Helper::setMode($options),\n ]);\n\n return $this;\n }",
"public function modes()\n\t{\n\t\t// belongsTo(RelatedModel, foreignKey = mode_id, keyOnRelatedModel = id)\n\t\treturn $this->belongsTo(Mode::class);\n\t}",
"public function editionMode() {\n\t\tif (isset($_SESSION[\"FINE_MESSAGE_EDITION_MODE\"])) {\n\t\t\t$this->isMessageEditionMode = true;\n\t\t}\n\t\t$this->content->addFile('../utils.i18n.fine/src/views/enableDisableEdition.php', $this);\n\t\t$this->template->toHtml();\n\t}",
"public function setDefinition(LoyaltyProgramRewardDefinition $definition): void\n {\n $this->definition = $definition;\n }",
"public function setReward(Down_ExcavateReward $value)\n {\n return $this->set(self::_REWARD, $value);\n }",
"public function setReward(Down_ExcavateReward $value)\n {\n return $this->set(self::_REWARD, $value);\n }",
"public function setRemediation($var)\n {\n GPBUtil::checkString($var, True);\n $this->remediation = $var;\n\n return $this;\n }",
"public function editions()\n {\n return $this->belongsToMany('WhereYouLeftOff\\Edition');\n }",
"public function setBlendMode($blendMode) {}",
"public function setOperationPrimeRRewardTypeId($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_numeric($v)) {\n $v = (int) $v;\n }\n }\n if ($this->operation_prime_r_reward_type_id !== $v) {\n $this->operation_prime_r_reward_type_id = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OPERATION_PRIME_R_REWARD_TYPE_ID;\n }\n\n if ($this->aRRewardTypes !== null && $this->aRRewardTypes->getRRewardTypeId() !== $v) {\n $this->aRRewardTypes = null;\n }\n\n\n return $this;\n }",
"public function declineMentorshipSession($mentorshipSessionId, $role, $id, $email) {\n $statusToSet = -1;\n $invitedPerson = null;\n $mentorshipSession = $this->getMentorshipSession($mentorshipSessionId);\n if($role === 'mentee') {\n $invitedPerson = $mentorshipSession->mentee;\n // set to cancelled by mentee if mentor has accepted or not responded yet\n if(in_array($mentorshipSession->status_id, [2, 4]) !== false)\n $statusToSet = 12;\n } else if($role === 'mentor') {\n $invitedPerson = $mentorshipSession->mentor;\n // set to cancelled by mentor if mentee has accepted or not responded yet\n if(in_array($mentorshipSession->status_id, [2, 3]) !== false)\n $statusToSet = 13;\n }\n if($statusToSet !== -1 && $invitedPerson->id == $id && $invitedPerson->email === $email) {\n $this->editMentorshipSession([\n 'status_id' => $statusToSet, 'mentorship_session_id' => $mentorshipSessionId\n ]);\n // if session is cancelled by mentee make available only the mentor and set the mentee's status to rejected,\n // else if session is cancelled by mentor make the mentor unavailable\n // else make both available\n if($statusToSet === 12) {\n $this->setMentorshipSessionMentorStatusToAvailable($mentorshipSession->mentor->id);\n $this->setMentorshipSessionMenteeStatusToRejected($mentorshipSession->mentee->id);\n } else if($statusToSet === 13) {\n $this->setMentorshipSessionMentorStatusToNotAvailable($mentorshipSession->mentor->id);\n $this->setMentorshipSessionMenteeStatusToAvailable($mentorshipSession->mentee->id);\n } else { // TODO: this was created when the account manager could decline to manage a match (maybe we do not need it anymore)\n $this->setMentorshipSessionMentorAndMenteeStatusesToAvailable(\n $mentorshipSession->mentor->id, $mentorshipSession->mentee->id\n );\n }\n return true;\n } else {\n return false;\n }\n }",
"private function setModes(){\n\t\t\t\n\t\t\t$this->query_modes = array(\t\"detect\"\t\t\t=> \"Detect\",\n\t\t\t\t\t\t\t\t\t\t\"translate\"\t\t\t=> \"Translate\",\n\t\t\t\t\t\t\t\t\t\t\"languages\"\t\t\t=> \"getLanguagesForTranslations\",\n\t\t\t\t\t\t\t\t\t\t\"translates\"\t\t=> \"GetTranslations\"\n\t\t\t\t\t\t\t\t\t);\n\t\t}",
"function _exp_mode($mode=NULL){\n $mode = 'exp_' . nz($mode,$this->exp_mode_default);\n return method_exists($this,$mode)?$mode:FALSE;\n }",
"public function testComAdobeCqSocialEnablementResourceEndpointsImplEnablementResou()\n {\n $client = static::createClient();\n\n $path = '/system/console/configMgr/com.adobe.cq.social.enablement.resource.endpoints.impl.EnablementResourceModelOperationService';\n\n $crawler = $client->request('POST', $path);\n }",
"function setMode($mode) {\n\t\t$this->_mode = $mode;\n\t}",
"function setMode($mode) {\n\t\t$this->_mode = $mode;\n\t}",
"public function religion()\n {\n return $this->hasOne(Religion::class , 'id' , 'religions_id');\n }",
"function eZEnhancedObjectRelationType()\n {\n $this->eZDataType( EZ_DATATYPESTRING_ENHANCED_OBJECT_RELATION, ezi18n( 'kernel/classes/datatypes', \"Enhanced Object relation\", 'Datatype name' ),\n array( 'serialize_supported' => true ) );\n }",
"public function getRealestateType()\n {\n return $this->hasOne(RealEstateType::className(), ['id' => 'realestate_type_id']);\n }",
"public function setOptionalMode($var)\n {\n GPBUtil::checkString($var, True);\n $this->optional_mode = $var;\n\n return $this;\n }",
"public function getInventoryMode();",
"function _set_treated_expedition_extrafield($idexpe, $shipmentEntity) {\n\tglobal $db, $user, $conf;\n\n\t$sql = \"select entity from \".MAIN_DB_PREFIX.\"expedition where rowid =\".$idexpe;\n\t$re = $db->query($sql);\n $obj = $db->fetch_object($re);\n\n // var_dump($obj->entity);\n\n // var_dump($conf->entity,$shipmentEntity);\n\t$backEntity = $conf->entity;\n\n\t$conf->entity = $obj->entity;\n\n\n\t$currentExp = new Expedition($db);\n\t$res = $currentExp->fetch(intval($idexpe));\n\n\n\n // var_dump($conf->entity, $res, $idexpe);exit();\n\n\t$extra = new ExtraFields($db);\n\t$resultExtra = $extra->fetch_name_optionals_label($currentExp->table_element);\n\t//var_dump($resultExtra);exit();\n\tif($resultExtra) {\n\t\t$currentExp->array_options['options_customer_treated_shipment'] = 1;\n\t\t$currentExp->updateExtraField('customer_treated_shipment');\n\t}else {\n\t\tdol_syslog(__METHOD__.' $resultExtra='.var_export($resultExtra,true), LOG_ERR);\n\t}\n\n\t$conf->entity = $backEntity;\n //var_dump($conf->entity);exit();\n}",
"public function setMode($mode) {\n $this->mode = $mode;\n }",
"public function setModele($modele)\n{\n$this->modele = $modele;\n\nreturn $this;\n}",
"public function setMode($mode)\n {\n $this->mode = $mode;\n return $this;\n }",
"public function getModeReglement() {\n return $this->modeReglement;\n }",
"public function mode($mode, $ident, $options = array()) {\n if ($mode == 'value' && is_integer($ident)) {\n $ident = $this->field_name($ident);\n }\n $this->mode = $mode;\n $this->mode_ident = $ident;\n $this->mode_options = $options;\n return $this;\n }",
"public function setMode($mode = self::MODE_SINGLE) {\n $this->mode = $mode;\n\n return $this;\n }",
"function setReverseMode(){\n\t\t$this->mode = SUSHEE_DEP_REVERSE_MODE;\n\t}",
"public function offers() {\n return $this->hasMany('Rockit\\Models\\Offer');\n }",
"public function setMode($mode) {\n\t\t$editMode = ($mode==\"on\")?true:false;\n\t\t//SessionUtils::setMessageEditionMode($editMode);\n\t\tif ($editMode) {\n\t\t\t$_SESSION[\"FINE_MESSAGE_EDITION_MODE\"] = true;\n\t\t\t$this->isMessageEditionMode = true;\n\t\t} else {\n\t\t\tunset($_SESSION[\"FINE_MESSAGE_EDITION_MODE\"]);\n\t\t}\n\n\t\t$this->content->addFile('../utils.i18n.fine/src/views/enableDisableEdition.php', $this);\n\t\t$this->template->toHtml();\n\t}",
"public function getIddefActividad()\n {\n return $this->hasOne(RelActividadRestriccion::className(), ['iddef_actividad' => 'iddef_actividad']);\n }",
"public function getAssociateMode()\n {\n return $this->associateMode;\n }",
"public function exchangeRate()\n {\n return $this->belongsTo(ExchangeRate::class);\n }",
"public function setMode($mode)\n {\n if (in_array($mode, $this->modeList)) {\n $this->mode = $mode;\n }\n\n return $this;\n }",
"public function __construct($mode) {\n $this->mode = $mode;\n }",
"public function equip_type()\n {\n return $this->hasOne(ReferenceProperty::class, 'id', 'equip_type_reference_id');\n }",
"public static function agenda() {return new ScheduleViewMode(8);}",
"abstract function is_activation_mode();",
"public function add_modes($newmodes)\r\n\t{\r\n\t\t// not yet implemented\r\n\t}",
"public function getRewardId()\n {\n return $this->reward_id;\n }",
"public function setMode(string $mode)\n {\n $this->mode = $mode;\n return $this;\n }",
"public function declineMentorshipSession($mentorshipSessionId, $role, $id, $email) {\n $statusToSet = -1;\n $invitedPerson = null;\n $mentorshipSession = $this->getMentorshipSession($mentorshipSessionId);\n if($role === 'mentee') {\n $invitedPerson = $mentorshipSession->mentee;\n // set to cancelled by mentee if mentor has accepted or not responded yet\n if(in_array($mentorshipSession->status_id, [2, 4]) !== false)\n $statusToSet = 12;\n } else if($role === 'mentor') {\n $invitedPerson = $mentorshipSession->mentor;\n // set to cancelled by mentor if mentee has accepted or not responded yet\n if(in_array($mentorshipSession->status_id, [2, 3]) !== false)\n $statusToSet = 13;\n }\n if($statusToSet !== -1 && $invitedPerson->id == $id && $invitedPerson->email === $email) {\n $this->editMentorshipSession([\n 'status_id' => $statusToSet, 'mentorship_session_id' => $mentorshipSessionId\n ]);\n //mentor and mentee should become available again\n $this->setMentorshipSessionMentorAndMenteeStatusesToAvailable($mentorshipSession->mentor->id, $mentorshipSession->mentee->id);\n return true;\n } else {\n return false;\n }\n }",
"public function setMode($mode)\n {\n $this->mode = $mode;\n }",
"public function GuideExpensesRestaurants()\n {\n return $this->hasMany('App\\Models\\GuideExpensesRestaurants',\"restaurant_id\");\n }",
"public function exhibitions() {\n return $this->hasMany(Exhibition::class);\n }",
"public function getDefinition(): LoyaltyProgramRewardDefinition\n {\n return $this->definition;\n }",
"public function getOperationPrimeRRewardTypeId()\n {\n\n return $this->operation_prime_r_reward_type_id;\n }",
"public function role() {\n\t\treturn $this->has_one('Role_Assignment', 'user_id');\n\t}",
"public function set(): BelongsTo\n {\n return $this->belongsTo(RuneSet::class);\n }",
"public function setMode(?int $mode): self\n {\n $this->mode = $mode;\n\n return $this;\n }",
"function activate_acquaint_crm_epl() {\n\trequire_once ACQUAINT_CRM_EPL_DIR . 'includes/models/setup/AcquaintEplActivator.php';\n\tAcquaintEplActivator::activate();\n}",
"public function setDrawRankReward(Down_DrawRankReward $value)\n {\n return $this->set(self::_DRAW_RANK_REWARD, $value);\n }",
"public function setPreviewDetails(\\DedexBundle\\Entity\\Ern41\\SoundRecordingPreviewDetailsType $previewDetails)\n {\n $this->previewDetails = $previewDetails;\n return $this;\n }",
"public function setRRewardTransporters(RRewardTransporters $v = null)\n {\n if ($v === null) {\n $this->setOperationPrimeRRewardTransporterId(NULL);\n } else {\n $this->setOperationPrimeRRewardTransporterId($v->getRRewardTransporterId());\n }\n\n $this->aRRewardTransporters = $v;\n\n // Add binding for other direction of this n:n relationship.\n // If this object has already been added to the RRewardTransporters object, it will not be re-added.\n if ($v !== null) {\n $v->addOperationPrimes($this);\n }\n\n\n return $this;\n }",
"public function set_restriction_mode( $mode ) {\n\n\t\tif ( array_key_exists( $mode, $this->get_restriction_modes() ) ) {\n\n\t\t\tupdate_option( $this->restriction_mode_option, $mode );\n\n\t\t\t$this->restriction_mode = $mode;\n\t\t}\n\t}",
"public function getMode();",
"public function getMode();",
"public function getMode();",
"public function getMode();",
"public function getRole()\n {\n return $this->hasOne(ParticulerTypes::className(), ['ID' => 'RoleID']);\n }",
"public function offer() {\n return $this->hasOne('Modules\\Admin\\Models\\Offer', 'id', 'offer_id');\n }",
"public function setMode($mode = 'create')\n {\n $this->mode = $mode;\n }",
"public function setDrawReward(Down_TbcDrawReward $value)\n {\n return $this->set(self::_DRAW_REWARD, $value);\n }",
"public function setWorkflowMode( string $mode=c\\T::NONE, WorkflowDefinition $wd=NULL ) : Asset\n {\n if( !c\\WorkflowModeValues::isWorkflowMode( $mode ) )\n throw new e\\UnacceptableWorkflowModeException( \n S_SPAN . \"The workflow mode $mode is unacceptable.\" . E_SPAN );\n \n if( $mode == self::WORKFLOW_MODE_FACTORY )\n {\n if( $wd == NULL )\n throw new e\\NullAssetException( \n S_SPAN . c\\M::NULL_WORKFLOW_DEFINITION . E_SPAN );\n else\n {\n $this->getProperty()->workflowDefinitionId = $wd->getId();\n $this->getProperty()->workflowDefinitionPath = $wd->getPath();\n }\n }\n else\n {\n $this->getProperty()->workflowDefinitionId = NULL;\n $this->getProperty()->workflowDefinitionPath = NULL;\n }\n \n $this->getProperty()->workflowMode = $mode;\n return $this;\n }",
"public function emotion()\n {\n return $this->belongsTo(Emotion::class);\n }",
"public function ChallengeRate()\n {\n return $this->morphMany(Rate::class, 'rateable');\n }",
"public function event_mode($who, $modes)\r\n\t{\r\n\r\n\t}",
"public function setMode($val)\n {\n $this->_propDict[\"mode\"] = $val;\n return $this;\n }",
"public function setMode($mode)\n {\n $this->options['mode'] = $mode ?? $this->options['mode'];\n return $this;\n }",
"public function initAvailableModes(string $mode_methods_name_suffix): self\n {\n if (!isset($this->available_modes)) {\n $this->setAvailableModes($this->getModesByMethodsName($mode_methods_name_suffix));\n }\n return $this;\n }",
"public function addCap(){\n\t\tif (current_user_can('editor')) {\n\t\t\t$this->role_object->add_cap('edit_theme_options');\n\n\t\t\t$this->role_object->add_cap( 'read' );\n\n\t\t\t$this->role_object->add_cap( 'read_card');\n\t\t\t$this->role_object->add_cap( 'read_private_cards' );\n\t\t\t$this->role_object->add_cap( 'edit_card' );\n\t\t\t$this->role_object->add_cap( 'edit_cards' );\n\t\t\t$this->role_object->add_cap( 'edit_others_cards' );\n\t\t\t$this->role_object->add_cap( 'edit_published_cards' );\n\t\t\t$this->role_object->add_cap( 'publish_cards' );\n\t\t\t$this->role_object->add_cap( 'delete_card' );\n\t\t\t$this->role_object->add_cap( 'delete_others_cards' );\n\t\t\t$this->role_object->add_cap( 'delete_private_cards' );\n\t\t\t$this->role_object->add_cap( 'delete_published_cards' );\n\t\t\t$this->role_object->add_cap( 'manage_cards' );\n\t\t\t$this->role_object->add_cap( 'edit_cards' );\n\t\t\t$this->role_object->add_cap( 'delete_cards' );\n\t\t\t$this->role_object->add_cap( 'assign_cards' );\n\n\t\t\t$this->role_object->add_cap( 'read_contato');\n\t\t\t$this->role_object->add_cap( 'read_private_contatos' );\n\t\t\t$this->role_object->add_cap( 'edit_contato' );\n\t\t\t$this->role_object->add_cap( 'edit_contatos' );\n\t\t\t$this->role_object->add_cap( 'edit_others_contatos' );\n\t\t\t$this->role_object->add_cap( 'edit_published_contatos' );\n\t\t\t$this->role_object->add_cap( 'publish_contatos' );\n\t\t\t$this->role_object->add_cap( 'delete_contato' );\n\t\t\t$this->role_object->add_cap( 'delete_others_contatos' );\n\t\t\t$this->role_object->add_cap( 'delete_private_contatos' );\n\t\t\t$this->role_object->add_cap( 'delete_published_contatos' );\n\t\t\t$this->role_object->add_cap( 'manage_contatos' );\n\t\t\t$this->role_object->add_cap( 'edit_contatos' );\n\t\t\t$this->role_object->add_cap( 'delete_contatos' );\n\t\t\t$this->role_object->add_cap( 'assign_contatos' );\n\n\t\t\t$this->role_object->add_cap( 'read_botao');\n\t\t\t$this->role_object->add_cap( 'read_private_botoes' );\n\t\t\t$this->role_object->add_cap( 'edit_botao' );\n\t\t\t$this->role_object->add_cap( 'edit_botoes' );\n\t\t\t$this->role_object->add_cap( 'edit_others_botoes' );\n\t\t\t$this->role_object->add_cap( 'edit_published_botoes' );\n\t\t\t$this->role_object->add_cap( 'publish_botoes' );\n\t\t\t$this->role_object->add_cap( 'delete_botao' );\n\t\t\t$this->role_object->add_cap( 'delete_others_botoes' );\n\t\t\t$this->role_object->add_cap( 'delete_private_botoes' );\n\t\t\t$this->role_object->add_cap( 'delete_published_botoes' );\n\t\t\t$this->role_object->add_cap( 'manage_botoes' );\n\t\t\t$this->role_object->add_cap( 'edit_botoes' );\n\t\t\t$this->role_object->add_cap( 'delete_botoes' );\n\t\t\t$this->role_object->add_cap( 'assign_botoes' );\n\n\t\t\t$this->role_object->add_cap( 'read_concurso');\n\t\t\t$this->role_object->add_cap( 'read_private_concursos' );\n\t\t\t$this->role_object->add_cap( 'edit_concurso' );\n\t\t\t$this->role_object->add_cap( 'edit_concursos' );\n\t\t\t$this->role_object->add_cap( 'edit_others_concursos' );\n\t\t\t$this->role_object->add_cap( 'edit_published_concursos' );\n\t\t\t$this->role_object->add_cap( 'publish_concursos' );\n\t\t\t$this->role_object->add_cap( 'delete_concurso' );\n\t\t\t$this->role_object->add_cap( 'delete_others_concursos' );\n\t\t\t$this->role_object->add_cap( 'delete_private_concursos' );\n\t\t\t$this->role_object->add_cap( 'delete_published_concursos' );\n\t\t\t$this->role_object->add_cap( 'manage_concursos' );\n\t\t\t$this->role_object->add_cap( 'edit_concursos' );\n\t\t\t$this->role_object->add_cap( 'delete_concursos' );\n\t\t\t$this->role_object->add_cap( 'assign_concursos' );\n\n\t\t\t$this->role_object->add_cap( 'manage_imagens' );\n\t\t\t$this->role_object->add_cap( 'edit_imagens' );\n\t\t\t$this->role_object->add_cap( 'delete_imagens' );\n\t\t\t$this->role_object->add_cap( 'assign_imagens' );\n\t\t\t$this->role_object->add_cap( 'read_tutoriais');\n\n\t\t}\n\t}",
"public function SetMode($mode)\n\t{\n\t\t$this->mode = $mode;\n\t}",
"function setMode($mode)\n {\n $this->_mcryptMode = $mode;\n }",
"public function __construct()\n {\n register_activation_hook(__FILE__, array(&$this, 'rnb_init_custom_db_table'));\n add_action('after_setup_theme', array($this, 'rnb_include_template_functions'), 11);\n add_action('plugins_loaded', array($this, 'redq_rental_set_plugins_data'), 1);\n add_action('plugins_loaded', array($this, 'redq_rental_define_constants'), 1);\n add_action('plugins_loaded', array($this, 'redq_rental_set_includes'), 1);\n add_action('plugins_loaded', array($this, 'redq_rental_load_includes'), 1);\n add_action('woocommerce_redq_rental_add_to_cart', array($this, 'redq_add_to_cart'), 30);\n add_filter('woocommerce_integrations', array($this, 'redq_rental_include_integration'));\n add_filter('woocommerce_get_settings_pages', array($this, 'redq_rental_get_settings_pages'));\n add_action('plugins_loaded', array($this, 'redq_support_multilanguages'));\n\n $quote_menu = get_option('rnb_enable_rft_endpoint', 'yes');\n\n if ($quote_menu == 'yes') {\n add_action('init', array($this, 'request_quote_endpoints'));\n }\n add_filter('plugin_action_links_' . plugin_basename(__FILE__), array($this, 'redq_more_plugins_links'), 1);\n }",
"private function registerMode()\n\t{\n\t\t$this->app->singleton('glottos.mode', function($app) {\n\t\t\treturn new Mode($this->getConfig('mode'));\n\t\t});\n\t}",
"public function setFullRights() {\n $this->canView = true;\n $this->canRule = true;\n $this->canDeal = true;\n \n return $this;\n }",
"public function appendRewards(Down_ActivityReward $value)\n {\n return $this->append(self::_REWARDS, $value);\n }",
"public static function LO_RO()\n {\n return new DolbyDigitalPlusDownmixingPreferredMode(self::LO_RO);\n }",
"public function setOrdem($value,$options=array('required'=>true)){ \n $this->_data['ordem'] = new ZendT_Type_Number($value,array('numDecimal'=>0));\n if ($options['db'])\n $this->_data['ordem']->setValueFromDb($value);\n \n if (!$options['db']){\n \n if ($options['required'])\n $this->isRequired($value,'ordem');\n \n }\n return $this;\n }",
"public function __construct()\n {\n parent::__construct();\n\n $this->model = new ExtendedWarranty;\n\n $this->route .= '.extended-warranty';\n $this->views .= '.extended_warranty';\n $this->url = \"admin/extended-warranty/\";\n\n $this->resourceConstruct();\n\n }",
"public function setRequireRewardsReply(Down_RequireRewardsReply $value)\n {\n return $this->set(self::_REQUIRE_REWARDS_REPLY, $value);\n }",
"public function setModele($modele)\n {\n $this->modele = $modele;\n return $this;\n }",
"private function createRelsFile()\n {\n $relsFileContents = <<<'EOD'\n<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Relationships xmlns=\"http://schemas.openxmlformats.org/package/2006/relationships\">\n <Relationship Id=\"rIdWorkbook\" Type=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument\" Target=\"xl/workbook.xml\"/>\n <Relationship Id=\"rIdCore\" Type=\"http://schemas.openxmlformats.org/officedocument/2006/relationships/metadata/core-properties\" Target=\"docProps/core.xml\"/>\n <Relationship Id=\"rIdApp\" Type=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties\" Target=\"docProps/app.xml\"/>\n</Relationships>\nEOD;\n\n $this->createFileWithContents($this->relsFolder, self::RELS_FILE_NAME, $relsFileContents);\n\n return $this;\n }",
"public function getAssociateMode()\n {\n if (is_null($this->associateMode)) {\n /** @psalm-var ?string $data */\n $data = $this->raw(self::FIELD_ASSOCIATE_MODE);\n if (is_null($data)) {\n return null;\n }\n $this->associateMode = (string) $data;\n }\n\n return $this->associateMode;\n }",
"function questionnaire_extend_settings_navigation(settings_navigation $settings,\n navigation_node $questionnairenode) {\n\n global $PAGE, $DB, $USER, $CFG;\n $individualresponse = optional_param('individualresponse', false, PARAM_INT);\n $rid = optional_param('rid', false, PARAM_INT); // Response id.\n $currentgroupid = optional_param('group', 0, PARAM_INT); // Group id.\n\n require_once($CFG->dirroot.'/mod/questionnaire/questionnaire.class.php');\n\n $context = $PAGE->cm->context;\n $cmid = $PAGE->cm->id;\n $cm = $PAGE->cm;\n $course = $PAGE->course;\n\n if (! $questionnaire = $DB->get_record(\"questionnaire\", array(\"id\" => $cm->instance))) {\n print_error('invalidcoursemodule');\n }\n\n $courseid = $course->id;\n $questionnaire = new questionnaire(0, $questionnaire, $course, $cm);\n\n if ($survey = $DB->get_record('questionnaire_survey', array('id' => $questionnaire->sid))) {\n $owner = (trim($survey->owner) == trim($courseid));\n } else {\n $survey = false;\n $owner = true;\n }\n\n // We want to add these new nodes after the Edit settings node, and before the\n // Locally assigned roles node. Of course, both of those are controlled by capabilities.\n $keys = $questionnairenode->get_children_key_list();\n $beforekey = null;\n $i = array_search('modedit', $keys);\n if ($i === false and array_key_exists(0, $keys)) {\n $beforekey = $keys[0];\n } else if (array_key_exists($i + 1, $keys)) {\n $beforekey = $keys[$i + 1];\n }\n\n if (has_capability('mod/questionnaire:manage', $context) && $owner) {\n $url = '/mod/questionnaire/qsettings.php';\n $node = navigation_node::create(get_string('advancedsettings'),\n new moodle_url($url, array('id' => $cmid)),\n navigation_node::TYPE_SETTING, null, 'advancedsettings',\n new pix_icon('t/edit', ''));\n $questionnairenode->add_node($node, $beforekey);\n }\n\n if (has_capability('mod/questionnaire:editquestions', $context) && $owner) {\n $url = '/mod/questionnaire/questions.php';\n $node = navigation_node::create(get_string('questions', 'questionnaire'),\n new moodle_url($url, array('id' => $cmid)),\n navigation_node::TYPE_SETTING, null, 'questions',\n new pix_icon('t/edit', ''));\n $questionnairenode->add_node($node, $beforekey);\n }\n\n if (has_capability('mod/questionnaire:preview', $context) && $owner) {\n $url = '/mod/questionnaire/preview.php';\n $node = navigation_node::create(get_string('preview_label', 'questionnaire'),\n new moodle_url($url, array('id' => $cmid)),\n navigation_node::TYPE_SETTING, null, 'preview',\n new pix_icon('t/preview', ''));\n $questionnairenode->add_node($node, $beforekey);\n }\n\n if ($questionnaire->user_can_take($USER->id)) {\n $url = '/mod/questionnaire/complete.php';\n $node = navigation_node::create(get_string('answerquestions', 'questionnaire'),\n new moodle_url($url, array('id' => $cmid)),\n navigation_node::TYPE_SETTING, null, '',\n new pix_icon('i/info', 'answerquestions'));\n $questionnairenode->add_node($node, $beforekey);\n }\n $usernumresp = $questionnaire->count_submissions($USER->id);\n\n if ($questionnaire->capabilities->readownresponses && ($usernumresp > 0)) {\n $url = '/mod/questionnaire/myreport.php';\n\n if ($usernumresp > 1) {\n $node = navigation_node::create(get_string('yourresponses', 'questionnaire'),\n new moodle_url($url, array('instance' => $questionnaire->id,\n 'userid' => $USER->id, 'byresponse' => 0, 'action' => 'summary')),\n navigation_node::TYPE_SETTING, null, 'yourresponses');\n $myreportnode = $questionnairenode->add_node($node, $beforekey);\n\n $summary = $myreportnode->add(get_string('summary', 'questionnaire'),\n new moodle_url('/mod/questionnaire/myreport.php',\n array('instance' => $questionnaire->id, 'userid' => $USER->id,\n 'byresponse' => 0, 'action' => 'summary')));\n $byresponsenode = $myreportnode->add(get_string('viewbyresponse', 'questionnaire'),\n new moodle_url('/mod/questionnaire/myreport.php',\n array('instance' => $questionnaire->id, 'userid' => $USER->id,\n 'byresponse' => 1, 'action' => 'vresp')));\n $allmyresponsesnode = $myreportnode->add(get_string('myresponses', 'questionnaire'),\n new moodle_url('/mod/questionnaire/myreport.php',\n array('instance' => $questionnaire->id, 'userid' => $USER->id,\n 'byresponse' => 0, 'action' => 'vall')));\n if ($questionnaire->capabilities->downloadresponses) {\n $downloadmyresponsesnode = $myreportnode->add(get_string('downloadtext'),\n new moodle_url('/mod/questionnaire/report.php',\n array('instance' => $questionnaire->id, 'user' => $USER->id,\n 'action' => 'dwnpg', 'group' => $currentgroupid)));\n }\n } else {\n $node = navigation_node::create(get_string('yourresponse', 'questionnaire'),\n new moodle_url($url, array('instance' => $questionnaire->id,\n 'userid' => $USER->id, 'byresponse' => 1, 'action' => 'vresp')),\n navigation_node::TYPE_SETTING, null, 'yourresponse');\n $myreportnode = $questionnairenode->add_node($node, $beforekey);\n }\n }\n\n $numresp = $questionnaire->count_submissions();\n // Number of responses in currently selected group (or all participants etc.).\n if (isset($SESSION->questionnaire->numselectedresps)) {\n $numselectedresps = $SESSION->questionnaire->numselectedresps;\n } else {\n $numselectedresps = $numresp;\n }\n\n // If questionnaire is set to separate groups, prevent user who is not member of any group\n // and is not a non-editing teacher to view All responses.\n $canviewgroups = true;\n $groupmode = groups_get_activity_groupmode($cm, $course);\n if ($groupmode == 1) {\n $canviewgroups = groups_has_membership($cm, $USER->id);\n }\n $canviewallgroups = has_capability('moodle/site:accessallgroups', $context);\n if (( (\n // Teacher or non-editing teacher (if can view all groups).\n $canviewallgroups ||\n // Non-editing teacher (with canviewallgroups capability removed), if member of a group.\n ($canviewgroups && $questionnaire->capabilities->readallresponseanytime))\n && $numresp > 0 && $owner && $numselectedresps > 0) ||\n $questionnaire->capabilities->readallresponses && ($numresp > 0) && $canviewgroups &&\n ($questionnaire->resp_view == QUESTIONNAIRE_STUDENTVIEWRESPONSES_ALWAYS ||\n ($questionnaire->resp_view == QUESTIONNAIRE_STUDENTVIEWRESPONSES_WHENCLOSED\n && $questionnaire->is_closed()) ||\n ($questionnaire->resp_view == QUESTIONNAIRE_STUDENTVIEWRESPONSES_WHENANSWERED\n && $usernumresp > 0)) &&\n $questionnaire->is_survey_owner()) {\n\n $url = '/mod/questionnaire/report.php';\n $node = navigation_node::create(get_string('viewallresponses', 'questionnaire'),\n new moodle_url($url, array('instance' => $questionnaire->id, 'action' => 'vall')),\n navigation_node::TYPE_SETTING, null, 'vall');\n $reportnode = $questionnairenode->add_node($node, $beforekey);\n\n if ($questionnaire->capabilities->viewsingleresponse) {\n $summarynode = $reportnode->add(get_string('summary', 'questionnaire'),\n new moodle_url('/mod/questionnaire/report.php',\n array('instance' => $questionnaire->id, 'action' => 'vall')));\n } else {\n $summarynode = $reportnode;\n }\n $defaultordernode = $summarynode->add(get_string('order_default', 'questionnaire'),\n new moodle_url('/mod/questionnaire/report.php',\n array('instance' => $questionnaire->id, 'action' => 'vall', 'group' => $currentgroupid)));\n $ascendingordernode = $summarynode->add(get_string('order_ascending', 'questionnaire'),\n new moodle_url('/mod/questionnaire/report.php',\n array('instance' => $questionnaire->id, 'action' => 'vallasort', 'group' => $currentgroupid)));\n $descendingordernode = $summarynode->add(get_string('order_descending', 'questionnaire'),\n new moodle_url('/mod/questionnaire/report.php',\n array('instance' => $questionnaire->id, 'action' => 'vallarsort', 'group' => $currentgroupid)));\n\n if ($questionnaire->capabilities->deleteresponses) {\n $deleteallnode = $summarynode->add(get_string('deleteallresponses', 'questionnaire'),\n new moodle_url('/mod/questionnaire/report.php',\n array('instance' => $questionnaire->id, 'action' => 'delallresp', 'group' => $currentgroupid)));\n }\n\n if ($questionnaire->capabilities->downloadresponses) {\n $downloadresponsesnode = $summarynode->add(get_string('downloadtextformat', 'questionnaire'),\n new moodle_url('/mod/questionnaire/report.php',\n array('instance' => $questionnaire->id, 'action' => 'dwnpg', 'group' => $currentgroupid)));\n }\n if ($questionnaire->capabilities->viewsingleresponse && $questionnaire->respondenttype != 'anonymous') {\n $byresponsenode = $reportnode->add(get_string('viewbyresponse', 'questionnaire'),\n new moodle_url('/mod/questionnaire/report.php',\n array('instance' => $questionnaire->id, 'action' => 'vresp', 'byresponse' => 1, 'group' => $currentgroupid)));\n\n $viewindividualresponsenode = $byresponsenode->add(get_string('view', 'questionnaire'),\n new moodle_url('/mod/questionnaire/report.php',\n array('instance' => $questionnaire->id, 'action' => 'vresp', 'byresponse' => 1, 'group' => $currentgroupid)));\n\n if ($individualresponse) {\n $deleteindividualresponsenode = $byresponsenode->add(get_string('deleteresp', 'questionnaire'),\n new moodle_url('/mod/questionnaire/report.php',\n array('instance' => $questionnaire->id, 'action' => 'dresp', 'byresponse' => 1,\n 'rid' => $rid, 'group' => $currentgroupid, 'individualresponse' => 1)));\n }\n }\n }\n if ($questionnaire->capabilities->viewsingleresponse && ($canviewallgroups || $canviewgroups)) {\n $url = '/mod/questionnaire/show_nonrespondents.php';\n $node = navigation_node::create(get_string('show_nonrespondents', 'questionnaire'),\n new moodle_url($url, array('id' => $cmid)),\n navigation_node::TYPE_SETTING, null, 'nonrespondents');\n $nonrespondentsnode = $questionnairenode->add_node($node, $beforekey);\n\n }\n}",
"public function offers_redeemed()\n {\n return $this->belongsToMany('Offer', 'user_redeem', 'nonmember_id', 'offer_id');\n }",
"function SellerContactDetailsEnabledDefinitionType()\n\t{\n\t\t$this->EbatNs_ComplexType('SellerContactDetailsEnabledDefinitionType', 'urn:ebay:apis:eBLBaseComponents');\n\n\t}",
"public function setAccessibilityMode($accessibilityMode)\n {\n $this->accessibilityMode = $accessibilityMode;\n return $this;\n }",
"public function role()\n {\n return $this->hasOne('App\\Models\\Role');\n }"
] | [
"0.599741",
"0.5618633",
"0.4911883",
"0.4834147",
"0.4806142",
"0.4684537",
"0.4624924",
"0.4554939",
"0.45481062",
"0.4432999",
"0.44015458",
"0.43724847",
"0.43066055",
"0.42781222",
"0.4174686",
"0.4174686",
"0.4148976",
"0.41225937",
"0.4112767",
"0.4111509",
"0.41092896",
"0.40763852",
"0.40462118",
"0.40413436",
"0.40393165",
"0.40393165",
"0.40358368",
"0.4021645",
"0.40149587",
"0.40001267",
"0.4000083",
"0.3989061",
"0.3984221",
"0.39762336",
"0.39760378",
"0.39607397",
"0.39575148",
"0.39471886",
"0.39462867",
"0.39430773",
"0.3931742",
"0.39306742",
"0.39303866",
"0.39287114",
"0.3919805",
"0.39050975",
"0.39034292",
"0.3893995",
"0.38937947",
"0.38837215",
"0.38607487",
"0.38604227",
"0.38519385",
"0.38515753",
"0.38505998",
"0.38446036",
"0.38442343",
"0.38311708",
"0.38306093",
"0.3827022",
"0.38266665",
"0.38241976",
"0.38219938",
"0.38168678",
"0.38134012",
"0.3809932",
"0.37911835",
"0.37911835",
"0.37911835",
"0.37911835",
"0.3790539",
"0.37723112",
"0.37717512",
"0.3764763",
"0.37597108",
"0.37459204",
"0.374375",
"0.37365088",
"0.37291414",
"0.37267044",
"0.37224835",
"0.3720106",
"0.37194166",
"0.37174267",
"0.371635",
"0.3705897",
"0.37010002",
"0.36995962",
"0.36926425",
"0.36907664",
"0.36883187",
"0.36845353",
"0.36842376",
"0.3681054",
"0.36782762",
"0.36776808",
"0.3676828",
"0.36707845",
"0.36694083",
"0.36658713"
] | 0.7004069 | 0 |
Get the associated RRewardExpeditionModes object | public function getRRewardExpeditionModes(PropelPDO $con = null, $doQuery = true)
{
if ($this->aRRewardExpeditionModes === null && ($this->operation_prime_r_reward_expedition_mode_id !== null) && $doQuery) {
$this->aRRewardExpeditionModes = RRewardExpeditionModesQuery::create()->findPk($this->operation_prime_r_reward_expedition_mode_id, $con);
/* The following can be used additionally to
guarantee the related object contains a reference
to this object. This level of coupling may, however, be
undesirable since it could result in an only partially populated collection
in the referenced object.
$this->aRRewardExpeditionModes->addOperationPrimess($this);
*/
}
return $this->aRRewardExpeditionModes;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getOperationPrimeRRewardExpeditionModeId()\n {\n\n return $this->operation_prime_r_reward_expedition_mode_id;\n }",
"public function setRRewardExpeditionModes(RRewardExpeditionModes $v = null)\n {\n if ($v === null) {\n $this->setOperationPrimeRRewardExpeditionModeId(NULL);\n } else {\n $this->setOperationPrimeRRewardExpeditionModeId($v->getRRewardExpeditionModeId());\n }\n\n $this->aRRewardExpeditionModes = $v;\n\n // Add binding for other direction of this n:n relationship.\n // If this object has already been added to the RRewardExpeditionModes object, it will not be re-added.\n if ($v !== null) {\n $v->addOperationPrimes($this);\n }\n\n\n return $this;\n }",
"public function getMode()\n {\n return $this->hasOne(MsMode::className(), ['id' => 'mode_id']);\n }",
"public function getReward()\n {\n return $this->get(self::_REWARD);\n }",
"public function getReward()\n {\n return $this->get(self::_REWARD);\n }",
"public function getReward()\n {\n return $this->get(self::_REWARD);\n }",
"public function getMode();",
"public function getMode();",
"public function getMode();",
"public function getMode();",
"public function getModeReglement() {\n return $this->modeReglement;\n }",
"public static function getMode();",
"public function getModes(): array\n {\n return $this->modes;\n }",
"public function getInventoryMode();",
"public function getMode()\n {\n return;\n }",
"public function getActivityReward()\n {\n return $this->get(self::_ACTIVITY_REWARD);\n }",
"function getMode() {\n\t\treturn $this->get('mode');\n\t}",
"public function getBestRankReward()\n {\n return $this->get(self::_BEST_RANK_REWARD);\n }",
"public function getMode()\n {\n return $this->_mode;\n }",
"function getMode() {\n\t\treturn $this->_mode;\n\t}",
"function getMode() {\n\t\treturn $this->_mode;\n\t}",
"function getMode()\n {\n return $this->mode;\n }",
"public function getDrawReward()\n {\n return $this->get(self::_DRAW_REWARD);\n }",
"function getMode()\n {\n return $this->mode;\n }",
"public function getMode() {\n return $this->mode;\n }",
"public function setOperationPrimeRRewardExpeditionModeId($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_numeric($v)) {\n $v = (int) $v;\n }\n }\n if ($this->operation_prime_r_reward_expedition_mode_id !== $v) {\n $this->operation_prime_r_reward_expedition_mode_id = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OPERATION_PRIME_R_REWARD_EXPEDITION_MODE_ID;\n }\n\n if ($this->aRRewardExpeditionModes !== null && $this->aRRewardExpeditionModes->getRRewardExpeditionModeId() !== $v) {\n $this->aRRewardExpeditionModes = null;\n }\n\n\n return $this;\n }",
"public function getMode()\n {\n return $this->mode;\n }",
"public function getMode()\n {\n return $this->mode;\n }",
"public function getMode()\n {\n return $this->mode;\n }",
"public function getMode()\n {\n return $this->mode;\n }",
"public function getMode()\n {\n return $this->mode;\n }",
"public function getMode()\n {\n return $this->mode;\n }",
"public function getMode()\n {\n return $this->mode;\n }",
"function getMode() {\n\t\treturn $this->mode;\n\t}",
"protected function getMode() {\n\t\treturn $this->mode;\n\t}",
"public function getHireReward()\n {\n return $this->get(self::_HIRE_REWARD);\n }",
"public function getMode(): string;",
"public function getMode() {\n return $this->mode;\n }",
"public function getMode() {\n return $this->mode;\n }",
"public static function getMode()\n {\n return self::$_mode;\n }",
"public function getDrawRankReward()\n {\n return $this->get(self::_DRAW_RANK_REWARD);\n }",
"public function getModes()\n\t{\n\t\t$modesString = '+';\n\t\tforeach ($this->_modes as $mode) {\n\t\t\t$modesString .= $mode;\n\t\t}\n\t\treturn $modesString;\n\t}",
"function _exp_mode($mode=NULL){\n $mode = 'exp_' . nz($mode,$this->exp_mode_default);\n return method_exists($this,$mode)?$mode:FALSE;\n }",
"public function getMode()\n\t{\n\t\treturn $this->mode;\n\t}",
"public function getMode()\n\t{\n\t\treturn $this->mode;\n\t}",
"public function getViewModes(){\n return $this->viewModes;\n }",
"public function modes()\n\t{\n\t\t// belongsTo(RelatedModel, foreignKey = mode_id, keyOnRelatedModel = id)\n\t\treturn $this->belongsTo(Mode::class);\n\t}",
"public function GetMode()\n\t{\n\t\treturn $this->mode;\n\t}",
"public function getMode()\n {\n $data = $this->soap(\"AVTransport\", \"GetTransportSettings\");\n return Helper::getMode($data[\"PlayMode\"]);\n }",
"private function getMode()\n {\n $mode = $this->mode;\n $conf_view = $this->conf_view;\n\n\n $sumOfModes = count( $conf_view );\n\n // RETURN false : there isn't any single view\n if ( $sumOfModes < 1 )\n {\n // RETURN : no DRS prompt needed\n if ( !$this->pObj->b_drs_error )\n {\n return false;\n }\n\n // RETURN : DRS prompt\n $this->getModeDRSnoView();\n return false;\n }\n\n // mode isn't proper. Move it to 1.\n if ( $mode > $sumOfModes )\n {\n $mode = 1;\n }\n\n return $mode;\n }",
"public function getMode()\n {\n return $this->base.($this->plus ? '+' : '').$this->flag;\n }",
"public function get_mode() {\n global $SESSION;\n if (isset($SESSION->homeworkblockmode)) {\n return $SESSION->homeworkblockmode;\n }\n\n $possiblemodes = $this->get_possible_modes();\n $SESSION->homeworkblockmode = $possiblemodes[0];\n return $possiblemodes[0];\n }",
"public function getMode()\n {\n if (array_key_exists(\"mode\", $this->_propDict)) {\n if (is_a($this->_propDict[\"mode\"], \"\\Beta\\Microsoft\\Graph\\Model\\SimulationMode\") || is_null($this->_propDict[\"mode\"])) {\n return $this->_propDict[\"mode\"];\n } else {\n $this->_propDict[\"mode\"] = new SimulationMode($this->_propDict[\"mode\"]);\n return $this->_propDict[\"mode\"];\n }\n }\n return null;\n }",
"final public function getMode(): int {}",
"public function getOperationPrimeRRewardTypeId()\n {\n\n return $this->operation_prime_r_reward_type_id;\n }",
"public function getViewModes()\n { \n $data = $this->getEntityValue('view_modes', []);\n\n $viewModes = [];\n foreach ($data as $dataItem) {\n $viewModes[] = new ViewMode($dataItem);\n }\n\n return $viewModes;\n }",
"protected function getRight()\n\t{\n\t\t$recommended_db_1 = new RecommendedDB();\n\t\t$recommended_db_1->loadOnSectionID($this->section_id, FREE_RECOMMENDED);\n\t\t$recommended_db_2 = new RecommendedDB();\n\t\t$recommended_db_2->loadOnSectionID($this->section_id, ONLINE_RECOMMENDED);\n\t\t$recommendeds = array($recommended_db_1, $recommended_db_2);\n\n\t\t$recommended = new Recommended();\n\t\t$recommended->recommendeds = $recommendeds;\n\t\t$recommended->auth_user = $this->auth_user;\n\n\t\t$quote_db = new QuoteDB();\n\t\t$quote_db->loadRandom();\n\n\t\t$quote = new Quote();\n\t\t$quote->quote = $quote_db;\n\n\t\treturn $recommended . $quote;\n\n\t}",
"public function get_mode() {\n return edd_get_option( 'edd_commissions_payout_schedule_mode', '' );\n }",
"private function whichEmr(): Emr\n {\n if ($emrKey = $this->option('key')) {\n return Emr::firstWhere('key', $emrKey);\n }\n\n $emrs = Emr::all();\n $emrName = $this->choice('Choose an EMR?', $emrs->pluck('name')->toArray());\n\n return $emrs->firstWhere('name', $emrName);\n }",
"public function getStayReward()\n {\n return $this->get(self::_STAY_REWARD);\n }",
"public function getMode(): string\n {\n return $this->mode;\n }",
"public function getDefinition(): LoyaltyProgramRewardDefinition\n {\n return $this->definition;\n }",
"public function getRewardId()\n {\n return $this->reward_id;\n }",
"public function getMode()\n {\n $currentMode = $this->getChildBlock('toolbar')->getCurrentMode();\n return $currentMode;\n }",
"public function getRewards()\r\n {\r\n return Controllers\\Rewards::getInstance();\r\n }",
"public function getEditMode()\n {\n return $this->_editMode;\n }",
"private function getMode($code){\n\t\t\treturn $this->query_modes[$code];\n\t\t}",
"private function getMode($code){\n\t\t\treturn $this->query_modes[$code];\n\t\t}",
"public function get_restriction_mode() {\n\n\t\tif ( null === $this->restriction_mode ) {\n\n\t\t\t$default_mode = 'hide_content';\n\t\t\t$restriction_mode = get_option( $this->restriction_mode_option, $default_mode );\n\n\t\t\t$this->restriction_mode = in_array( $restriction_mode, $this->get_restriction_modes( false ), true ) ? $restriction_mode : $default_mode;\n\t\t}\n\n\t\treturn $this->restriction_mode;\n\t}",
"public function listModesAction() {\n $this -> view -> assignMultiple([\n 'modes' => $GLOBALS['TYPO3_CONF_VARS'][\"EXTENSIONS\"][\"bw_tetris\"][\"modes\"],\n 'gamesleft' => $this -> highscoreRepository -> gamesLeft($GLOBALS['TSFE']->fe_user->user[\"uid\"] ?? 0),\n 'nextgame' => $this -> highscoreRepository -> nextGame($GLOBALS['TSFE']->fe_user->user[\"uid\"] ?? 0)\n ]);\n }",
"public function getQuizMode()\n {\n return $this->_quizMode;\n }",
"public function getInventoryMode()\n {\n if (is_null($this->inventoryMode)) {\n /** @psalm-var ?string $data */\n $data = $this->raw(self::FIELD_INVENTORY_MODE);\n if (is_null($data)) {\n return null;\n }\n $this->inventoryMode = (string) $data;\n }\n\n return $this->inventoryMode;\n }",
"public function setModeReglement($modeReglement) {\n $this->modeReglement = $modeReglement;\n return $this;\n }",
"public function mode()\n\t{\n\t\treturn $this->mode;\n\t}",
"public function GetStricModeBySession ();",
"public static function getPointsRewardTypes()\n {\n return [\n self::REWARD_TYPE_POINTS,\n self::REWARD_TYPE_RANDOM_AMOUNT_OF_POINTS,\n ];\n }",
"function getInvitationMode() \n\t{\n\t\tinclude_once \"./Services/Administration/classes/class.ilSetting.php\";\n\t\t$surveySetting = new ilSetting(\"survey\");\n\t\t$unlimited_invitation = $surveySetting->get(\"unlimited_invitation\");\n\t\tif (!$unlimited_invitation && $this->invitation_mode == self::MODE_UNLIMITED)\n\t\t{\n\t\t\treturn self::MODE_PREDEFINED_USERS;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn ($this->invitation_mode) ? $this->invitation_mode : self::MODE_UNLIMITED;\n\t\t}\n\t}",
"public function getRequireRewardsReply()\n {\n return $this->get(self::_REQUIRE_REWARDS_REPLY);\n }",
"public function getRightAnswer() {\r\n return $this->answers->first();\r\n }",
"public function mode()\n\t{\n\t\treturn $this->CLI->stringQuery($this->SqueezePlyrID.\" mode ?\");\n\t}",
"public function getCurrentMode()\n\t{\n\t\tif ($this->getHidepriceModel()->getId()) {\n\t\t\treturn $this->getHidepriceModel()->getMode();\n\t\t}\n\n\t\treturn 0;\n\t}",
"public static function LO_RO()\n {\n return new DolbyDigitalPlusDownmixingPreferredMode(self::LO_RO);\n }",
"private function getTransactionMode()\n {\n $gatewayUrl = $this->requestParser->getGatewayUrl(['apiOperation' => 'PAYMENT_OPTIONS_INQUIRY']);\n $jsonResponse = $this->transactionHandler->getTransactionResponse($gatewayUrl);\n $responseArray = json_decode($jsonResponse, true);\n $transactionMode = $responseArray['transactionMode'];\n if ($transactionMode === 'PURCHASE')\n return 'PAY';\n else\n return 'AUTHORIZE';\n\n }",
"public function getReplay()\n {\n return $this->get(self::_REPLAY);\n }",
"protected function getDisplayModes()\n {\n // Convert our display modes to FullCalendar display modes\n if (!is_array($this->availableDisplayModes)) {\n $this->availableDisplayModes = [$this->availableDisplayModes];\n }\n\n $fullCalendarModes = [\n 'month' => 'dayGridMonth',\n 'week' => 'timeGridWeek',\n 'day' => 'timeGridDay',\n 'list' => 'listMonth'\n ];\n\n $selectedModes = [];\n foreach ($this->availableDisplayModes as $mode) {\n if (!empty($fullCalendarModes[$mode])) {\n $selectedModes[] = $fullCalendarModes[$mode];\n }\n }\n return implode(',', $selectedModes);\n }",
"public static function LT_RT()\n {\n return new DolbyDigitalPlusDownmixingPreferredMode(self::LT_RT);\n }",
"public function getOptionalMode()\n {\n return isset($this->optional_mode) ? $this->optional_mode : '';\n }",
"private function setModes(){\n\t\t\t\n\t\t\t$this->query_modes = array(\t\"version\"\t\t\t=> \"getVersion\",\n\t\t\t\t\t\t\t\t\t\t\"synsid_by_word\"\t=> \"getSynsetIds\",\n\t\t\t\t\t\t\t\t\t\t\"synset_by_id\"\t\t=> \"getSynset\",\n\t\t\t\t\t\t\t\t\t\t\"sense_by_word\"\t\t=> \"getSenses\",\n\t\t\t\t\t\t\t\t\t\t\"synsid_by_resid\"\t=> \"getSynsetIdsFromResourceID\",\n\t\t\t\t\t\t\t\t\t\t\"edge_by_synsid\"\t=> \"getEdges\"\n\t\t\t\t\t\t\t\t\t);\n\t\t}",
"protected function evalManageMode()\n {\n if ($mode = post(self::PARAM_MODE)) {\n return $mode;\n }\n\n if ($this->forceManageMode) {\n return $this->forceManageMode;\n }\n\n switch ($this->eventTarget) {\n case 'button-create':\n case 'button-update':\n return 'form';\n\n case 'button-link':\n return 'list';\n }\n\n switch ($this->relationType) {\n case 'belongsTo':\n return 'list';\n\n case 'morphToMany':\n case 'morphedByMany':\n case 'belongsToMany':\n if (isset($this->config->pivot)) {\n return 'pivot';\n }\n elseif ($this->eventTarget == 'list') {\n return 'form';\n }\n else {\n return 'list';\n }\n\n case 'hasOne':\n case 'morphOne':\n case 'hasMany':\n case 'morphMany':\n if ($this->eventTarget == 'button-add') {\n return 'list';\n }\n\n return 'form';\n }\n }",
"public function getListMode(): string;",
"public function mode(): string\n {\n return $this->getAttribute('mode') ?: MenuPresenceMode::MODIFY;\n }",
"public function getMode(): ?int\n {\n return $this->mode;\n }",
"public function getPaymorrowOperationMode()\n {\n return $this->isSandboxMode() ? $this->getSetting( 'OperationModeTest' ) : $this->getSetting( 'OperationMode' );\n }",
"public function getWearEquipReply()\n {\n return $this->get(self::_WEAR_EQUIP_REPLY);\n }",
"public function getPriceMode();",
"public function getDrawExcavateDefRwdReply()\n {\n return $this->get(self::_DRAW_EXCAVATE_DEF_RWD_REPLY);\n }",
"public function getRateSetId();",
"public function getBookingMode();",
"protected function getViewModeOptions() {\n return $this->entityDisplayRepository->getViewModeOptions('node');\n }",
"public function getBitrateMode();"
] | [
"0.6757832",
"0.6561228",
"0.6016944",
"0.57439864",
"0.57439864",
"0.57439864",
"0.57268476",
"0.57268476",
"0.57268476",
"0.57268476",
"0.5724368",
"0.5605156",
"0.54886466",
"0.543859",
"0.5437733",
"0.54111093",
"0.5393894",
"0.53462046",
"0.53293234",
"0.5308534",
"0.5308534",
"0.53034204",
"0.528944",
"0.52704275",
"0.5251732",
"0.5250504",
"0.5235911",
"0.5235911",
"0.5235911",
"0.5235911",
"0.5235911",
"0.5235911",
"0.5235911",
"0.52288306",
"0.52270293",
"0.5210537",
"0.52096176",
"0.5198057",
"0.5198057",
"0.5189168",
"0.5182556",
"0.5172969",
"0.5169184",
"0.51667184",
"0.51667184",
"0.51593435",
"0.51504934",
"0.5116631",
"0.51159436",
"0.50983614",
"0.50921905",
"0.5062718",
"0.5041065",
"0.5030933",
"0.49441615",
"0.4930987",
"0.49171478",
"0.4877761",
"0.48656148",
"0.48447123",
"0.48438588",
"0.48416817",
"0.48177785",
"0.48170003",
"0.480603",
"0.47955146",
"0.4791216",
"0.4791216",
"0.4776955",
"0.47661096",
"0.47431064",
"0.47289237",
"0.47182032",
"0.4711185",
"0.4705759",
"0.47030905",
"0.4698563",
"0.46572495",
"0.46435162",
"0.46371663",
"0.46369717",
"0.46299022",
"0.46283275",
"0.4616691",
"0.46165895",
"0.4608146",
"0.4598929",
"0.45989272",
"0.45934135",
"0.45812744",
"0.4570423",
"0.45683143",
"0.45406967",
"0.45262074",
"0.45252708",
"0.45217732",
"0.4520247",
"0.45154524",
"0.45125502",
"0.44949254"
] | 0.66699624 | 1 |
Declares an association between this object and a RRewardTransporters object. | public function setRRewardTransporters(RRewardTransporters $v = null)
{
if ($v === null) {
$this->setOperationPrimeRRewardTransporterId(NULL);
} else {
$this->setOperationPrimeRRewardTransporterId($v->getRRewardTransporterId());
}
$this->aRRewardTransporters = $v;
// Add binding for other direction of this n:n relationship.
// If this object has already been added to the RRewardTransporters object, it will not be re-added.
if ($v !== null) {
$v->addOperationPrimes($this);
}
return $this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getTransportReff()\n {\n return $this->hasOne(MsRefference::className(), ['id' => 'transport_reff_id']);\n }",
"public function trainer()\n {\n return $this->hasOne('App\\Models\\Trainer');\n }",
"public function setOperationPrimeRRewardTransporterId($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_numeric($v)) {\n $v = (int) $v;\n }\n }\n if ($this->operation_prime_r_reward_transporter_id !== $v) {\n $this->operation_prime_r_reward_transporter_id = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OPERATION_PRIME_R_REWARD_TRANSPORTER_ID;\n }\n\n if ($this->aRRewardTransporters !== null && $this->aRRewardTransporters->getRRewardTransporterId() !== $v) {\n $this->aRRewardTransporters = null;\n }\n\n\n return $this;\n }",
"public function performers() {\n return $this->hasMany('Rockit\\Models\\Performer')\n ->orderBy('order');\n }",
"public function trader_partners () {\n //return $this->hasMany('App\\TraderPartner');\n return $this->hasMany('App\\TraderPartner', 'trader_id');\n // return $this->hasMany(TraderPartner::class);\n }",
"public function trainer()\n\t{\n\t\treturn $this->belongsTo('App\\User', 'trainer_uuid', 'uuid');\n\t}",
"public function dealers()\n {\n return $this->hasMany('App\\Models\\Dealer');\n }",
"public function trailers()\n {\n return $this->hasMany('App\\Trailer');\n }",
"public function getOperationPrimeRRewardTransporterId()\n {\n\n return $this->operation_prime_r_reward_transporter_id;\n }",
"public function senders()\n {\n return $this->belongsToMany('App\\Sender');\n }",
"public function wrestler()\n {\n return $this->hasOne('Efed\\Models\\Wrestler', 'id', 'wrestler_id');\n }",
"public function getCarierReff()\n {\n return $this->hasOne(MsRefference::className(), ['id' => 'carier_reff_id']);\n }",
"public function adopter()\n {\n return $this->belongsTo('App\\Person', 'adopter_id');\n }",
"public function dealer()\n {\n return $this->belongsTo('App\\Dealer');\n }",
"public function setAgents() {\n foreach ($this->rAgents as $value) {\n $this->agent[$value->id] = $value->id;\n }\n }",
"public function setErors($erors)\n {\n $this->erors = $erors;\n\n return $this;\n }",
"public function transporter() {\n if(is_null($this->transporter)){\n $this->transporter = Transporter::getByIdentifier($this->transporter_id);\n }\n return $this->transporter;\n }",
"public function setRRewardTypes(RRewardTypes $v = null)\n {\n if ($v === null) {\n $this->setOperationPrimeRRewardTypeId(NULL);\n } else {\n $this->setOperationPrimeRRewardTypeId($v->getRRewardTypeId());\n }\n\n $this->aRRewardTypes = $v;\n\n // Add binding for other direction of this n:n relationship.\n // If this object has already been added to the RRewardTypes object, it will not be re-added.\n if ($v !== null) {\n $v->addOperationPrimes($this);\n }\n\n\n return $this;\n }",
"public function RosterRelation()\n {\n return $this->professional->roster;\n }",
"public function restaurant()\n {\n return $this->belongsTo('App\\Models\\Restaurant');\n }",
"public function subscriberPremium()\n\t{\n\t\treturn $this->hasOne('App\\SubscriberPremium');\n\t}",
"public function teachers()\n {\n return $this->hasMany('App\\Models\\Person');\n }",
"public function receiver()\n\t{\n\t\treturn $this->belongsTo('\\User');\n\t}",
"public function setRecruter($recruter)\n {\n $this->recruter = $recruter;\n\n return $this;\n }",
"public function receiverPerson()\r\n {\r\n // belongsTo(RelatedModel, foreignKey = user_id, keyOnRelatedModel = id)\r\n return $this->belongsTo(User::class,'receiver_id');\r\n }",
"public function seller()\n {\n return $this->morphTo(__FUNCTION__, 'seller_type', 'seller_id');\n }",
"public function setReceivers($receivers)\n {\n $this->receivers = Type::forceAndReturn($receivers, ArrayAccess::class);\n return $this;\n }",
"public function distributors()\n {\n return $this->belongsTo('App\\Distributor', 'distributor_id');\n }",
"public function receiver() {\n return $this->belongsTo(User::class, 'receiver_id');\n }",
"public function receiver()\n {\n return $this->belongsTo(User::class, 'receiver_id');\n }",
"public function destroy(Renters $renters)\n {\n //\n }",
"function teacher_roles_and_responsibilities(){\n return $this->hasOne('App\\Roles_and_responsibilities', 'teacher_id', 'id');\n }",
"public function seller()\n {\n \t// belongsTo(RelatedModel, foreignKey = from_seller_id, keyOnRelatedModel = seller_id)\n \treturn $this->belongsTo('App\\Seller','from_seller_id','seller_id');\n }",
"public function __construct(\n $customerId,\n MerchantReward $receiverReward,\n $receiverName,\n $receiverEmail,\n $emailSubject,\n $emailBody\n ) {\n $this->customerId = $customerId;\n $this->receiverReward = $receiverReward;\n $this->receiverName = $receiverName;\n $this->receiverEmail = $receiverEmail;\n $this->emailSubject = $emailSubject;\n $this->emailBody = $emailBody;\n }",
"protected function redeemers(): Redeemer\n {\n return Config::model('redeemer')::make();\n }",
"public function getRewardId()\n {\n return $this->reward_id;\n }",
"public function getRestaurant()\n {\n return $this->hasOne(Restaurant::className(), ['restaurantId' => 'restaurantId']);\n }",
"private function addPerformers () {\n//\t\t$selstmt = \"SELECT ACTOR_ID FROM REPORTS_PERFORMERS WHERE REPORT_ID = $rptid\";\n\t\t$resultSet = ORM::for_table (self::REPTS_PERFS_TABLE)->\n\t\t\tselect('actor_id')->\n\t\t\twhere_equal('report_id', $this->id)->\n\t\t\tfind_many();\n\t\t$this->performers = array();\n\t\tforeach ($resultSet as $result) {\n\t\t\t$actorId = $result->actor_id;\n\t\t\t$performer = Actor::findById($actorId);\n\t\t\tif ($performer != NULL) {\n\t\t\t\t$this->performers[] = $performer;\n\t\t\t}\n\t\t}\n\t}",
"public function trades() {\n\t\treturn $this->hasMany( 'App\\Trade', 'trader' );\n\t}",
"public function requester()\n {\n return $this->belongsTo(User::class, 'requester_id');\n }",
"public function initialize()\n {\n $this->hasMany('speler_id', 'Team_spelers', 'speler_id', array('alias' => 'Team_spelers'));\n }",
"public function recipient() \n {\n if($this->recipient_type == 'User') return $this->belongsTo('App\\Models\\User\\User', 'recipient_id');\n return $this->belongsTo('App\\Models\\Character\\Character', 'recipient_id');\n }",
"public function receiver()\n {\n return $this->belongsTo('App\\User');\n }",
"public function deliverer()\n {\n return $this->hasOne('App\\Models\\User');\n }",
"public function setReceiver($receiver){\n $this->receiver = $receiver;\n }",
"public function restaurateur()\n {\n return $this->belongsTo('App\\Restaurateur', 'restaurateur_id');\n }",
"public function restaurant()\n {\n return $this->belongsTo('App\\Models\\Local', 'riflocal', 'rif');\n }",
"public function raffle()\n {\n return $this->belongsTo('App\\Models\\Raffle\\Raffle');\n }",
"public function setCarrier(\\bunge\\StructType\\RespPlateAuthTransporter $carrier = null)\n {\n if (is_null($carrier) || (is_array($carrier) && empty($carrier))) {\n unset($this->carrier);\n } else {\n $this->carrier = $carrier;\n }\n return $this;\n }",
"public function setReceiver($receiver) {\n $this->_receiver = $receiver;\n }",
"public function supplier(): \\Illuminate\\Database\\Eloquent\\Relations\\BelongsTo\n {\n return $this->belongsTo('Easy\\Commerce\\Models\\Supplier\\Supplier', 'supplier_id', 'id');\n }",
"public function seller()\n {\n return $this->belongsTo(SellerProxy::modelClass(), 'seller_id');\n }",
"public function recipient()\n {\n return $this->belongsTo('App\\User');\n }",
"public function restaurant()\n {\n return $this->belongsTo('App\\Restaurant', 'restaurant_id');\n }",
"public function recipients()\n {\n return $this->belongsToMany('App\\Recipient');\n }",
"public function receiver(){\n return $this->belongsTo('App\\Models\\User','receiver_id_fk');\n }",
"public function train(){\n\t\t\n\t\treturn $this->belongsTo('Alsaudi\\\\Eloquent\\\\TrainRelation');\n\t}",
"public function setOriginator($originator)\r\n {\r\n $this->originator = $originator;\r\n\r\n return $this;\r\n }",
"public function carriers()\n {\n return $this->hasMany('App\\SelectedCarrier');\n }",
"public function rents(){\n return $this->belongsToMany(Rent::class);\n }",
"public function defineRelations()\n\t{\n\t\treturn [\n\t\t\t'deliveries' => [\n\t\t\t\tstatic::HAS_MANY,\n\t\t\t\t'Courier_DeliveryRecord',\n\t\t\t\t'blueprintId',\n\t\t\t\t'order' => 'dateCreated DESC'\n\t\t\t],\n\t\t];\n\t}",
"public function seller()\n {\n \t// belongsTo(RelatedModel, foreignKey = seller_id, keyOnRelatedModel = id)\n \treturn $this->belongsTo('App\\Seller','seller_id','seller_id');\n }",
"public function researcher(){\n return $this->belongsTo('App\\GoldilocksResearcher', 'researcher_id');\n }",
"public function offers_redeemed()\n {\n return $this->belongsToMany('Offer', 'user_redeem', 'nonmember_id', 'offer_id');\n }",
"public function recipient ()\n {\n return $this->belongsTo(User::class, 'recipient_id', 'id');\n }",
"public function getRRewardTransporters(PropelPDO $con = null, $doQuery = true)\n {\n if ($this->aRRewardTransporters === null && ($this->operation_prime_r_reward_transporter_id !== null) && $doQuery) {\n $this->aRRewardTransporters = RRewardTransportersQuery::create()->findPk($this->operation_prime_r_reward_transporter_id, $con);\n /* The following can be used additionally to\n guarantee the related object contains a reference\n to this object. This level of coupling may, however, be\n undesirable since it could result in an only partially populated collection\n in the referenced object.\n $this->aRRewardTransporters->addOperationPrimess($this);\n */\n }\n\n return $this->aRRewardTransporters;\n }",
"public function Supplier()\n\t{\n\t\treturn $this->belongsTo('App\\Models\\Supplier');\n\t}",
"public function send() {\n\n $this->request->allowMethod('post');\n\n if (!$this->Access->check('Rewards', 'create')) {\n $this->redirect($this->referer());\n return;\n }\n\n $reward = $this->Session->read('reward');\n\n if (empty($reward)) {\n $this->Flash->set('Oops! It appears you have not prepared a reward.', ['params' => ['class' => 'error']]);\n $this->redirect(array('action' => 'compose'));\n return;\n }\n\n if (empty($reward['RewardRecipient'])) {\n $this->Flash->set('You did not specify any valid recipients.', ['params' => ['class' => 'error']]);\n $this->redirect(array('action' => 'compose'));\n return;\n }\n\n $this->loadModel('Activity');\n\n $reward['Reward']['reward_id'] = $this->Activity->getNewId('Reward');\n $result = $this->Reward->saveAssociated($reward, array('atomic' => false));\n\n if (!$result['Reward'] || (!empty($result['RewardDetail']) && in_array(false, $result['RewardDetail'])) || in_array(false, $result['RewardRecipient'])) {\n $this->Flash->set('There was an error sending the reward. Please contact an administrator', ['params' => ['class' => 'error']]);\n } else {\n $this->Flash->set(\"The reward has been sent! Reward number - #{$this->Reward->id}\", ['params' => ['class' => 'success']]);\n }\n\n $this->Session->delete('reward');\n $this->redirect(array('action' => 'compose'));\n }",
"public function testAddRetweeter(): void\n {\n $result = new ReachResult;\n $user = factory(User::class)->states(['deterministic'])->make();\n $result->addRetweeter($user);\n\n // Assertions\n $this->assertSame($user, $result->getRetweeters()->pop());\n $this->assertSame(1, $result->getRetweetersCount());\n $this->assertSame(1, $result->getReach());\n }",
"public function buyers()\n {\n return $this->hasMany(Comprador::class, 'idNivelEstudios');\n }",
"public function buyer()\n {\n return $this->belongsTo('Buyer');\n }",
"public function setRelations() {}",
"public function assignee(): BelongsTo\n {\n return $this->belongsTo(User::class);\n }",
"public function award()\n\t{\n\t\treturn $this->belongsTo('App\\Award');\n\t}",
"public function offers() {\n return $this->hasMany('Rockit\\Models\\Offer');\n }",
"public function receiver()\n {\n return $this->belongsTo('App\\Employee', 'receiver');\n }",
"public function borrower()\n {\n return $this->belongsTo(Borrower::class);\n }",
"public function viajes(){\n return $this->hasMany(Traveler::class);\n }",
"public function __construct(MerchantRepository $merchantRepository, MerchantRewardRepository $merchantRewardRepository,\n RewardRepository $rewardRepository)\n {\n $this->middleware('auth');\n $this->merchantRepository = $merchantRepository;\n $this->rewardRepository = $rewardRepository;\n $this->merchantRewardRepository = $merchantRewardRepository;\n $this->rewardSenderTypeId = MerchantReward::REWARD_TYPE_REFERRAL_SENDER;\n $this->rewardReceiverTypeId = MerchantReward::REWARD_TYPE_REFERRAL_RECEIVER;\n }",
"public function teachers()\n {\n return $this->belongsToMany('DavideCasiraghi\\LaravelEventsCalendar\\Models\\Teacher', 'event_has_teachers', 'event_id', 'teacher_id');\n }",
"public function enableRelatedAgentFilter(): self\n {\n $this->filter['related_agents'] = 'true';\n\n return $this;\n }",
"public function show(Renters $renters)\n {\n //\n }",
"public function buyer() {\n return $this->belongsTo(User::class);\n }",
"public function set(): BelongsTo\n {\n return $this->belongsTo(RuneSet::class);\n }",
"public function tender()\n {\n return $this->hasOne('App\\Tender', 'id', 'tender_id')->first();\n }",
"public function isTrader()\n {\n return $this->user_role === User::ROLE_TRADER;\n }",
"public function agent()\n {\n return $this->hasMany('App\\Masterdata\\Agent');\n }",
"public function guarantor()\n {\n return $this->belongsTo(Guarantor::class);\n }",
"public function edit(Renters $renters)\n {\n //\n }",
"public function actors()\n {\n return $this->hasMany(Actor_Movie::class);\n }",
"private function writePerformers () {\n\t\t$GLOBALS[\"logger\"]->debug(\"writePerformers\");\n\t\tif ($this->performers != NULL) {\n\t\t\tforeach ($this->performers as $performer) {\n\t\t\t\t$GLOBALS[\"logger\"]->debug(\"Got a performer {$performer->id}\");\n\t\t\t\t// $performer is an Actor\n\t\t\t\t$newRec = ORM::for_table(self::REPTS_PERFS_TABLE)->create();\n\t\t\t\t$newRec->report_id = $this->id;\n\t\t\t\t$newRec->actor_id = $performer->id;\n\t\t\t\t$newRec->save();\n//\t\t\t\t$insstmt = \"INSERT INTO REPORTS_PERFORMERS (REPORT_ID, ACTOR_ID) \" .\n//\t\t\t\t\t\"VALUES ($rptid, $actid)\";\n\t\t\t}\n\t\t}\n\t}",
"public function brewery() : Relation\n {\n $this->belongsTo(Brewery::class);\n }",
"public function referal() {\n return $this->hasMany('App\\Referal','refered_by');\n }",
"public function agent()\n {\n return $this->belongsTo(Agent::class, 'book_agent');\n }",
"public function setRelayer( Streamwide_Engine_Automatic_Signal_Relayer $relayer )\n {\n $this->_relayer = $relayer;\n }",
"public function religion()\n {\n return $this->hasOne(Religion::class , 'id' , 'religions_id');\n }",
"public function buyer()\n {\n return $this->belongsTo('App\\Buyer');\n }",
"public function setReceiver(User $receiver)\n {\n $this->user = $receiver;\n }",
"public function supplier()\n\t{\n\t\treturn $this->belongsTo('App\\Supplier');\n\t}",
"public function seller()\n {\n return $this->belongsTo(User::class, 'seller_id');\n }"
] | [
"0.5896614",
"0.5728776",
"0.571786",
"0.5373154",
"0.5350214",
"0.5274701",
"0.50467205",
"0.5030582",
"0.49982965",
"0.49600393",
"0.49323332",
"0.4928343",
"0.49009565",
"0.4899642",
"0.4886878",
"0.48790926",
"0.4867794",
"0.4830812",
"0.48303097",
"0.4789412",
"0.4761225",
"0.4756395",
"0.47559077",
"0.47420073",
"0.4713324",
"0.47103825",
"0.47067273",
"0.4700261",
"0.4695071",
"0.4692703",
"0.46733207",
"0.46634033",
"0.46614033",
"0.46484092",
"0.4643502",
"0.46377695",
"0.46342358",
"0.4630856",
"0.46280983",
"0.4627142",
"0.46198484",
"0.46182433",
"0.4617136",
"0.46129522",
"0.46051106",
"0.45893016",
"0.4588794",
"0.45876348",
"0.45866975",
"0.45771328",
"0.45755023",
"0.45724776",
"0.45686904",
"0.4567564",
"0.4563545",
"0.45554775",
"0.45474878",
"0.45396855",
"0.45391616",
"0.4533285",
"0.45145246",
"0.45130888",
"0.45108306",
"0.4506403",
"0.45042968",
"0.45039076",
"0.45019597",
"0.449879",
"0.44968387",
"0.44953746",
"0.4494335",
"0.44920745",
"0.44900176",
"0.44853312",
"0.44843897",
"0.44687817",
"0.44582853",
"0.44530767",
"0.4432184",
"0.44320732",
"0.44310415",
"0.44301668",
"0.44279778",
"0.4427924",
"0.4423487",
"0.44183815",
"0.44182754",
"0.4410817",
"0.4399245",
"0.4398147",
"0.4387757",
"0.43844473",
"0.43819195",
"0.43805847",
"0.43786502",
"0.4377345",
"0.4370674",
"0.4356057",
"0.434884",
"0.43455106"
] | 0.7208917 | 0 |
Get the associated RRewardTransporters object | public function getRRewardTransporters(PropelPDO $con = null, $doQuery = true)
{
if ($this->aRRewardTransporters === null && ($this->operation_prime_r_reward_transporter_id !== null) && $doQuery) {
$this->aRRewardTransporters = RRewardTransportersQuery::create()->findPk($this->operation_prime_r_reward_transporter_id, $con);
/* The following can be used additionally to
guarantee the related object contains a reference
to this object. This level of coupling may, however, be
undesirable since it could result in an only partially populated collection
in the referenced object.
$this->aRRewardTransporters->addOperationPrimess($this);
*/
}
return $this->aRRewardTransporters;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function setRRewardTransporters(RRewardTransporters $v = null)\n {\n if ($v === null) {\n $this->setOperationPrimeRRewardTransporterId(NULL);\n } else {\n $this->setOperationPrimeRRewardTransporterId($v->getRRewardTransporterId());\n }\n\n $this->aRRewardTransporters = $v;\n\n // Add binding for other direction of this n:n relationship.\n // If this object has already been added to the RRewardTransporters object, it will not be re-added.\n if ($v !== null) {\n $v->addOperationPrimes($this);\n }\n\n\n return $this;\n }",
"public function getTransportReff()\n {\n return $this->hasOne(MsRefference::className(), ['id' => 'transport_reff_id']);\n }",
"public function getReward()\n {\n return $this->get(self::_REWARD);\n }",
"public function getReward()\n {\n return $this->get(self::_REWARD);\n }",
"public function getReward()\n {\n return $this->get(self::_REWARD);\n }",
"public function getOperationPrimeRRewardTransporterId()\n {\n\n return $this->operation_prime_r_reward_transporter_id;\n }",
"public function transporter() {\n if(is_null($this->transporter)){\n $this->transporter = Transporter::getByIdentifier($this->transporter_id);\n }\n return $this->transporter;\n }",
"public function readTrader() {\r\n //get authorisation from headers\r\n $headers = getallheaders();\r\n $auth = $headers[\"Authorization\"];\r\n\r\n //check authorization\r\n $role = $this->authenticate($auth);\r\n if ($role !== 'trader') {\r\n throw new RestException(401, \"Unauthorized\");\r\n }\r\n //get trader\r\n $traderId = $this->getTraderID($auth);\r\n $trader = Trader::find_by_id($traderId);\r\n if (!$trader) {\r\n throw new RestException(400, \"trader doesn't exist\");\r\n }\r\n return $trader;\r\n }",
"public function trainer()\n {\n return $this->hasOne('App\\Models\\Trainer');\n }",
"public function getHireReward()\n {\n return $this->get(self::_HIRE_REWARD);\n }",
"public function getActivityReward()\n {\n return $this->get(self::_ACTIVITY_REWARD);\n }",
"protected function redeemers(): Redeemer\n {\n return Config::model('redeemer')::make();\n }",
"public function performers() {\n return $this->hasMany('Rockit\\Models\\Performer')\n ->orderBy('order');\n }",
"public function getRewardId()\n {\n return $this->reward_id;\n }",
"public function trainer()\n\t{\n\t\treturn $this->belongsTo('App\\User', 'trainer_uuid', 'uuid');\n\t}",
"public function getBestRankReward()\n {\n return $this->get(self::_BEST_RANK_REWARD);\n }",
"public function RosterRelation()\n {\n return $this->professional->roster;\n }",
"protected function getTrainer()\n {\n return $this->selectOneByParameter();\n }",
"public function tender()\n {\n return $this->hasOne('App\\Tender', 'id', 'tender_id')->first();\n }",
"public function wrestler()\n {\n return $this->hasOne('Efed\\Models\\Wrestler', 'id', 'wrestler_id');\n }",
"public function getStayReward()\n {\n return $this->get(self::_STAY_REWARD);\n }",
"public function getRestaurant()\n {\n $restaurant = Restaurant::getOneBy(array('_id' => $this->restaurant));\n return $restaurant;\n }",
"public function getRestaurant()\n {\n return $this->hasOne(Restaurant::className(), ['restaurantId' => 'restaurantId']);\n }",
"public function trades() {\n\t\treturn $this->hasMany( 'App\\Trade', 'trader' );\n\t}",
"public function trader_partners () {\n //return $this->hasMany('App\\TraderPartner');\n return $this->hasMany('App\\TraderPartner', 'trader_id');\n // return $this->hasMany(TraderPartner::class);\n }",
"public function donor()\n {\n return Donor::where('id', $this->donor_id)->first();\n }",
"public function getRefundToPayer()\n {\n return $this->refund_to_payer;\n }",
"public function getCarierReff()\n {\n return $this->hasOne(MsRefference::className(), ['id' => 'carier_reff_id']);\n }",
"public function getRecommender()\n {\n return $this->recommender;\n }",
"public function getRecipient()\n {\n return $this->hasOne($this->userClassName, ['id' => 'recipient_id'])->from(['recipient' => $this->userTableName]);\n }",
"public function getRentalsService()\n {\n return $this->rentalsService;\n }",
"public function setOperationPrimeRRewardTransporterId($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_numeric($v)) {\n $v = (int) $v;\n }\n }\n if ($this->operation_prime_r_reward_transporter_id !== $v) {\n $this->operation_prime_r_reward_transporter_id = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OPERATION_PRIME_R_REWARD_TRANSPORTER_ID;\n }\n\n if ($this->aRRewardTransporters !== null && $this->aRRewardTransporters->getRRewardTransporterId() !== $v) {\n $this->aRRewardTransporters = null;\n }\n\n\n return $this;\n }",
"public function getPerson() {\n return $this->getPersoner()->getSingle();\n }",
"public function getTur()\n {\n return $this->hasOne(Yordam::className(), ['id' => 'tur_id']);\n }",
"public function getDrawRankReward()\n {\n return $this->get(self::_DRAW_RANK_REWARD);\n }",
"public function getTeacher()\n {\n return $this->hasOne(Teacher::className(), ['teacher_id' => 'teacher_id']);\n }",
"public function get_thrusters() {\n return $this->get_items_by_type(static::$THRUSTERS);\n }",
"public function GetTrainer(){\n\t\t$sql = \"SELECT * from pl.pl_master_trainer order by trainer_status DESC\";\n\t\t$query = $this->db->query($sql);\n\t\treturn $query->result_array();\n\t}",
"public function getLogisticsProviderShipmentToBuyer()\n {\n return $this->logisticsProviderShipmentToBuyer;\n }",
"public function getRelatedParty()\n {\n return $this->relatedParty;\n }",
"public function restaurant()\n {\n return $this->restaurant;\n }",
"public function getReferrers()\n {\n return $this->referrers;\n }",
"public function getRepriseRaisonPers() {\n return $this->repriseRaisonPers;\n }",
"public function GetTrainer(){\r\n\t\t$sql = \"select * from pl.pl_master_trainer order by trainer_status DESC\";\r\n\t\t$query = $this->db->query($sql);\r\n\t\treturn $query->result_array();\r\n\t}",
"public function getRewards()\r\n {\r\n return Controllers\\Rewards::getInstance();\r\n }",
"public function getPayer()\r\n {\r\n return $this->payer;\r\n }",
"public function trailers()\n {\n return $this->hasMany('App\\Trailer');\n }",
"public function getRetailers()\n {\n $admins = User::where('role_id', '=', 1)->lists('id');\n $retailers = Retailer::where('status', '<>', 'affiliate')->whereIn('user_id', $admins);\n\n return Datatables::of($retailers)\n ->editColumn('name', function ($retailer) {\n return '<a href=\"' . url('admin/senders/' . $retailer->id . '/edit') . '\">' . $retailer->name . '</a>';\n })\n ->editColumn('member', function ($retailer) {\n return $retailer->user->firstname . ' ' . $retailer->user->lastname;\n })\n ->editColumn('date', function ($retailer) {\n return Carbon::parse($retailer->created_at)->format('d F Y');\n })\n ->editColumn('archived', function ($retailer) {\n return $retailer->archived == 1 ? '<span class=\"txt-archived\">Archived</span>' : '<span style=\"color: green;\">Active</span>';\n })\n ->editColumn('website', function ($retailer) {\n return $retailer->website ? $retailer->website : '-';\n })\n ->make(true);\n }",
"public function founder()\n\t{\n\t\treturn $this->hasOne('Founder');\n\t}",
"public function reward(): Collection\n {\n return $this->get('api/blocks/getReward');\n }",
"public function dealers()\n {\n return $this->hasMany('App\\Models\\Dealer');\n }",
"public function getDrawReward()\n {\n return $this->get(self::_DRAW_REWARD);\n }",
"public function requester()\n {\n return $this->belongsTo(User::class, 'requester_id');\n }",
"public function getRentals(): array\n {\n return $this->rentals;\n }",
"public function getRecruter()\n {\n return $this->recruter;\n }",
"public function getRefundFromSeller()\n {\n return $this->refundFromSeller;\n }",
"public function seller()\n {\n return $this->morphTo(__FUNCTION__, 'seller_type', 'seller_id');\n }",
"public function getMfpTransportationCharges(){\n return $this->hasMany(Mfp_procurement_transportation_charges::class, 'mfp_procurement_id', 'id'); \n }",
"function getRekening($id)\n {\n $data = $this->rekening->where('id_rekening', $id)->first();\n return $data;\n }",
"public function charges()\n {\n return $this->hasOne('App\\Charge','role_id');\n }",
"public function getSeller()\n {\n return $this->seller;\n }",
"public function recipient() \n {\n if($this->recipient_type == 'User') return $this->belongsTo('App\\Models\\User\\User', 'recipient_id');\n return $this->belongsTo('App\\Models\\Character\\Character', 'recipient_id');\n }",
"public function seller()\n {\n return $this->belongsTo(SellerProxy::modelClass(), 'seller_id');\n }",
"public function deliverer()\n {\n return $this->hasOne('App\\Models\\User');\n }",
"public function getTransportRef()\n {\n return $this->transportRef;\n }",
"public function getTopRatedSeller()\n {\n return $this->topRatedSeller;\n }",
"public function getRecordById($id) {\n $Acceleratedrewards = $this->find('first', array(\n 'conditions' => array('TierSetting.id' => $id),\n 'fields' => array('TierSetting.*')\n ));\n return $Acceleratedrewards;\n }",
"public function isTrader()\n {\n return $this->user_role === User::ROLE_TRADER;\n }",
"public function getPayer()\n {\n return $this->user;\n }",
"public function getReceiver()\n {\n return $this->user;\n }",
"public function teacher()\n {\n return $this->hasOne(Teacher::class);\n }",
"public function statistic()\n {\n return $this->has_one('SummonerStatistic');\n\n }",
"public function getTargetRoas()\n {\n return $this->target_roas;\n }",
"public function getTargetRoas()\n {\n return $this->target_roas;\n }",
"public function getTypesOfPayersForRedeliveryAction(array $options = []): Model;",
"public function adopter()\n {\n return $this->belongsTo('App\\Person', 'adopter_id');\n }",
"public function getRate()\n {\n return $this->hasOne(PaymentRate::class, ['id' => 'rate_id']);\n }",
"public function receiver()\n {\n return User::where('id', $this->receiver_id)->first();\n }",
"protected function getReferencer()\n {\n return $this->referencer;\n }",
"public function getReseller(): string {\n return $this->context->reseller;\n }",
"public function getOriginator()\r\n {\r\n return $this->originator;\r\n }",
"public function show(Renters $renters)\n {\n //\n }",
"public function dealer()\n {\n return $this->belongsTo('App\\Dealer');\n }",
"public function buyers()\n {\n return $this->hasMany(Comprador::class, 'idNivelEstudios');\n }",
"public function getReel()\n {\n return $reel;\n }",
"function teacher_roles_and_responsibilities(){\n return $this->hasOne('App\\Roles_and_responsibilities', 'teacher_id', 'id');\n }",
"public function getRecipient()\n {\n return $this->recipient;\n }",
"public function receiver()\n\t{\n\t\treturn $this->belongsTo('\\User');\n\t}",
"public function teachers()\n {\n return $this->hasMany('App\\Models\\Person');\n }",
"public function target()\n {\n return $this->hasMany(\\App\\Target::class)->where('is_decoy', false);\n }",
"public function getRecipient() {\n return $this->recipient;\n }",
"public function getPersoner()\n {\n if (null == $this->personer_collection) {\n if( is_null($this->getContext())) {\n throw new Exception(\n 'Kan ikke hente personer uten å vite kontekst',\n 105009\n );\n }\n $this->personer_collection = new Personer(\n $this->getContext()->setInnslag(\n $this->getId(),\n $this->getType()->getKey()\n )\n );\n }\n return $this->personer_collection;\n }",
"public function raffle()\n {\n return $this->belongsTo('App\\Models\\Raffle\\Raffle');\n }",
"public function getReactionInfo()\n {\n return isset($this->ReactionInfo) ? $this->ReactionInfo : null;\n }",
"function GetHuntRewards () {\n return unserialize($this->hunt_rewards);\n }",
"public function seeker()\n {\n return Seeker::where('id', $this->seeker_id)->first();\n }",
"public function getRequiredForAllTravelers()\n\t{\n\t\treturn $this->requiredForAllTravelers;\n\t}",
"public function representer() {\n return $this->belongsTo('Rockit\\Models\\Representer');\n }",
"public function getMemberSenders()\n {\n $users = User::where('role_id', '=', 2)->lists('id');\n $retailers = Retailer::where('status', '<>', 'affiliate')->whereIn('user_id', $users);\n\n return Datatables::of($retailers)\n ->editColumn('name', function ($retailer) {\n return '<a href=\"' . url('admin/senders/' . $retailer->id . '/edit') . '\">' . $retailer->name . '</a>';\n })\n ->editColumn('member', function ($retailer) {\n return $retailer->user->firstname . ' ' . $retailer->user->lastname;\n })\n ->editColumn('date', function ($retailer) {\n return Carbon::parse($retailer->created_at)->format('d F Y');\n })\n ->editColumn('archived', function ($retailer) {\n return $retailer->archived == 1 ? '<span class=\"txt-archived\">Archived</span>' : '<span style=\"color: green;\">Active</span>';\n })\n ->editColumn('website', function ($retailer) {\n return $retailer->website ? $retailer->website : '-';\n })\n ->make(true);\n }",
"public function getActualOverheadTransportationCharges(){\n return $this->hasMany(Overhead_transportation_charges::class, 'mfp_procurement_id', 'id'); \n }"
] | [
"0.67275375",
"0.66674775",
"0.6370224",
"0.6370224",
"0.6370224",
"0.6140248",
"0.6060016",
"0.59329355",
"0.59125626",
"0.58662844",
"0.5849428",
"0.57661986",
"0.57508564",
"0.565809",
"0.5646371",
"0.56447196",
"0.5560181",
"0.54870814",
"0.54513925",
"0.54379904",
"0.543377",
"0.53392833",
"0.53374314",
"0.52740043",
"0.5261981",
"0.52479255",
"0.52361435",
"0.52197134",
"0.5215307",
"0.5202208",
"0.5202023",
"0.52015704",
"0.51483643",
"0.514266",
"0.51357764",
"0.5134863",
"0.5120875",
"0.5107247",
"0.50960696",
"0.5093031",
"0.5090463",
"0.5089914",
"0.50844663",
"0.5083823",
"0.50832313",
"0.5070997",
"0.50678027",
"0.50638163",
"0.5059178",
"0.5047252",
"0.50441587",
"0.50386864",
"0.49966785",
"0.49896985",
"0.49886402",
"0.49765226",
"0.49756405",
"0.49654114",
"0.49638015",
"0.49365032",
"0.49250826",
"0.49243772",
"0.49037734",
"0.48935896",
"0.48829928",
"0.48728532",
"0.48713925",
"0.4863281",
"0.48573685",
"0.48513323",
"0.48488793",
"0.48386136",
"0.4830732",
"0.4830732",
"0.48240444",
"0.48224768",
"0.48055482",
"0.480067",
"0.4785893",
"0.478469",
"0.4784669",
"0.47773317",
"0.47740224",
"0.47645444",
"0.47548372",
"0.47486347",
"0.4745024",
"0.47293466",
"0.47027624",
"0.47006723",
"0.46986774",
"0.46978018",
"0.46936744",
"0.46910122",
"0.46891248",
"0.46814486",
"0.46798277",
"0.46781778",
"0.46748793",
"0.4669848"
] | 0.6388936 | 2 |
Initializes a collection based on the name of a relation. Avoids crafting an 'init[$relationName]s' method name that wouldn't work when StandardEnglishPluralizer is used. | public function initRelation($relationName)
{
if ('OperationPrestations' == $relationName) {
$this->initOperationPrestationss();
}
if ('OperationScenarii' == $relationName) {
$this->initOperationScenariis();
}
if ('LnkOperationPrimeRCountries' == $relationName) {
$this->initLnkOperationPrimeRCountriess();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function initRelation($relationName)\n {\n if ('BiblioAuthor' == $relationName) {\n return $this->initBiblioAuthors();\n }\n if ('BiblioTopic' == $relationName) {\n return $this->initBiblioTopics();\n }\n if ('Item' == $relationName) {\n return $this->initItems();\n }\n }",
"public function initRelation($relationName)\n {\n if ('Month' == $relationName) {\n $this->initMonths();\n }\n if ('FileCat' == $relationName) {\n $this->initFileCats();\n }\n if ('DocCat' == $relationName) {\n $this->initDocCats();\n }\n if ('Bookk' == $relationName) {\n $this->initBookks();\n }\n if ('Account' == $relationName) {\n $this->initAccounts();\n }\n if ('Report' == $relationName) {\n $this->initReports();\n }\n if ('Project' == $relationName) {\n $this->initProjects();\n }\n }",
"public function initRelation($relationName)\n {\n if ('ArticleHasIngredient' == $relationName) {\n $this->initArticleHasIngredients();\n return;\n }\n if ('OrderHasArticles' == $relationName) {\n $this->initOrderHasArticless();\n return;\n }\n if ('PackageHasArticles' == $relationName) {\n $this->initPackageHasArticless();\n return;\n }\n if ('Rating' == $relationName) {\n $this->initRatings();\n return;\n }\n }",
"public function initRelation($relationName)\n {\n if ('EtablissementEvent' == $relationName) {\n $this->initEtablissementEvents();\n }\n if ('RegionEvent' == $relationName) {\n $this->initRegionEvents();\n }\n if ('EventI18n' == $relationName) {\n $this->initEventI18ns();\n }\n }",
"public function initRelation($relationName)\n\t{\n\t\tif ('Auditoria' == $relationName) {\n\t\t\treturn $this->initAuditorias();\n\t\t}\n\t\tif ('AvaliacaoRespostaForum' == $relationName) {\n\t\t\treturn $this->initAvaliacaoRespostaForums();\n\t\t}\n\t\tif ('ColetaPesquisa' == $relationName) {\n\t\t\treturn $this->initColetaPesquisas();\n\t\t}\n\t\tif ('ComentarioNoticia' == $relationName) {\n\t\t\treturn $this->initComentarioNoticias();\n\t\t}\n\t\tif ('CurtidaForum' == $relationName) {\n\t\t\treturn $this->initCurtidaForums();\n\t\t}\n\t\tif ('Noticia' == $relationName) {\n\t\t\treturn $this->initNoticias();\n\t\t}\n\t\tif ('Pesquisa' == $relationName) {\n\t\t\treturn $this->initPesquisas();\n\t\t}\n\t\tif ('PesquisaHabilitada' == $relationName) {\n\t\t\treturn $this->initPesquisaHabilitadas();\n\t\t}\n\t\tif ('Premio' == $relationName) {\n\t\t\treturn $this->initPremios();\n\t\t}\n\t\tif ('RespostaForum' == $relationName) {\n\t\t\treturn $this->initRespostaForums();\n\t\t}\n\t\tif ('SolicitacaoResgateRelatedByAprovadorId' == $relationName) {\n\t\t\treturn $this->initSolicitacaoResgatesRelatedByAprovadorId();\n\t\t}\n\t\tif ('SolicitacaoResgateRelatedBySolicitanteId' == $relationName) {\n\t\t\treturn $this->initSolicitacaoResgatesRelatedBySolicitanteId();\n\t\t}\n\t}",
"public function initRelation($relationName)\n {\n if ('Deshabilitamc' == $relationName) {\n $this->initDeshabilitamcs();\n }\n if ('MontacargasBaterias' == $relationName) {\n $this->initMontacargasBateriass();\n }\n if ('UsoBateriasMontacargas' == $relationName) {\n $this->initUsoBateriasMontacargass();\n }\n }",
"public function initRelation($relationName)\n {\n if ('Action' == $relationName) {\n $this->initActions();\n }\n if ('ActionPropertyTypeRelatedByactionTypeId' == $relationName) {\n $this->initActionPropertyTypesRelatedByactionTypeId();\n }\n }",
"public function initRelation($relationName)\n\t{\n\t\tif ('Endereco' == $relationName) {\n\t\t\treturn $this->initEnderecos();\n\t\t}\n\t\tif ('Membro' == $relationName) {\n\t\t\treturn $this->initMembros();\n\t\t}\n\t}",
"public function setCollection()\n {\n $cl = $this->nameCollection;\n $this->collection = self::$database->$cl;\n }",
"public function initRelation($relationName)\n {\n if ('AssignedPrayerRelatedByAgentId' == $relationName) {\n return $this->initAssignedPrayersRelatedByAgentId();\n }\n if ('AssignedPrayerRelatedByPatientId' == $relationName) {\n return $this->initAssignedPrayersRelatedByPatientId();\n }\n if ('PartnersRelatedByAgentId' == $relationName) {\n return $this->initPartnerssRelatedByAgentId();\n }\n if ('PartnersRelatedByPatientId' == $relationName) {\n return $this->initPartnerssRelatedByPatientId();\n }\n if ('PainRating' == $relationName) {\n return $this->initPainRatings();\n }\n if ('UserDemos' == $relationName) {\n return $this->initUserDemoss();\n }\n }",
"public function initRelation($relationName)\n {\n if ('COMCondition' == $relationName) {\n return $this->initCOMConditions();\n }\n if ('COMVendeur' == $relationName) {\n return $this->initCOMVendeurs();\n }\n if ('CMDPiece' == $relationName) {\n return $this->initCMDPieces();\n }\n if ('COMEnduser' == $relationName) {\n return $this->initCOMEndusers();\n }\n if ('CMDTDoc' == $relationName) {\n return $this->initCMDTDocs();\n }\n if ('CMDTAppareil' == $relationName) {\n return $this->initCMDTAppareils();\n }\n }",
"public function initRelation($relationName)\n {\n if ('BangunanDariBlockgrant' == $relationName) {\n $this->initBangunanDariBlockgrants();\n }\n if ('BangunanLongitudinal' == $relationName) {\n $this->initBangunanLongitudinals();\n }\n if ('Ruang' == $relationName) {\n $this->initRuangs();\n }\n if ('VldBangunan' == $relationName) {\n $this->initVldBangunans();\n }\n }",
"public function initRelation($relationName)\n {\n if ('FeatureCvtermDbxref' == $relationName) {\n $this->initFeatureCvtermDbxrefs();\n }\n if ('FeatureCvtermPub' == $relationName) {\n $this->initFeatureCvtermPubs();\n }\n if ('FeatureCvtermprop' == $relationName) {\n $this->initFeatureCvtermprops();\n }\n }",
"public function createCollection($name) {}",
"public function init()\n {\n $this->bases = new \\Doctrine\\Common\\Collections\\ArrayCollection();\n }",
"public function initRelation($relationName)\n {\n if ('PurchaseOrderDetailReceiving' == $relationName) {\n $this->initPurchaseOrderDetailReceivings();\n return;\n }\n if ('PurchaseOrderDetailLotReceiving' == $relationName) {\n $this->initPurchaseOrderDetailLotReceivings();\n return;\n }\n }",
"public function initialize(){\n $this->hasMany(\n \"category_id\", \n \"Multiple\\\\Frontend\\\\Models\\\\Products\", \n \"category\",\n array(\n \"reusable\" => true\n )\n );\n \n $this->hasManyToMany(\n \"category_id\", \n \"Multiple\\\\Frontend\\\\Models\\\\Products\", \n \"category\", \n \"vendor_id\", \n \"Multiple\\\\Frontend\\\\Models\\\\Vendor\", \n \"vendor_id\",\n array(\n \"reusable\" => true,\n \"alias\" => \"AliasVendorPro\"\n )\n );\n }",
"public function initialize()\n {\n $this->hasMany(\"id\", \"Modules\\Models\\Orders\", \"member_id\", array(\n 'alias' => 'orders'\n ));\n }",
"public function initRelation($relationName)\n {\n if ('RIssuesAllplugin' == $relationName) {\n return $this->initRIssuesAllplugins();\n }\n if ('RIssuesNarrationplugin' == $relationName) {\n return $this->initRIssuesNarrationplugins();\n }\n if ('RIssuesRtfplugin' == $relationName) {\n return $this->initRIssuesRtfplugins();\n }\n if ('RIssuesSingleplugin' == $relationName) {\n return $this->initRIssuesSingleplugins();\n }\n if ('RIssuesXmlplugin' == $relationName) {\n return $this->initRIssuesXmlplugins();\n }\n if ('RRightsForissue' == $relationName) {\n return $this->initRRightsForissues();\n }\n if ('Contributions' == $relationName) {\n return $this->initContributionss();\n }\n }",
"public function initialize()\n {\n $this->setSchema(\"sistema\");\n $this->setSource(\"rol\");\n $this->hasMany('id_rol', 'Usuarios', 'id_rol', ['alias' => 'Usuarios']);\n }",
"public function initRelation($relationName)\n\t{\n\t\tif ('PermissaoRelatedByCoUsuarioAlteracao' == $relationName) {\n\t\t\treturn $this->initPermissaosRelatedByCoUsuarioAlteracao();\n\t\t}\n\t\tif ('PermissaoRelatedByCoUsuarioCadastro' == $relationName) {\n\t\t\treturn $this->initPermissaosRelatedByCoUsuarioCadastro();\n\t\t}\n\t\tif ('RlUsuarioOrgao' == $relationName) {\n\t\t\treturn $this->initRlUsuarioOrgaos();\n\t\t}\n\t\tif ('TbDescricaoChamado' == $relationName) {\n\t\t\treturn $this->initTbDescricaoChamados();\n\t\t}\n\t\tif ('UsuarioCategoria' == $relationName) {\n\t\t\treturn $this->initUsuarioCategorias();\n\t\t}\n\t\tif ('UsuarioTarefa' == $relationName) {\n\t\t\treturn $this->initUsuarioTarefas();\n\t\t}\n\t}",
"public function initialize() {\n\n // Relation to DasUsers\n $this->belongsTo('id', 'Aiden\\Models\\DasUsers', 'users_id', ['alias' => 'DasUsers']);\n\n // Relation to Phrases\n $this->hasMany('id', 'Aiden\\Models\\UsersPhrases', 'users_id', [\"alias\" => \"Phrases\"]);\n\n // Relation to Das\n $this->hasManyToMany('id', 'Aiden\\Models\\DasUsers', 'users_id', 'das_id', 'Aiden\\Models\\Das', 'id', ['alias' => 'Das']);\n\n // Relation to Councils\n $this->hasManyToMany('id', 'Aiden\\Models\\UsersCouncils', 'users_id', 'councils_id', 'Aiden\\Models\\Councils', 'id', ['alias' => 'Councils']);\n\n }",
"public function getCollection($name) {}",
"public function initRelation(array $models, $relation)\n {\n foreach ( $models as $model ) {\n $model->setRelation ( $relation, $this->related->newCollection () );\n }\n return $models;\n }",
"public function __construct($collections = array())\n {\n $this->setCollections($collections);\n }",
"private function setRelationDependencies($name, $relation)\n {\n if (empty($relation->via) && $relation->link) {\n foreach ($relation->link as $attribute) {\n $this->_relationsDependencies[$attribute][$name] = $name;\n }\n } elseif ($relation->via instanceof ActiveQueryInterface) {\n $this->setRelationDependencies($name, $relation->via);\n } elseif (is_array($relation->via)) {\n list(, $viaQuery) = $relation->via;\n $this->setRelationDependencies($name, $viaQuery);\n }\n }",
"public function initRelation(array $models, $relation)\n {\n\n foreach ($models as $model) {\n $model->setRelation($relation, $this->related->newCollection());\n }\n\n return $models;\n }",
"public function setCollectionName($name);",
"public function setRelations(Collection $relations);",
"function __construct($connnection)\n\t{ \n\n\t\t$this->collection = $connnection->Model;\n\t}",
"public static function &collection($name)\n\t{\n\t\t$collection = null;\n\t\t$name = ucfirst($name);\n\t\t$class = self::COLLECTION_CLASS_PREFIX . $name;\n\t\t\n\t\tif(!class_exists($class) && is_file(COLLPATH . $name . EXT)) {\n\t\t\trequire COLLPATH . $name . EXT;\n\t\t}\n\t\t\n\t\tif(class_exists($class)) {\n\t\t\t$collection = new $class($name);\n\t\t\t\n\t\t\tif(!is_subclass_of($collection, self::COLLECTION_BASE_CLASS)) {\n\t\t\t\tthrow new BakedCarrotOrmException(\"Class $class is not subclass of \" . self::COLLECTION_BASE_CLASS);\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\t$class_name = self::COLLECTION_BASE_CLASS;\n\t\t\t$collection = new $class_name($name);\n\t\t}\n\t\t\n\t\treturn $collection;\n\t}",
"function getCollection($name);",
"public function initialize()\n {\n $this->setSchema(\"binopt\");\n $this->hasMany('id', 'Deposit', 'promo', ['alias' => 'Deposit']);\n }",
"public function initialize()\n {\n $this->setSchema(\"cubicfox\");\n $this->setSource(\"rates\");\n\n $this->hasManyToMany(\n \"id\",\n \"Users\",\n \"user_id\", \n \"product_id\",\n \"Products\",\n \"id\"\n );\n }",
"private function createCollection()\n {\n $class = get_class($this->data);\n\n $this->name = strtolower(class_basename($class));\n\n $result = $this->callEvent($class, [$class => $this->data]);\n\n if ($result instanceof $this->data) {\n $this->data = $result;\n }\n\n $this->makePaginator();\n }",
"public function __construct()\n {\n $this->_collection = new Collection();\n }",
"public function __construct()\n {\n $this->categories = new ArrayCollection();\n $this->families = new ArrayCollection();\n $this->types = new ArrayCollection();\n $this->designations = new ArrayCollection();\n $this->makes = new ArrayCollection();\n }",
"public function __construct()\n {\n parent::__construct();\n\n $this->organismes = new ArrayCollection();\n $this->reponses = new ArrayCollection();\n $this->tags = new ArrayCollection(); \n $this->categories = new \\Doctrine\\Common\\Collections\\ArrayCollection();\n }",
"protected static function _relations() {\n\n\t}",
"private function initialize($collections) {\r\n if (!isset($collections) || (is_array($collections) && count($collections) === 0)) {\r\n $this->defaultModel = new RestoModel_default();\r\n }\r\n else if (!is_array($collections)) {\r\n $this->defaultCollection = $collections;\r\n $this->defaultModel = $this->defaultCollection->model;\r\n }\r\n else {\r\n $this->collections = $collections;\r\n reset($collections);\r\n $this->defaultCollection = $this->collections[key($collections)];\r\n $this->defaultModel = $this->defaultCollection->model;\r\n }\r\n return $this->loadFromStore();\r\n }",
"public function initialize()\n {\n $this->hasMany('id', 'Aulas', 'id_materia', array('alias' => 'Aulas'));\n $this->hasMany('id', 'Aulas', 'id_materia', NULL);\n }",
"public function initialize()\n {\n // \n $this->setSource(\"img_gallery\");\n $this->belongsTo('imageid', 'WC\\Models\\Image', 'id', ['alias' => 'Image']);\n $this->belongsTo('galleryid', 'WC\\Models\\Gallery', 'id', ['alias' => 'Gallery']);\n }",
"public function __construct($name, $relationModelName) {\n parent::__construct($name, Field::TYPE_FOREIGN_KEY);\n\n $this->setRelationModelName($relationModelName);\n }",
"public function initialize()\n {\n parent::initialize();\n $this->belongsTo('users_id', Users::class, 'id', array('alias' => 'users'));\n $this->belongsTo('companies_id', Companies::class, 'id', array('alias' => 'company'));\n }",
"public function initialize()\n {\n $this->hasMany(\"members_id\", \"\\Event\\Model\\Events\", \"members_id\", ['alias' => 'Events']);\n }",
"public function __construct(){\r\n\t\t$this->collection = new Collection();\r\n\t}",
"public function initialize()\n {\n $this->hasMany('speler_id', 'Team_spelers', 'speler_id', array('alias' => 'Team_spelers'));\n }",
"public function initialize()\n {\n $this->setSchema(\"c5_espositori\");\n $this->setSource(\"exhibitors\");\n $this->hasMany('id', 'Reservations', 'exhibitors_id', ['alias' => 'Reservations', 'reusable' => true]);\n $this->hasMany('id', 'Reservations', 'padre_id', ['alias' => 'Padri']);\n }",
"public function initialize()\n {\n $this->hasMany('id', 'Movie', 'classification_id', array('alias' => 'Movie'));\n }",
"abstract public static function create(Relation $query): Collection;",
"public function initialize()\n {\n $this->belongsTo('id_categoria_gastos', 'CategoriaGastos', 'id_categoria_gastos', array('alias' => 'CategoriaGastos'));\n $this->belongsTo('id_presupuesto', 'Presupuesto', 'id_presupuesto', array('alias' => 'Presupuesto'));\n }",
"public function initialize()\n {\n $this->setSchema(\"technical_test_phalcon_app\");\n $this->setSource(\"company\");\n $this->hasMany('code_company', 'App\\Models\\CompanySecurity', 'code_company', ['alias' => 'CompanySecurity']);\n }",
"public function initialize()\n {\n $this->hasMany('groep_id', 'Gebruikers', 'groep_id', array('alias' => 'Gebruikers'));\n $this->hasMany('groep_id', 'Groep_permissies', 'groep_id', array('alias' => 'Groep_permissies'));\n }",
"public function initialize()\n {\n $this->hasMany('id', 'Message', 'idFil', array('alias' => 'Message'));\n $this->belongsTo('idFil', 'Message', 'id', array('alias' => 'Message'));\n $this->belongsTo('idProjet', 'Projet', 'id', array('alias' => 'Projet'));\n $this->belongsTo('idUser', 'User', 'id', array('alias' => 'User'));\n }",
"public function initialize() {\n $this->setSource('article');\n\n $this->belongsTo('author_id', Article::class, 'author_id', [\n 'alias' => 'author',\n 'reusable' => true,\n ]);\n\n $this->hasMany('article_id', ArticleTag::class, 'article_id', [\n 'alias' => 'tagRelation',\n ]);\n\n $this->hasMany('article_id', Comment::class, 'article_id', [\n 'alias' => 'comments',\n ]);\n }",
"public function initialize()\n {\n $this->setSchema(\"phalcon\");\r\n $this->belongsTo('member_id', '\\BalanceMember', 'member_id', ['alias' => 'BalanceMember']);\n }",
"public function initialize()\n {\n $this->belongsTo('id_actaconteo_persona', 'CobActaconteoPersonaExcusa', 'id_actaconteo_persona', array(\n 'reusable' => true\n ));\n $this->belongsTo('id_actaconteo_persona', 'CobActaconteoPersonaFacturacion', 'id_actaconteo_persona', array(\n 'reusable' => true\n ));\n $this->belongsTo('id_actaconteo', 'CobActaconteo', 'id_actaconteo', array(\n 'reusable' => true\n ));\n }",
"public function __construct()\n {\n $this->categories = new ArrayCollection();\n }",
"public function __construct()\n {\n $this->categories = new ArrayCollection();\n }",
"protected function _prepareCollection()\n {\n $collection = Mage::getResourceModel('bs_docwise/docwisement_collection');\n\n if ($this->getExam()->getId()) {\n $constraint = 'related.exam_id='.$this->getExam()->getId();\n } else {\n $constraint = 'related.exam_id=0';\n }\n $collection->getSelect()->joinLeft(\n array('related' => $collection->getTable('bs_docwise/exam_docwisement')),\n 'related.docwisement_id = main_table.entity_id AND '.$constraint,\n array('position')\n );\n\n\n $this->setCollection($collection);\n parent::_prepareCollection();\n return $this;\n }",
"public function initialize()\r\n {\r\n\t\t$this->belongsTo(\"Mikro\", \"Pobjeda\\Models\\Mikro\", \"idMikro\");\r\n }",
"public function __construct($collection) {\n\t\t\t$this->collection = $collection;\n\t\t}",
"public function initialize() {\n\n $this->belongsTo(\"users_id\", \"Aiden\\Models\\Users\", \"id\", [\"alias\" => \"User\"]);\n $this->belongsTo(\"councils_id\", \"Aiden\\Models\\Councils\", \"id\", [\"alias\" => \"Council\"]);\n\n }",
"public function initialize()\n {\n $this->setSchema(\"bd_diagnostico\");\n $this->setSource(\"categoria\");\n $this->hasMany('id_categoria', 'diag\\cc\\Pregunta', 'id_categoria', ['alias' => 'Pregunta']);\n $this->hasMany('id_categoria', 'diag\\cc\\Visita', 'id_categoria', ['alias' => 'Visita']);\n }",
"public function initialize()\n {\n $this->hasMany('informacion_id', 'Informacionadicional', 'informacion_id', array('alias' => 'Informacionadicional'));\n $this->belongsTo('informacion_adicionalId', 'Adicional', 'adicional_id', array('alias' => 'Adicional'));\n }",
"public function initialize()\n {\n $this->hasMany(\"province_id\", \"Phoenix\\Models\\Area\", \"province_id\");\n $this->hasMany(\"province_id\", \"Phoenix\\Models\\Academy\", \"province_id\");\n $this->hasMany(\"province_id\", \"Phoenix\\Models\\Members\", \"province_id\");\n }",
"public function initialize()\n {\n $this->setSchema(\"\");\n $this->hasMany(\n 'id',\n 'App\\Models\\Flats',\n 'house_id',\n array('alias' => 'Flats', \"reusable\" => true)\n );\n\n $this->belongsTo(\n \"street_id\",\n \"App\\Models\\Streets\",\n \"id\",\n array(\"alias\" => \"Streets\", \"reusable\" => true)\n );\n }",
"public function initialize()\n {\n\t\t$this->hasMany(\"id\", \"PostTags\", \"tags_id\", NULL);\n\n }",
"public function initialize()\n {\n $this->belongsTo(\n 'users_id',\n Users::class,\n 'id',\n ['alias' => 'user']\n );\n\n $this->belongsTo(\n 'companies_id',\n Companies::class,\n 'id',\n ['alias' => 'company']\n );\n\n $this->setSource('users_associated_company');\n }",
"public function initialize()\n {\n $this->hasMany('id_tipobeneficio', 'Documentosbeneficios', 'id_tipobeneficio', array('alias' => 'Documentosbeneficios'));\n $this->hasMany('id_tipobeneficio', 'Documentosbeneficios', 'id_tipobeneficio', NULL);\n }",
"public function collection(string $name): CollectionRef\n {\n return new CollectionRef(documents: $this, name: $name);\n }",
"public function __construct($collection = 'Logs', $name = 'default')\n {\n $this->_collection = $collection;\n $this->_name = $name;\n }",
"public function initialize() {\n $this->setSource('tag');\n\n $this->hasMany('tag_id', ArticleTag::class, 'tag_id', [\n 'alias' => 'articles',\n ]);\n }",
"public function initialize()\n {\n $this->hasMany('cd', 'ShouhinMrs', 'shu_souko_mr_cd', array('alias' => 'ShouhinMrs'));\n $this->hasMany('cd', 'ShiireMeisaiDts', 'souko_mr_cd', array('alias' => 'ShiireMeisaiDts'));\n $this->hasMany('cd', 'UriageMeisaiDts', 'souko_mr_cd', array('alias' => 'UriageMeisaiDts'));\n $this->belongsTo('tantou_mr_cd', 'TantouMrs', 'cd', array('alias' => 'TantouMrs'));\n }",
"public function __construct()\n {\n $this->items = new Collection;\n }",
"public function __construct()\n {\n $this->items = new Collection;\n }",
"function __construct($name)\n {\n $this->name = $name;\n $this->fields = collect();\n $this->filters = collect();\n $this->sorting = collect();\n }",
"public function __construct()\n {\n $this->references = new ArrayCollection();\n }",
"public function initialize()\n {\n $this->setSchema(\"atiempo_prod\");\n $this->hasMany('id', 'AcCartaAvalDetalle', 'id_carta', ['alias' => 'AcCartaAvalDetalle']);\n }",
"protected function doInitialize() : void\n {\n $this->collection = $this->collectionOnInitialization;\n }",
"public function initialize()\n {\n parent::initialize();\n $this->setSchema(\"salesDB\");\n $this->setSource(\"questionnaire\");\n $this->hasMany('id', 'App\\Models\\Question', 'questionnaire_id', ['alias' => 'Question']);\n $this->belongsTo('itinerary_type_id', 'App\\Models\\ItineraryType', 'id', ['alias' => 'ItineraryType']);\n $this->belongsTo('client_id', 'App\\Models\\Client', 'id', ['alias' => 'Client']);\n $this->belongsTo('user_created', 'App\\Models\\User', 'id', ['alias' => 'UserCreated']);\n $this->belongsTo('user_updated', 'App\\Models\\User', 'id', ['alias' => 'UserUpdated']);\n $this->belongsTo('questionnaire_type_id', 'App\\Models\\QuestionnaireType', 'id', ['alias' => 'QuestionnaireType']);\n $this->belongsTo('sync_status_id', 'App\\Models\\SyncStatus', 'id', ['alias' => 'SyncStatus']);\n }",
"public function initialize()\n {\n if (is_null($this->images)) {\n $this->images = new ArrayCollection();\n }\n }",
"public function __get($name)\n\t{\n\t\treturn new Collection($this, $name);\n\t}",
"public function initialize()\n {\n $this->setSchema(\"mus\");\n $this->setSource(\"sculpture\");\n $this->belongsTo(\n 'Art_Objects_id_no',\n 'ArtObjects',\n 'id_no'\n );\n }",
"protected function createRelation(Collection $models, Model $model, string $name, string $line)\n {\n $methods = Method::parseManyMethods($line);\n\n $relation = new MorphToManyOrMorphedByMany([\n 'name' => $name,\n 'type' => $methods->first()->name,\n 'methods' => $methods,\n 'model' => $models->get(optional($methods->first()->arguments->first())->value),\n 'relationKey' => optional($methods->first()->arguments->get(1))->value,\n ]);\n\n $relation->validateWithDefault($model);\n\n $this->validateRelation($model, $relation);\n\n $this->mayGetDeclaredPivotModel($models, $model, $relation);\n\n return $relation;\n }",
"public function initialize()\n {\n parent::initialize();\n $this->setSchema(\"salesDB\");\n $this->setSource(\"product_category\");\n $this->hasMany('id', 'App\\Models\\Product', 'product_category_id', ['alias' => 'Product']);\n $this->belongsTo('user_updated', 'App\\Models\\User', 'id', ['alias' => 'UserUpdated']);\n $this->belongsTo('user_created', 'App\\Models\\User', 'id', ['alias' => 'UserCreated']);\n $this->belongsTo('client_id', 'App\\Models\\Client', 'id', ['alias' => 'Client']);\n $this->belongsTo('sync_status_id', 'App\\Models\\SyncStatus', 'id', ['alias' => 'SyncStatus']);\n }",
"public function initialize()\n {\n $this->hasMany('id_niveldinst', 'Cargaestudiantes', 'id_niveldinst', array('alias' => 'Cargaestudiantes'));\n $this->hasMany('id_niveldinst', 'Datosprofesiona', 'nive_instr', array('alias' => 'Datosprofesiona'));\n $this->hasMany('id_niveldinst', 'Cargaestudiantes', 'id_niveldinst', NULL);\n $this->hasMany('id_niveldinst', 'Datosprofesiona', 'nive_instr', NULL);\n }",
"public function initialize()\n {\n $this->setSchema(\"fox_zeus\");\r\n $this->setSource(\"ubicacion\");\r\n $this->hasMany('codUbicacion', 'HistoricoMovimientos', 'codUbicacion', ['alias' => 'HistoricoMovimientos']);\r\n $this->belongsTo('codSecion', '\\Seccion', 'codSecion', ['alias' => 'Seccion']);\r\n $this->belongsTo('codZona', '\\Zona', 'codZona', ['alias' => 'Zona']);\r\n $this->belongsTo('codSector', '\\Sector', 'codSector', ['alias' => 'Sector']);\r\n $this->belongsTo('codAlmacen', '\\Almacen', 'codAlmacen', ['alias' => 'Almacen']);\r\n $this->belongsTo('codProducto', '\\Producto', 'codProducto', ['alias' => 'Producto']);\n }",
"public function _construct()\n {\n $this->_initProductCollection();\n parent::_construct();\n }",
"public function __get($name)\n {\n return new \\MongoCollection($this->getMongoDB(), $name);\n }",
"public function initVenueratings()\n\t{\n\t\t$this->collVenueratings = new PropelObjectCollection();\n\t\t$this->collVenueratings->setModel('Venuerating');\n\t}",
"public function initRelation(array $models, $relation)\n {\n foreach ($models as $model) {\n $model->setRelation($relation, $this->getDefaultFor($model));\n }\n\n return $models;\n }",
"public function initialize()\n {\n $this->belongsTo('id_segmentation', 'Entities\\Segmentation', 'id', array('foreignKey' => true, 'alias' => 'Segmentation'));\n $this->belongsTo('id_factor_network', 'Entities\\FactorNetwork', 'id', array('foreignKey' => true, 'alias' => 'FactorNetwork'));\n }",
"public function __construct() {\n $this->disciplinas = new \\Doctrine\\Common\\Collections\\ArrayCollection();\n $this->tendencias = new \\Doctrine\\Common\\Collections\\ArrayCollection();\n $this->institucionalEstrategias = new \\Doctrine\\Common\\Collections\\ArrayCollection();\n $this->ofertas = new \\Doctrine\\Common\\Collections\\ArrayCollection();\n $this->estrategiaCampos = new \\Doctrine\\Common\\Collections\\ArrayCollection();\n $this->eventos = new \\Doctrine\\Common\\Collections\\ArrayCollection();\n $this->encuestas = new \\Doctrine\\Common\\Collections\\ArrayCollection();\n }",
"public function __construct() {\n\t\t// creating a collection for storing menus\n\t\t$this->collection = new Collection ();\n\t}",
"public function __construct()\n {\n $this->roles = new ArrayCollection();\n $this->users = new ArrayCollection();\n $this->rolesNames = null;\n }",
"public function initialize()\n {\n $this->belongsTo('company_id', 'Baka\\Auth\\Models\\Companies', 'id', ['alias' => 'company']);\n }",
"private function populateTranslations()\n {\n //translations\n $aRelated = $this->owner->getRelatedRecords();\n if (isset($aRelated[$this->relation]) && $aRelated[$this->relation] != null) {\n if (is_array($aRelated[$this->relation])) {\n foreach ($aRelated[$this->relation] as $model) {\n $this->_models[$model->getAttribute($this->languageField)] = $model;\n }\n } else {\n $model = $aRelated[$this->relation];\n $this->_models[$model->getAttribute($this->languageField)] = $model;\n }\n }\n }",
"public function initialize()\n {\n $this->setSchema(\"mydb\");\n $this->setSource(\"paying\");\n $this->belongsTo('cid', 'Customers', 'cid', array('alias' => 'alias_customers'));\n $this->belongsTo('loanid', 'LoanInformation', 'loanid', array('alias' => 'alias_loan'));\n $this->hasManyToMany(\n 'payingid',\n 'Tracking',\n 'payingid', 'oid',\n 'DeptTrackers',\n 'oid',\n array(\n 'alias' => 'alias_depttrackers'\n )\n );\n }",
"public function initialize()\n {\n $this->belongsTo('nu_cedula', 'Datospersonales', 'nu_cedula', array('alias' => 'Datospersonales'));\n $this->belongsTo('nu_cedula', 'Datospersonales', 'nu_cedula', array('foreignKey' => true));\n }"
] | [
"0.6585325",
"0.6542641",
"0.618295",
"0.6157703",
"0.61574775",
"0.61292356",
"0.6081946",
"0.60809755",
"0.6066873",
"0.60513574",
"0.60422987",
"0.59674436",
"0.59443325",
"0.5847857",
"0.5844884",
"0.58187014",
"0.579734",
"0.5773777",
"0.5758554",
"0.5721656",
"0.5719746",
"0.5668207",
"0.5638768",
"0.560604",
"0.56003726",
"0.55661845",
"0.5523255",
"0.55073434",
"0.5495504",
"0.54892105",
"0.54625505",
"0.5460885",
"0.54460883",
"0.54272664",
"0.5416796",
"0.54117244",
"0.5407334",
"0.54031295",
"0.54028594",
"0.5387569",
"0.5374156",
"0.53703636",
"0.5368728",
"0.5365316",
"0.535862",
"0.53579223",
"0.53543806",
"0.5342227",
"0.5341821",
"0.5341654",
"0.533902",
"0.53270906",
"0.52905524",
"0.5272133",
"0.5243832",
"0.5237624",
"0.52273786",
"0.51952827",
"0.51952827",
"0.5195155",
"0.51943076",
"0.5180734",
"0.5174293",
"0.5172656",
"0.515627",
"0.5152471",
"0.514377",
"0.514248",
"0.51424557",
"0.5141421",
"0.5130548",
"0.5128494",
"0.5127613",
"0.5122222",
"0.5116129",
"0.5116129",
"0.51148564",
"0.5105114",
"0.5101364",
"0.5100049",
"0.50974375",
"0.5097242",
"0.5093919",
"0.50885034",
"0.5088442",
"0.508554",
"0.50822103",
"0.5076151",
"0.50757134",
"0.50730973",
"0.50702864",
"0.5064923",
"0.5063743",
"0.506367",
"0.50568664",
"0.5048447",
"0.5046619",
"0.50456685",
"0.50454825",
"0.5045073"
] | 0.6027309 | 11 |
Clears out the collOperationPrestationss collection This does not modify the database; however, it will remove any associated objects, causing them to be refetched by subsequent calls to accessor method. | public function clearOperationPrestationss()
{
$this->collOperationPrestationss = null; // important to set this to null since that means it is uninitialized
$this->collOperationPrestationssPartial = null;
return $this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function clearOperationScenariis()\n {\n $this->collOperationScenariis = null; // important to set this to null since that means it is uninitialized\n $this->collOperationScenariisPartial = null;\n\n return $this;\n }",
"public function clear()\n {\n $this->op_prime_id = null;\n $this->op_id = null;\n $this->op_prime_libelle = null;\n $this->op_prime_numero = null;\n $this->gdl_art_id = null;\n $this->operation_prime_currency_id = null;\n $this->operation_prime_r_reward_type_id = null;\n $this->operation_prime_r_reward_expedition_mode_id = null;\n $this->operation_prime_r_reward_transporter_id = null;\n $this->operation_prime_fixed_amount = null;\n $this->operation_prime_product_price_pourcentage = null;\n $this->operation_prime_maximum_amount = null;\n $this->alreadyInSave = false;\n $this->alreadyInValidation = false;\n $this->alreadyInClearAllReferencesDeep = false;\n $this->clearAllReferences();\n $this->resetModified();\n $this->setNew(true);\n $this->setDeleted(false);\n }",
"public function setOperationPrestationss(PropelCollection $operationPrestationss, PropelPDO $con = null)\n {\n $operationPrestationssToDelete = $this->getOperationPrestationss(new Criteria(), $con)->diff($operationPrestationss);\n\n\n $this->operationPrestationssScheduledForDeletion = $operationPrestationssToDelete;\n\n foreach ($operationPrestationssToDelete as $operationPrestationsRemoved) {\n $operationPrestationsRemoved->setOperationPrimes(null);\n }\n\n $this->collOperationPrestationss = null;\n foreach ($operationPrestationss as $operationPrestations) {\n $this->addOperationPrestations($operationPrestations);\n }\n\n $this->collOperationPrestationss = $operationPrestationss;\n $this->collOperationPrestationssPartial = false;\n\n return $this;\n }",
"public function clearPesquisas()\n\t{\n\t\t$this->collPesquisas = null; // important to set this to NULL since that means it is uninitialized\n\t}",
"public function clearColetaPesquisas()\n\t{\n\t\t$this->collColetaPesquisas = null; // important to set this to NULL since that means it is uninitialized\n\t}",
"public function clear()\n {\n $this->idmontacargas = null;\n $this->idsucursal = null;\n $this->montacargas_modelo = null;\n $this->montacargas_marca = null;\n $this->montacargas_c = null;\n $this->montacargas_k = null;\n $this->montacargas_p = null;\n $this->montacargas_t = null;\n $this->montacargas_e = null;\n $this->montacargas_volts = null;\n $this->montacargas_amperaje = null;\n $this->montacargas_nombre = null;\n $this->montacargas_numserie = null;\n $this->montacargas_comprador = null;\n $this->montacargas_ciclosmant = null;\n $this->montacargas_ciclosiniciales = null;\n $this->montacargas_baja = null;\n $this->alreadyInSave = false;\n $this->alreadyInValidation = false;\n $this->alreadyInClearAllReferencesDeep = false;\n $this->clearAllReferences();\n $this->applyDefaultValues();\n $this->resetModified();\n $this->setNew(true);\n $this->setDeleted(false);\n }",
"public function clear()\n {\n if (null !== $this->aPurchaseOrder) {\n $this->aPurchaseOrder->removePoReceivingHead($this);\n }\n if (null !== $this->aWarehouse) {\n $this->aWarehouse->removePoReceivingHead($this);\n }\n $this->pothnbr = null;\n $this->pothstat = null;\n $this->pothrcptdate = null;\n $this->intbwhse = null;\n $this->pothglpd = null;\n $this->pothairship = null;\n $this->potherinreview = null;\n $this->pothexchctry = null;\n $this->pothexchrate = null;\n $this->intbwhseorig = null;\n $this->pothlandcost = null;\n $this->pothrcptnbr = null;\n $this->pothlandbasedon = null;\n $this->pothinvcnbr = null;\n $this->pothinvcdate = null;\n $this->pothfrtamt = null;\n $this->pothmiscamt = null;\n $this->dateupdtd = null;\n $this->timeupdtd = null;\n $this->dummy = null;\n $this->alreadyInSave = false;\n $this->clearAllReferences();\n $this->applyDefaultValues();\n $this->resetModified();\n $this->setNew(true);\n $this->setDeleted(false);\n }",
"public function clearOperations()\n {\n $this->_operations = array();\n\n return $this;\n }",
"public function clear()\n {\n $this->shnttype = null;\n $this->shnttypedesc = null;\n $this->oehhnbr = null;\n $this->shntyear = null;\n $this->oedhline = null;\n $this->shntlotser = null;\n $this->shntpickticket = null;\n $this->shntpackticket = null;\n $this->shntinvoice = null;\n $this->shntacknow = null;\n $this->shntseq = null;\n $this->shntnote = null;\n $this->shntkey2 = null;\n $this->shntform = null;\n $this->dateupdtd = null;\n $this->timeupdtd = null;\n $this->dummy = null;\n $this->alreadyInSave = false;\n $this->clearAllReferences();\n $this->applyDefaultValues();\n $this->resetModified();\n $this->setNew(true);\n $this->setDeleted(false);\n }",
"public function clearNoticias()\n\t{\n\t\t$this->collNoticias = null; // important to set this to NULL since that means it is uninitialized\n\t}",
"public function clear()\n {\n $this->collection->clear();\n $this->keys = [];\n }",
"public function clearCollection()\n {\n $this->collections = [];\n }",
"public function clear()\n {\n $this->feature_cvterm_id = null;\n $this->feature_id = null;\n $this->cvterm_id = null;\n $this->pub_id = null;\n $this->is_not = null;\n $this->rank = null;\n $this->alreadyInSave = false;\n $this->alreadyInValidation = false;\n $this->alreadyInClearAllReferencesDeep = false;\n $this->clearAllReferences();\n $this->applyDefaultValues();\n $this->resetModified();\n $this->setNew(true);\n $this->setDeleted(false);\n }",
"public function clearCOMVendeurs()\n {\n $this->collCOMVendeurs = null; // important to set this to NULL since that means it is uninitialized\n }",
"public function clearInappropriates()\n\t{\n\t\t$this->collInappropriates = null; // important to set this to NULL since that means it is uninitialized\n\t}",
"function clear()\r\n\t{\r\n\t\t$this->id = 0;\r\n\t\t$this->competitionId = 0;\r\n\t\t$this->dayNo = 0;\r\n\t\t$this->firstStart = '';\r\n\t\t$this->lastStart = '';\r\n\t\t$this->patrolSpace = 0;\r\n\t\t$this->maxStation = 0;\r\n\t}",
"public function clear() {\n $this->collection = [];\n $this->noteCollectionChanged();\n }",
"private function clear()\n {\n $this->mappedQueries = [];\n $this->mappedFilters = [];\n $this->requestData = [];\n }",
"public function clearCOMConditions()\n {\n $this->collCOMConditions = null; // important to set this to NULL since that means it is uninitialized\n }",
"public function clearCurrentOperation()\n {\n $this->currentOperation = null;\n }",
"public function clearOffensives()\n\t{\n\t\t$this->collOffensives = null; // important to set this to NULL since that means it is uninitialized\n\t}",
"function clear()\r\n\t{\r\n\t\t// Clear the all list\r\n\t\t$this->all = array();\r\n\r\n\t\t// Clear errors\r\n\t\t$this->error = new stdClass();\r\n\t\t$this->error->all = array();\r\n\t\t$this->error->string = '';\r\n\r\n\t\t// Clear this objects properties and set blank error messages in case they are accessed\r\n\t\tforeach ($this->fields as $field)\r\n\t\t{\r\n\t\t\t$this->{$field} = NULL;\r\n\t\t\t$this->error->{$field} = '';\r\n\t\t}\r\n\r\n\t\t// Clear this objects \"has many\" related objects\r\n\t\tforeach ($this->has_many as $related)\r\n\t\t{\r\n\t\t\tunset($this->{$related});\r\n\t\t}\r\n\r\n\t\t// Clear this objects \"has one\" related objects\r\n\t\tforeach ($this->has_one as $related)\r\n\t\t{\r\n\t\t\tunset($this->{$related});\r\n\t\t}\r\n\r\n\t\t// Clear the query related list\r\n\t\t$this->query_related = array();\r\n\r\n\t\t// Clear and refresh stored values\r\n\t\t$this->stored = new stdClass();\r\n\r\n\t\t$this->_refresh_stored_values();\r\n\t}",
"public function clearItems()\n {\n $this->collItems = null; // important to set this to NULL since that means it is uninitialized\n }",
"public function clear()\n\t{\n\t\t$this->getObject()->clear();\n\t}",
"public function clearPainRatings()\n {\n $this->collPainRatings = null; // important to set this to NULL since that means it is uninitialized\n }",
"public function clear()\n {\n if (null !== $this->aPublisher) {\n $this->aPublisher->removeBiblio($this);\n }\n if (null !== $this->aLanguage) {\n $this->aLanguage->removeBiblio($this);\n }\n if (null !== $this->aPlace) {\n $this->aPlace->removeBiblio($this);\n }\n if (null !== $this->aFrequency) {\n $this->aFrequency->removeBiblio($this);\n }\n if (null !== $this->aUser) {\n $this->aUser->removeBiblio($this);\n }\n $this->biblio_id = null;\n $this->title = null;\n $this->sor = null;\n $this->edition = null;\n $this->isbn_issn = null;\n $this->publisher_id = null;\n $this->publish_year = null;\n $this->collation = null;\n $this->series_title = null;\n $this->call_number = null;\n $this->language_id = null;\n $this->source = null;\n $this->publish_place_id = null;\n $this->classification = null;\n $this->notes = null;\n $this->image = null;\n $this->file_att = null;\n $this->opac_hide = null;\n $this->promoted = null;\n $this->labels = null;\n $this->frequency_id = null;\n $this->spec_detail_info = null;\n $this->input_date = null;\n $this->last_update = null;\n $this->uid = null;\n $this->alreadyInSave = false;\n $this->clearAllReferences();\n $this->resetModified();\n $this->setNew(true);\n $this->setDeleted(false);\n }",
"public function clear()\n\t{\n\t\t$this->co_usuario = null;\n\t\t$this->nu_cpf = null;\n\t\t$this->ds_password = null;\n\t\t$this->no_usuario = null;\n\t\t$this->ds_login = null;\n\t\t$this->dt_ultimo_login = null;\n\t\t$this->ds_email = null;\n\t\t$this->co_perfil = null;\n\t\t$this->nu_celular = null;\n\t\t$this->nu_telefone = null;\n\t\t$this->st_usuario = null;\n\t\t$this->alreadyInSave = false;\n\t\t$this->alreadyInValidation = false;\n\t\t$this->clearAllReferences();\n\t\t$this->applyDefaultValues();\n\t\t$this->resetModified();\n\t\t$this->setNew(true);\n\t\t$this->setDeleted(false);\n\t}",
"public function clearCMDTAppareils()\n {\n $this->collCMDTAppareils = null; // important to set this to NULL since that means it is uninitialized\n }",
"public function clear()\n {\n if (null !== $this->aSociete) {\n $this->aSociete->removeCommande($this);\n }\n if (null !== $this->aMTransport) {\n $this->aMTransport->removeCommande($this);\n }\n $this->id_commande = null;\n $this->reference = null;\n $this->soc_id_fk = null;\n $this->transport_fk = null;\n $this->quantite = null;\n $this->prix = null;\n $this->delai = null;\n $this->dte_commande = null;\n $this->priorite = null;\n $this->note = null;\n $this->alreadyInSave = false;\n $this->clearAllReferences();\n $this->resetModified();\n $this->setNew(true);\n $this->setDeleted(false);\n }",
"public function clearRatings()\n {\n $this->collRatings = null; // important to set this to NULL since that means it is uninitialized\n }",
"private function clear(): void\n {\n $this->centralDirectoryRecords = [];\n $this->offset = 0;\n\n if($this->operationMode === OperationMode::NORMAL) {\n $this->ready = false;\n $this->recordedSimulation = [];\n } else {\n $this->operationMode = OperationMode::NORMAL;\n }\n }",
"public function clear(): void\n {\n $this->collectionStatsById = [];\n $this->proxyStatsByClass = [];\n }",
"public function clearShoppingCarts()\n\t{\n\t\t$this->collShoppingCarts = null; // important to set this to NULL since that means it is uninitialized\n\t}",
"public function clearEvents()\n\t{\n\t\t$this->collEvents = null; // important to set this to NULL since that means it is uninitialized\n\t}",
"public function clearComentarioNoticias()\n\t{\n\t\t$this->collComentarioNoticias = null; // important to set this to NULL since that means it is uninitialized\n\t}",
"public function addOperationPrestations(OperationPrestations $l)\n {\n if ($this->collOperationPrestationss === null) {\n $this->initOperationPrestationss();\n $this->collOperationPrestationssPartial = true;\n }\n\n if (!in_array($l, $this->collOperationPrestationss->getArrayCopy(), true)) { // only add it if the **same** object is not already associated\n $this->doAddOperationPrestations($l);\n\n if ($this->operationPrestationssScheduledForDeletion and $this->operationPrestationssScheduledForDeletion->contains($l)) {\n $this->operationPrestationssScheduledForDeletion->remove($this->operationPrestationssScheduledForDeletion->search($l));\n }\n }\n\n return $this;\n }",
"public function initOperationPrestationss($overrideExisting = true)\n {\n if (null !== $this->collOperationPrestationss && !$overrideExisting) {\n return;\n }\n $this->collOperationPrestationss = new PropelObjectCollection();\n $this->collOperationPrestationss->setModel('OperationPrestations');\n }",
"public function clear()\n {\n $this->id = null;\n $this->code = null;\n $this->category = null;\n $this->address = null;\n $this->address2 = null;\n $this->zipcode = null;\n $this->city = null;\n $this->geo_coordinate_x = null;\n $this->geo_coordinate_y = null;\n $this->distance_camping = null;\n $this->image = null;\n $this->priority = null;\n $this->tel = null;\n $this->fax = null;\n $this->email = null;\n $this->website = null;\n $this->created_at = null;\n $this->updated_at = null;\n $this->active = null;\n $this->alreadyInSave = false;\n $this->alreadyInValidation = false;\n $this->clearAllReferences();\n $this->applyDefaultValues();\n $this->resetModified();\n $this->setNew(true);\n $this->setDeleted(false);\n }",
"public function clear()\n\t{\n\t\t$this->id = null;\n\t\t$this->uf_id = null;\n\t\t$this->nome = null;\n\t\t$this->slug = null;\n\t\t$this->longitude = null;\n\t\t$this->latitude = null;\n\t\t$this->alreadyInSave = false;\n\t\t$this->alreadyInValidation = false;\n\t\t$this->clearAllReferences();\n\t\t$this->resetModified();\n\t\t$this->setNew(true);\n\t\t$this->setDeleted(false);\n\t}",
"public function clear()\n {\n if (null !== $this->aTblEra) {\n $this->aTblEra->removeTblProdInfo($this);\n }\n if (null !== $this->aTblGeneral) {\n $this->aTblGeneral->removeTblProdInfo($this);\n }\n if (null !== $this->aTblMenus) {\n $this->aTblMenus->removeTblProdInfo($this);\n }\n if (null !== $this->aTblProdPhotos) {\n $this->aTblProdPhotos->removeTblProdInfo($this);\n }\n if (null !== $this->aTblProdPrices) {\n $this->aTblProdPrices->removeTblProdInfo($this);\n }\n if (null !== $this->aTblProdPricing) {\n $this->aTblProdPricing->removeTblProdInfo($this);\n }\n if (null !== $this->aTblProdSmaller) {\n $this->aTblProdSmaller->removeTblProdInfo($this);\n }\n if (null !== $this->aTblShippingCategories) {\n $this->aTblShippingCategories->removeTblProdInfo($this);\n }\n $this->prod_id = null;\n $this->prod_price_id = null;\n $this->prod_name = null;\n $this->prod_alt1 = null;\n $this->prod_alt2 = null;\n $this->prod_alt3 = null;\n $this->prod_alt4 = null;\n $this->prod_code = null;\n $this->prod_category = null;\n $this->prod_category_shipping = null;\n $this->prod_writeup = null;\n $this->prod_length = null;\n $this->prod_wingspan = null;\n $this->prod_height = null;\n $this->prod_scale = null;\n $this->prod_links = null;\n $this->prod_linkdescription = null;\n $this->prod_front = null;\n $this->prod_keywords = null;\n $this->prod_keywords_writeup = null;\n $this->prod_title = null;\n $this->prod_description = null;\n $this->prod_general = null;\n $this->prod_era = null;\n $this->prod_company = null;\n $this->prod_related = null;\n $this->prod_related_pa = null;\n $this->prod_related_m3 = null;\n $this->prod_related2 = null;\n $this->prod_saveas = null;\n $this->prod_aircraftreg = null;\n $this->mb = null;\n $this->pa = null;\n $this->m3 = null;\n $this->alreadyInSave = false;\n $this->clearAllReferences();\n $this->resetModified();\n $this->setNew(true);\n $this->setDeleted(false);\n }",
"public function clearExperts()\n\t{\n\t\t$this->collExperts = null; // important to set this to NULL since that means it is uninitialized\n\t}",
"public function clear() {\n\t\t$this->_where\t\t= array();\n\t\t$this->_order\t\t= array();\n\t\t$this->_isAddingNew\t= false;\n\t\t$this->_currentRow\t= 0;\n\t\t$this->_relationship\t= array();\n\t\t$this->_recordset\t= array();\n\t\t$this->_updateBuffer\t= array();\n\t\t$this->_limit\t\t= NULL;\n\t\t$this->_offset\t\t= NULL;\n\t\t$this->isDirty( false );\n\t}",
"public function clear()\n {\n $this->sekolah_id = null;\n $this->semester_id = null;\n $this->id_ruang = null;\n $this->hari = null;\n $this->bel_ke_01 = null;\n $this->bel_ke_02 = null;\n $this->bel_ke_03 = null;\n $this->bel_ke_04 = null;\n $this->bel_ke_05 = null;\n $this->bel_ke_06 = null;\n $this->bel_ke_07 = null;\n $this->bel_ke_08 = null;\n $this->bel_ke_09 = null;\n $this->bel_ke_10 = null;\n $this->bel_ke_11 = null;\n $this->bel_ke_12 = null;\n $this->bel_ke_13 = null;\n $this->bel_ke_14 = null;\n $this->bel_ke_15 = null;\n $this->bel_ke_16 = null;\n $this->bel_ke_17 = null;\n $this->bel_ke_18 = null;\n $this->bel_ke_19 = null;\n $this->bel_ke_20 = null;\n $this->create_date = null;\n $this->last_update = null;\n $this->soft_delete = null;\n $this->last_sync = null;\n $this->updater_id = null;\n $this->alreadyInSave = false;\n $this->alreadyInValidation = false;\n $this->alreadyInClearAllReferencesDeep = false;\n $this->clearAllReferences();\n $this->applyDefaultValues();\n $this->resetModified();\n $this->setNew(true);\n $this->setDeleted(false);\n }",
"public function clearVpoRequestCargos()\n\t{\n\t\t$this->collVpoRequestCargos = null; // important to set this to NULL since that means it is uninitialized\n\t}",
"public function clear(){\n\t\t// create array containing all data of the business object not including linked tables//\n\t\t$this->business_data = \n\t\t\tarray(\n\t\t\t\"service_id\"=>0,\n\t\t\t\"service_name\"=>\"\",\n\t\t\t\"service_cost\"=>\"\",\n\n\t\t\t\"service_sys_account_id\"=>0,\n\t\t\t\"sys_account_name\"=>\"\",\n\t\t\t);\n\t}",
"public function clear()\n {\n if (null !== $this->aCakeType) {\n $this->aCakeType->removeArticle($this);\n }\n if (null !== $this->aShape) {\n $this->aShape->removeArticle($this);\n }\n $this->article_id = null;\n $this->description = null;\n $this->price = null;\n $this->creation = null;\n $this->visible = null;\n $this->shape_id = null;\n $this->cake_type_id = null;\n $this->alreadyInSave = false;\n $this->clearAllReferences();\n $this->resetModified();\n $this->setNew(true);\n $this->setDeleted(false);\n }",
"public function clear() {\n $this->_documentBoost = FALSE;\n\n $this->_fields = array();\n $this->_fieldBoosts = array();\n }",
"public function clear()\n {\n $this->id = null;\n $this->name = null;\n $this->is_active = null;\n $this->is_closed = null;\n $this->from_date = null;\n $this->to_date = null;\n $this->sortable_rank = null;\n $this->alreadyInSave = false;\n $this->alreadyInValidation = false;\n $this->alreadyInClearAllReferencesDeep = false;\n $this->clearAllReferences();\n $this->applyDefaultValues();\n $this->resetModified();\n $this->setNew(true);\n $this->setDeleted(false);\n }",
"public function clearQuestions()\n\t{\n\t\t$this->collQuestions = null; // important to set this to NULL since that means it is uninitialized\n\t}",
"public function clear()\n {\n $this->collection = array();\n\n return $this;\n }",
"public function clearQuestionOffensives()\n\t{\n\t\t$this->collQuestionOffensives = null; // important to set this to NULL since that means it is uninitialized\n\t}",
"function clearContainer()\r\n {\r\n foreach ($this->container as $k => $v)\r\n unset($this->container[$k]);\r\n }",
"protected function _clear()\n\t{\n\t\t$this->_query = null;\n\t\t$this->_set = null;\n\t\t$this->_where = null;\n\t\t$this->_limit = null;\n\t}",
"public function clear()\n {\n\n $this->synchronized = true;\n $this->id = null;\n $this->newId = null;\n $this->data = [];\n $this->savedData = [];\n $this->multiRef = [];\n\n }",
"public function clearOpenids()\n\t{\n\t\t$this->collOpenids = null; // important to set this to NULL since that means it is uninitialized\n\t}",
"public function clearRightss()\n {\n $this->collRightss = null; // important to set this to NULL since that means it is uninitialized\n }",
"public function removeAll()\n {\n foreach ($this->findAll() as $object) {\n $this->remove($object);\n }\n }",
"public function clear()\n\t{\n\t\t$this->venueid = null;\n\t\t$this->address = null;\n\t\t$this->address2 = null;\n\t\t$this->city = null;\n\t\t$this->province = null;\n\t\t$this->country = null;\n\t\t$this->latitude = null;\n\t\t$this->longitude = null;\n\t\t$this->phone = null;\n\t\t$this->name = null;\n\t\t$this->description = null;\n\t\t$this->website = null;\n\t\t$this->twitter = null;\n\t\t$this->facebook = null;\n\t\t$this->rssfeed = null;\n\t\t$this->closed = null;\n\t\t$this->lastfmid = null;\n\t\t$this->slug = null;\n\t\t$this->hasphotos = null;\n\t\t$this->submittedbyuser = null;\n\t\t$this->alreadyInSave = false;\n\t\t$this->alreadyInValidation = false;\n\t\t$this->clearAllReferences();\n\t\t$this->applyDefaultValues();\n\t\t$this->resetModified();\n\t\t$this->setNew(true);\n\t\t$this->setDeleted(false);\n\t}",
"public function clearCMDPieces()\n {\n $this->collCMDPieces = null; // important to set this to NULL since that means it is uninitialized\n }",
"public function clear()\n {\n $this->id = null;\n $this->createdatetime = null;\n $this->createperson_id = null;\n $this->modifydatetime = null;\n $this->modifyperson_id = null;\n $this->deleted = null;\n $this->class = null;\n $this->group_id = null;\n $this->code = null;\n $this->name = null;\n $this->title = null;\n $this->flatcode = null;\n $this->sex = null;\n $this->age = null;\n $this->age_bu = null;\n $this->age_bc = null;\n $this->age_eu = null;\n $this->age_ec = null;\n $this->office = null;\n $this->showinform = null;\n $this->gentimetable = null;\n $this->service_id = null;\n $this->quotatype_id = null;\n $this->context = null;\n $this->amount = null;\n $this->amountevaluation = null;\n $this->defaultstatus = null;\n $this->defaultdirectiondate = null;\n $this->defaultplannedenddate = null;\n $this->defaultenddate = null;\n $this->defaultexecperson_id = null;\n $this->defaultpersoninevent = null;\n $this->defaultpersonineditor = null;\n $this->maxoccursinevent = null;\n $this->showtime = null;\n $this->ismes = null;\n $this->nomenclativeservice_id = null;\n $this->ispreferable = null;\n $this->prescribedtype_id = null;\n $this->shedule_id = null;\n $this->isrequiredcoordination = null;\n $this->isrequiredtissue = null;\n $this->testtubetype_id = null;\n $this->jobtype_id = null;\n $this->mnem = null;\n $this->alreadyInSave = false;\n $this->alreadyInValidation = false;\n $this->alreadyInClearAllReferencesDeep = false;\n $this->clearAllReferences();\n $this->applyDefaultValues();\n $this->resetModified();\n $this->setNew(true);\n $this->setDeleted(false);\n }",
"public function clearMembros()\n\t{\n\t\t$this->collMembros = null; // important to set this to NULL since that means it is uninitialized\n\t}",
"public function reset()\n\t{\n\t\t$this->queries = [];\n\t\t$this->count = [\n\t\t\t'total' => 0, 'slow' => 0, 'select' => 0, 'insert' => 0, 'update' => 0, 'delete' => 0, 'other' => 0\n\t\t];\n\n\t\t$this->modelsActions = [];\n\t\t$this->modelsCount = [\n\t\t\t'retrieved' => [], 'created' => [], 'updated' => [], 'deleted' => []\n\t\t];\n\n\t\t$this->nextQueryModel = null;\n\t}",
"public function clear()\n {\n if (null !== $this->auserSysRef) {\n $this->auserSysRef->removeIssues($this);\n }\n if (null !== $this->aBooks) {\n $this->aBooks->removeIssues($this);\n }\n $this->id = null;\n $this->_name = null;\n $this->_opendate = null;\n $this->_closedate = null;\n $this->_status = null;\n $this->_infotext = null;\n $this->_forbook = null;\n $this->__user__ = null;\n $this->__config__ = null;\n $this->__split__ = null;\n $this->__parentnode__ = null;\n $this->__sort__ = null;\n $this->alreadyInSave = false;\n $this->clearAllReferences();\n $this->resetModified();\n $this->setNew(true);\n $this->setDeleted(false);\n }",
"public function clear() {\n foreach ($this->Fields as $key => $item) {\n $this->$key = null;\n }\n }",
"public function clearGearReviews()\n\t{\n\t\t$this->collGearReviews = null; // important to set this to NULL since that means it is uninitialized\n\t}",
"public function clearUserDemoss()\n {\n $this->collUserDemoss = null; // important to set this to NULL since that means it is uninitialized\n }",
"public function clear()\r\n\t{\r\n\t\t$this->isLoaded = false;\r\n\t\t$this->elements = array();\r\n\t\t$this->keyAssocation = array();\r\n\t\t$this->i = 0;\r\n\t\t$this->count = 0;\r\n\t}",
"public function clearCheckInformations()\n\t{\n\t\t$this->collCheckInformations = null; // important to set this to NULL since that means it is uninitialized\n\t}",
"public function clearVenueratings()\n\t{\n\t\t$this->collVenueratings = null; // important to set this to NULL since that means it is uninitialized\n\t}",
"public function getOperationPrestationss($criteria = null, PropelPDO $con = null)\n {\n $partial = $this->collOperationPrestationssPartial && !$this->isNew();\n if (null === $this->collOperationPrestationss || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collOperationPrestationss) {\n // return empty collection\n $this->initOperationPrestationss();\n } else {\n $collOperationPrestationss = OperationPrestationsQuery::create(null, $criteria)\n ->filterByOperationPrimes($this)\n ->find($con);\n if (null !== $criteria) {\n if (false !== $this->collOperationPrestationssPartial && count($collOperationPrestationss)) {\n $this->initOperationPrestationss(false);\n\n foreach ($collOperationPrestationss as $obj) {\n if (false == $this->collOperationPrestationss->contains($obj)) {\n $this->collOperationPrestationss->append($obj);\n }\n }\n\n $this->collOperationPrestationssPartial = true;\n }\n\n $collOperationPrestationss->getInternalIterator()->rewind();\n\n return $collOperationPrestationss;\n }\n\n if ($partial && $this->collOperationPrestationss) {\n foreach ($this->collOperationPrestationss as $obj) {\n if ($obj->isNew()) {\n $collOperationPrestationss[] = $obj;\n }\n }\n }\n\n $this->collOperationPrestationss = $collOperationPrestationss;\n $this->collOperationPrestationssPartial = false;\n }\n }\n\n return $this->collOperationPrestationss;\n }",
"public function clear()\n {\n $this->id = null;\n $this->ref_no = null;\n $this->uniquekeyid = null;\n $this->customer_id = null;\n $this->account_no = null;\n $this->service_type = null;\n $this->service_district_id = null;\n $this->billing_cycle = null;\n $this->due_date = null;\n $this->billing_from = null;\n $this->billing_to = null;\n $this->bill_date = null;\n $this->rate = null;\n $this->meternumber = null;\n $this->billingmethod = null;\n $this->dateoflastreading = null;\n $this->dateofcurrentreading = null;\n $this->daysusage = null;\n $this->lastmeterreading = null;\n $this->currentmeterreading = null;\n $this->unitsconsumed = null;\n $this->lastpaymentamount = null;\n $this->lastpaymentdate = null;\n $this->metermaintenancecharge = null;\n $this->discounts = null;\n $this->othercharges = null;\n $this->penaltycharges = null;\n $this->taxcharges = null;\n $this->charges = null;\n $this->routinecharges = null;\n $this->billservicerate = null;\n $this->buildingtype = null;\n $this->route = null;\n $this->usagetype = null;\n $this->service_charge = null;\n $this->previous_balance = null;\n $this->payment_received = null;\n $this->last_payment_received_date = null;\n $this->current_charge = null;\n $this->total_due = null;\n $this->invoice_no = null;\n $this->receipt_no = null;\n $this->date_created = null;\n $this->creator = null;\n $this->status = null;\n $this->alreadyInSave = false;\n $this->clearAllReferences();\n $this->resetModified();\n $this->setNew(true);\n $this->setDeleted(false);\n }",
"public function clear()\n\t{\n\t\t$this->id = null;\n\t\t$this->perfil_id = null;\n\t\t$this->endereco_id = null;\n\t\t$this->cargo_id = null;\n\t\t$this->departamento_id = null;\n\t\t$this->matricula = null;\n\t\t$this->nome = null;\n\t\t$this->email = null;\n\t\t$this->dni = null;\n\t\t$this->data_nascimento = null;\n\t\t$this->data_contratacao = null;\n\t\t$this->celular = null;\n\t\t$this->telefone = null;\n\t\t$this->token = null;\n\t\t$this->nome_usuario = null;\n\t\t$this->senha = null;\n\t\t$this->token_senha = null;\n\t\t$this->token_firebase = null;\n\t\t$this->data_rescisao = null;\n\t\t$this->ativo = null;\n\t\t$this->tipo_acesso = null;\n\t\t$this->estado_civil = null;\n\t\t$this->nivel_acesso = null;\n\t\t$this->usuario_validado = null;\n\t\t$this->sexo = null;\n\t\t$this->data_cadastro = null;\n\t\t$this->alreadyInSave = false;\n\t\t$this->alreadyInValidation = false;\n\t\t$this->clearAllReferences();\n\t\t$this->applyDefaultValues();\n\t\t$this->resetModified();\n\t\t$this->setNew(true);\n\t\t$this->setDeleted(false);\n\t}",
"public function clear()\n {\n $this->sekolah_id = null;\n $this->kategori_tk_id = null;\n $this->klasifikasi_lembaga_id = null;\n $this->sumber_dana_sekolah_id = null;\n $this->fasilitas_layanan_id = null;\n $this->jadwal_pmtas = null;\n $this->lembaga_pengangkat_id = null;\n $this->jadwal_ddtk = null;\n $this->freq_parenting = null;\n $this->bentuk_lembaga_id = null;\n $this->jadwal_kesehatan = null;\n $this->izin_paud = null;\n $this->pencatatan_ddtk = null;\n $this->rujukan_ddtk = null;\n $this->pelaksanaan_parenting = null;\n $this->parenting_kpo = null;\n $this->parenting_kelas = null;\n $this->parenting_kegiatan = null;\n $this->parenting_konsultasi = null;\n $this->parenting_kunjungan = null;\n $this->parenting_lainnya = null;\n $this->nilk = null;\n $this->nilm = null;\n $this->no_penetapan_pnf = null;\n $this->tanggal_penetapan_pnf = null;\n $this->create_date = null;\n $this->last_update = null;\n $this->soft_delete = null;\n $this->last_sync = null;\n $this->updater_id = null;\n $this->alreadyInSave = false;\n $this->alreadyInValidation = false;\n $this->alreadyInClearAllReferencesDeep = false;\n $this->clearAllReferences();\n $this->applyDefaultValues();\n $this->resetModified();\n $this->setNew(true);\n $this->setDeleted(false);\n }",
"public function clear()\n {\n foreach ($this->objectsRepository as $repository) {\n if ($repository instanceof Repository) {\n $repository->clear();\n }\n }\n parent::clear();\n $this->objectsRepository = [];\n }",
"public function removeAll() {\n\t\t$this->addedObjects = new \\SplObjectStorage();\n\t\tforeach ($this->findAll() as $object) {\n\t\t\t$this->remove($object);\n\t\t}\n\t}",
"public function reset(): void\n {\n $this->_add = new SplObjectStorage();\n $this->_delete = new SplObjectStorage();\n }",
"public function clearExpertCategorys()\n\t{\n\t\t$this->collExpertCategorys = null; // important to set this to NULL since that means it is uninitialized\n\t}",
"public function clearContributionss()\n {\n $this->collContributionss = null; // important to set this to NULL since that means it is uninitialized\n }",
"public function clearStudentQuestionsRelatedByTutorId()\n\t{\n\t\t$this->collStudentQuestionsRelatedByTutorId = null; // important to set this to NULL since that means it is uninitialized\n\t}",
"private function removeProjections()\n {\n //I mustn't make assumption about the underlying table structure\n $this->entityManager->getConnection()->query('TRUNCATE product')->execute();\n }",
"public function clear()\n {\n $this->inputFieldsGroup->clear();\n $this->inputFilesGroup->clear();\n $this->inputImagesGroup->clear();\n $this->inputConditionsGroup->clear();\n }",
"public function clear()\n {\n $this->connection->del($this->key);\n\n if ($this->on_change) {\n call_user_func($this->on_change, []);\n }\n\n if ($this->on_clear) {\n call_user_func($this->on_clear, []);\n }\n }",
"public function clearPatients()\n {\n $this->collPatients = null; // important to set this to NULL since that means it is uninitialized\n }",
"function erase() {\n\t\tif (method_exists($this,'beforeErase') && !$this->beforeErase())\n\t\t\treturn;\n\t\t$this->exec(array('method'=>'remove','criteria'=>$this->criteria));\n\t\t$this->reset();\n\t\tif (method_exists($this,'afterErase'))\n\t\t\t$this->afterErase();\n\t}",
"public function clear()\n {\n $this->phadtype = null;\n $this->phadid = null;\n $this->phadsubid = null;\n $this->phadsubidseq = null;\n $this->phadcont = null;\n $this->phadintl = null;\n $this->phadtelenbr = null;\n $this->phadteleext = null;\n $this->phadintlnbr = null;\n $this->phadintlext = null;\n $this->phadfaxnbr = null;\n $this->phadifaxnbr = null;\n $this->phadcellnbr = null;\n $this->phadicellnbr = null;\n $this->phadhomenbr = null;\n $this->phadihomenbr = null;\n $this->phadwebaddr = null;\n $this->phademailaddr = null;\n $this->phadname = null;\n $this->phadcontname = null;\n $this->dateupdtd = null;\n $this->timeupdtd = null;\n $this->dummy = null;\n $this->alreadyInSave = false;\n $this->clearAllReferences();\n $this->applyDefaultValues();\n $this->resetModified();\n $this->setNew(true);\n $this->setDeleted(false);\n }",
"public function clearModels();",
"public function clear()\n {\n $this->map->clear();\n }",
"public function clearVpoRequestPassengers()\n\t{\n\t\t$this->collVpoRequestPassengers = null; // important to set this to NULL since that means it is uninitialized\n\t}",
"public function removeAll() {\n $sql = 'SET FOREIGN_KEY_CHECKS = 0; TRUNCATE TABLE course';\n \n $connection_manager = new connection_manager();\n $conn = $connection_manager->connect();\n \n $stmt = $conn->prepare($sql);\n \n $stmt->execute();\n $count = $stmt->rowCount();\n }",
"public function clear()\n {\n $this->batch = [];\n }",
"public function clear()\n {\n $this->repository->clear();\n }",
"public function clearActions()\n {\n $this->collActions = null; // important to set this to null since that means it is uninitialized\n $this->collActionsPartial = null;\n\n return $this;\n }",
"public function clear()\n {\n $this->data = [];\n }",
"function removeCollection()\n {\n $collection = eZProductCollection::fetch( $this->attribute( 'productcollection_id' ) );\n $collection->remove();\n }",
"public function clear()\n\t{\n\t\tforeach($this->all() as $ip)\n\t\t{\n\t\t\t$this->delete($ip['ip_address']);\n\t\t}\n\t}",
"public function clearAll() {\n $this->param = array();\n $this->method_map = array();\n $this->response = NULL;\n $this->query = '';\n }",
"public function delete_all() {\n\t\t$this->_cache = array();\n\t\t$this->_collections = array();\n\t}",
"public function resetCollectionsForPersist()\n {\n $this->containers = new ArrayCollection();\n $this->functions = new ArrayCollection();\n $this->constants = new ArrayCollection();\n }",
"public function clear()\n {\n $this->repository = array();\n }",
"public function reset()\n {\n // reset properties\n $this->query = '';\n $this->rewind();\n \n // release result resource\n if (!empty($this->db) && !empty($this->result) &&\n is_resource($this->db) && is_resource($this->result)) {\n $this->free_result();\n }\n }"
] | [
"0.674621",
"0.6288673",
"0.6185417",
"0.60685194",
"0.603315",
"0.5999126",
"0.5965161",
"0.59575105",
"0.595447",
"0.5941018",
"0.5928908",
"0.5921569",
"0.5875568",
"0.5865466",
"0.58006847",
"0.5782392",
"0.57652754",
"0.57650787",
"0.5749568",
"0.5733896",
"0.56765324",
"0.5674769",
"0.5628459",
"0.56276095",
"0.55843484",
"0.55538785",
"0.5552039",
"0.55508447",
"0.5541118",
"0.5535109",
"0.5526026",
"0.55252796",
"0.55089456",
"0.54972744",
"0.54484665",
"0.544609",
"0.54417",
"0.541406",
"0.54122716",
"0.5407452",
"0.5397036",
"0.5395317",
"0.5386759",
"0.5384641",
"0.5383326",
"0.53787863",
"0.53705466",
"0.5367411",
"0.5362082",
"0.5359899",
"0.5352395",
"0.5349887",
"0.53446984",
"0.5337219",
"0.53309965",
"0.53286916",
"0.5327753",
"0.5325958",
"0.532528",
"0.5318221",
"0.5311426",
"0.53105766",
"0.53024894",
"0.52467823",
"0.52456045",
"0.5227283",
"0.5225127",
"0.52241504",
"0.5219444",
"0.521325",
"0.5191249",
"0.51892424",
"0.5172623",
"0.51672953",
"0.5166107",
"0.51648784",
"0.515988",
"0.515085",
"0.515083",
"0.5146733",
"0.5136902",
"0.5122751",
"0.51150393",
"0.5113511",
"0.510747",
"0.5089129",
"0.5084807",
"0.50826",
"0.50820905",
"0.5078306",
"0.5077477",
"0.5075244",
"0.5067576",
"0.50665057",
"0.50639284",
"0.50520444",
"0.5048711",
"0.5048107",
"0.5045755",
"0.5039278"
] | 0.8006322 | 0 |
reset is the collOperationPrestationss collection loaded partially | public function resetPartialOperationPrestationss($v = true)
{
$this->collOperationPrestationssPartial = $v;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function clearOperationPrestationss()\n {\n $this->collOperationPrestationss = null; // important to set this to null since that means it is uninitialized\n $this->collOperationPrestationssPartial = null;\n\n return $this;\n }",
"public function reset()\n\t{\n\t\t$this->queries = [];\n\t\t$this->count = [\n\t\t\t'total' => 0, 'slow' => 0, 'select' => 0, 'insert' => 0, 'update' => 0, 'delete' => 0, 'other' => 0\n\t\t];\n\n\t\t$this->modelsActions = [];\n\t\t$this->modelsCount = [\n\t\t\t'retrieved' => [], 'created' => [], 'updated' => [], 'deleted' => []\n\t\t];\n\n\t\t$this->nextQueryModel = null;\n\t}",
"public function refresh()\n {\n $this->_totalCount = null;\n $this->_models = null;\n $this->_keys = null;\n }",
"private function reset()\n\t{\t\t\n\t\t$this->limit = null;\n\t\t\n\t\t$this->table = null;\n\t\t\n\t\t$this->offset = null;\n\t\t\n\t\t$this->data = [];\n\t\t\n\t\t$this->joins = [];\n\t\t\n\t\t$this->wheres = [];\n\t\t\n\t\t$this->orderBy = [];\n\t\t\n\t\t$this->selects = [];\n\t\t\n\t\t$this->bindings = [];\n\t\t\t\n\t}",
"function reset(){\n\t\t$this->__columns = array();\n\t\t$this->__actions = array();\n\t}",
"public function resetCollectionsForPersist()\n {\n $this->containers = new ArrayCollection();\n $this->functions = new ArrayCollection();\n $this->constants = new ArrayCollection();\n }",
"public function reset() {\n $this->entitiescount = 0;\n }",
"public function reset()\n {\n $this->values[self::RES] = array();\n }",
"function reset() {\n\t\tparent::_resetSet();\n\t}",
"public function reset() {\n\t\t\t$this->arList = NULL; \t\n\t\t}",
"public function clearOperationScenariis()\n {\n $this->collOperationScenariis = null; // important to set this to null since that means it is uninitialized\n $this->collOperationScenariisPartial = null;\n\n return $this;\n }",
"protected function reset() {\n\t\t$this->data = array();\n\t}",
"public function clearCollection()\n {\n $this->collections = [];\n }",
"protected function reset() {\n //query builder reset\n $this->queryBuilder->reset();\n $this->numRows = 0;\n $this->insertId = null;\n $this->query = null;\n $this->result = array();\n $this->data = array();\n $this->queryCount = 0;\n }",
"public static function reset()\n {\n self::$toLoad = array();\n }",
"public function reset()\n {\n $this->hasLimit = false;\n $this->limit = 0;\n $this->offset = 0;\n $this->orderColumns = array();\n parent::reset();\n }",
"public function reset()\n {\n $this->data = array();\n }",
"protected function _resetData()\n\t{\n\n\t\t// clean data, total and pagination, as we need them rebuilt\n\t\t$this->_data = null;\n\t\t$this->_total = null;\n\t\t$this->_pagination = null;\n\t}",
"public function reset()\n {\n $this->values[self::_GUILDS] = array();\n $this->values[self::_RESULT] = null;\n $this->values[self::_CREATE_COST] = null;\n }",
"public function resetLookupCollections()\n\t{\n\t\t$this->lookupCollections[] = null;\n\t}",
"public function reset()\n {\n $this->values[self::_RESULT] = null;\n $this->values[self::_RSEED] = null;\n $this->values[self::_HERO_BASES] = array();\n $this->values[self::_HERO_DYNAS] = array();\n }",
"public function reset(): void\n {\n $this->_add = new SplObjectStorage();\n $this->_delete = new SplObjectStorage();\n }",
"public function reset()\n\t{\n\t\t$this->get(1);\n\t}",
"public function reset()\n {\n $this->values[self::_GUILDS] = null;\n $this->values[self::_RESULT] = null;\n $this->values[self::_CREATE_COST] = null;\n }",
"protected function resetSynchronised()\n {\n /*\n * Lists\n */\n\n /** @var $lists Laposta_Connect_Model_Mysql4_List_Collection */\n $lists = Mage::getModel('lapostaconnect/list')->getCollection();\n\n /** @var $list Laposta_Connect_Model_List */\n foreach ($lists as $list) {\n $list->setLapostaId('');\n $list->setWebhookToken('');\n $list->setSyncTime(null);\n }\n\n $lists->save();\n\n Mage::helper('lapostaconnect')->log('Lists reset OK.');\n\n /*\n * Fields\n */\n\n $fields = Mage::getModel('lapostaconnect/field')->getCollection();\n\n /** @var $field Laposta_Connect_Model_Field */\n foreach ($fields as $field) {\n $field->setLapostaId('');\n $field->setLapostaTag('');\n $field->setSyncTime(null);\n }\n\n $fields->save();\n\n Mage::helper('lapostaconnect')->log('Fields reset OK.');\n\n /*\n * Subscribers\n */\n\n /** @var $subscribers Laposta_Connect_Model_Mysql4_Subscriber_Collection */\n $subscribers = Mage::getModel('lapostaconnect/subscriber')->getCollection();\n\n /** @var $subscriber Laposta_Connect_Model_Subscriber */\n foreach ($subscribers as $subscriber) {\n $subscriber->setLapostaId('');\n $subscriber->setSyncTime(null);\n }\n\n $subscribers->save();\n\n Mage::helper('lapostaconnect')->log('Subscribers reset OK.');\n }",
"public function reset()\n {\n $this->values[self::_RESULT] = null;\n $this->values[self::_HERO] = null;\n $this->values[self::_ITEMS] = array();\n }",
"public function reset()\n {\n $this->values[self::_ITEM_ID] = null;\n $this->values[self::_NUM] = null;\n $this->values[self::_STATE] = null;\n $this->values[self::_APPLY_NUM] = null;\n $this->values[self::_ABLE_APP_COUNT] = null;\n }",
"protected function reset()\n {\n $this->iterator->rewind();\n }",
"public function reset()\n {\n $this->values[self::_COMP] = array();\n }",
"public function reset()\n {\n $this->values[self::_PER] = null;\n $this->values[self::_ITEMS] = array();\n }",
"public function reset() {\n $this->setEntities([]);\n $this->setLinks([]);\n $this->setMetadata([]);\n $this->setIncludes([]);\n $this->setDynamic();\n $this->setCacheability(new CacheableMetadata());\n }",
"private function resetAll(){\n $this->score = ['heritage'=> 0,'relax'=> 0,'sightseeing'=> 0,'weather'=> 0,'populated'=> 0];\n $this->answeredQuestions = [];\n $this->answersId = [];\n }",
"public function clearOffensives()\n\t{\n\t\t$this->collOffensives = null; // important to set this to NULL since that means it is uninitialized\n\t}",
"public function reset()\n {\n $this->values[self::services] = array();\n $this->values[self::mapping] = array();\n $this->values[self::short_tcp] = self::$fields[self::short_tcp]['default'];\n }",
"public function reset()\n {\n $this->_contacts = [];\n $this->_lists = [];\n }",
"function Reset()\n\t{\t$this->details = array();\n\t\t$this->courses = array();\n\t\t$this->id = 0;\n\t}",
"private function reset(){\n\n\t\tforeach($this as $k=>$v) unset($this->$k);\n\n\t\t$this::$map = $this->maper();\n\n\t\t$this->name = \"\";\n\n\t\t$this->address = [];\n\n\t\t$this->tableclass();\n\n\t}",
"public static function reset() {\n\t\tself::$objects = array();\n\t}",
"public function reset()\n {\n $this->values[self::_OPPOS] = array();\n }",
"public function resetCaches() {\n $this->datasource = NULL;\n $this->server_object = NULL;\n $this->callbacks = NULL;\n $this->processors = NULL;\n $this->added_properties = NULL;\n $this->fields = array();\n $this->fulltext_fields = array();\n }",
"public function resetData();",
"public function reset()\n {\n $this->values[self::_RESULT] = null;\n $this->values[self::_ITEMS] = array();\n $this->values[self::_HERO] = array();\n $this->values[self::_DIAMOND] = null;\n }",
"public function reset() {\n $this->databasefieldcount = 0;\n $this->databaserecordcount = 0;\n\n parent::reset();\n }",
"function clear() {\r\n /* clear datasource. you should call this before calling another populate() to avoid datasource gets appended\r\n */\r\n $this->ds = new DataSource;\r\n $this->db_count = 0;\r\n }",
"private function reset_internal() {\n\t\t$this->started = false;\n\t\t$this->failed = false;\n\t\t$this->querys = array();\n\t\t$this->querys_info = array();\n\t\t$this->querys_info['exec_times'] = array();\n\t\t$this->querys_info['explain_results'] = array();\n\t}",
"public function reset()\n {\n // reset properties\n $this->query = '';\n $this->rewind();\n \n // release result resource\n if (!empty($this->db) && !empty($this->result) &&\n is_resource($this->db) && is_resource($this->result)) {\n $this->free_result();\n }\n }",
"public function reset()\n {\n $this->values[self::sku_arr] = array();\n $this->values[self::pagination] = null;\n }",
"public function clear() {\n $this->collection = [];\n $this->noteCollectionChanged();\n }",
"public function initOperationPrestationss($overrideExisting = true)\n {\n if (null !== $this->collOperationPrestationss && !$overrideExisting) {\n return;\n }\n $this->collOperationPrestationss = new PropelObjectCollection();\n $this->collOperationPrestationss->setModel('OperationPrestations');\n }",
"private function resetResults() {\n $this->results = array();\n }",
"function reset() {\n\n\t\treturn $this->iterator->reset();\n\n\t}",
"public function resetData()\r\n {\r\n }",
"public function reset() {\n $this->values[self::TOTAL] = null;\n $this->values[self::COUNT] = null;\n $this->values[self::TOTAL_BUSLINE_NUM] = null;\n $this->values[self::AREAID] = null;\n }",
"public function clearMembros()\n\t{\n\t\t$this->collMembros = null; // important to set this to NULL since that means it is uninitialized\n\t}",
"public function reset()\n {\n $this->values[self::_STAGE_ID] = null;\n $this->values[self::_DPS_RANK] = array();\n $this->values[self::_FIRST_PASS] = null;\n $this->values[self::_FAST_PASS] = null;\n }",
"function clear(){\n \t\t$this->result = array();\n \t}",
"public function reset()\n {\n $this->values[self::_RESULT] = null;\n $this->values[self::_RSEED] = null;\n }",
"function reset_data() {\n\t\t$this->data_layer()->clear();\n\t\t$this->log = null;\n\t\t$this->location = null;\n\t\t$this->tax_location = null;\n\t}",
"public function reset()\n {\n $this->values[self::_RESULT] = null;\n $this->values[self::_STAGE_ID] = null;\n $this->values[self::_REWARDS] = array();\n $this->values[self::_HEROES] = array();\n }",
"public function reset()\n {\n $this->values[self::_RESULT] = null;\n $this->values[self::_SHOP] = null;\n }",
"public function reset()\n {\n $this->values[self::_ID] = null;\n $this->values[self::_PROGRESS] = null;\n $this->values[self::_BEGIN_TIME] = null;\n $this->values[self::_REST_TIMES] = null;\n $this->values[self::_CUR_STAGE_ID] = null;\n }",
"protected function reset() {}",
"public function reset()\n {\n $this->values[self::_SUMMARY] = array();\n $this->values[self::_TIMEOUT] = null;\n $this->values[self::_ITEM_COUNT] = null;\n $this->values[self::_RANK] = null;\n $this->values[self::_ITEM_ID] = null;\n $this->values[self::_JUMP_TIMES] = null;\n $this->values[self::_COST_MONEY] = null;\n }",
"protected function reset() {}",
"protected function reset() {}",
"public function reset() {\n $this->data = array(); \n $this->input = array();\n $this->missing = array();\n $this->invalid = array();\n $this->errors = array();\n $this->error = false;\n }",
"public function reset(){}",
"public function reset()\n {\n $this->values[self::_SUMMARY] = null;\n $this->values[self::_RESULT] = null;\n $this->values[self::_REWARDS] = array();\n $this->values[self::_APPLY_REWARDS] = array();\n $this->values[self::_STAGE_OLD_PROGRESS] = null;\n $this->values[self::_JOIN_TIMES] = null;\n $this->values[self::_BREAK_HISTORY] = null;\n }",
"public function reset()\n {\n $this->_metaData = array();\n $this->_columnMap = array();\n }",
"public function reset()\n {\n $this->values[self::_RESULT] = null;\n $this->values[self::_SHOP] = null;\n $this->values[self::_SSHOP] = null;\n }",
"public function reset() {\n\t\t$this->start = $this->end = [];\n\t}",
"public function reset(): void\n {\n $this->data = [];\n }",
"public function reset()\n {\n $this->values[self::_RESULT] = null;\n $this->values[self::_LINEUP] = array();\n $this->values[self::_GS] = null;\n }",
"public function setOperationPrestationss(PropelCollection $operationPrestationss, PropelPDO $con = null)\n {\n $operationPrestationssToDelete = $this->getOperationPrestationss(new Criteria(), $con)->diff($operationPrestationss);\n\n\n $this->operationPrestationssScheduledForDeletion = $operationPrestationssToDelete;\n\n foreach ($operationPrestationssToDelete as $operationPrestationsRemoved) {\n $operationPrestationsRemoved->setOperationPrimes(null);\n }\n\n $this->collOperationPrestationss = null;\n foreach ($operationPrestationss as $operationPrestations) {\n $this->addOperationPrestations($operationPrestations);\n }\n\n $this->collOperationPrestationss = $operationPrestationss;\n $this->collOperationPrestationssPartial = false;\n\n return $this;\n }",
"function Reset ( )\n{\n $this->_dataset = array();\n $this->_ReversedRecord = false;\n $this->_CurrPtr = -1;\n $this->_PageCount = 0;\n $this->_RecordCount = 0;\n $this->_new_page_(0);\n $this->_isAscending = true;\n $this->_FilterExp = '';\n}",
"private function reset_state() {\n\n\t\t\tglobal $ld_qs_api_vars;\n\t\t\t/**\n\t\t\t * Reset the state only if we have some data in memory upfront\n\t\t\t * because embed will be called only when there is valid data\n\t\t\t * available in memory.\n\t\t\t */\n\t\t\tif ( ! empty( $this->stat_refs ) ) {\n\t\t\t\t$GLOBALS['ld_qs_api_vars'] = $ld_qs_api_vars ? $ld_qs_api_vars : array();\n\t\t\t\t$object_vars = get_object_vars( $this );\n\t\t\t\t$GLOBALS['ld_qs_api_vars'][] = $object_vars;\n\n\t\t\t\tforeach ( $object_vars as $property => $var ) {\n\n\t\t\t\t\tswitch ( gettype( $var ) ) {\n\n\t\t\t\t\t\tcase 'integer':\n\t\t\t\t\t\t\t$this->$property = 0;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'string':\n\t\t\t\t\t\t\t$this->$property = '';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'array':\n\t\t\t\t\t\t\t$this->$property = array();\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t$this->$property = null;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"public function reset(): void\n {\n $this->data = [];\n $this->relationships = [];\n }",
"public function reset()\n {\n $this->values[self::_ID] = null;\n $this->values[self::_STAGE_ID] = null;\n $this->values[self::_LEFT_TIME] = null;\n $this->values[self::_START_TIME] = null;\n $this->values[self::_PROGRESS] = null;\n $this->values[self::_STAGE_PROGRESS] = null;\n $this->values[self::_BATTLE_USER_ID] = null;\n }",
"private function _preLoadReset() {\n\t\t$this->_amountProcessedLines = $this->_amountReadLines = 0;\n\t\t$this->_linesInvalidSize = $this->_lines = [];\n\t}",
"private function clear()\n {\n $this->mappedQueries = [];\n $this->mappedFilters = [];\n $this->requestData = [];\n }",
"public function reset() {\n $this->startTime = 0;\n $this->endTime = 0;\n $this->pauseTime = 0;\n $this->totalTime = 0;\n $this->laps = array();\n $this->isRunning = false;\n $this->isPaused = false;\n $this->lapCount = 0;\n }",
"public function reset_rezultati()\n {\n $query = $this->query(\"SELECT * FROM rezultati;\");\n foreach ($query->getResultArray() as $row)\n {\n $this->delete($row['idrezultati']);\n }\n }",
"public function reset()\n {\n $this->values[self::_RESULT] = null;\n $this->values[self::_LEFT_TIME] = null;\n }",
"public function reset()\n {\n $this->values[self::_RESULT] = null;\n $this->values[self::_REWARDS] = array();\n }",
"public function clearNoticias()\n\t{\n\t\t$this->collNoticias = null; // important to set this to NULL since that means it is uninitialized\n\t}",
"private function reset() {\n\t\t$this->conditions = array();\n\t\t$this->setFormByConditions();\n\t}",
"public function reset()\n {\n $this->values[self::_ITEMS] = array();\n $this->values[self::_RAID_ID] = null;\n $this->values[self::_APPLY_ITEM_ID] = null;\n $this->values[self::_RANK] = null;\n }",
"public function reset()\n {\n $this->values[self::contractorstatics] = null;\n $this->values[self::stores] = array();\n $this->values[self::visited] = array();\n $this->values[self::review_info] = array();\n $this->values[self::customer_info] = array();\n $this->values[self::mark_price_info] = array();\n $this->values[self::more_url] = null;\n $this->values[self::order_tracking] = array();\n }",
"public function resetCriteria();",
"public function resetPartialOperationScenariis($v = true)\n {\n $this->collOperationScenariisPartial = $v;\n }",
"protected function _clear()\n\t{\n\t\t$this->_query = null;\n\t\t$this->_set = null;\n\t\t$this->_where = null;\n\t\t$this->_limit = null;\n\t}",
"public function reset()\r\n\t{\r\n\t\t$this->first = null;\r\n\t\t$this->alreadyIncluded = array();\r\n\t\t$this->depths = array();\r\n\t}",
"public function clearPesquisas()\n\t{\n\t\t$this->collPesquisas = null; // important to set this to NULL since that means it is uninitialized\n\t}",
"public function clearPackageHasArticless()\n {\n $this->collPackageHasArticless = null; // important to set this to NULL since that means it is uninitialized\n }",
"public function reset()\n {\n // don't start a new session to remove something that isn't there\n $this->lazyStart();\n $this->_store = array();\n }",
"public function reset()\n {\n $this->values[self::_STATUS] = null;\n $this->values[self::_REWARDS] = array();\n }",
"public function clear() {\n $this->_documentBoost = FALSE;\n\n $this->_fields = array();\n $this->_fieldBoosts = array();\n }",
"public function initOffensives()\n\t{\n\t\t$this->collOffensives = array();\n\t}",
"public function reset()\n {\n $this->values[self::FILTER] = null;\n $this->values[self::AFTERINDEXKEY] = null;\n $this->values[self::POPULATEDOCUMENTS] = self::$fields[self::POPULATEDOCUMENTS]['default'];\n $this->values[self::INJECTENTITYCONTENT] = self::$fields[self::INJECTENTITYCONTENT]['default'];\n $this->values[self::POPULATEPREVIOUSDOCUMENTSTATES] = self::$fields[self::POPULATEPREVIOUSDOCUMENTSTATES]['default'];\n }",
"function restablecer()\n {\n $this->_datos = null;\n $this->_errores = array();\n }"
] | [
"0.7172647",
"0.6614729",
"0.6541154",
"0.65032333",
"0.64902997",
"0.6473223",
"0.64133394",
"0.639605",
"0.63528347",
"0.6348986",
"0.63470894",
"0.63277763",
"0.6311853",
"0.6269215",
"0.62564456",
"0.62426037",
"0.6225923",
"0.62237555",
"0.62134457",
"0.6212664",
"0.62053937",
"0.6192856",
"0.61747223",
"0.6138151",
"0.6118263",
"0.6108029",
"0.6102354",
"0.60898083",
"0.6052578",
"0.60486996",
"0.60454494",
"0.6043886",
"0.6037258",
"0.6035527",
"0.6034897",
"0.6033549",
"0.6032027",
"0.6026547",
"0.602287",
"0.60185224",
"0.6008517",
"0.6001671",
"0.6000998",
"0.59891945",
"0.5977766",
"0.59761465",
"0.59724295",
"0.5964151",
"0.5952581",
"0.5951603",
"0.5951113",
"0.594383",
"0.59368247",
"0.5932795",
"0.5930041",
"0.5929951",
"0.5928075",
"0.59273314",
"0.59253126",
"0.59245276",
"0.59243757",
"0.5912754",
"0.5911532",
"0.59114337",
"0.5911144",
"0.59102815",
"0.59038013",
"0.5902828",
"0.5896504",
"0.58959514",
"0.58853996",
"0.58813345",
"0.5869412",
"0.58684224",
"0.5866849",
"0.5861512",
"0.5860119",
"0.585528",
"0.5854732",
"0.5854525",
"0.5852697",
"0.5846867",
"0.5842996",
"0.58421683",
"0.5841051",
"0.58332944",
"0.58330655",
"0.5832546",
"0.5830324",
"0.58301127",
"0.5826615",
"0.582235",
"0.58199894",
"0.581712",
"0.5806058",
"0.58060545",
"0.580591",
"0.5802087",
"0.57998914",
"0.57948756"
] | 0.628508 | 13 |
Initializes the collOperationPrestationss collection. By default this just sets the collOperationPrestationss collection to an empty array (like clearcollOperationPrestationss()); however, you may wish to override this method in your stub class to provide setting appropriate to your application for example, setting the initial array to the values stored in database. | public function initOperationPrestationss($overrideExisting = true)
{
if (null !== $this->collOperationPrestationss && !$overrideExisting) {
return;
}
$this->collOperationPrestationss = new PropelObjectCollection();
$this->collOperationPrestationss->setModel('OperationPrestations');
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function setOperationPrestationss(PropelCollection $operationPrestationss, PropelPDO $con = null)\n {\n $operationPrestationssToDelete = $this->getOperationPrestationss(new Criteria(), $con)->diff($operationPrestationss);\n\n\n $this->operationPrestationssScheduledForDeletion = $operationPrestationssToDelete;\n\n foreach ($operationPrestationssToDelete as $operationPrestationsRemoved) {\n $operationPrestationsRemoved->setOperationPrimes(null);\n }\n\n $this->collOperationPrestationss = null;\n foreach ($operationPrestationss as $operationPrestations) {\n $this->addOperationPrestations($operationPrestations);\n }\n\n $this->collOperationPrestationss = $operationPrestationss;\n $this->collOperationPrestationssPartial = false;\n\n return $this;\n }",
"public function addOperationPrestations(OperationPrestations $l)\n {\n if ($this->collOperationPrestationss === null) {\n $this->initOperationPrestationss();\n $this->collOperationPrestationssPartial = true;\n }\n\n if (!in_array($l, $this->collOperationPrestationss->getArrayCopy(), true)) { // only add it if the **same** object is not already associated\n $this->doAddOperationPrestations($l);\n\n if ($this->operationPrestationssScheduledForDeletion and $this->operationPrestationssScheduledForDeletion->contains($l)) {\n $this->operationPrestationssScheduledForDeletion->remove($this->operationPrestationssScheduledForDeletion->search($l));\n }\n }\n\n return $this;\n }",
"public function getOperationPrestationss($criteria = null, PropelPDO $con = null)\n {\n $partial = $this->collOperationPrestationssPartial && !$this->isNew();\n if (null === $this->collOperationPrestationss || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collOperationPrestationss) {\n // return empty collection\n $this->initOperationPrestationss();\n } else {\n $collOperationPrestationss = OperationPrestationsQuery::create(null, $criteria)\n ->filterByOperationPrimes($this)\n ->find($con);\n if (null !== $criteria) {\n if (false !== $this->collOperationPrestationssPartial && count($collOperationPrestationss)) {\n $this->initOperationPrestationss(false);\n\n foreach ($collOperationPrestationss as $obj) {\n if (false == $this->collOperationPrestationss->contains($obj)) {\n $this->collOperationPrestationss->append($obj);\n }\n }\n\n $this->collOperationPrestationssPartial = true;\n }\n\n $collOperationPrestationss->getInternalIterator()->rewind();\n\n return $collOperationPrestationss;\n }\n\n if ($partial && $this->collOperationPrestationss) {\n foreach ($this->collOperationPrestationss as $obj) {\n if ($obj->isNew()) {\n $collOperationPrestationss[] = $obj;\n }\n }\n }\n\n $this->collOperationPrestationss = $collOperationPrestationss;\n $this->collOperationPrestationssPartial = false;\n }\n }\n\n return $this->collOperationPrestationss;\n }",
"public function clearOperationPrestationss()\n {\n $this->collOperationPrestationss = null; // important to set this to null since that means it is uninitialized\n $this->collOperationPrestationssPartial = null;\n\n return $this;\n }",
"public function countOperationPrestationss(Criteria $criteria = null, $distinct = false, PropelPDO $con = null)\n {\n $partial = $this->collOperationPrestationssPartial && !$this->isNew();\n if (null === $this->collOperationPrestationss || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collOperationPrestationss) {\n return 0;\n }\n\n if ($partial && !$criteria) {\n return count($this->getOperationPrestationss());\n }\n $query = OperationPrestationsQuery::create(null, $criteria);\n if ($distinct) {\n $query->distinct();\n }\n\n return $query\n ->filterByOperationPrimes($this)\n ->count($con);\n }\n\n return count($this->collOperationPrestationss);\n }",
"public function getOperationPrestationssJoinRPrestations($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN)\n {\n $query = OperationPrestationsQuery::create(null, $criteria);\n $query->joinWith('RPrestations', $join_behavior);\n\n return $this->getOperationPrestationss($query, $con);\n }",
"public function getOperationPrestationssJoinOperationScenarii($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN)\n {\n $query = OperationPrestationsQuery::create(null, $criteria);\n $query->joinWith('OperationScenarii', $join_behavior);\n\n return $this->getOperationPrestationss($query, $con);\n }",
"public function getOperationPrestationssJoinOperations($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN)\n {\n $query = OperationPrestationsQuery::create(null, $criteria);\n $query->joinWith('Operations', $join_behavior);\n\n return $this->getOperationPrestationss($query, $con);\n }",
"public function filterByRPrestations($rPrestations, $comparison = null)\n {\n if ($rPrestations instanceof RPrestations) {\n return $this\n ->addUsingAlias(FacturesPrestationsPeer::R_PRESTATION_ID, $rPrestations->getRPrestationId(), $comparison);\n } elseif ($rPrestations instanceof PropelObjectCollection) {\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n\n return $this\n ->addUsingAlias(FacturesPrestationsPeer::R_PRESTATION_ID, $rPrestations->toKeyValue('PrimaryKey', 'RPrestationId'), $comparison);\n } else {\n throw new PropelException('filterByRPrestations() only accepts arguments of type RPrestations or PropelCollection');\n }\n }",
"public function getOperationPrestationssJoinOperationRubriques($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN)\n {\n $query = OperationPrestationsQuery::create(null, $criteria);\n $query->joinWith('OperationRubriques', $join_behavior);\n\n return $this->getOperationPrestationss($query, $con);\n }",
"public function resetPartialOperationPrestationss($v = true)\n {\n $this->collOperationPrestationssPartial = $v;\n }",
"public function setPreReqs()\n {\n $dc = new DAOCadeira();\n $this->preReqs = $dc->getPreReqsByReqId($this->idCadeira);\n\n }",
"public function setNumIdccPrestationTravail($numIdccPrestationTravail) {\n $this->numIdccPrestationTravail = $numIdccPrestationTravail;\n return $this;\n }",
"protected function init()\n {\n $this->totais = [\n 'liquidados' => 0,\n 'entradas' => 0,\n 'baixados' => 0,\n 'protestados' => 0,\n 'erros' => 0,\n 'alterados' => 0,\n ];\n }",
"protected function init()\n {\n $this->totais = [\n 'liquidados' => 0,\n 'entradas' => 0,\n 'baixados' => 0,\n 'protestados' => 0,\n 'erros' => 0,\n 'alterados' => 0,\n ];\n }",
"public function initOperationScenariis($overrideExisting = true)\n {\n if (null !== $this->collOperationScenariis && !$overrideExisting) {\n return;\n }\n $this->collOperationScenariis = new PropelObjectCollection();\n $this->collOperationScenariis->setModel('OperationScenarii');\n }",
"public function getNumIdccPrestationTravail() {\n return $this->numIdccPrestationTravail;\n }",
"public function init()\n {\n $this->setProcessor(new NoticesDBProcessor());\n }",
"public function getOperationPrestationssJoinUsers($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN)\n {\n $query = OperationPrestationsQuery::create(null, $criteria);\n $query->joinWith('Users', $join_behavior);\n\n return $this->getOperationPrestationss($query, $con);\n }",
"public function filterByRPrestationId($rPrestationId = null, $comparison = null)\n {\n if (is_array($rPrestationId)) {\n $useMinMax = false;\n if (isset($rPrestationId['min'])) {\n $this->addUsingAlias(FacturesPrestationsPeer::R_PRESTATION_ID, $rPrestationId['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($rPrestationId['max'])) {\n $this->addUsingAlias(FacturesPrestationsPeer::R_PRESTATION_ID, $rPrestationId['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(FacturesPrestationsPeer::R_PRESTATION_ID, $rPrestationId, $comparison);\n }",
"public function initQuestionVotes()\n\t{\n\t\t$this->collQuestionVotes = array();\n\t}",
"private function init() {\n $this->initCronIntervalDescriptions();\n $this->initLastSaves();\n $this->initTotals();\n $this->initLastCronRunInfo();\n $this->initNextCronRunInfo();\n $this->initCurrentlyBeingDone();\n $this->initActiveSites();\n }",
"public function initShoppingCarts()\n\t{\n\t\t$this->collShoppingCarts = array();\n\t}",
"public function initialize()\n {\n $this->setSchema(\"watches_online\");\n $this->setSource(\"product\");\n }",
"public function filterByFactPrestOrder($factPrestOrder = null, $comparison = null)\n {\n if (is_array($factPrestOrder)) {\n $useMinMax = false;\n if (isset($factPrestOrder['min'])) {\n $this->addUsingAlias(FacturesPrestationsPeer::FACT_PREST_ORDER, $factPrestOrder['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($factPrestOrder['max'])) {\n $this->addUsingAlias(FacturesPrestationsPeer::FACT_PREST_ORDER, $factPrestOrder['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(FacturesPrestationsPeer::FACT_PREST_ORDER, $factPrestOrder, $comparison);\n }",
"public function setOperationScenariis(PropelCollection $operationScenariis, PropelPDO $con = null)\n {\n $operationScenariisToDelete = $this->getOperationScenariis(new Criteria(), $con)->diff($operationScenariis);\n\n\n $this->operationScenariisScheduledForDeletion = $operationScenariisToDelete;\n\n foreach ($operationScenariisToDelete as $operationScenariiRemoved) {\n $operationScenariiRemoved->setOperationPrimes(null);\n }\n\n $this->collOperationScenariis = null;\n foreach ($operationScenariis as $operationScenarii) {\n $this->addOperationScenarii($operationScenarii);\n }\n\n $this->collOperationScenariis = $operationScenariis;\n $this->collOperationScenariisPartial = false;\n\n return $this;\n }",
"public function initInappropriates()\n\t{\n\t\t$this->collInappropriates = array();\n\t}",
"public static function GetPrestataireListe() {\n\t\t$sql = 'CALL get_all_presta_nom()';\n\t\treturn DatabaseHandler::GetAll($sql);\n\t}",
"public function filterByFactPrestTauxPartiel($factPrestTauxPartiel = null, $comparison = null)\n {\n if (is_array($factPrestTauxPartiel)) {\n $useMinMax = false;\n if (isset($factPrestTauxPartiel['min'])) {\n $this->addUsingAlias(FacturesPrestationsPeer::FACT_PREST_TAUX_PARTIEL, $factPrestTauxPartiel['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($factPrestTauxPartiel['max'])) {\n $this->addUsingAlias(FacturesPrestationsPeer::FACT_PREST_TAUX_PARTIEL, $factPrestTauxPartiel['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(FacturesPrestationsPeer::FACT_PREST_TAUX_PARTIEL, $factPrestTauxPartiel, $comparison);\n }",
"public function initialize()\n {\n $this->setSchema(\"calculadoras\");\n $this->setSource(\"paises\");\n }",
"public function initialize()\n {\n $this->setSchema(\"c5_espositori\");\n $this->setSource(\"exhibitors\");\n $this->hasMany('id', 'Reservations', 'exhibitors_id', ['alias' => 'Reservations', 'reusable' => true]);\n $this->hasMany('id', 'Reservations', 'padre_id', ['alias' => 'Padri']);\n }",
"public function initialize()\n {\n $this->setSchema(\"sistema\");\n $this->setSource(\"rol\");\n $this->hasMany('id_rol', 'Usuarios', 'id_rol', ['alias' => 'Usuarios']);\n }",
"public function initStudentQuestionsRelatedByTutorId()\n\t{\n\t\t$this->collStudentQuestionsRelatedByTutorId = array();\n\t}",
"public function initVpoRequestPassengers()\n\t{\n\t\t$this->collVpoRequestPassengers = array();\n\t}",
"public function initRightss()\n {\n $this->collRightss = new ObjectCollection();\n $this->collRightssPartial = true;\n\n $this->collRightss->setModel('\\Rights');\n }",
"public function _construct(){\n $this->KcsPoll = new ArrayCollection();\n }",
"public function filterByOpPrestQreel($opPrestQreel = null, $comparison = null)\n {\n if (is_array($opPrestQreel)) {\n $useMinMax = false;\n if (isset($opPrestQreel['min'])) {\n $this->addUsingAlias(FacturesPrestationsPeer::OP_PREST_QREEL, $opPrestQreel['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($opPrestQreel['max'])) {\n $this->addUsingAlias(FacturesPrestationsPeer::OP_PREST_QREEL, $opPrestQreel['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(FacturesPrestationsPeer::OP_PREST_QREEL, $opPrestQreel, $comparison);\n }",
"public function initialize()\n {\n $this->setSchema(\"cisystem\");\n }",
"public function filterByOpPrestId($opPrestId = null, $comparison = null)\n {\n if (is_array($opPrestId)) {\n $useMinMax = false;\n if (isset($opPrestId['min'])) {\n $this->addUsingAlias(FacturesPrestationsPeer::OP_PREST_ID, $opPrestId['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($opPrestId['max'])) {\n $this->addUsingAlias(FacturesPrestationsPeer::OP_PREST_ID, $opPrestId['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(FacturesPrestationsPeer::OP_PREST_ID, $opPrestId, $comparison);\n }",
"public function initPostPollVotes()\n\t{\n\t\t$this->collPostPollVotes = array();\n\t}",
"public function initialize()\n {\n $this->setSchema(\"xsollatest\");\n }",
"public function initialize()\n {\n //$this->setSchema(\"kierkegaard\");\n $this->setSource(\"produto_core\");\n }",
"public function getBeforeStandardArray( ) {\n return BusinessTransformer::beforeStandard($this->prepareBusinessGreedyData());\n }",
"protected function _resetPreVariables()\n\t{\n\t\t$this->_nuked = false;\n\t\t$this->_oldPre = array();\n\t\t$this->_curPre =\n\t\t\tarray(\n\t\t\t\t'title' => '',\n\t\t\t\t'size' => '',\n\t\t\t\t'predate' => '',\n\t\t\t\t'category' => '',\n\t\t\t\t'source' => '',\n\t\t\t\t'group_id' => '',\n\t\t\t\t'reqid' => '',\n\t\t\t\t'nuked' => '',\n\t\t\t\t'reason' => '',\n\t\t\t\t'files' => '',\n\t\t\t\t'filename' => ''\n\t\t\t);\n\t}",
"public function __construct() {\n $this->disciplinas = new \\Doctrine\\Common\\Collections\\ArrayCollection();\n $this->tendencias = new \\Doctrine\\Common\\Collections\\ArrayCollection();\n $this->institucionalEstrategias = new \\Doctrine\\Common\\Collections\\ArrayCollection();\n $this->ofertas = new \\Doctrine\\Common\\Collections\\ArrayCollection();\n $this->estrategiaCampos = new \\Doctrine\\Common\\Collections\\ArrayCollection();\n $this->eventos = new \\Doctrine\\Common\\Collections\\ArrayCollection();\n $this->encuestas = new \\Doctrine\\Common\\Collections\\ArrayCollection();\n }",
"public function getFkSwItemPreEmpenhos()\n {\n return $this->fkSwItemPreEmpenhos;\n }",
"public function __construct()\n {\n $this->_aServersData = (array) oxRegistry::getConfig()->getConfigParam('aServersData');\n }",
"public function filterByOpPrestMreel($opPrestMreel = null, $comparison = null)\n {\n if (is_array($opPrestMreel)) {\n $useMinMax = false;\n if (isset($opPrestMreel['min'])) {\n $this->addUsingAlias(FacturesPrestationsPeer::OP_PREST_MREEL, $opPrestMreel['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($opPrestMreel['max'])) {\n $this->addUsingAlias(FacturesPrestationsPeer::OP_PREST_MREEL, $opPrestMreel['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(FacturesPrestationsPeer::OP_PREST_MREEL, $opPrestMreel, $comparison);\n }",
"public function initUserRates()\n\t{\n\t\t$this->collUserRates = array();\n\t}",
"public function initialize()\n {\n $this->setSchema(\"ieslluis_gestiovfc\");\n $this->setSource(\"lines_comandes\");\n $this->hasMany('ncomanda', 'Comandes', 'numero', ['alias' => 'Comandes']);\n $this->hasMany('producte', 'Productes', 'codi', ['alias' => 'Productes']);\n }",
"function preinit()\r\n {\r\n //Calls children's init recursively\r\n reset($this->components->items);\r\n while (list($k,$v)=each($this->components->items))\r\n {\r\n $v->preinit();\r\n }\r\n }",
"public function init($initProc = null);",
"protected function init()\r\n {\r\n $this->table_name = 'libelles';\r\n $this->table_type = 'system';\r\n $this->table_gateway_alias = 'Sbm\\Db\\SysTableGateway\\Libelles';\r\n $this->id_name = array(\r\n 'nature',\r\n 'code'\r\n );\r\n }",
"public function seriesInitials();",
"private function get_precios_articulo()\n {\n $this->template = 'ajax/nueva_compra_precios';\n \n $articulo = new articulo();\n $this->articulo = $articulo->get($_POST['referencia4precios']);\n }",
"public function init()\n {\n \t// Get filter form\n \t$filters = $this->_dataGrid->getFilter();\n \t\n \t// If send post request, inject into session\n \tif ($this->_dataGrid->getRequest()->isPost())\n \t{\n \t\t$this->_dataGrid->getSession()->filters = $this->_dataGrid->getRequest()->getPost();\n \t}\n \t \n \t// Get valid datas\n \tif ($this->_dataGrid->getSession()->filters)\n \t{\n \t\t$validDatas = $filters->getValidValues((array) $this->_dataGrid->getSession()->filters);\n \t\t$validDatas = isset($validDatas[$this->_dataGrid->getGridId()]['filter']) ? $validDatas[$this->_dataGrid->getGridId()]['filter'] : array();\n \t\t$this->_validDatas = array_filter($validDatas, 'count');\n \t}\n }",
"public function initPostDailyStatss()\n\t{\n\t\t$this->collPostDailyStatss = array();\n\t}",
"public function initialize() {\n $this->setSchema(\"coopdb\");\n $this->setSource(\"pedidosdetalle\");\n $this->belongsTo('IDKEY', 'Pedidos', 'TxnID', ['alias' => 'Pedidos']);\n }",
"private function init()\n {\n // get sync status object\n $this->currentStatus = $this->getObject();\n\n // if sum of last processed ids is then we can assume that we are doing \n // a new sync. So we want to clear old data files so we can make new ones.\n // if ($this->currentStatus->getLastCustomerId() == 0 \n // && $this->currentStatus->getLastOrderId() == 0\n // && $this->currentStatus->getLastSubscriptionId() == 0\n // )\n // Mage::helper('marketingsoftware/DataWriter')->clearDataFiles();\n\n // store start time for this event\n $this->startTime = microtime(true);\n }",
"public function init()\n\t{\n\t\t$this->serversInit();\n\t}",
"public function getBeforeStandardArray(){\n return VoucherValidationLogTransformer::beforeStandard($this->prepareVoucherValidationLogGreedyData());\n }",
"public function initialize()\n {\n $this->setSchema(\"smm\");\n $this->setSource(\"shiiresaki_tanka_dts\");\n }",
"public function initQuestions()\n\t{\n\t\t$this->collQuestions = array();\n\t}",
"public function init()\n\t{\n\t\t$this->setup_filters();\n\t\t$this->list_table = new OrgHub_UploadListTable( $this );\n\t}",
"public function initVpoRequestCargos()\n\t{\n\t\t$this->collVpoRequestCargos = array();\n\t}",
"function __construct($nidp=NULL, $sdes=NULL, $npre=NULL, $suni=NULL, $ntip=NULL){\r\n\t\t$this->nId_Producto = $nidp;\r\n\t\t$this->sDescripcion = $sdes;\r\n\t\t$this->nPrecio = $npre;\r\n\t\t$this->sUnidad = $suni;\r\n\t\t$this->nId_Tipo = $ntip;\r\n\t}",
"public function initialize()\n {\n $this->setSchema(\"cubicfox\");\n $this->setSource(\"rates\");\n\n $this->hasManyToMany(\n \"id\",\n \"Users\",\n \"user_id\", \n \"product_id\",\n \"Products\",\n \"id\"\n );\n }",
"public function getListPre()\n {\n $db = $this->dblocal;\n try\n {\n $stmt = $db->prepare(\"SELECT @rownum := @rownum + 1 AS urutan,t.* FROM m_p_receipt t, \n (SELECT @rownum := 0) r ORDER BY id_pre ASC\");\n $stmt->execute();\n $stat[0] = true;\n $stat[1] = $stmt->fetchAll(PDO::FETCH_ASSOC);\n return $stat;\n }\n catch(PDOException $ex)\n {\n $stat[0] = false;\n $stat[1] = $ex->getMessage();\n return $stat;\n }\n }",
"public function init()\n {\n $this->setProcessor(new StaticTextDBProcessor());\n }",
"public function initialize()\n {\n // attributes\n $this->setName('t_pregunta');\n $this->setPhpName('TPregunta');\n $this->setIdentifierQuoting(false);\n $this->setClassName('\\\\TPregunta');\n $this->setPackage('');\n $this->setUseIdGenerator(true);\n // columns\n $this->addPrimaryKey('tpre_tipo', 'TpreTipo', 'INTEGER', true, null, null);\n $this->addColumn('tpre_descripcion', 'TpreDescripcion', 'VARCHAR', false, 255, null);\n $this->addColumn('tpre_r_fecha_creacion', 'TpreRFechaCreacion', 'TIMESTAMP', false, null, null);\n $this->addColumn('tpre_r_fecha_modificacion', 'TpreRFechaModificacion', 'TIMESTAMP', false, null, null);\n $this->addColumn('tpre_r_usuario', 'TpreRUsuario', 'INTEGER', false, null, 1);\n }",
"public function prune($facturesPrestations = null)\n {\n if ($facturesPrestations) {\n $this->addUsingAlias(FacturesPrestationsPeer::FACT_PREST_ID, $facturesPrestations->getFactPrestId(), Criteria::NOT_EQUAL);\n }\n\n return $this;\n }",
"protected function init()\n {\n if (in_array('users', Mongez::getStored('modules'))) {\n $this->isUserModuleExits = true;\n }\n\n $this->info('Preparing data...');\n $this->initController();\n $this->initModel();\n $this->initResource();\n $this->initRepository();\n $this->initData();\n }",
"protected function handle_preselection($l_port_preselection)\n {\n global $g_comp_database;\n\n // Create a DAO object for the connection.\n $l_dao = new isys_cmdb_dao_category_g_connector($g_comp_database);\n\n if ($this->m_only_logical_ports === true && $l_port_preselection > 0)\n {\n $l_row = isys_cmdb_dao_category_g_network_ifacel::instance($g_comp_database)\n ->get_data($l_port_preselection)\n ->get_row();\n\n $this->m_template->assign(\n 'preselection',\n isys_format_json::encode(\n [\n $l_row['isys_obj__id'],\n $l_row['isys_obj__title'],\n _L($l_dao->get_objtype_name_by_id_as_string($l_row['isys_obj__isys_obj_type__id'])),\n $l_row['isys_obj__sysid']\n ]\n )\n );\n\n $this->m_template->assign(\n 'second_preselection',\n isys_format_json::encode(\n [\n $l_port_preselection,\n $l_row['isys_catg_log_port_list__title'],\n null\n ]\n )\n );\n $this->m_template->assign('category_preselection', (int) $l_row['isys_obj__isys_obj_type__id']);\n\n return;\n } // if\n\n // If we have no given preselection, set to something which has definitly no relations.\n if ($l_port_preselection === null)\n {\n $l_port_preselection = -1;\n } // if\n\n // Get the data as array.\n $l_data = $l_dao->get_data($l_port_preselection)\n ->__to_array();\n\n // Populate preselection in smarty object.\n if (null !== $l_data['isys_obj__id'])\n {\n $this->m_template->assign(\n 'preselection',\n isys_format_json::encode(\n [\n $l_data['isys_obj__id'],\n $l_data['isys_obj__title'],\n _L($l_dao->get_objtype_name_by_id_as_string($l_data['isys_obj__isys_obj_type__id'])),\n $l_data['isys_obj__sysid']\n ]\n )\n );\n }\n else\n {\n $this->m_template->assign('preselection', \"[]\");\n } // if\n\n $this->m_template->assign(\n 'second_preselection',\n isys_format_json::encode(\n [\n $l_port_preselection,\n $l_data['connector_name'],\n null\n ]\n )\n )\n ->assign('category_preselection', (int) $l_data['isys_obj__isys_obj_type__id']);\n }",
"function get_preorders()\n\t{\n\t\tglobal $db;\n\n\t\t$itm = new items($this->pg);\n\n\t\t$this->preorders = array();\n\t\t$sql = \"SELECT pre_preorderID,pre_itemID,pre_status,pre_notes,pre_releasedate FROM preorders WHERE pre_storeID=\".$_SESSION['storeID'].\" ORDER BY pre_releasedate\";\n\t\t$result = mysql_query($sql,$db);\n\t\t$this->error->mysql(__FILE__,__LINE__);\n\t\twhile ($row = mysql_fetch_assoc($result))\n\t\t{\n\t\t\t$customers = array();\n\t\t\t$preorderID = $row['pre_preorderID'];\n\t\t\t$csql = \"SELECT * FROM preorder_customers WHERE prc_preorderID=$preorderID\";\n\t\t\t$cresult = mysql_query($csql,$db);\n\t\t\t$this->error->mysql(__FILE__,__LINE__);\n\t\t\twhile ($crow = mysql_fetch_assoc($cresult)) { $customers[] = $crow; }\n\t\t\t$row['customers'] = $customers;\n\n\t\t\t$this->set_itemID($row['pre_itemID']);\n\t\t\t$row['item_info'] = $this->item_info;\n\n\t\t\t$this->preorders[] = $row;\n\t\t}\n\t}",
"public function initOffensives()\n\t{\n\t\t$this->collOffensives = array();\n\t}",
"public function filterByOpPrestPv($opPrestPv = null, $comparison = null)\n {\n if (is_array($opPrestPv)) {\n $useMinMax = false;\n if (isset($opPrestPv['min'])) {\n $this->addUsingAlias(FacturesPrestationsPeer::OP_PREST_PV, $opPrestPv['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($opPrestPv['max'])) {\n $this->addUsingAlias(FacturesPrestationsPeer::OP_PREST_PV, $opPrestPv['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(FacturesPrestationsPeer::OP_PREST_PV, $opPrestPv, $comparison);\n }",
"protected function init()\n\t{\n\t\t$this->upVector = array();\n\t\t$this->downVector = array();\n\t\t$this->modifiedA = array();\n\t\t$this->modifiedB = array();\n\t}",
"function SetUpStartRec() {\n\t\tglobal $scholarship_package;\n\t\tif ($this->lDisplayRecs == 0)\n\t\t\treturn;\n\t\tif ($this->IsPageRequest()) { // Validate request\n\t\t\tif (@$_GET[EW_TABLE_START_REC] <> \"\") { // Check for \"start\" parameter\n\t\t\t\t$this->lStartRec = $_GET[EW_TABLE_START_REC];\n\t\t\t\t$scholarship_package->setStartRecordNumber($this->lStartRec);\n\t\t\t} elseif (@$_GET[EW_TABLE_PAGE_NO] <> \"\") {\n\t\t\t\t$this->nPageNo = $_GET[EW_TABLE_PAGE_NO];\n\t\t\t\tif (is_numeric($this->nPageNo)) {\n\t\t\t\t\t$this->lStartRec = ($this->nPageNo-1)*$this->lDisplayRecs+1;\n\t\t\t\t\tif ($this->lStartRec <= 0) {\n\t\t\t\t\t\t$this->lStartRec = 1;\n\t\t\t\t\t} elseif ($this->lStartRec >= intval(($this->lTotalRecs-1)/$this->lDisplayRecs)*$this->lDisplayRecs+1) {\n\t\t\t\t\t\t$this->lStartRec = intval(($this->lTotalRecs-1)/$this->lDisplayRecs)*$this->lDisplayRecs+1;\n\t\t\t\t\t}\n\t\t\t\t\t$scholarship_package->setStartRecordNumber($this->lStartRec);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$this->lStartRec = $scholarship_package->getStartRecordNumber();\n\n\t\t// Check if correct start record counter\n\t\tif (!is_numeric($this->lStartRec) || $this->lStartRec == \"\") { // Avoid invalid start record counter\n\t\t\t$this->lStartRec = 1; // Reset start record counter\n\t\t\t$scholarship_package->setStartRecordNumber($this->lStartRec);\n\t\t} elseif (intval($this->lStartRec) > intval($this->lTotalRecs)) { // Avoid starting record > total records\n\t\t\t$this->lStartRec = intval(($this->lTotalRecs-1)/$this->lDisplayRecs)*$this->lDisplayRecs+1; // Point to last page first record\n\t\t\t$scholarship_package->setStartRecordNumber($this->lStartRec);\n\t\t} elseif (($this->lStartRec-1) % $this->lDisplayRecs <> 0) {\n\t\t\t$this->lStartRec = intval(($this->lStartRec-1)/$this->lDisplayRecs)*$this->lDisplayRecs+1; // Point to page boundary\n\t\t\t$scholarship_package->setStartRecordNumber($this->lStartRec);\n\t\t}\n\t}",
"function SetUpStartRec() {\n\t\tglobal $scholarship_package;\n\t\tif ($this->lDisplayRecs == 0)\n\t\t\treturn;\n\t\tif ($this->IsPageRequest()) { // Validate request\n\t\t\tif (@$_GET[EW_TABLE_START_REC] <> \"\") { // Check for \"start\" parameter\n\t\t\t\t$this->lStartRec = $_GET[EW_TABLE_START_REC];\n\t\t\t\t$scholarship_package->setStartRecordNumber($this->lStartRec);\n\t\t\t} elseif (@$_GET[EW_TABLE_PAGE_NO] <> \"\") {\n\t\t\t\t$this->nPageNo = $_GET[EW_TABLE_PAGE_NO];\n\t\t\t\tif (is_numeric($this->nPageNo)) {\n\t\t\t\t\t$this->lStartRec = ($this->nPageNo-1)*$this->lDisplayRecs+1;\n\t\t\t\t\tif ($this->lStartRec <= 0) {\n\t\t\t\t\t\t$this->lStartRec = 1;\n\t\t\t\t\t} elseif ($this->lStartRec >= intval(($this->lTotalRecs-1)/$this->lDisplayRecs)*$this->lDisplayRecs+1) {\n\t\t\t\t\t\t$this->lStartRec = intval(($this->lTotalRecs-1)/$this->lDisplayRecs)*$this->lDisplayRecs+1;\n\t\t\t\t\t}\n\t\t\t\t\t$scholarship_package->setStartRecordNumber($this->lStartRec);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$this->lStartRec = $scholarship_package->getStartRecordNumber();\n\n\t\t// Check if correct start record counter\n\t\tif (!is_numeric($this->lStartRec) || $this->lStartRec == \"\") { // Avoid invalid start record counter\n\t\t\t$this->lStartRec = 1; // Reset start record counter\n\t\t\t$scholarship_package->setStartRecordNumber($this->lStartRec);\n\t\t} elseif (intval($this->lStartRec) > intval($this->lTotalRecs)) { // Avoid starting record > total records\n\t\t\t$this->lStartRec = intval(($this->lTotalRecs-1)/$this->lDisplayRecs)*$this->lDisplayRecs+1; // Point to last page first record\n\t\t\t$scholarship_package->setStartRecordNumber($this->lStartRec);\n\t\t} elseif (($this->lStartRec-1) % $this->lDisplayRecs <> 0) {\n\t\t\t$this->lStartRec = intval(($this->lStartRec-1)/$this->lDisplayRecs)*$this->lDisplayRecs+1; // Point to page boundary\n\t\t\t$scholarship_package->setStartRecordNumber($this->lStartRec);\n\t\t}\n\t}",
"protected function initialize()\n {\n if (!is_array($this->rows)) {\n $this->rows = $this->query->getResult();\n }\n }",
"public function getFkSwPreEmpenhoOrdens()\n {\n return $this->fkSwPreEmpenhoOrdens;\n }",
"public function initQuestionOffensives()\n\t{\n\t\t$this->collQuestionOffensives = array();\n\t}",
"public function getPreDispatchList() : StringCollection\n {\n return $this->preDispatchList;\n }",
"public function initStudentQuestionsRelatedByStudentId()\n\t{\n\t\t$this->collStudentQuestionsRelatedByStudentId = array();\n\t}",
"public function filterByFactPrestLibelle($factPrestLibelle = null, $comparison = null)\n {\n if (null === $comparison) {\n if (is_array($factPrestLibelle)) {\n $comparison = Criteria::IN;\n } elseif (preg_match('/[\\%\\*]/', $factPrestLibelle)) {\n $factPrestLibelle = str_replace('*', '%', $factPrestLibelle);\n $comparison = Criteria::LIKE;\n }\n }\n\n return $this->addUsingAlias(FacturesPrestationsPeer::FACT_PREST_LIBELLE, $factPrestLibelle, $comparison);\n }",
"public function initGearReviews()\n\t{\n\t\t$this->collGearReviews = array();\n\t}",
"public function initEvents()\n\t{\n\t\t$this->collEvents = new PropelObjectCollection();\n\t\t$this->collEvents->setModel('Event');\n\t}",
"public function initialize()\n {\n $this->setSchema(\"sistema\");\n $this->setSource(\"comentarios\");\n $this->belongsTo('id_usuario', '\\Usuarios', 'id_usuario', ['alias' => 'Usuarios']);\n $this->belongsTo('id_reporte', '\\Reporte', 'id_reporte', ['alias' => 'Reporte']);\n }",
"public function initialize()\n {\n// $this->setSchema(\"sfn\");\n $this->setSource(\"bak_gyoumu_dts\");\n }",
"public function initEtablissements()\n {\n $this->collEtablissements = new PropelObjectCollection();\n $this->collEtablissements->setModel('Etablissement');\n }",
"public function preTest()\n {\n parent::preTest();\n \n // set up an SQL connection\n $this->_sql = Solar::factory(\n 'Solar_Sql',\n $this->_sql_config\n );\n $this->_sql->setProfiling(true);\n \n // set up a model catalog\n $this->_catalog = Solar::factory(\n 'Solar_Sql_Model_Catalog',\n $this->_catalog_config\n );\n \n // register the connection and catalog\n Solar_Registry::set('sql', $this->_sql);\n Solar_Registry::set('model_catalog', $this->_catalog);\n \n // set the class name for relateds\n $len = strlen('Test_');\n $this->_class = substr(get_class($this), $len);\n \n // populate everything\n $this->_populateAll();\n }",
"public function initialize()\n {\n // attributes\n $this->setName('evaluacion_pregunta');\n $this->setPhpName('EvaluacionPregunta');\n $this->setIdentifierQuoting(false);\n $this->setClassName('\\\\EvaluacionPregunta');\n $this->setPackage('');\n $this->setUseIdGenerator(true);\n // columns\n $this->addPrimaryKey('evpr_codigo', 'EvprCodigo', 'INTEGER', true, null, null);\n $this->addForeignKey('evpr_c_evaluacion', 'EvprCEvaluacion', 'INTEGER', 'evaluacion', 'eval_codigo', true, null, null);\n $this->addForeignKey('evpr_c_pregunta', 'EvprCPregunta', 'INTEGER', 'pregunta', 'preg_codigo', true, null, null);\n $this->addForeignKey('evpr_c_objetivo', 'EvprCObjetivo', 'INTEGER', 'objetivo', 'obje_codigo', true, null, null);\n $this->addForeignKey('evpr_c_seccion', 'EvprCSeccion', 'INTEGER', 'seccion', 'secc_codigo', true, null, null);\n $this->addColumn('evpr_orden', 'EvprOrden', 'INTEGER', false, 1, null);\n $this->addColumn('evpr_r_fecha_creacion', 'EvprRFechaCreacion', 'TIMESTAMP', false, null, null);\n $this->addColumn('evpr_r_fecha_modificacion', 'EvprRFechaModificacion', 'TIMESTAMP', false, null, null);\n $this->addColumn('evpr_r_usuario', 'EvprRUsuario', 'INTEGER', false, null, 1);\n }",
"public function initialize()\n {\n $this->setSchema(\"kp_si_disat\");\n $this->setSource(\"data_diksar\");\n $this->belongsTo('id_sertifikat', '\\Sertifikat', 'id_sertifikat', ['alias' => 'Sertifikat']);\n $this->belongsTo('id_kesehatan', '\\Kesehatan', 'id_kesehatan', ['alias' => 'Kesehatan']);\n }",
"public function __construct()\n {\n $this->startDate = \\DateTime::createFromFormat('Y-m-d H:i:s', date('Y-m-d H:i:s'));\n $this->endDate = \\DateTime::createFromFormat('Y-m-d H:i:s', date('Y-m-d H:i:s'));\n $this->initWorkflow();\n $this->categories = new ArrayCollection();\n }",
"private function init()\n {\n // #41776, dwildt, 1-\n// $this->pObj->objFltr3x->get_tableFields( );\n // #52486, 131005, dwildt, 2+\n // Init radialsearch filter and object\n $this->init_radialsearch();\n\n // RETURN: if there isn't any filter array\n if ( !$this->init_boolIsFilter() )\n {\n return;\n }\n // RETURN: if there isn't any filter array\n // Evaluate TREEVIEW filter\n // #41753, 121012, dwildt, 1+\n $this->eval_treeview();\n\n // #41776, dwildt, 2+\n // Set the array consolidation and the ts property SELECT\n $this->init_consolidationAndSelect();\n\n // Init localisation\n $this->init_localisation();\n\n // Init calendar area\n $this->init_calendarArea();\n\n // Init class var $andWhereFilter\n $this->init_andWhereFilter();\n\n // Set class var markerArray\n $this->set_markerArray();\n\n // Init the data of the cObj\n $this->cObjData_init();\n\n return;\n }",
"public function filterByFactPrestId($factPrestId = null, $comparison = null)\n {\n if (is_array($factPrestId)) {\n $useMinMax = false;\n if (isset($factPrestId['min'])) {\n $this->addUsingAlias(FacturesPrestationsPeer::FACT_PREST_ID, $factPrestId['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($factPrestId['max'])) {\n $this->addUsingAlias(FacturesPrestationsPeer::FACT_PREST_ID, $factPrestId['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(FacturesPrestationsPeer::FACT_PREST_ID, $factPrestId, $comparison);\n }",
"public function filterByFactPrestQuantiteFacture($factPrestQuantiteFacture = null, $comparison = null)\n {\n if (is_array($factPrestQuantiteFacture)) {\n $useMinMax = false;\n if (isset($factPrestQuantiteFacture['min'])) {\n $this->addUsingAlias(FacturesPrestationsPeer::FACT_PREST_QUANTITE_FACTURE, $factPrestQuantiteFacture['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($factPrestQuantiteFacture['max'])) {\n $this->addUsingAlias(FacturesPrestationsPeer::FACT_PREST_QUANTITE_FACTURE, $factPrestQuantiteFacture['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(FacturesPrestationsPeer::FACT_PREST_QUANTITE_FACTURE, $factPrestQuantiteFacture, $comparison);\n }",
"public function getFkEmpenhoItemPrestacaoContas()\n {\n return $this->fkEmpenhoItemPrestacaoContas;\n }",
"public function initializeObject()\n {\n $this->setDefaultOrderings(\n [\n 'sorting' => \\TYPO3\\CMS\\Extbase\\Persistence\\QueryInterface::ORDER_ASCENDING,\n ]\n );\n }",
"public function init()\n {\n\n // initialize the prepared statements\n $this->addFinder($this->finderFactory->createFinder($this, SqlStatementKeys::PRODUCT_VARCHARS));\n $this->addFinder($this->finderFactory->createFinder($this, SqlStatementKeys::PRODUCT_VARCHARS_BY_PK_AND_STORE_ID));\n $this->addFinder($this->finderFactory->createFinder($this, SqlStatementKeys::PRODUCT_VARCHAR_BY_ATTRIBUTE_CODE_AND_ENTITY_TYPE_ID_AND_STORE_ID));\n $this->addFinder($this->finderFactory->createFinder($this, SqlStatementKeys::PRODUCT_VARCHAR_BY_ATTRIBUTE_CODE_AND_ENTITY_TYPE_ID_AND_STORE_ID_AND_VALUE));\n $this->addFinder($this->finderFactory->createFinder($this, SqlStatementKeys::PRODUCT_VARCHAR_BY_ATTRIBUTE_CODE_AND_ENTITY_TYPE_ID_AND_STORE_ID_AND_PK));\n }"
] | [
"0.73556983",
"0.6526355",
"0.63225114",
"0.6301389",
"0.57139075",
"0.5607161",
"0.5303804",
"0.5236978",
"0.5098507",
"0.5087634",
"0.50738126",
"0.48939562",
"0.4883697",
"0.4818911",
"0.48068157",
"0.47963655",
"0.4773215",
"0.4769695",
"0.47458127",
"0.46931636",
"0.46427098",
"0.45904133",
"0.45637965",
"0.4560931",
"0.4526701",
"0.45181432",
"0.45045203",
"0.449563",
"0.448759",
"0.4482278",
"0.4468613",
"0.4461433",
"0.44367266",
"0.44162112",
"0.4415593",
"0.44086167",
"0.44002223",
"0.4397563",
"0.43942362",
"0.43862724",
"0.435438",
"0.43531495",
"0.4347141",
"0.43406248",
"0.43359587",
"0.4320966",
"0.4314865",
"0.43094176",
"0.4306054",
"0.43036205",
"0.4302697",
"0.4301201",
"0.4300638",
"0.42999774",
"0.42973924",
"0.42916417",
"0.42874822",
"0.42692593",
"0.42676634",
"0.42664906",
"0.42625186",
"0.42554757",
"0.42510265",
"0.4248355",
"0.42478213",
"0.42435122",
"0.42334738",
"0.42317948",
"0.42310292",
"0.42287946",
"0.42280403",
"0.42158785",
"0.4208647",
"0.42053118",
"0.41899967",
"0.41890997",
"0.41884458",
"0.41844165",
"0.41844165",
"0.41837665",
"0.4179757",
"0.41771764",
"0.41748598",
"0.41733",
"0.41731814",
"0.41647592",
"0.41577882",
"0.41506848",
"0.41486874",
"0.4146782",
"0.4142475",
"0.41408497",
"0.41379464",
"0.4137821",
"0.41346762",
"0.4127538",
"0.4126418",
"0.41202775",
"0.41122317",
"0.41101184"
] | 0.7210099 | 1 |
Gets an array of OperationPrestations objects which contain a foreign key that references this object. If the $criteria is not null, it is used to always fetch the results from the database. Otherwise the results are fetched from the database the first time, then cached. Next time the same method is called without $criteria, the cached collection is returned. If this OperationPrimes is new, it will return an empty collection or the current collection; the criteria is ignored on a new object. | public function getOperationPrestationss($criteria = null, PropelPDO $con = null)
{
$partial = $this->collOperationPrestationssPartial && !$this->isNew();
if (null === $this->collOperationPrestationss || null !== $criteria || $partial) {
if ($this->isNew() && null === $this->collOperationPrestationss) {
// return empty collection
$this->initOperationPrestationss();
} else {
$collOperationPrestationss = OperationPrestationsQuery::create(null, $criteria)
->filterByOperationPrimes($this)
->find($con);
if (null !== $criteria) {
if (false !== $this->collOperationPrestationssPartial && count($collOperationPrestationss)) {
$this->initOperationPrestationss(false);
foreach ($collOperationPrestationss as $obj) {
if (false == $this->collOperationPrestationss->contains($obj)) {
$this->collOperationPrestationss->append($obj);
}
}
$this->collOperationPrestationssPartial = true;
}
$collOperationPrestationss->getInternalIterator()->rewind();
return $collOperationPrestationss;
}
if ($partial && $this->collOperationPrestationss) {
foreach ($this->collOperationPrestationss as $obj) {
if ($obj->isNew()) {
$collOperationPrestationss[] = $obj;
}
}
}
$this->collOperationPrestationss = $collOperationPrestationss;
$this->collOperationPrestationssPartial = false;
}
}
return $this->collOperationPrestationss;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getOperationScenariis($criteria = null, PropelPDO $con = null)\n {\n $partial = $this->collOperationScenariisPartial && !$this->isNew();\n if (null === $this->collOperationScenariis || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collOperationScenariis) {\n // return empty collection\n $this->initOperationScenariis();\n } else {\n $collOperationScenariis = OperationScenariiQuery::create(null, $criteria)\n ->filterByOperationPrimes($this)\n ->find($con);\n if (null !== $criteria) {\n if (false !== $this->collOperationScenariisPartial && count($collOperationScenariis)) {\n $this->initOperationScenariis(false);\n\n foreach ($collOperationScenariis as $obj) {\n if (false == $this->collOperationScenariis->contains($obj)) {\n $this->collOperationScenariis->append($obj);\n }\n }\n\n $this->collOperationScenariisPartial = true;\n }\n\n $collOperationScenariis->getInternalIterator()->rewind();\n\n return $collOperationScenariis;\n }\n\n if ($partial && $this->collOperationScenariis) {\n foreach ($this->collOperationScenariis as $obj) {\n if ($obj->isNew()) {\n $collOperationScenariis[] = $obj;\n }\n }\n }\n\n $this->collOperationScenariis = $collOperationScenariis;\n $this->collOperationScenariisPartial = false;\n }\n }\n\n return $this->collOperationScenariis;\n }",
"public function getLnkOperationPrimeRCountriess($criteria = null, PropelPDO $con = null)\n {\n $partial = $this->collLnkOperationPrimeRCountriessPartial && !$this->isNew();\n if (null === $this->collLnkOperationPrimeRCountriess || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collLnkOperationPrimeRCountriess) {\n // return empty collection\n $this->initLnkOperationPrimeRCountriess();\n } else {\n $collLnkOperationPrimeRCountriess = LnkOperationPrimeRCountriesQuery::create(null, $criteria)\n ->filterByOperationPrimes($this)\n ->find($con);\n if (null !== $criteria) {\n if (false !== $this->collLnkOperationPrimeRCountriessPartial && count($collLnkOperationPrimeRCountriess)) {\n $this->initLnkOperationPrimeRCountriess(false);\n\n foreach ($collLnkOperationPrimeRCountriess as $obj) {\n if (false == $this->collLnkOperationPrimeRCountriess->contains($obj)) {\n $this->collLnkOperationPrimeRCountriess->append($obj);\n }\n }\n\n $this->collLnkOperationPrimeRCountriessPartial = true;\n }\n\n $collLnkOperationPrimeRCountriess->getInternalIterator()->rewind();\n\n return $collLnkOperationPrimeRCountriess;\n }\n\n if ($partial && $this->collLnkOperationPrimeRCountriess) {\n foreach ($this->collLnkOperationPrimeRCountriess as $obj) {\n if ($obj->isNew()) {\n $collLnkOperationPrimeRCountriess[] = $obj;\n }\n }\n }\n\n $this->collLnkOperationPrimeRCountriess = $collLnkOperationPrimeRCountriess;\n $this->collLnkOperationPrimeRCountriessPartial = false;\n }\n }\n\n return $this->collLnkOperationPrimeRCountriess;\n }",
"public function buildPkeyCriteria()\n {\n $criteria = new Criteria(OperationPrimesPeer::DATABASE_NAME);\n $criteria->add(OperationPrimesPeer::OP_PRIME_ID, $this->op_prime_id);\n\n return $criteria;\n }",
"public function buildCriteria()\n {\n $criteria = new Criteria(OperationPrimesPeer::DATABASE_NAME);\n\n if ($this->isColumnModified(OperationPrimesPeer::OP_PRIME_ID)) $criteria->add(OperationPrimesPeer::OP_PRIME_ID, $this->op_prime_id);\n if ($this->isColumnModified(OperationPrimesPeer::OP_ID)) $criteria->add(OperationPrimesPeer::OP_ID, $this->op_id);\n if ($this->isColumnModified(OperationPrimesPeer::OP_PRIME_LIBELLE)) $criteria->add(OperationPrimesPeer::OP_PRIME_LIBELLE, $this->op_prime_libelle);\n if ($this->isColumnModified(OperationPrimesPeer::OP_PRIME_NUMERO)) $criteria->add(OperationPrimesPeer::OP_PRIME_NUMERO, $this->op_prime_numero);\n if ($this->isColumnModified(OperationPrimesPeer::GDL_ART_ID)) $criteria->add(OperationPrimesPeer::GDL_ART_ID, $this->gdl_art_id);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_CURRENCY_ID)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_CURRENCY_ID, $this->operation_prime_currency_id);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_TYPE_ID)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_TYPE_ID, $this->operation_prime_r_reward_type_id);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_EXPEDITION_MODE_ID)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_EXPEDITION_MODE_ID, $this->operation_prime_r_reward_expedition_mode_id);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_TRANSPORTER_ID)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_TRANSPORTER_ID, $this->operation_prime_r_reward_transporter_id);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_FIXED_AMOUNT)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_FIXED_AMOUNT, $this->operation_prime_fixed_amount);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_PRODUCT_PRICE_POURCENTAGE)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_PRODUCT_PRICE_POURCENTAGE, $this->operation_prime_product_price_pourcentage);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_MAXIMUM_AMOUNT)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_MAXIMUM_AMOUNT, $this->operation_prime_maximum_amount);\n\n return $criteria;\n }",
"public function getOperationPrestationssJoinOperationRubriques($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN)\n {\n $query = OperationPrestationsQuery::create(null, $criteria);\n $query->joinWith('OperationRubriques', $join_behavior);\n\n return $this->getOperationPrestationss($query, $con);\n }",
"public function getPremios($criteria = null, PropelPDO $con = null)\n\t{\n\t\tif(null === $this->collPremios || null !== $criteria) {\n\t\t\tif ($this->isNew() && null === $this->collPremios) {\n\t\t\t\t// return empty collection\n\t\t\t\t$this->initPremios();\n\t\t\t} else {\n\t\t\t\t$collPremios = PremioQuery::create(null, $criteria)\n\t\t\t\t\t->filterByUsuario($this)\n\t\t\t\t\t->find($con);\n\t\t\t\tif (null !== $criteria) {\n\t\t\t\t\treturn $collPremios;\n\t\t\t\t}\n\t\t\t\t$this->collPremios = $collPremios;\n\t\t\t}\n\t\t}\n\t\treturn $this->collPremios;\n\t}",
"public function getOperationPrestationssJoinOperations($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN)\n {\n $query = OperationPrestationsQuery::create(null, $criteria);\n $query->joinWith('Operations', $join_behavior);\n\n return $this->getOperationPrestationss($query, $con);\n }",
"public function getCMDPieces(Criteria $criteria = null, ConnectionInterface $con = null)\n {\n $partial = $this->collCMDPiecesPartial && !$this->isNew();\n if (null === $this->collCMDPieces || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collCMDPieces) {\n // return empty collection\n $this->initCMDPieces();\n } else {\n $collCMDPieces = ChildCMDPieceQuery::create(null, $criteria)\n ->filterByCommande($this)\n ->find($con);\n\n if (null !== $criteria) {\n if (false !== $this->collCMDPiecesPartial && count($collCMDPieces)) {\n $this->initCMDPieces(false);\n\n foreach ($collCMDPieces as $obj) {\n if (false == $this->collCMDPieces->contains($obj)) {\n $this->collCMDPieces->append($obj);\n }\n }\n\n $this->collCMDPiecesPartial = true;\n }\n\n return $collCMDPieces;\n }\n\n if ($partial && $this->collCMDPieces) {\n foreach ($this->collCMDPieces as $obj) {\n if ($obj->isNew()) {\n $collCMDPieces[] = $obj;\n }\n }\n }\n\n $this->collCMDPieces = $collCMDPieces;\n $this->collCMDPiecesPartial = false;\n }\n }\n\n return $this->collCMDPieces;\n }",
"public function getCOMConditions(Criteria $criteria = null, ConnectionInterface $con = null)\n {\n $partial = $this->collCOMConditionsPartial && !$this->isNew();\n if (null === $this->collCOMConditions || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collCOMConditions) {\n // return empty collection\n $this->initCOMConditions();\n } else {\n $collCOMConditions = ChildCOMConditionQuery::create(null, $criteria)\n ->filterByCommande($this)\n ->find($con);\n\n if (null !== $criteria) {\n if (false !== $this->collCOMConditionsPartial && count($collCOMConditions)) {\n $this->initCOMConditions(false);\n\n foreach ($collCOMConditions as $obj) {\n if (false == $this->collCOMConditions->contains($obj)) {\n $this->collCOMConditions->append($obj);\n }\n }\n\n $this->collCOMConditionsPartial = true;\n }\n\n return $collCOMConditions;\n }\n\n if ($partial && $this->collCOMConditions) {\n foreach ($this->collCOMConditions as $obj) {\n if ($obj->isNew()) {\n $collCOMConditions[] = $obj;\n }\n }\n }\n\n $this->collCOMConditions = $collCOMConditions;\n $this->collCOMConditionsPartial = false;\n }\n }\n\n return $this->collCOMConditions;\n }",
"public function getFeatureCvtermprops($criteria = null, PropelPDO $con = null)\n {\n $partial = $this->collFeatureCvtermpropsPartial && !$this->isNew();\n if (null === $this->collFeatureCvtermprops || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collFeatureCvtermprops) {\n // return empty collection\n $this->initFeatureCvtermprops();\n } else {\n $collFeatureCvtermprops = FeatureCvtermpropQuery::create(null, $criteria)\n ->filterByFeatureCvterm($this)\n ->find($con);\n if (null !== $criteria) {\n if (false !== $this->collFeatureCvtermpropsPartial && count($collFeatureCvtermprops)) {\n $this->initFeatureCvtermprops(false);\n\n foreach($collFeatureCvtermprops as $obj) {\n if (false == $this->collFeatureCvtermprops->contains($obj)) {\n $this->collFeatureCvtermprops->append($obj);\n }\n }\n\n $this->collFeatureCvtermpropsPartial = true;\n }\n\n $collFeatureCvtermprops->getInternalIterator()->rewind();\n return $collFeatureCvtermprops;\n }\n\n if($partial && $this->collFeatureCvtermprops) {\n foreach($this->collFeatureCvtermprops as $obj) {\n if($obj->isNew()) {\n $collFeatureCvtermprops[] = $obj;\n }\n }\n }\n\n $this->collFeatureCvtermprops = $collFeatureCvtermprops;\n $this->collFeatureCvtermpropsPartial = false;\n }\n }\n\n return $this->collFeatureCvtermprops;\n }",
"public function getOperationPrestationssJoinRPrestations($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN)\n {\n $query = OperationPrestationsQuery::create(null, $criteria);\n $query->joinWith('RPrestations', $join_behavior);\n\n return $this->getOperationPrestationss($query, $con);\n }",
"public function getInappropriates($criteria = null, PropelPDO $con = null)\n\t{\n\t\tif ($criteria === null) {\n\t\t\t$criteria = new Criteria(PostPeer::DATABASE_NAME);\n\t\t}\n\t\telseif ($criteria instanceof Criteria)\n\t\t{\n\t\t\t$criteria = clone $criteria;\n\t\t}\n\n\t\tif ($this->collInappropriates === null) {\n\t\t\tif ($this->isNew()) {\n\t\t\t $this->collInappropriates = array();\n\t\t\t} else {\n\n\t\t\t\t$criteria->add(InappropriatePeer::POST_ID, $this->id);\n\n\t\t\t\tInappropriatePeer::addSelectColumns($criteria);\n\t\t\t\t$this->collInappropriates = InappropriatePeer::doSelect($criteria, $con);\n\t\t\t}\n\t\t} else {\n\t\t\t// criteria has no effect for a new object\n\t\t\tif (!$this->isNew()) {\n\t\t\t\t// the following code is to determine if a new query is\n\t\t\t\t// called for. If the criteria is the same as the last\n\t\t\t\t// one, just return the collection.\n\n\n\t\t\t\t$criteria->add(InappropriatePeer::POST_ID, $this->id);\n\n\t\t\t\tInappropriatePeer::addSelectColumns($criteria);\n\t\t\t\tif (!isset($this->lastInappropriateCriteria) || !$this->lastInappropriateCriteria->equals($criteria)) {\n\t\t\t\t\t$this->collInappropriates = InappropriatePeer::doSelect($criteria, $con);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$this->lastInappropriateCriteria = $criteria;\n\t\treturn $this->collInappropriates;\n\t}",
"public function getCOMVendeurs(Criteria $criteria = null, ConnectionInterface $con = null)\n {\n $partial = $this->collCOMVendeursPartial && !$this->isNew();\n if (null === $this->collCOMVendeurs || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collCOMVendeurs) {\n // return empty collection\n $this->initCOMVendeurs();\n } else {\n $collCOMVendeurs = ChildCOMVendeurQuery::create(null, $criteria)\n ->filterByCommande($this)\n ->find($con);\n\n if (null !== $criteria) {\n if (false !== $this->collCOMVendeursPartial && count($collCOMVendeurs)) {\n $this->initCOMVendeurs(false);\n\n foreach ($collCOMVendeurs as $obj) {\n if (false == $this->collCOMVendeurs->contains($obj)) {\n $this->collCOMVendeurs->append($obj);\n }\n }\n\n $this->collCOMVendeursPartial = true;\n }\n\n return $collCOMVendeurs;\n }\n\n if ($partial && $this->collCOMVendeurs) {\n foreach ($this->collCOMVendeurs as $obj) {\n if ($obj->isNew()) {\n $collCOMVendeurs[] = $obj;\n }\n }\n }\n\n $this->collCOMVendeurs = $collCOMVendeurs;\n $this->collCOMVendeursPartial = false;\n }\n }\n\n return $this->collCOMVendeurs;\n }",
"public function get_criteria() { return $this->criteria_list; }",
"public function getColetaPesquisas($criteria = null, PropelPDO $con = null)\n\t{\n\t\tif(null === $this->collColetaPesquisas || null !== $criteria) {\n\t\t\tif ($this->isNew() && null === $this->collColetaPesquisas) {\n\t\t\t\t// return empty collection\n\t\t\t\t$this->initColetaPesquisas();\n\t\t\t} else {\n\t\t\t\t$collColetaPesquisas = ColetaPesquisaQuery::create(null, $criteria)\n\t\t\t\t\t->filterByUsuario($this)\n\t\t\t\t\t->find($con);\n\t\t\t\tif (null !== $criteria) {\n\t\t\t\t\treturn $collColetaPesquisas;\n\t\t\t\t}\n\t\t\t\t$this->collColetaPesquisas = $collColetaPesquisas;\n\t\t\t}\n\t\t}\n\t\treturn $this->collColetaPesquisas;\n\t}",
"public function buildPkeyCriteria()\n\t{\n\t\t$criteria = new Criteria(C060InventarioPeer::DATABASE_NAME);\n\n\t\t$criteria->add(C060InventarioPeer::CO_NUM_INVENTARIO, $this->co_num_inventario);\n\n\t\treturn $criteria;\n\t}",
"public function getCriteria()\n {\n return $this->criteria;\n }",
"public function getCriteria()\n {\n return $this->criteria;\n }",
"public function getCriteria()\n\t{\n\t\treturn $this->criteria;\n\t}",
"public function getCriteria()\n {\n return isset($this->criteria) ? $this->criteria : null;\n }",
"public function getContributionss(Criteria $criteria = null, ConnectionInterface $con = null)\n {\n $partial = $this->collContributionssPartial && !$this->isNew();\n if (null === $this->collContributionss || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collContributionss) {\n // return empty collection\n $this->initContributionss();\n } else {\n $collContributionss = ChildContributionsQuery::create(null, $criteria)\n ->filterByIssues($this)\n ->find($con);\n\n if (null !== $criteria) {\n if (false !== $this->collContributionssPartial && count($collContributionss)) {\n $this->initContributionss(false);\n\n foreach ($collContributionss as $obj) {\n if (false == $this->collContributionss->contains($obj)) {\n $this->collContributionss->append($obj);\n }\n }\n\n $this->collContributionssPartial = true;\n }\n\n return $collContributionss;\n }\n\n if ($partial && $this->collContributionss) {\n foreach ($this->collContributionss as $obj) {\n if ($obj->isNew()) {\n $collContributionss[] = $obj;\n }\n }\n }\n\n $this->collContributionss = $collContributionss;\n $this->collContributionssPartial = false;\n }\n }\n\n return $this->collContributionss;\n }",
"public function getPesquisas($criteria = null, PropelPDO $con = null)\n\t{\n\t\tif(null === $this->collPesquisas || null !== $criteria) {\n\t\t\tif ($this->isNew() && null === $this->collPesquisas) {\n\t\t\t\t// return empty collection\n\t\t\t\t$this->initPesquisas();\n\t\t\t} else {\n\t\t\t\t$collPesquisas = PesquisaQuery::create(null, $criteria)\n\t\t\t\t\t->filterByUsuario($this)\n\t\t\t\t\t->find($con);\n\t\t\t\tif (null !== $criteria) {\n\t\t\t\t\treturn $collPesquisas;\n\t\t\t\t}\n\t\t\t\t$this->collPesquisas = $collPesquisas;\n\t\t\t}\n\t\t}\n\t\treturn $this->collPesquisas;\n\t}",
"protected function getPreviousCollection(\\Magento\\Framework\\Api\\SearchCriteriaInterface $searchCriteria)\n {\n $searchCriteria = $this->filterHelper->removeLastFilterGroup(clone $searchCriteria);\n return $this->productHelper->buildCollection($searchCriteria);\n }",
"public function getOperationPrestationssJoinHistoCouts($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN)\n {\n $query = OperationPrestationsQuery::create(null, $criteria);\n $query->joinWith('HistoCouts', $join_behavior);\n\n return $this->getOperationPrestationss($query, $con);\n }",
"public function getCriteria(){\n return $this->criteria;\n }",
"public function getClips($criteria)\n {\n }",
"public function getShoppingCarts($criteria = null, PropelPDO $con = null)\n\t{\n\t\tif ($criteria === null) {\n\t\t\t$criteria = new Criteria(UserPeer::DATABASE_NAME);\n\t\t}\n\t\telseif ($criteria instanceof Criteria)\n\t\t{\n\t\t\t$criteria = clone $criteria;\n\t\t}\n\n\t\tif ($this->collShoppingCarts === null) {\n\t\t\tif ($this->isNew()) {\n\t\t\t $this->collShoppingCarts = array();\n\t\t\t} else {\n\n\t\t\t\t$criteria->add(ShoppingCartPeer::USER_ID, $this->id);\n\n\t\t\t\tShoppingCartPeer::addSelectColumns($criteria);\n\t\t\t\t$this->collShoppingCarts = ShoppingCartPeer::doSelect($criteria, $con);\n\t\t\t}\n\t\t} else {\n\t\t\t// criteria has no effect for a new object\n\t\t\tif (!$this->isNew()) {\n\t\t\t\t// the following code is to determine if a new query is\n\t\t\t\t// called for. If the criteria is the same as the last\n\t\t\t\t// one, just return the collection.\n\n\n\t\t\t\t$criteria->add(ShoppingCartPeer::USER_ID, $this->id);\n\n\t\t\t\tShoppingCartPeer::addSelectColumns($criteria);\n\t\t\t\tif (!isset($this->lastShoppingCartCriteria) || !$this->lastShoppingCartCriteria->equals($criteria)) {\n\t\t\t\t\t$this->collShoppingCarts = ShoppingCartPeer::doSelect($criteria, $con);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$this->lastShoppingCartCriteria = $criteria;\n\t\treturn $this->collShoppingCarts;\n\t}",
"public function getNoticias($criteria = null, PropelPDO $con = null)\n\t{\n\t\tif(null === $this->collNoticias || null !== $criteria) {\n\t\t\tif ($this->isNew() && null === $this->collNoticias) {\n\t\t\t\t// return empty collection\n\t\t\t\t$this->initNoticias();\n\t\t\t} else {\n\t\t\t\t$collNoticias = NoticiaQuery::create(null, $criteria)\n\t\t\t\t\t->filterByUsuario($this)\n\t\t\t\t\t->find($con);\n\t\t\t\tif (null !== $criteria) {\n\t\t\t\t\treturn $collNoticias;\n\t\t\t\t}\n\t\t\t\t$this->collNoticias = $collNoticias;\n\t\t\t}\n\t\t}\n\t\treturn $this->collNoticias;\n\t}",
"public function getOperationPrestationssJoinOperationScenarii($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN)\n {\n $query = OperationPrestationsQuery::create(null, $criteria);\n $query->joinWith('OperationScenarii', $join_behavior);\n\n return $this->getOperationPrestationss($query, $con);\n }",
"public function getOperationPrestationssJoinUsers($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN)\n {\n $query = OperationPrestationsQuery::create(null, $criteria);\n $query->joinWith('Users', $join_behavior);\n\n return $this->getOperationPrestationss($query, $con);\n }",
"public function relCooperations() {\n return Job::query()\n ->join('ownership', 'ownership.tobjsid', 'jobs.sId')\n ->select('jobs.*')\n ->where('ownership.fobjsid', parent::__get('sId'))\n ->where('jobs.type', Job::TYPE_COOPERATION)\n ->get();\n }",
"public function getCriteria()\n {\n if (!isset($this->currentCriteria)) {\n throw new CollectionDriverException('Criteria is accessible only during preGetResult event.');\n }\n\n return $this->currentCriteria;\n }",
"public function getComentarioNoticias($criteria = null, PropelPDO $con = null)\n\t{\n\t\tif(null === $this->collComentarioNoticias || null !== $criteria) {\n\t\t\tif ($this->isNew() && null === $this->collComentarioNoticias) {\n\t\t\t\t// return empty collection\n\t\t\t\t$this->initComentarioNoticias();\n\t\t\t} else {\n\t\t\t\t$collComentarioNoticias = ComentarioNoticiaQuery::create(null, $criteria)\n\t\t\t\t\t->filterByUsuario($this)\n\t\t\t\t\t->find($con);\n\t\t\t\tif (null !== $criteria) {\n\t\t\t\t\treturn $collComentarioNoticias;\n\t\t\t\t}\n\t\t\t\t$this->collComentarioNoticias = $collComentarioNoticias;\n\t\t\t}\n\t\t}\n\t\treturn $this->collComentarioNoticias;\n\t}",
"public function getVpoRequestCargos($criteria = null, PropelPDO $con = null)\n\t{\n\t\tif ($criteria === null) {\n\t\t\t$criteria = new Criteria(VpoRequestPeer::DATABASE_NAME);\n\t\t}\n\t\telseif ($criteria instanceof Criteria)\n\t\t{\n\t\t\t$criteria = clone $criteria;\n\t\t}\n\n\t\tif ($this->collVpoRequestCargos === null) {\n\t\t\tif ($this->isNew()) {\n\t\t\t $this->collVpoRequestCargos = array();\n\t\t\t} else {\n\n\t\t\t\t$criteria->add(VpoRequestCargoPeer::REQUEST_ID, $this->id);\n\n\t\t\t\tVpoRequestCargoPeer::addSelectColumns($criteria);\n\t\t\t\t$this->collVpoRequestCargos = VpoRequestCargoPeer::doSelect($criteria, $con);\n\t\t\t}\n\t\t} else {\n\t\t\t// criteria has no effect for a new object\n\t\t\tif (!$this->isNew()) {\n\t\t\t\t// the following code is to determine if a new query is\n\t\t\t\t// called for. If the criteria is the same as the last\n\t\t\t\t// one, just return the collection.\n\n\n\t\t\t\t$criteria->add(VpoRequestCargoPeer::REQUEST_ID, $this->id);\n\n\t\t\t\tVpoRequestCargoPeer::addSelectColumns($criteria);\n\t\t\t\tif (!isset($this->lastVpoRequestCargoCriteria) || !$this->lastVpoRequestCargoCriteria->equals($criteria)) {\n\t\t\t\t\t$this->collVpoRequestCargos = VpoRequestCargoPeer::doSelect($criteria, $con);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$this->lastVpoRequestCargoCriteria = $criteria;\n\t\treturn $this->collVpoRequestCargos;\n\t}",
"public function fetchCollection($criteria = null);",
"public function getVpoRequestPassengers($criteria = null, PropelPDO $con = null)\n\t{\n\t\tif ($criteria === null) {\n\t\t\t$criteria = new Criteria(VpoRequestPeer::DATABASE_NAME);\n\t\t}\n\t\telseif ($criteria instanceof Criteria)\n\t\t{\n\t\t\t$criteria = clone $criteria;\n\t\t}\n\n\t\tif ($this->collVpoRequestPassengers === null) {\n\t\t\tif ($this->isNew()) {\n\t\t\t $this->collVpoRequestPassengers = array();\n\t\t\t} else {\n\n\t\t\t\t$criteria->add(VpoRequestPassengerPeer::REQUEST_ID, $this->id);\n\n\t\t\t\tVpoRequestPassengerPeer::addSelectColumns($criteria);\n\t\t\t\t$this->collVpoRequestPassengers = VpoRequestPassengerPeer::doSelect($criteria, $con);\n\t\t\t}\n\t\t} else {\n\t\t\t// criteria has no effect for a new object\n\t\t\tif (!$this->isNew()) {\n\t\t\t\t// the following code is to determine if a new query is\n\t\t\t\t// called for. If the criteria is the same as the last\n\t\t\t\t// one, just return the collection.\n\n\n\t\t\t\t$criteria->add(VpoRequestPassengerPeer::REQUEST_ID, $this->id);\n\n\t\t\t\tVpoRequestPassengerPeer::addSelectColumns($criteria);\n\t\t\t\tif (!isset($this->lastVpoRequestPassengerCriteria) || !$this->lastVpoRequestPassengerCriteria->equals($criteria)) {\n\t\t\t\t\t$this->collVpoRequestPassengers = VpoRequestPassengerPeer::doSelect($criteria, $con);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$this->lastVpoRequestPassengerCriteria = $criteria;\n\t\treturn $this->collVpoRequestPassengers;\n\t}",
"function getSearchCriteria() {\n\t\t// should not be searched.\n\n\t\t$criteria = new CDbCriteria;\n\n\t\t$criteria->compare('id', $this->id);\n\t\t$criteria->compare('name', $this->name, true);\n\t\t$criteria->compare('client_id', $this->client_id);\n\n\t\t$criteria->compare('date', $this->date, true);\n\t\t$criteria->compare('fixpay', $this->fixpay);\n\t\t$criteria->compare('note', $this->note, true);\n\n//\t\t$criteria->with = array('client');//, 'invoices'=> array('select' =>'IFNULL((SELECT SUM(`sum`) FROM '.Yii::app()->db->tablePrefix.'invoices WHERE order_id = t.id),0) as invoices_sum'));\n\t\t$criteria->select = 't.*,\n\t\t\t(IFNULL((SELECT SUM(`sum`) FROM ' . Yii::app()->db->tablePrefix . 'invoices WHERE order_id = t.id),0)) as invoices_sum,\n\t\t\tIFNULL((SELECT SUM(cost*quantity) FROM ' . Yii::app()->db->tablePrefix . 'works WHERE `order_id` = t.id),0) as works_sum,\n\t\tIFNULL((SELECT SUM(sum) FROM ' . Yii::app()->db->tablePrefix . 'payments WHERE order_id = t.id),0) as payments_sum,\n\t\t(SELECT IFNULL(works_sum-payments_sum,0)) as finBalance';\n//\t\t(SELECT name FROM ' . Yii::app()->db->tablePrefix . 'clients WHERE id=t.client_id) as client_name';\n\n//\t\t$criteria->with=array('client');\n\t\t\n\t\tif ($this->status == 'open')\n\t\t\t$criteria->addNotInCondition('status', array('12', '13')); //закрыт или отменен\n elseif ($this->status !== '')\n\t\t\t$criteria->compare('status', $this->status);\n\n\t\treturn $criteria;\n\t}",
"public function countOperationPrestationss(Criteria $criteria = null, $distinct = false, PropelPDO $con = null)\n {\n $partial = $this->collOperationPrestationssPartial && !$this->isNew();\n if (null === $this->collOperationPrestationss || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collOperationPrestationss) {\n return 0;\n }\n\n if ($partial && !$criteria) {\n return count($this->getOperationPrestationss());\n }\n $query = OperationPrestationsQuery::create(null, $criteria);\n if ($distinct) {\n $query->distinct();\n }\n\n return $query\n ->filterByOperationPrimes($this)\n ->count($con);\n }\n\n return count($this->collOperationPrestationss);\n }",
"public function getProjects($criteria = null, PropelPDO $con = null)\n {\n $partial = $this->collProjectsPartial && !$this->isNew();\n if (null === $this->collProjects || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collProjects) {\n // return empty collection\n $this->initProjects();\n } else {\n $collProjects = ProjectQuery::create(null, $criteria)\n ->filterByYear($this)\n ->find($con);\n if (null !== $criteria) {\n if (false !== $this->collProjectsPartial && count($collProjects)) {\n $this->initProjects(false);\n\n foreach ($collProjects as $obj) {\n if (false == $this->collProjects->contains($obj)) {\n $this->collProjects->append($obj);\n }\n }\n\n $this->collProjectsPartial = true;\n }\n\n $collProjects->getInternalIterator()->rewind();\n\n return $collProjects;\n }\n\n if ($partial && $this->collProjects) {\n foreach ($this->collProjects as $obj) {\n if ($obj->isNew()) {\n $collProjects[] = $obj;\n }\n }\n }\n\n $this->collProjects = $collProjects;\n $this->collProjectsPartial = false;\n }\n }\n\n return $this->collProjects;\n }",
"public function getPainRatings(Criteria $criteria = null, ConnectionInterface $con = null)\n {\n $partial = $this->collPainRatingsPartial && !$this->isNew();\n if (null === $this->collPainRatings || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collPainRatings) {\n // return empty collection\n $this->initPainRatings();\n } else {\n $collPainRatings = ChildPainRatingQuery::create(null, $criteria)\n ->filterByUser($this)\n ->find($con);\n\n if (null !== $criteria) {\n if (false !== $this->collPainRatingsPartial && count($collPainRatings)) {\n $this->initPainRatings(false);\n\n foreach ($collPainRatings as $obj) {\n if (false == $this->collPainRatings->contains($obj)) {\n $this->collPainRatings->append($obj);\n }\n }\n\n $this->collPainRatingsPartial = true;\n }\n\n return $collPainRatings;\n }\n\n if ($partial && $this->collPainRatings) {\n foreach ($this->collPainRatings as $obj) {\n if ($obj->isNew()) {\n $collPainRatings[] = $obj;\n }\n }\n }\n\n $this->collPainRatings = $collPainRatings;\n $this->collPainRatingsPartial = false;\n }\n }\n\n return $this->collPainRatings;\n }",
"public function matching(Criteria $criteria)\n {\n if ($this->isDirty) {\n $this->initialize();\n }\n if ($this->initialized) {\n return $this->collection->matching($criteria);\n }\n\n $builder = Criteria::expr();\n $ownerExpression = $builder->eq($this->backRefFieldName, $this->owner);\n $expression = $criteria->getWhereExpression();\n $expression = $expression ? $builder->andX($expression, $ownerExpression) : $ownerExpression;\n $criteria = clone $criteria;\n $criteria->where($expression);\n $persister = $this->manager->getUnitOfWork()->getEntityPersister($this->association['targetEntity']);\n\n return new LazyCriteriaCollection($persister, $criteria);\n }",
"public function getCriteriaList() {\n return $this->_get(6);\n }",
"public abstract function findOperationBy(array $criteria);",
"public function getBookks($criteria = null, PropelPDO $con = null)\n {\n $partial = $this->collBookksPartial && !$this->isNew();\n if (null === $this->collBookks || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collBookks) {\n // return empty collection\n $this->initBookks();\n } else {\n $collBookks = BookkQuery::create(null, $criteria)\n ->filterByYear($this)\n ->find($con);\n if (null !== $criteria) {\n if (false !== $this->collBookksPartial && count($collBookks)) {\n $this->initBookks(false);\n\n foreach ($collBookks as $obj) {\n if (false == $this->collBookks->contains($obj)) {\n $this->collBookks->append($obj);\n }\n }\n\n $this->collBookksPartial = true;\n }\n\n $collBookks->getInternalIterator()->rewind();\n\n return $collBookks;\n }\n\n if ($partial && $this->collBookks) {\n foreach ($this->collBookks as $obj) {\n if ($obj->isNew()) {\n $collBookks[] = $obj;\n }\n }\n }\n\n $this->collBookks = $collBookks;\n $this->collBookksPartial = false;\n }\n }\n\n return $this->collBookks;\n }",
"public function getLoadCriteria() {\n return $this->_load_criteria;\n }",
"public function addOperationPrestations(OperationPrestations $l)\n {\n if ($this->collOperationPrestationss === null) {\n $this->initOperationPrestationss();\n $this->collOperationPrestationssPartial = true;\n }\n\n if (!in_array($l, $this->collOperationPrestationss->getArrayCopy(), true)) { // only add it if the **same** object is not already associated\n $this->doAddOperationPrestations($l);\n\n if ($this->operationPrestationssScheduledForDeletion and $this->operationPrestationssScheduledForDeletion->contains($l)) {\n $this->operationPrestationssScheduledForDeletion->remove($this->operationPrestationssScheduledForDeletion->search($l));\n }\n }\n\n return $this;\n }",
"public function clearOperationPrestationss()\n {\n $this->collOperationPrestationss = null; // important to set this to null since that means it is uninitialized\n $this->collOperationPrestationssPartial = null;\n\n return $this;\n }",
"public function getTranscodingsJoinCpu($criteria = null, $con = null)\n\t{\n\t\t// include the Peer class\n\t\tinclude_once 'lib/model/om/BaseTranscodingPeer.php';\n\t\tif ($criteria === null) {\n\t\t\t$criteria = new Criteria();\n\t\t}\n\t\telseif ($criteria instanceof Criteria)\n\t\t{\n\t\t\t$criteria = clone $criteria;\n\t\t}\n\n\t\tif ($this->collTranscodings === null) {\n\t\t\tif ($this->isNew()) {\n\t\t\t\t$this->collTranscodings = array();\n\t\t\t} else {\n\n\t\t\t\t$criteria->add(TranscodingPeer::MM_ID, $this->getId());\n\n\t\t\t\t$this->collTranscodings = TranscodingPeer::doSelectJoinCpu($criteria, $con);\n\t\t\t}\n\t\t} else {\n\t\t\t// the following code is to determine if a new query is\n\t\t\t// called for. If the criteria is the same as the last\n\t\t\t// one, just return the collection.\n\n\t\t\t$criteria->add(TranscodingPeer::MM_ID, $this->getId());\n\n\t\t\tif (!isset($this->lastTranscodingCriteria) || !$this->lastTranscodingCriteria->equals($criteria)) {\n\t\t\t\t$this->collTranscodings = TranscodingPeer::doSelectJoinCpu($criteria, $con);\n\t\t\t}\n\t\t}\n\t\t$this->lastTranscodingCriteria = $criteria;\n\n\t\treturn $this->collTranscodings;\n\t}",
"public function getCMDTAppareils(Criteria $criteria = null, ConnectionInterface $con = null)\n {\n $partial = $this->collCMDTAppareilsPartial && !$this->isNew();\n if (null === $this->collCMDTAppareils || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collCMDTAppareils) {\n // return empty collection\n $this->initCMDTAppareils();\n } else {\n $collCMDTAppareils = ChildCMDTAppareilQuery::create(null, $criteria)\n ->filterByCommande($this)\n ->find($con);\n\n if (null !== $criteria) {\n if (false !== $this->collCMDTAppareilsPartial && count($collCMDTAppareils)) {\n $this->initCMDTAppareils(false);\n\n foreach ($collCMDTAppareils as $obj) {\n if (false == $this->collCMDTAppareils->contains($obj)) {\n $this->collCMDTAppareils->append($obj);\n }\n }\n\n $this->collCMDTAppareilsPartial = true;\n }\n\n return $collCMDTAppareils;\n }\n\n if ($partial && $this->collCMDTAppareils) {\n foreach ($this->collCMDTAppareils as $obj) {\n if ($obj->isNew()) {\n $collCMDTAppareils[] = $obj;\n }\n }\n }\n\n $this->collCMDTAppareils = $collCMDTAppareils;\n $this->collCMDTAppareilsPartial = false;\n }\n }\n\n return $this->collCMDTAppareils;\n }",
"public function getByCriteria(Criteria $criteria)\n {\n try\n {\n $this->db->setFetchMode(Zend_Db::FETCH_ASSOC);\n $sql = \"SELECT \".ZipCode::ZIP_CODE.\", \".ZipCode::SETTLEMENT.\", \".ZipCode::DISTRICT.\", \".ZipCode::STATE.\", \".ZipCode::CITY.\", \".ZipCode::MEXICO_STATE.\"\n FROM \".ZipCode::TABLENAME.\"\n WHERE \" . $criteria->createSql();\n $zipCodeCollection = new ZipCodeCollection();\n foreach ($this->db->fetchAll($sql) as $result){\n $zipCodeCollection->append($this->createInternal($result));\n }\n }\n catch(Exception $e)\n {\n throw new Exception(\"No se pudo obtener la colección de items\\n\" . $e->getMessage());\n }\n return $zipCodeCollection;\n }",
"public function buildPkeyCriteria()\n {\n $criteria = new Criteria(SanitasiPeer::DATABASE_NAME);\n $criteria->add(SanitasiPeer::SEKOLAH_ID, $this->sekolah_id);\n $criteria->add(SanitasiPeer::SEMESTER_ID, $this->semester_id);\n\n return $criteria;\n }",
"public function getPraticiens() {\r\n $sql = $this->sqlPraticien . ' order by nom_praticien';\r\n $praticiens = $this->executerRequete($sql);\r\n return $praticiens;\r\n }",
"public function GetInfobjectfonds($criteria = null)\r\n\t{\r\n\t\treturn $this->_phreezer->GetOneToMany($this, \"FK_fironk10lq67q4j0a3oue8ldg\", $criteria);\r\n\t}",
"public function buildPkeyCriteria()\n\t{\n\t\t$criteria = new Criteria(J019tParticipantesPeer::DATABASE_NAME);\n\n\t\t$criteria->add(J019tParticipantesPeer::CO_PARTICIPANTE, $this->co_participante);\n\n\t\treturn $criteria;\n\t}",
"public static function cooperations() {\n return self::query()\n ->join('ownership', 'ownership.fobjsid', 'vp.sId')\n ->join('jobs', 'ownership.tobjsid', 'jobs.sId')\n ->select('vp.*')\n ->where('jobs.type', Job::TYPE_COOPERATION);\n }",
"public function getEntities()\n {\n return $this->getRepository()->findBy([], ['discipline' => 'ASC']);\n }",
"public function getPermissaosRelatedByCoUsuarioAlteracao($criteria = null, PropelPDO $con = null)\n\t{\n\t\tif(null === $this->collPermissaosRelatedByCoUsuarioAlteracao || null !== $criteria) {\n\t\t\tif ($this->isNew() && null === $this->collPermissaosRelatedByCoUsuarioAlteracao) {\n\t\t\t\t// return empty collection\n\t\t\t\t$this->initPermissaosRelatedByCoUsuarioAlteracao();\n\t\t\t} else {\n\t\t\t\t$collPermissaosRelatedByCoUsuarioAlteracao = PermissaoQuery::create(null, $criteria)\n\t\t\t\t\t->filterByUsuarioRelatedByCoUsuarioAlteracao($this)\n\t\t\t\t\t->find($con);\n\t\t\t\tif (null !== $criteria) {\n\t\t\t\t\treturn $collPermissaosRelatedByCoUsuarioAlteracao;\n\t\t\t\t}\n\t\t\t\t$this->collPermissaosRelatedByCoUsuarioAlteracao = $collPermissaosRelatedByCoUsuarioAlteracao;\n\t\t\t}\n\t\t}\n\t\treturn $this->collPermissaosRelatedByCoUsuarioAlteracao;\n\t}",
"public function getCriteria();",
"public function buildPkeyCriteria()\n {\n $criteria = new Criteria(MontacargasPeer::DATABASE_NAME);\n $criteria->add(MontacargasPeer::IDMONTACARGAS, $this->idmontacargas);\n\n return $criteria;\n }",
"public function buildPkeyCriteria()\n {\n $criteria = new Criteria(SekolahPaudPeer::DATABASE_NAME);\n $criteria->add(SekolahPaudPeer::SEKOLAH_ID, $this->sekolah_id);\n\n return $criteria;\n }",
"public function getOpenids($criteria = null, PropelPDO $con = null)\n\t{\n\t\tif ($criteria === null) {\n\t\t\t$criteria = new Criteria(UserPeer::DATABASE_NAME);\n\t\t}\n\t\telseif ($criteria instanceof Criteria)\n\t\t{\n\t\t\t$criteria = clone $criteria;\n\t\t}\n\n\t\tif ($this->collOpenids === null) {\n\t\t\tif ($this->isNew()) {\n\t\t\t $this->collOpenids = array();\n\t\t\t} else {\n\n\t\t\t\t$criteria->add(OpenidPeer::USER_ID, $this->id);\n\n\t\t\t\tOpenidPeer::addSelectColumns($criteria);\n\t\t\t\t$this->collOpenids = OpenidPeer::doSelect($criteria, $con);\n\t\t\t}\n\t\t} else {\n\t\t\t// criteria has no effect for a new object\n\t\t\tif (!$this->isNew()) {\n\t\t\t\t// the following code is to determine if a new query is\n\t\t\t\t// called for. If the criteria is the same as the last\n\t\t\t\t// one, just return the collection.\n\n\n\t\t\t\t$criteria->add(OpenidPeer::USER_ID, $this->id);\n\n\t\t\t\tOpenidPeer::addSelectColumns($criteria);\n\t\t\t\tif (!isset($this->lastOpenidCriteria) || !$this->lastOpenidCriteria->equals($criteria)) {\n\t\t\t\t\t$this->collOpenids = OpenidPeer::doSelect($criteria, $con);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$this->lastOpenidCriteria = $criteria;\n\t\treturn $this->collOpenids;\n\t}",
"public function buildPkeyCriteria()\n\t{\n\t\t$criteria = new Criteria(VpoRequestPeer::DATABASE_NAME);\n\n\t\t$criteria->add(VpoRequestPeer::ID, $this->id);\n\n\t\treturn $criteria;\n\t}",
"public function findBy(Criteria $criteria)\n {\n $hydrator = $this->_hydrator;\n $classname = $this->_class->getName();\n $result = $this->_em->getConnexionDriver()->findBy($criteria, $this->_class);\n return array_map(function ($item) use ($hydrator, $classname) {\n return $hydrator->hydrate($item, new $classname());\n }, $result);\n }",
"public function getOffensives($criteria = null, PropelPDO $con = null)\n\t{\n\t\tif ($criteria === null) {\n\t\t\t$criteria = new Criteria(UserPeer::DATABASE_NAME);\n\t\t}\n\t\telseif ($criteria instanceof Criteria)\n\t\t{\n\t\t\t$criteria = clone $criteria;\n\t\t}\n\n\t\tif ($this->collOffensives === null) {\n\t\t\tif ($this->isNew()) {\n\t\t\t $this->collOffensives = array();\n\t\t\t} else {\n\n\t\t\t\t$criteria->add(OffensivePeer::USER_ID, $this->id);\n\n\t\t\t\tOffensivePeer::addSelectColumns($criteria);\n\t\t\t\t$this->collOffensives = OffensivePeer::doSelect($criteria, $con);\n\t\t\t}\n\t\t} else {\n\t\t\t// criteria has no effect for a new object\n\t\t\tif (!$this->isNew()) {\n\t\t\t\t// the following code is to determine if a new query is\n\t\t\t\t// called for. If the criteria is the same as the last\n\t\t\t\t// one, just return the collection.\n\n\n\t\t\t\t$criteria->add(OffensivePeer::USER_ID, $this->id);\n\n\t\t\t\tOffensivePeer::addSelectColumns($criteria);\n\t\t\t\tif (!isset($this->lastOffensiveCriteria) || !$this->lastOffensiveCriteria->equals($criteria)) {\n\t\t\t\t\t$this->collOffensives = OffensivePeer::doSelect($criteria, $con);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$this->lastOffensiveCriteria = $criteria;\n\t\treturn $this->collOffensives;\n\t}",
"public static function getPreinscripciones($id){ \r\n $conexion = Database::get(); \r\n \r\n $consulta = \"SELECT c.* FROM cursos c, preinscripciones p, usuarios u WHERE u.id = $id \r\n \t\t\tAND p.id_curso = c.id AND u.id= p.id_usuario AND c.activo = 1 ORDER BY p.timestamp ASC;\";\r\n \r\n $resultados = $conexion->query($consulta); \r\n $cursos = array();\r\n while ($curso = $resultados->fetch_object('CursoModel'))\r\n \t$cursos[] = $curso;\r\n \r\n $resultados->free();\r\n\t\t\t\r\n return $cursos;\r\n //return $portadas;\r\n }",
"public function buildPkeyCriteria()\n\t{\n\t\t$criteria = new Criteria(CidadePeer::DATABASE_NAME);\n\t\t$criteria->add(CidadePeer::ID, $this->id);\n\n\t\treturn $criteria;\n\t}",
"public static function create($modelAlias = null, $criteria = null)\n {\n if ($criteria instanceof FacturesPrestationsQuery) {\n return $criteria;\n }\n $query = new FacturesPrestationsQuery(null, null, $modelAlias);\n\n if ($criteria instanceof Criteria) {\n $query->mergeWith($criteria);\n }\n\n return $query;\n }",
"public function GetUltimaProcedenciaPaisTbHospedagems($criteria = null)\r\n\t{\r\n\t\treturn $this->_phreezer->GetOneToMany($this, \"fk_tb_hospedagem_tb_pais1\", $criteria);\r\n\t}",
"public function findCriteria()\r\n\t{\n\t\t$result = $this -> connection -> setTable($this -> entity)\n\t\t\t\t\t\t\t\t\t -> fetch();\r\n\n\t\treturn $result;\r\n\t}",
"public function initOperationPrestationss($overrideExisting = true)\n {\n if (null !== $this->collOperationPrestationss && !$overrideExisting) {\n return;\n }\n $this->collOperationPrestationss = new PropelObjectCollection();\n $this->collOperationPrestationss->setModel('OperationPrestations');\n }",
"public function getRIssuesSingleplugins(Criteria $criteria = null, ConnectionInterface $con = null)\n {\n $partial = $this->collRIssuesSinglepluginsPartial && !$this->isNew();\n if (null === $this->collRIssuesSingleplugins || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collRIssuesSingleplugins) {\n // return empty collection\n $this->initRIssuesSingleplugins();\n } else {\n $collRIssuesSingleplugins = ChildRIssuesSinglepluginQuery::create(null, $criteria)\n ->filterBySingleIssue($this)\n ->find($con);\n\n if (null !== $criteria) {\n if (false !== $this->collRIssuesSinglepluginsPartial && count($collRIssuesSingleplugins)) {\n $this->initRIssuesSingleplugins(false);\n\n foreach ($collRIssuesSingleplugins as $obj) {\n if (false == $this->collRIssuesSingleplugins->contains($obj)) {\n $this->collRIssuesSingleplugins->append($obj);\n }\n }\n\n $this->collRIssuesSinglepluginsPartial = true;\n }\n\n return $collRIssuesSingleplugins;\n }\n\n if ($partial && $this->collRIssuesSingleplugins) {\n foreach ($this->collRIssuesSingleplugins as $obj) {\n if ($obj->isNew()) {\n $collRIssuesSingleplugins[] = $obj;\n }\n }\n }\n\n $this->collRIssuesSingleplugins = $collRIssuesSingleplugins;\n $this->collRIssuesSinglepluginsPartial = false;\n }\n }\n\n return $this->collRIssuesSingleplugins;\n }",
"public function buildPkeyCriteria()\n {\n $criteria = ChildKluBillQuery::create();\n $criteria->add(KluBillTableMap::COL_ID, $this->id);\n\n return $criteria;\n }",
"public function getRIssuesXmlplugins(Criteria $criteria = null, ConnectionInterface $con = null)\n {\n $partial = $this->collRIssuesXmlpluginsPartial && !$this->isNew();\n if (null === $this->collRIssuesXmlplugins || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collRIssuesXmlplugins) {\n // return empty collection\n $this->initRIssuesXmlplugins();\n } else {\n $collRIssuesXmlplugins = ChildRIssuesXmlpluginQuery::create(null, $criteria)\n ->filterByXmlIssue($this)\n ->find($con);\n\n if (null !== $criteria) {\n if (false !== $this->collRIssuesXmlpluginsPartial && count($collRIssuesXmlplugins)) {\n $this->initRIssuesXmlplugins(false);\n\n foreach ($collRIssuesXmlplugins as $obj) {\n if (false == $this->collRIssuesXmlplugins->contains($obj)) {\n $this->collRIssuesXmlplugins->append($obj);\n }\n }\n\n $this->collRIssuesXmlpluginsPartial = true;\n }\n\n return $collRIssuesXmlplugins;\n }\n\n if ($partial && $this->collRIssuesXmlplugins) {\n foreach ($this->collRIssuesXmlplugins as $obj) {\n if ($obj->isNew()) {\n $collRIssuesXmlplugins[] = $obj;\n }\n }\n }\n\n $this->collRIssuesXmlplugins = $collRIssuesXmlplugins;\n $this->collRIssuesXmlpluginsPartial = false;\n }\n }\n\n return $this->collRIssuesXmlplugins;\n }",
"public function getRuangs($criteria = null, PropelPDO $con = null)\n {\n $partial = $this->collRuangsPartial && !$this->isNew();\n if (null === $this->collRuangs || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collRuangs) {\n // return empty collection\n $this->initRuangs();\n } else {\n $collRuangs = RuangQuery::create(null, $criteria)\n ->filterByBangunan($this)\n ->find($con);\n if (null !== $criteria) {\n if (false !== $this->collRuangsPartial && count($collRuangs)) {\n $this->initRuangs(false);\n\n foreach($collRuangs as $obj) {\n if (false == $this->collRuangs->contains($obj)) {\n $this->collRuangs->append($obj);\n }\n }\n\n $this->collRuangsPartial = true;\n }\n\n $collRuangs->getInternalIterator()->rewind();\n return $collRuangs;\n }\n\n if($partial && $this->collRuangs) {\n foreach($this->collRuangs as $obj) {\n if($obj->isNew()) {\n $collRuangs[] = $obj;\n }\n }\n }\n\n $this->collRuangs = $collRuangs;\n $this->collRuangsPartial = false;\n }\n }\n\n return $this->collRuangs;\n }",
"public function get_inclusion_criteria()\n\t{\n\t\treturn $this->inclusion_criteria;\n\t}",
"public function buildPkeyCriteria()\n {\n $criteria = ChildCommandeQuery::create();\n $criteria->add(CommandeTableMap::COL_ID_COMMANDE, $this->id_commande);\n\n return $criteria;\n }",
"public function getPartnerssRelatedByPatientId(Criteria $criteria = null, ConnectionInterface $con = null)\n {\n $partial = $this->collPartnerssRelatedByPatientIdPartial && !$this->isNew();\n if (null === $this->collPartnerssRelatedByPatientId || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collPartnerssRelatedByPatientId) {\n // return empty collection\n $this->initPartnerssRelatedByPatientId();\n } else {\n $collPartnerssRelatedByPatientId = ChildPartnersQuery::create(null, $criteria)\n ->filterByPatient($this)\n ->find($con);\n\n if (null !== $criteria) {\n if (false !== $this->collPartnerssRelatedByPatientIdPartial && count($collPartnerssRelatedByPatientId)) {\n $this->initPartnerssRelatedByPatientId(false);\n\n foreach ($collPartnerssRelatedByPatientId as $obj) {\n if (false == $this->collPartnerssRelatedByPatientId->contains($obj)) {\n $this->collPartnerssRelatedByPatientId->append($obj);\n }\n }\n\n $this->collPartnerssRelatedByPatientIdPartial = true;\n }\n\n return $collPartnerssRelatedByPatientId;\n }\n\n if ($partial && $this->collPartnerssRelatedByPatientId) {\n foreach ($this->collPartnerssRelatedByPatientId as $obj) {\n if ($obj->isNew()) {\n $collPartnerssRelatedByPatientId[] = $obj;\n }\n }\n }\n\n $this->collPartnerssRelatedByPatientId = $collPartnerssRelatedByPatientId;\n $this->collPartnerssRelatedByPatientIdPartial = false;\n }\n }\n\n return $this->collPartnerssRelatedByPatientId;\n }",
"public function buildPkeyCriteria()\n\t{\n\t\t$criteria = new Criteria(MmPeer::DATABASE_NAME);\n\n\t\t$criteria->add(MmPeer::ID, $this->id);\n\n\t\treturn $criteria;\n\t}",
"public function buildCriteria()\n\t{\n\t\t$criteria = new Criteria(J019tParticipantesPeer::DATABASE_NAME);\n\n\t\tif ($this->isColumnModified(J019tParticipantesPeer::CO_PARTICIPANTE)) $criteria->add(J019tParticipantesPeer::CO_PARTICIPANTE, $this->co_participante);\n\t\tif ($this->isColumnModified(J019tParticipantesPeer::CO_USUARIO_ELABORA)) $criteria->add(J019tParticipantesPeer::CO_USUARIO_ELABORA, $this->co_usuario_elabora);\n\t\tif ($this->isColumnModified(J019tParticipantesPeer::CO_FORENSE)) $criteria->add(J019tParticipantesPeer::CO_FORENSE, $this->co_forense);\n\t\tif ($this->isColumnModified(J019tParticipantesPeer::CO_INFORME_RECOMENDACIONES)) $criteria->add(J019tParticipantesPeer::CO_INFORME_RECOMENDACIONES, $this->co_informe_recomendaciones);\n\t\tif ($this->isColumnModified(J019tParticipantesPeer::CO_INFORME_INCIDENTE)) $criteria->add(J019tParticipantesPeer::CO_INFORME_INCIDENTE, $this->co_informe_incidente);\n\t\tif ($this->isColumnModified(J019tParticipantesPeer::CO_INFORME_FORENSE)) $criteria->add(J019tParticipantesPeer::CO_INFORME_FORENSE, $this->co_informe_forense);\n\t\tif ($this->isColumnModified(J019tParticipantesPeer::CO_INFORME_DEPURACION)) $criteria->add(J019tParticipantesPeer::CO_INFORME_DEPURACION, $this->co_informe_depuracion);\n\t\tif ($this->isColumnModified(J019tParticipantesPeer::CO_MANTENIMIENTO)) $criteria->add(J019tParticipantesPeer::CO_MANTENIMIENTO, $this->co_mantenimiento);\n\t\tif ($this->isColumnModified(J019tParticipantesPeer::CO_DOUMENTO_NORMATIVO)) $criteria->add(J019tParticipantesPeer::CO_DOUMENTO_NORMATIVO, $this->co_doumento_normativo);\n\n\t\treturn $criteria;\n\t}",
"public function getOneBy(array $criteria = []) : array\n {\n return $this->repository->findOneBy($criteria)->execute()->current();\n }",
"public function buildCriteria()\n\t{\n\t\t$criteria = new Criteria(C060InventarioPeer::DATABASE_NAME);\n\n\t\tif ($this->isColumnModified(C060InventarioPeer::CO_EQUIPO)) $criteria->add(C060InventarioPeer::CO_EQUIPO, $this->co_equipo);\n\t\tif ($this->isColumnModified(C060InventarioPeer::CO_REGION)) $criteria->add(C060InventarioPeer::CO_REGION, $this->co_region);\n\t\tif ($this->isColumnModified(C060InventarioPeer::CO_NEGOCIO)) $criteria->add(C060InventarioPeer::CO_NEGOCIO, $this->co_negocio);\n\t\tif ($this->isColumnModified(C060InventarioPeer::CO_DIVISION)) $criteria->add(C060InventarioPeer::CO_DIVISION, $this->co_division);\n\t\tif ($this->isColumnModified(C060InventarioPeer::CO_TIPO)) $criteria->add(C060InventarioPeer::CO_TIPO, $this->co_tipo);\n\t\tif ($this->isColumnModified(C060InventarioPeer::CO_CUSTODIO)) $criteria->add(C060InventarioPeer::CO_CUSTODIO, $this->co_custodio);\n\t\tif ($this->isColumnModified(C060InventarioPeer::TX_ETIQUETA_STI)) $criteria->add(C060InventarioPeer::TX_ETIQUETA_STI, $this->tx_etiqueta_sti);\n\t\tif ($this->isColumnModified(C060InventarioPeer::CO_ESTADO)) $criteria->add(C060InventarioPeer::CO_ESTADO, $this->co_estado);\n\t\tif ($this->isColumnModified(C060InventarioPeer::TX_NOMBRE_EQUIPO)) $criteria->add(C060InventarioPeer::TX_NOMBRE_EQUIPO, $this->tx_nombre_equipo);\n\t\tif ($this->isColumnModified(C060InventarioPeer::TX_FUNSION_EQUIPO)) $criteria->add(C060InventarioPeer::TX_FUNSION_EQUIPO, $this->tx_funsion_equipo);\n\t\tif ($this->isColumnModified(C060InventarioPeer::CO_SO)) $criteria->add(C060InventarioPeer::CO_SO, $this->co_so);\n\t\tif ($this->isColumnModified(C060InventarioPeer::TX_ETIQUETA_ACTIVO)) $criteria->add(C060InventarioPeer::TX_ETIQUETA_ACTIVO, $this->tx_etiqueta_activo);\n\t\tif ($this->isColumnModified(C060InventarioPeer::TX_SERIAL_HARDWARE)) $criteria->add(C060InventarioPeer::TX_SERIAL_HARDWARE, $this->tx_serial_hardware);\n\t\tif ($this->isColumnModified(C060InventarioPeer::TX_MARCA_HARDWARE)) $criteria->add(C060InventarioPeer::TX_MARCA_HARDWARE, $this->tx_marca_hardware);\n\t\tif ($this->isColumnModified(C060InventarioPeer::TX_MODELO_HARDWARE)) $criteria->add(C060InventarioPeer::TX_MODELO_HARDWARE, $this->tx_modelo_hardware);\n\t\tif ($this->isColumnModified(C060InventarioPeer::CO_CIUDAD)) $criteria->add(C060InventarioPeer::CO_CIUDAD, $this->co_ciudad);\n\t\tif ($this->isColumnModified(C060InventarioPeer::CO_EDIFICIO)) $criteria->add(C060InventarioPeer::CO_EDIFICIO, $this->co_edificio);\n\t\tif ($this->isColumnModified(C060InventarioPeer::TX_DIRECCION_UBICACION)) $criteria->add(C060InventarioPeer::TX_DIRECCION_UBICACION, $this->tx_direccion_ubicacion);\n\t\tif ($this->isColumnModified(C060InventarioPeer::TX_DETALLE_UBICACION)) $criteria->add(C060InventarioPeer::TX_DETALLE_UBICACION, $this->tx_detalle_ubicacion);\n\t\tif ($this->isColumnModified(C060InventarioPeer::CO_CENTRO_DATO)) $criteria->add(C060InventarioPeer::CO_CENTRO_DATO, $this->co_centro_dato);\n\t\tif ($this->isColumnModified(C060InventarioPeer::CO_RACK)) $criteria->add(C060InventarioPeer::CO_RACK, $this->co_rack);\n\t\tif ($this->isColumnModified(C060InventarioPeer::TX_UBICACION_LLAVE)) $criteria->add(C060InventarioPeer::TX_UBICACION_LLAVE, $this->tx_ubicacion_llave);\n\t\tif ($this->isColumnModified(C060InventarioPeer::IN_RESPALDO_AUTOMATIZADO)) $criteria->add(C060InventarioPeer::IN_RESPALDO_AUTOMATIZADO, $this->in_respaldo_automatizado);\n\t\tif ($this->isColumnModified(C060InventarioPeer::IN_BLOQUEO_INACTIVIDAD)) $criteria->add(C060InventarioPeer::IN_BLOQUEO_INACTIVIDAD, $this->in_bloqueo_inactividad);\n\t\tif ($this->isColumnModified(C060InventarioPeer::IN_ADIMINISTRADORES_PERSONALIZADOS)) $criteria->add(C060InventarioPeer::IN_ADIMINISTRADORES_PERSONALIZADOS, $this->in_adiministradores_personalizados);\n\t\tif ($this->isColumnModified(C060InventarioPeer::IN_POLITICA_PASSWORD)) $criteria->add(C060InventarioPeer::IN_POLITICA_PASSWORD, $this->in_politica_password);\n\t\tif ($this->isColumnModified(C060InventarioPeer::IN_SINCRONIZACION_RELOJ)) $criteria->add(C060InventarioPeer::IN_SINCRONIZACION_RELOJ, $this->in_sincronizacion_reloj);\n\t\tif ($this->isColumnModified(C060InventarioPeer::IN_MONITOREADO)) $criteria->add(C060InventarioPeer::IN_MONITOREADO, $this->in_monitoreado);\n\t\tif ($this->isColumnModified(C060InventarioPeer::IN_INF_ACTUALIZADA)) $criteria->add(C060InventarioPeer::IN_INF_ACTUALIZADA, $this->in_inf_actualizada);\n\t\tif ($this->isColumnModified(C060InventarioPeer::IN_LOG_ACTIVO)) $criteria->add(C060InventarioPeer::IN_LOG_ACTIVO, $this->in_log_activo);\n\t\tif ($this->isColumnModified(C060InventarioPeer::CO_NIVEL_CRITICIDAD)) $criteria->add(C060InventarioPeer::CO_NIVEL_CRITICIDAD, $this->co_nivel_criticidad);\n\t\tif ($this->isColumnModified(C060InventarioPeer::TX_OBSERVACIONES)) $criteria->add(C060InventarioPeer::TX_OBSERVACIONES, $this->tx_observaciones);\n\t\tif ($this->isColumnModified(C060InventarioPeer::TX_RUTA_RESPALDO_CONFIGURACIONES)) $criteria->add(C060InventarioPeer::TX_RUTA_RESPALDO_CONFIGURACIONES, $this->tx_ruta_respaldo_configuraciones);\n\t\tif ($this->isColumnModified(C060InventarioPeer::CO_NUM_INVENTARIO)) $criteria->add(C060InventarioPeer::CO_NUM_INVENTARIO, $this->co_num_inventario);\n\n\t\treturn $criteria;\n\t}",
"public abstract function getCriteriaFrom($criteria);",
"public abstract function listOperationBy(array $criteria);",
"public function getRatings(Criteria $criteria = null, ConnectionInterface $con = null)\n {\n $partial = $this->collRatingsPartial && !$this->isNew();\n if (null === $this->collRatings || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collRatings) {\n // return empty collection\n $this->initRatings();\n } else {\n $collRatings = ChildRatingQuery::create(null, $criteria)\n ->filterByArticle($this)\n ->find($con);\n\n if (null !== $criteria) {\n if (false !== $this->collRatingsPartial && count($collRatings)) {\n $this->initRatings(false);\n\n foreach ($collRatings as $obj) {\n if (false == $this->collRatings->contains($obj)) {\n $this->collRatings->append($obj);\n }\n }\n\n $this->collRatingsPartial = true;\n }\n\n return $collRatings;\n }\n\n if ($partial && $this->collRatings) {\n foreach ($this->collRatings as $obj) {\n if ($obj->isNew()) {\n $collRatings[] = $obj;\n }\n }\n }\n\n $this->collRatings = $collRatings;\n $this->collRatingsPartial = false;\n }\n }\n\n return $this->collRatings;\n }",
"public function buildPkeyCriteria()\n\t{\n\t\t$criteria = new Criteria(UsuarioPeer::DATABASE_NAME);\n\t\t$criteria->add(UsuarioPeer::CO_USUARIO, $this->co_usuario);\n\n\t\treturn $criteria;\n\t}",
"public function getMmPersons($criteria = null, $con = null)\n\t{\n\t\t// include the Peer class\n\t\tinclude_once 'lib/model/om/BaseMmPersonPeer.php';\n\t\tif ($criteria === null) {\n\t\t\t$criteria = new Criteria();\n\t\t}\n\t\telseif ($criteria instanceof Criteria)\n\t\t{\n\t\t\t$criteria = clone $criteria;\n\t\t}\n\n\t\tif ($this->collMmPersons === null) {\n\t\t\tif ($this->isNew()) {\n\t\t\t $this->collMmPersons = array();\n\t\t\t} else {\n\n\t\t\t\t$criteria->add(MmPersonPeer::MM_ID, $this->getId());\n\n\t\t\t\tMmPersonPeer::addSelectColumns($criteria);\n\t\t\t\t$this->collMmPersons = MmPersonPeer::doSelect($criteria, $con);\n\t\t\t}\n\t\t} else {\n\t\t\t// criteria has no effect for a new object\n\t\t\tif (!$this->isNew()) {\n\t\t\t\t// the following code is to determine if a new query is\n\t\t\t\t// called for. If the criteria is the same as the last\n\t\t\t\t// one, just return the collection.\n\n\n\t\t\t\t$criteria->add(MmPersonPeer::MM_ID, $this->getId());\n\n\t\t\t\tMmPersonPeer::addSelectColumns($criteria);\n\t\t\t\tif (!isset($this->lastMmPersonCriteria) || !$this->lastMmPersonCriteria->equals($criteria)) {\n\t\t\t\t\t$this->collMmPersons = MmPersonPeer::doSelect($criteria, $con);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$this->lastMmPersonCriteria = $criteria;\n\t\treturn $this->collMmPersons;\n\t}",
"public function getQuestionVotes($criteria = null, PropelPDO $con = null)\n\t{\n\t\tif ($criteria === null) {\n\t\t\t$criteria = new Criteria(UserPeer::DATABASE_NAME);\n\t\t}\n\t\telseif ($criteria instanceof Criteria)\n\t\t{\n\t\t\t$criteria = clone $criteria;\n\t\t}\n\n\t\tif ($this->collQuestionVotes === null) {\n\t\t\tif ($this->isNew()) {\n\t\t\t $this->collQuestionVotes = array();\n\t\t\t} else {\n\n\t\t\t\t$criteria->add(QuestionVotePeer::USER_ID, $this->id);\n\n\t\t\t\tQuestionVotePeer::addSelectColumns($criteria);\n\t\t\t\t$this->collQuestionVotes = QuestionVotePeer::doSelect($criteria, $con);\n\t\t\t}\n\t\t} else {\n\t\t\t// criteria has no effect for a new object\n\t\t\tif (!$this->isNew()) {\n\t\t\t\t// the following code is to determine if a new query is\n\t\t\t\t// called for. If the criteria is the same as the last\n\t\t\t\t// one, just return the collection.\n\n\n\t\t\t\t$criteria->add(QuestionVotePeer::USER_ID, $this->id);\n\n\t\t\t\tQuestionVotePeer::addSelectColumns($criteria);\n\t\t\t\tif (!isset($this->lastQuestionVoteCriteria) || !$this->lastQuestionVoteCriteria->equals($criteria)) {\n\t\t\t\t\t$this->collQuestionVotes = QuestionVotePeer::doSelect($criteria, $con);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$this->lastQuestionVoteCriteria = $criteria;\n\t\treturn $this->collQuestionVotes;\n\t}",
"public function getQuestionOffensives($criteria = null, PropelPDO $con = null)\n\t{\n\t\tif ($criteria === null) {\n\t\t\t$criteria = new Criteria(UserPeer::DATABASE_NAME);\n\t\t}\n\t\telseif ($criteria instanceof Criteria)\n\t\t{\n\t\t\t$criteria = clone $criteria;\n\t\t}\n\n\t\tif ($this->collQuestionOffensives === null) {\n\t\t\tif ($this->isNew()) {\n\t\t\t $this->collQuestionOffensives = array();\n\t\t\t} else {\n\n\t\t\t\t$criteria->add(QuestionOffensivePeer::USER_ID, $this->id);\n\n\t\t\t\tQuestionOffensivePeer::addSelectColumns($criteria);\n\t\t\t\t$this->collQuestionOffensives = QuestionOffensivePeer::doSelect($criteria, $con);\n\t\t\t}\n\t\t} else {\n\t\t\t// criteria has no effect for a new object\n\t\t\tif (!$this->isNew()) {\n\t\t\t\t// the following code is to determine if a new query is\n\t\t\t\t// called for. If the criteria is the same as the last\n\t\t\t\t// one, just return the collection.\n\n\n\t\t\t\t$criteria->add(QuestionOffensivePeer::USER_ID, $this->id);\n\n\t\t\t\tQuestionOffensivePeer::addSelectColumns($criteria);\n\t\t\t\tif (!isset($this->lastQuestionOffensiveCriteria) || !$this->lastQuestionOffensiveCriteria->equals($criteria)) {\n\t\t\t\t\t$this->collQuestionOffensives = QuestionOffensivePeer::doSelect($criteria, $con);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$this->lastQuestionOffensiveCriteria = $criteria;\n\t\treturn $this->collQuestionOffensives;\n\t}",
"public function getFkEmpenhoItemPrestacaoContas()\n {\n return $this->fkEmpenhoItemPrestacaoContas;\n }",
"public function getBillabilityData($criteria)\n {\n $em = $this->getEntityManager();\n $qb = $em->createQueryBuilder();\n $qb->select('p.pid,n.name,c.clientName,pp.phaseName,'\n . 'p.lifeCycleStatus,p.billingStatus,pu.userName,pu.id,p.createDate,'\n . 'p.startDate,p.endDate,p.projectStatus');\n $qb->from('Vlreleases\\UserBundle\\Entity\\Projects', 'p');\n $qb->leftJoin('p.user', 'pu');\n $qb->leftJoin('p.projectName', 'n');\n $qb->leftJoin('p.client', 'c');\n $qb->leftJoin('p.phase', 'pp');\n $qb->where(\"p.billingStatus = '$criteria'\");\n $result = $qb->getQuery()->getResult();\n \n return $result;\n }",
"public function getPermissaosRelatedByCoUsuarioCadastro($criteria = null, PropelPDO $con = null)\n\t{\n\t\tif(null === $this->collPermissaosRelatedByCoUsuarioCadastro || null !== $criteria) {\n\t\t\tif ($this->isNew() && null === $this->collPermissaosRelatedByCoUsuarioCadastro) {\n\t\t\t\t// return empty collection\n\t\t\t\t$this->initPermissaosRelatedByCoUsuarioCadastro();\n\t\t\t} else {\n\t\t\t\t$collPermissaosRelatedByCoUsuarioCadastro = PermissaoQuery::create(null, $criteria)\n\t\t\t\t\t->filterByUsuarioRelatedByCoUsuarioCadastro($this)\n\t\t\t\t\t->find($con);\n\t\t\t\tif (null !== $criteria) {\n\t\t\t\t\treturn $collPermissaosRelatedByCoUsuarioCadastro;\n\t\t\t\t}\n\t\t\t\t$this->collPermissaosRelatedByCoUsuarioCadastro = $collPermissaosRelatedByCoUsuarioCadastro;\n\t\t\t}\n\t\t}\n\t\treturn $this->collPermissaosRelatedByCoUsuarioCadastro;\n\t}",
"public function buildPkeyCriteria()\n\t{\n\t\t$criteria = new Criteria(UsuarioPeer::DATABASE_NAME);\n\t\t$criteria->add(UsuarioPeer::ID, $this->id);\n\n\t\treturn $criteria;\n\t}",
"public function buildPkeyCriteria()\n {\n $criteria = new Criteria(EventPeer::DATABASE_NAME);\n $criteria->add(EventPeer::ID, $this->id);\n\n return $criteria;\n }",
"public function ListarProductosStockMinimo()\n{\n\tself::SetNames();\n\t$sql = \" select * from productos INNER JOIN categorias ON productos.codcategoria = categorias.codcategoria WHERE productos.existencia <= productos.stockminimo\";\n\tforeach ($this->dbh->query($sql) as $row)\n\t{\n\t\t$this->p[] = $row;\n\t}\n\treturn $this->p;\n\t$this->dbh=null;\n}",
"public function GetProxDestinoPaisTbHospedagems($criteria = null)\r\n\t{\r\n\t\treturn $this->_phreezer->GetOneToMany($this, \"fk_tb_hospedagem_tb_pais2\", $criteria);\r\n\t}",
"public function pushCriteria($criteria)\n {\n return null;\n }",
"public function matching(Criteria $criteria)\n {\n $persister = $this->_em->getUnitOfWork()->getEntityPersister(\n $this->_entityName\n );\n\n return new LazyCriteriaCollection($persister, $criteria);\n }",
"public static function GetPrestataireListe() {\n\t\t$sql = 'CALL get_all_presta_nom()';\n\t\treturn DatabaseHandler::GetAll($sql);\n\t}",
"public function getWhiteboardSessions($criteria = null, PropelPDO $con = null)\n\t{\n\t\tif ($criteria === null) {\n\t\t\t$criteria = new Criteria(UserPeer::DATABASE_NAME);\n\t\t}\n\t\telseif ($criteria instanceof Criteria)\n\t\t{\n\t\t\t$criteria = clone $criteria;\n\t\t}\n\n\t\tif ($this->collWhiteboardSessions === null) {\n\t\t\tif ($this->isNew()) {\n\t\t\t $this->collWhiteboardSessions = array();\n\t\t\t} else {\n\n\t\t\t\t$criteria->add(WhiteboardSessionPeer::USER_ID, $this->id);\n\n\t\t\t\tWhiteboardSessionPeer::addSelectColumns($criteria);\n\t\t\t\t$this->collWhiteboardSessions = WhiteboardSessionPeer::doSelect($criteria, $con);\n\t\t\t}\n\t\t} else {\n\t\t\t// criteria has no effect for a new object\n\t\t\tif (!$this->isNew()) {\n\t\t\t\t// the following code is to determine if a new query is\n\t\t\t\t// called for. If the criteria is the same as the last\n\t\t\t\t// one, just return the collection.\n\n\n\t\t\t\t$criteria->add(WhiteboardSessionPeer::USER_ID, $this->id);\n\n\t\t\t\tWhiteboardSessionPeer::addSelectColumns($criteria);\n\t\t\t\tif (!isset($this->lastWhiteboardSessionCriteria) || !$this->lastWhiteboardSessionCriteria->equals($criteria)) {\n\t\t\t\t\t$this->collWhiteboardSessions = WhiteboardSessionPeer::doSelect($criteria, $con);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$this->lastWhiteboardSessionCriteria = $criteria;\n\t\treturn $this->collWhiteboardSessions;\n\t}",
"public function getFkSwPreEmpenhoOrdens()\n {\n return $this->fkSwPreEmpenhoOrdens;\n }"
] | [
"0.69494057",
"0.6451171",
"0.5951217",
"0.58791965",
"0.5715523",
"0.55273855",
"0.54977137",
"0.5471179",
"0.5467212",
"0.5393388",
"0.5346385",
"0.5292309",
"0.52794075",
"0.5270325",
"0.5226816",
"0.52264035",
"0.5216543",
"0.5216543",
"0.52002007",
"0.5180528",
"0.5170102",
"0.51697296",
"0.5165677",
"0.51379997",
"0.5116732",
"0.5113889",
"0.51100266",
"0.5102742",
"0.5094901",
"0.50854945",
"0.508376",
"0.5077105",
"0.50585246",
"0.5033343",
"0.50181365",
"0.50157624",
"0.4981418",
"0.4967196",
"0.4957852",
"0.49536407",
"0.4942561",
"0.4931572",
"0.49283332",
"0.49255592",
"0.49240625",
"0.49181527",
"0.49151352",
"0.49139804",
"0.4892821",
"0.48898554",
"0.48871982",
"0.4887125",
"0.48863548",
"0.48856097",
"0.485839",
"0.48574623",
"0.4840432",
"0.48388964",
"0.48354605",
"0.4829259",
"0.48167226",
"0.48109457",
"0.4809109",
"0.47980157",
"0.4794965",
"0.47876886",
"0.47869292",
"0.47816062",
"0.47753918",
"0.47674635",
"0.4765551",
"0.4765157",
"0.47615108",
"0.47550076",
"0.47514072",
"0.47414213",
"0.47395343",
"0.47372025",
"0.47264972",
"0.4724375",
"0.47219872",
"0.47143143",
"0.47091272",
"0.4701208",
"0.46941137",
"0.46911615",
"0.4687544",
"0.46845803",
"0.46842408",
"0.4682681",
"0.46766743",
"0.4665084",
"0.46646935",
"0.46588975",
"0.46578014",
"0.46559623",
"0.46527642",
"0.46490544",
"0.46487793",
"0.4646482"
] | 0.78791815 | 0 |
Sets a collection of OperationPrestations objects related by a onetomany relationship to the current object. It will also schedule objects for deletion based on a diff between old objects (aka persisted) and new objects from the given Propel collection. | public function setOperationPrestationss(PropelCollection $operationPrestationss, PropelPDO $con = null)
{
$operationPrestationssToDelete = $this->getOperationPrestationss(new Criteria(), $con)->diff($operationPrestationss);
$this->operationPrestationssScheduledForDeletion = $operationPrestationssToDelete;
foreach ($operationPrestationssToDelete as $operationPrestationsRemoved) {
$operationPrestationsRemoved->setOperationPrimes(null);
}
$this->collOperationPrestationss = null;
foreach ($operationPrestationss as $operationPrestations) {
$this->addOperationPrestations($operationPrestations);
}
$this->collOperationPrestationss = $operationPrestationss;
$this->collOperationPrestationssPartial = false;
return $this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function addOperationPrestations(OperationPrestations $l)\n {\n if ($this->collOperationPrestationss === null) {\n $this->initOperationPrestationss();\n $this->collOperationPrestationssPartial = true;\n }\n\n if (!in_array($l, $this->collOperationPrestationss->getArrayCopy(), true)) { // only add it if the **same** object is not already associated\n $this->doAddOperationPrestations($l);\n\n if ($this->operationPrestationssScheduledForDeletion and $this->operationPrestationssScheduledForDeletion->contains($l)) {\n $this->operationPrestationssScheduledForDeletion->remove($this->operationPrestationssScheduledForDeletion->search($l));\n }\n }\n\n return $this;\n }",
"public function initOperationPrestationss($overrideExisting = true)\n {\n if (null !== $this->collOperationPrestationss && !$overrideExisting) {\n return;\n }\n $this->collOperationPrestationss = new PropelObjectCollection();\n $this->collOperationPrestationss->setModel('OperationPrestations');\n }",
"public function setOperationScenariis(PropelCollection $operationScenariis, PropelPDO $con = null)\n {\n $operationScenariisToDelete = $this->getOperationScenariis(new Criteria(), $con)->diff($operationScenariis);\n\n\n $this->operationScenariisScheduledForDeletion = $operationScenariisToDelete;\n\n foreach ($operationScenariisToDelete as $operationScenariiRemoved) {\n $operationScenariiRemoved->setOperationPrimes(null);\n }\n\n $this->collOperationScenariis = null;\n foreach ($operationScenariis as $operationScenarii) {\n $this->addOperationScenarii($operationScenarii);\n }\n\n $this->collOperationScenariis = $operationScenariis;\n $this->collOperationScenariisPartial = false;\n\n return $this;\n }",
"public function clearOperationPrestationss()\n {\n $this->collOperationPrestationss = null; // important to set this to null since that means it is uninitialized\n $this->collOperationPrestationssPartial = null;\n\n return $this;\n }",
"public function getOperationPrestationss($criteria = null, PropelPDO $con = null)\n {\n $partial = $this->collOperationPrestationssPartial && !$this->isNew();\n if (null === $this->collOperationPrestationss || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collOperationPrestationss) {\n // return empty collection\n $this->initOperationPrestationss();\n } else {\n $collOperationPrestationss = OperationPrestationsQuery::create(null, $criteria)\n ->filterByOperationPrimes($this)\n ->find($con);\n if (null !== $criteria) {\n if (false !== $this->collOperationPrestationssPartial && count($collOperationPrestationss)) {\n $this->initOperationPrestationss(false);\n\n foreach ($collOperationPrestationss as $obj) {\n if (false == $this->collOperationPrestationss->contains($obj)) {\n $this->collOperationPrestationss->append($obj);\n }\n }\n\n $this->collOperationPrestationssPartial = true;\n }\n\n $collOperationPrestationss->getInternalIterator()->rewind();\n\n return $collOperationPrestationss;\n }\n\n if ($partial && $this->collOperationPrestationss) {\n foreach ($this->collOperationPrestationss as $obj) {\n if ($obj->isNew()) {\n $collOperationPrestationss[] = $obj;\n }\n }\n }\n\n $this->collOperationPrestationss = $collOperationPrestationss;\n $this->collOperationPrestationssPartial = false;\n }\n }\n\n return $this->collOperationPrestationss;\n }",
"public function setRelations(Collection $relations);",
"public function setRelations() {}",
"public function clearAllReferences($deep = false)\n {\n if ($deep && !$this->alreadyInClearAllReferencesDeep) {\n $this->alreadyInClearAllReferencesDeep = true;\n if ($this->collOperationPrestationss) {\n foreach ($this->collOperationPrestationss as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collOperationScenariis) {\n foreach ($this->collOperationScenariis as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collLnkOperationPrimeRCountriess) {\n foreach ($this->collLnkOperationPrimeRCountriess as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->aOperations instanceof Persistent) {\n $this->aOperations->clearAllReferences($deep);\n }\n if ($this->aRCurrencies instanceof Persistent) {\n $this->aRCurrencies->clearAllReferences($deep);\n }\n if ($this->aRRewardTypes instanceof Persistent) {\n $this->aRRewardTypes->clearAllReferences($deep);\n }\n if ($this->aRRewardExpeditionModes instanceof Persistent) {\n $this->aRRewardExpeditionModes->clearAllReferences($deep);\n }\n if ($this->aRRewardTransporters instanceof Persistent) {\n $this->aRRewardTransporters->clearAllReferences($deep);\n }\n\n $this->alreadyInClearAllReferencesDeep = false;\n } // if ($deep)\n\n if ($this->collOperationPrestationss instanceof PropelCollection) {\n $this->collOperationPrestationss->clearIterator();\n }\n $this->collOperationPrestationss = null;\n if ($this->collOperationScenariis instanceof PropelCollection) {\n $this->collOperationScenariis->clearIterator();\n }\n $this->collOperationScenariis = null;\n if ($this->collLnkOperationPrimeRCountriess instanceof PropelCollection) {\n $this->collLnkOperationPrimeRCountriess->clearIterator();\n }\n $this->collLnkOperationPrimeRCountriess = null;\n $this->aOperations = null;\n $this->aRCurrencies = null;\n $this->aRRewardTypes = null;\n $this->aRRewardExpeditionModes = null;\n $this->aRRewardTransporters = null;\n }",
"public function setRuangs(PropelCollection $ruangs, PropelPDO $con = null)\n {\n $ruangsToDelete = $this->getRuangs(new Criteria(), $con)->diff($ruangs);\n\n $this->ruangsScheduledForDeletion = unserialize(serialize($ruangsToDelete));\n\n foreach ($ruangsToDelete as $ruangRemoved) {\n $ruangRemoved->setBangunan(null);\n }\n\n $this->collRuangs = null;\n foreach ($ruangs as $ruang) {\n $this->addRuang($ruang);\n }\n\n $this->collRuangs = $ruangs;\n $this->collRuangsPartial = false;\n\n return $this;\n }",
"public function setPremios(PropelCollection $premios, PropelPDO $con = null)\n\t{\n\t\t$this->premiosScheduledForDeletion = $this->getPremios(new Criteria(), $con)->diff($premios);\n\n\t\tforeach ($premios as $premio) {\n\t\t\t// Fix issue with collection modified by reference\n\t\t\tif ($premio->isNew()) {\n\t\t\t\t$premio->setUsuario($this);\n\t\t\t}\n\t\t\t$this->addPremio($premio);\n\t\t}\n\n\t\t$this->collPremios = $premios;\n\t}",
"public function setCMDTAppareils(Collection $cMDTAppareils, ConnectionInterface $con = null)\n {\n /** @var ChildCMDTAppareil[] $cMDTAppareilsToDelete */\n $cMDTAppareilsToDelete = $this->getCMDTAppareils(new Criteria(), $con)->diff($cMDTAppareils);\n\n\n //since at least one column in the foreign key is at the same time a PK\n //we can not just set a PK to NULL in the lines below. We have to store\n //a backup of all values, so we are able to manipulate these items based on the onDelete value later.\n $this->cMDTAppareilsScheduledForDeletion = clone $cMDTAppareilsToDelete;\n\n foreach ($cMDTAppareilsToDelete as $cMDTAppareilRemoved) {\n $cMDTAppareilRemoved->setCommande(null);\n }\n\n $this->collCMDTAppareils = null;\n foreach ($cMDTAppareils as $cMDTAppareil) {\n $this->addCMDTAppareil($cMDTAppareil);\n }\n\n $this->collCMDTAppareils = $cMDTAppareils;\n $this->collCMDTAppareilsPartial = false;\n\n return $this;\n }",
"private function computeScheduleInsertsChangeSets()\n {\n foreach ($this->documentInsertions as $document) {\n $class = $this->dm->getClassMetadata(get_class($document));\n\n $this->computeChangeSet($class, $document);\n }\n }",
"public function resetCollectionsForPersist()\n {\n $this->containers = new ArrayCollection();\n $this->functions = new ArrayCollection();\n $this->constants = new ArrayCollection();\n }",
"public function setCOMConditions(Collection $cOMConditions, ConnectionInterface $con = null)\n {\n /** @var ChildCOMCondition[] $cOMConditionsToDelete */\n $cOMConditionsToDelete = $this->getCOMConditions(new Criteria(), $con)->diff($cOMConditions);\n\n\n //since at least one column in the foreign key is at the same time a PK\n //we can not just set a PK to NULL in the lines below. We have to store\n //a backup of all values, so we are able to manipulate these items based on the onDelete value later.\n $this->cOMConditionsScheduledForDeletion = clone $cOMConditionsToDelete;\n\n foreach ($cOMConditionsToDelete as $cOMConditionRemoved) {\n $cOMConditionRemoved->setCommande(null);\n }\n\n $this->collCOMConditions = null;\n foreach ($cOMConditions as $cOMCondition) {\n $this->addCOMCondition($cOMCondition);\n }\n\n $this->collCOMConditions = $cOMConditions;\n $this->collCOMConditionsPartial = false;\n\n return $this;\n }",
"public function setElectionRounds(iterable $rounds): void\n {\n $currentRoundsToRemove = new ArrayCollection($this->procurationProxyElectionRounds->toArray());\n\n foreach ($rounds as $round) {\n if (!$round instanceof ElectionRound) {\n throw new \\InvalidArgumentException(sprintf('Expected an instance of \"%s\", but got \"%s\".', ElectionRound::class, \\is_object($round) ? $round::class : \\gettype($round)));\n }\n\n if ($ppElectionRound = $this->findProcurationProxyElectionRoundBy($round)) {\n $currentRoundsToRemove->removeElement($ppElectionRound);\n\n continue;\n }\n\n $this->addElectionRound($round);\n }\n\n foreach ($currentRoundsToRemove as $round) {\n $this->procurationProxyElectionRounds->removeElement($round);\n }\n }",
"public function initInappropriates()\n\t{\n\t\t$this->collInappropriates = array();\n\t}",
"public function setCriteriaCollection(CriteriaCollection $collection);",
"public function setRatings(Collection $ratings, ConnectionInterface $con = null)\n {\n /** @var ChildRating[] $ratingsToDelete */\n $ratingsToDelete = $this->getRatings(new Criteria(), $con)->diff($ratings);\n\n\n //since at least one column in the foreign key is at the same time a PK\n //we can not just set a PK to NULL in the lines below. We have to store\n //a backup of all values, so we are able to manipulate these items based on the onDelete value later.\n $this->ratingsScheduledForDeletion = clone $ratingsToDelete;\n\n foreach ($ratingsToDelete as $ratingRemoved) {\n $ratingRemoved->setArticle(null);\n }\n\n $this->collRatings = null;\n foreach ($ratings as $rating) {\n $this->addRating($rating);\n }\n\n $this->collRatings = $ratings;\n $this->collRatingsPartial = false;\n\n return $this;\n }",
"protected\tfunction\tsetRelations() {}",
"protected\tfunction\tsetRelations() {}",
"public function setLnkOperationPrimeRCountriess(PropelCollection $lnkOperationPrimeRCountriess, PropelPDO $con = null)\n {\n $lnkOperationPrimeRCountriessToDelete = $this->getLnkOperationPrimeRCountriess(new Criteria(), $con)->diff($lnkOperationPrimeRCountriess);\n\n\n $this->lnkOperationPrimeRCountriessScheduledForDeletion = $lnkOperationPrimeRCountriessToDelete;\n\n foreach ($lnkOperationPrimeRCountriessToDelete as $lnkOperationPrimeRCountriesRemoved) {\n $lnkOperationPrimeRCountriesRemoved->setOperationPrimes(null);\n }\n\n $this->collLnkOperationPrimeRCountriess = null;\n foreach ($lnkOperationPrimeRCountriess as $lnkOperationPrimeRCountries) {\n $this->addLnkOperationPrimeRCountries($lnkOperationPrimeRCountries);\n }\n\n $this->collLnkOperationPrimeRCountriess = $lnkOperationPrimeRCountriess;\n $this->collLnkOperationPrimeRCountriessPartial = false;\n\n return $this;\n }",
"private function computeScheduleInsertsChangeSets()\n {\n foreach ($this->entityInsertions as $entity) {\n $class = $this->manager->getClassMetadata(get_class($entity));\n $this->computeChangeSet($class, $entity);\n }\n }",
"public function setNoticias(PropelCollection $noticias, PropelPDO $con = null)\n\t{\n\t\t$this->noticiasScheduledForDeletion = $this->getNoticias(new Criteria(), $con)->diff($noticias);\n\n\t\tforeach ($noticias as $noticia) {\n\t\t\t// Fix issue with collection modified by reference\n\t\t\tif ($noticia->isNew()) {\n\t\t\t\t$noticia->setUsuario($this);\n\t\t\t}\n\t\t\t$this->addNoticia($noticia);\n\t\t}\n\n\t\t$this->collNoticias = $noticias;\n\t}",
"public function getOperationPrestationssJoinOperations($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN)\n {\n $query = OperationPrestationsQuery::create(null, $criteria);\n $query->joinWith('Operations', $join_behavior);\n\n return $this->getOperationPrestationss($query, $con);\n }",
"public function onConstruct()\n {\n $this->useDynamicUpdate(true); // set for all, without this phalcon sometimes will re-select from database and overwrite your changes if you call save() more than 1 time\n $this->keepSnapshots(true);\n $modelRelationAlias = $this->getModelsManager()->getRelations(get_called_class());\n foreach ($modelRelationAlias as $alias)\n {\n $this->modelRelations[$alias->getType()][] = $alias->getOption('alias');\n }\n }",
"public function beforeSave()\n {\n if ($this->fixResultSets)\n {\n foreach ($this->fixResultSets as $property => $__)\n {\n if (isset($this->$property) && ($value = $this->$property) instanceof \\Phalcon\\Mvc\\Model\\ResultSetInterface)\n {\n unset($this->fixResultSets[$property]);\n $this->$property = $value->filter(function($r) {\n return $r;\n });\n }\n }\n }\n }",
"private function desabilitaPoolIdsObjetosManipulados()\n {\n \t// setando para null o atributo _arrayObjetosManipulados\n \t$this->_arrayObjetosManipulados = null;\n }",
"public function beforeSave()\n {\n foreach ($this->relations as $rel) {\n if ($this->_settings[$rel['name']][0] === CActiveRecord::MANY_MANY ||\n $this->_settings[$rel['name']][0] === CActiveRecord::HAS_MANY\n ) {\n foreach ($this->owner->$rel['name'] as $m) {\n $m->save();\n }\n } elseif ($this->_settings[$rel['name']][0] === CActiveRecord::HAS_ONE) {\n $this->owner->{$rel['name']}->save();\n } elseif ($this->_settings[$rel['name']][0] === CActiveRecord::BELONGS_TO) {\n if ($this->owner->$rel['name'] === null) {\n // Set link ID attribute of owner model as null.\n $this->owner->setAttribute($this->_settings[$rel['name']][2], null);\n } else {\n // Save related model.\n $this->owner->{$rel['name']}->save();\n // Set link ID attribute of owner model as new relation ID.\n $this->owner->setAttribute($this->_settings[$rel['name']][2], $this->owner->{$rel['name']}->id);\n }\n }\n }\n }",
"protected function _prepareCollection()\n\t{\n\t\t$collection = Mage::getResourceModel($this->_getCollectionClass());\n $collection->getSelect()->joinLeft(\n array('sfo' => 'sales_flat_order'),\n 'main_table.order_id = sfo.entity_id',\n array('increment_id')\n );\n\t\t$this->setCollection($collection);\n\n\t\treturn parent::_prepareCollection();\n\t}",
"public function buildRelations()\n {\n $this->addRelation('Evaluacion', '\\\\Evaluacion', RelationMap::MANY_TO_ONE, array (\n 0 =>\n array (\n 0 => ':evpr_c_evaluacion',\n 1 => ':eval_codigo',\n ),\n), null, 'CASCADE', null, false);\n $this->addRelation('Objetivo', '\\\\Objetivo', RelationMap::MANY_TO_ONE, array (\n 0 =>\n array (\n 0 => ':evpr_c_objetivo',\n 1 => ':obje_codigo',\n ),\n), null, 'CASCADE', null, false);\n $this->addRelation('Pregunta', '\\\\Pregunta', RelationMap::MANY_TO_ONE, array (\n 0 =>\n array (\n 0 => ':evpr_c_pregunta',\n 1 => ':preg_codigo',\n ),\n), null, 'CASCADE', null, false);\n $this->addRelation('Seccion', '\\\\Seccion', RelationMap::MANY_TO_ONE, array (\n 0 =>\n array (\n 0 => ':evpr_c_seccion',\n 1 => ':secc_codigo',\n ),\n), null, 'CASCADE', null, false);\n }",
"protected function hydratePivotRelation(array $models)\n {\n foreach ( $models as $model ) {\n $pivot = $this->newExistingPivot ( $this->cleanPivotAttributes ( $model ) );\n $model->setRelation ( 'pivot', $pivot );\n }\n }",
"public function filterByRPrestations($rPrestations, $comparison = null)\n {\n if ($rPrestations instanceof RPrestations) {\n return $this\n ->addUsingAlias(FacturesPrestationsPeer::R_PRESTATION_ID, $rPrestations->getRPrestationId(), $comparison);\n } elseif ($rPrestations instanceof PropelObjectCollection) {\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n\n return $this\n ->addUsingAlias(FacturesPrestationsPeer::R_PRESTATION_ID, $rPrestations->toKeyValue('PrimaryKey', 'RPrestationId'), $comparison);\n } else {\n throw new PropelException('filterByRPrestations() only accepts arguments of type RPrestations or PropelCollection');\n }\n }",
"public function computeChangeSets()\n {\n $this->computeScheduleInsertsChangeSets();\n\n // Compute changes for other MANAGED documents. Change tracking policies take effect here.\n foreach ($this->identityMap as $className => $documents) {\n $class = $this->dm->getClassMetadata($className);\n if($class->isEmbeddedDocument) {\n // Embedded documents should only compute by the document itself which include the embedded document.\n // This is done separately later.\n // @see computeChangeSet()\n // @see computeAssociationChanges()\n continue;\n }\n\n // If change tracking is explicit or happens through notification, then only compute\n // changes on documents of that type that are explicitly marked for synchronization.\n $documentsToProcess = ! $class->isChangeTrackingDeferredImplicit() ?\n (isset($this->scheduledForDirtyCheck[$className]) ?\n $this->scheduledForDirtyCheck[$className] : array())\n : $documents;\n\n foreach ($documentsToProcess as $document) {\n // Ignore uninitialized proxy objects\n if (/* $document is readOnly || */ $document instanceof Proxy && ! $document->__isInitialized__) {\n continue;\n }\n // Only MANAGED documents that are NOT SCHEDULED FOR INSERTION are processed here.\n $oid = spl_object_hash($document);\n if ( ! isset($this->documentInsertions[$oid]) && isset($this->documentStates[$oid])) {\n $this->computeChangeSet($class, $document);\n }\n }\n }\n }",
"protected function resetSynchronised()\n {\n /*\n * Lists\n */\n\n /** @var $lists Laposta_Connect_Model_Mysql4_List_Collection */\n $lists = Mage::getModel('lapostaconnect/list')->getCollection();\n\n /** @var $list Laposta_Connect_Model_List */\n foreach ($lists as $list) {\n $list->setLapostaId('');\n $list->setWebhookToken('');\n $list->setSyncTime(null);\n }\n\n $lists->save();\n\n Mage::helper('lapostaconnect')->log('Lists reset OK.');\n\n /*\n * Fields\n */\n\n $fields = Mage::getModel('lapostaconnect/field')->getCollection();\n\n /** @var $field Laposta_Connect_Model_Field */\n foreach ($fields as $field) {\n $field->setLapostaId('');\n $field->setLapostaTag('');\n $field->setSyncTime(null);\n }\n\n $fields->save();\n\n Mage::helper('lapostaconnect')->log('Fields reset OK.');\n\n /*\n * Subscribers\n */\n\n /** @var $subscribers Laposta_Connect_Model_Mysql4_Subscriber_Collection */\n $subscribers = Mage::getModel('lapostaconnect/subscriber')->getCollection();\n\n /** @var $subscriber Laposta_Connect_Model_Subscriber */\n foreach ($subscribers as $subscriber) {\n $subscriber->setLapostaId('');\n $subscriber->setSyncTime(null);\n }\n\n $subscribers->save();\n\n Mage::helper('lapostaconnect')->log('Subscribers reset OK.');\n }",
"public function setCleanUpObjects($cleanUpObjects) {}",
"public function setPreReqs()\n {\n $dc = new DAOCadeira();\n $this->preReqs = $dc->getPreReqsByReqId($this->idCadeira);\n\n }",
"public function getOperationPrestationssJoinOperationRubriques($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN)\n {\n $query = OperationPrestationsQuery::create(null, $criteria);\n $query->joinWith('OperationRubriques', $join_behavior);\n\n return $this->getOperationPrestationss($query, $con);\n }",
"public function saveRelations($attributes = [])\n {\n $this->categories()->sync(array_get($attributes, 'categories', []));\n $this->tags()->sync(array_get($attributes, 'tags', []));\n $this->upSellProducts()->sync(array_get($attributes, 'up_sells', []));\n $this->crossSellProducts()->sync(array_get($attributes, 'cross_sells', []));\n $this->relatedProducts()->sync(array_get($attributes, 'related_products', []));\n }",
"public function updateBordereauremises() {\n $bordereauremises_ids = WorkflowExec::where('model_type', Bordereauremise::class)\n ->where('current_step_id', $this->id)\n ->get()->pluck('model_id')->toArray();\n $bordereauremises = Bordereauremise::whereIn('id', $bordereauremises_ids)\n ->get();\n\n if ($bordereauremises) {\n foreach ($bordereauremises as $bordereauremise) {\n $this->updateBordereauremise($bordereauremise);\n }\n }\n }",
"function init()\n {\n foreach ($GLOBALS['_PX_models'] as $model=>$val) {\n if (isset($val['relate_to'])) {\n foreach ($val['relate_to'] as $related) {\n if ($this->_model == $related) {\n // The current model is related to $model\n // through one or more foreign key. We load\n // the $model to check on which fields the\n // foreign keys are set, as it is possible in\n // one model to have several foreign keys to\n // the same other model.\n if ($model != $this->_model) {\n $_m = new $model();\n $_fkeys = $_m->getForeignKeysToModel($this->_model);\n } else {\n $_fkeys = $this->getForeignKeysToModel($this->_model);\n }\n foreach ($_fkeys as $_fkey=>$_fkeyval) {\n //For each foreign key, we add the\n //get_xx_list method that can have a\n //custom name through the relate_name\n //value.\n if (isset($_fkeyval['relate_name'])) {\n $mname = $_fkeyval['relate_name'];\n } else {\n $mname = strtolower($model);\n }\n $this->_methods_list['get_'.$mname.'_list'] = array($model, $_fkey);\n }\n break;\n }\n }\n }\n if (isset($val['relate_to_many']) && \n in_array($this->_model, $val['relate_to_many'])) {\n $this->_methods_list['get_'.strtolower($model).'_list'] = $model;\n $this->_manytomany[$model] = 'manytomany';\n }\n }\n foreach ($this->_cols as $col=>$val) {\n $field = new $val['type']($col);\n if ($field->type == 'foreignkey') {\n $this->_methods_get['get_'.strtolower($col)] = array($val['model'], $col);\n $this->_fk[$col] = 'foreignkey';\n }\n if ($field->type == 'manytomany') {\n $this->_methods_list['get_'.strtolower($col).'_list'] = $val['model'];\n $this->_manytomany[$val['model']] = 'manytomany';\n }\n foreach ($field->add_methods as $method) {\n $this->_methods_extra[$method[0]] = array(strtolower($col), $method[1]);\n }\n }\n }",
"protected function _updateNotification($collection)\n {\n foreach ($collection as $value) {\n $value->setAdminPendingNotification(0);\n $value->setId($value->getEntityId())->save();\n }\n }",
"public function initialize()\n {\n $this->hasMany('id_niveldinst', 'Cargaestudiantes', 'id_niveldinst', array('alias' => 'Cargaestudiantes'));\n $this->hasMany('id_niveldinst', 'Datosprofesiona', 'nive_instr', array('alias' => 'Datosprofesiona'));\n $this->hasMany('id_niveldinst', 'Cargaestudiantes', 'id_niveldinst', NULL);\n $this->hasMany('id_niveldinst', 'Datosprofesiona', 'nive_instr', NULL);\n }",
"protected function _prepareCollection()\n {\n $collection = Mage::getResourceModel('bs_worksheet/worksheet_collection');\n if ($this->getCurriculum()->getId()) {\n $constraint = 'related.curriculum_id='.$this->getCurriculum()->getId();\n } else {\n $constraint = 'related.curriculum_id=0';\n }\n $collection->getSelect()->joinLeft(\n array('related' => $collection->getTable('bs_worksheet/worksheet_curriculum')),\n 'related.worksheet_id=main_table.entity_id AND '.$constraint,\n array('position')\n );\n $this->setCollection($collection);\n parent::_prepareCollection();\n return $this;\n }",
"protected function saveRelations()\n {\n $spotIdsToRemove = $relationsToAdd = [\n 'photos' => [],\n 'tags' => [],\n 'amenities' => [],\n 'locations' => []\n ];\n // Preparing spots remote photos for insert\n if($this->photos != [])\n {\n foreach($this->photos as $remote_id => $items)\n {\n foreach($items as $item)\n {\n if(isset($this->insertedIds[$remote_id]))\n {\n $item['associated_id'] = $this->insertedIds[$remote_id];\n }\n if(isset($this->existingIds[$remote_id]))\n {\n $item['associated_id'] = $this->existingIds[$remote_id];\n $spotIdsToRemove['photos'][] = $this->existingIds[$remote_id];\n }\n if(isset($item['associated_id']))\n {\n $relationsToAdd['photos'][] = $item;\n }\n }\n }\n }\n // Preparing spots amenities for insert\n if($this->amenities != [])\n {\n foreach($this->amenities as $remote_id => $items)\n {\n foreach($items as $item)\n {\n if(isset($this->insertedIds[$remote_id]))\n {\n $item['spot_id'] = $this->insertedIds[$remote_id];\n }\n if(isset($this->existingIds[$remote_id]))\n {\n $item['spot_id'] = $this->existingIds[$remote_id];\n $spotIdsToRemove['amenities'][] = $this->existingIds[$remote_id];\n }\n if(isset($item['spot_id']))\n {\n $relationsToAdd['amenities'][] = $item;\n }\n }\n }\n }\n // Preparing spots tags for insert\n if($this->tags != [])\n {\n foreach($this->tags as $remote_id => $items)\n {\n foreach($items as $item)\n {\n if(isset($this->insertedIds[$remote_id]))\n {\n $item['spot_id'] = $this->insertedIds[$remote_id];\n }\n if(isset($this->existingIds[$remote_id]))\n {\n $item['spot_id'] = $this->existingIds[$remote_id];\n $spotIdsToRemove['tags'][] = $this->existingIds[$remote_id];\n }\n if(isset($item['spot_id']))\n {\n $relationsToAdd['tags'][] = $item;\n }\n }\n }\n }\n // Preparing spots points for insert\n if($this->locations != [])\n {\n foreach($this->locations as $remote_id => $item)\n {\n if(isset($this->insertedIds[$remote_id]))\n {\n $item['spot_id'] = $this->insertedIds[$remote_id];\n }\n if(isset($this->existingIds[$remote_id]))\n {\n $item['spot_id'] = $this->existingIds[$remote_id];\n $spotIdsToRemove['locations'][] = $this->existingIds[$remote_id];\n }\n if(isset($item['spot_id']))\n {\n $relationsToAdd['locations'][] = $item;\n }\n }\n }\n // Database transaction to remove all old relations of existing spots and add new relations for inserted and updated spots\n DB::transaction(function() use ($spotIdsToRemove, $relationsToAdd) {\n if($spotIdsToRemove['photos'] != [])\n {\n DB::table('remote_photos')->whereIn('associated_id', $spotIdsToRemove['photos'])->where('associated_type', Spot::class)->delete();\n }\n if($spotIdsToRemove['amenities'] != [])\n {\n DB::table('spot_amenities')->whereIn('spot_id', $spotIdsToRemove['amenities'])->delete();\n }\n if($spotIdsToRemove['tags'] != [])\n {\n DB::table('spot_tag')->whereIn('spot_id', $spotIdsToRemove['tags'])->delete();\n }\n if($spotIdsToRemove['locations'] != [])\n {\n DB::table('spot_points')->whereIn('spot_id', $spotIdsToRemove['locations'])->delete();\n }\n if($relationsToAdd['photos'] != [])\n {\n DB::table('remote_photos')->insert($relationsToAdd['photos']);\n }\n if($relationsToAdd['amenities'] != [])\n {\n DB::table('spot_amenities')->insert($relationsToAdd['amenities']);\n }\n if($relationsToAdd['tags'] != [])\n {\n DB::table('spot_tag')->insert($relationsToAdd['tags']);\n }\n if($relationsToAdd['locations'] != [])\n {\n DB::table('spot_points')->insert($relationsToAdd['locations']);\n }\n });\n }",
"public function touch()\n {\n $key = $this->getRelated ()->getKeyName ();\n $columns = $this->getRelatedFreshUpdate ();\n $ids = $this->getRelatedIds ();\n if ( count ( $ids ) > 0 ) {\n $this->getRelated ()->newQuery ()->whereIn ( $key, $ids )->update ( $columns );\n }\n }",
"protected function _prepareCollection()\n {\n $collection = Mage::getResourceModel('bs_docwise/docwisement_collection');\n\n if ($this->getExam()->getId()) {\n $constraint = 'related.exam_id='.$this->getExam()->getId();\n } else {\n $constraint = 'related.exam_id=0';\n }\n $collection->getSelect()->joinLeft(\n array('related' => $collection->getTable('bs_docwise/exam_docwisement')),\n 'related.docwisement_id = main_table.entity_id AND '.$constraint,\n array('position')\n );\n\n\n $this->setCollection($collection);\n parent::_prepareCollection();\n return $this;\n }",
"public function setActions(PropelCollection $actions, PropelPDO $con = null)\n {\n $actionsToDelete = $this->getActions(new Criteria(), $con)->diff($actions);\n\n $this->actionsScheduledForDeletion = unserialize(serialize($actionsToDelete));\n\n foreach ($actionsToDelete as $actionRemoved) {\n $actionRemoved->setActionType(null);\n }\n\n $this->collActions = null;\n foreach ($actions as $action) {\n $this->addAction($action);\n }\n\n $this->collActions = $actions;\n $this->collActionsPartial = false;\n\n return $this;\n }",
"public function setPainRatings(Collection $painRatings, ConnectionInterface $con = null)\n {\n /** @var ChildPainRating[] $painRatingsToDelete */\n $painRatingsToDelete = $this->getPainRatings(new Criteria(), $con)->diff($painRatings);\n\n\n $this->painRatingsScheduledForDeletion = $painRatingsToDelete;\n\n foreach ($painRatingsToDelete as $painRatingRemoved) {\n $painRatingRemoved->setUser(null);\n }\n\n $this->collPainRatings = null;\n foreach ($painRatings as $painRating) {\n $this->addPainRating($painRating);\n }\n\n $this->collPainRatings = $painRatings;\n $this->collPainRatingsPartial = false;\n\n return $this;\n }",
"protected function _prepareCollection()\n {\n $collection = Mage::getModel('sales/order_shipment')->getCollection();\n $tableName = Mage::getSingleton('core/resource')->getTableName('sales_flat_order');\n\n $collection->getSelect()->joinLeft(array('o'=>$tableName), 'main_table.order_id=o.entity_id', array(\n 'order_increment_id'=>'o.increment_id',\n 'order_created_date'=>'o.created_at',\n 'o.shipping_description'));\n\n $collection->addFieldToFilter('o.shipping_description', array('like'=>'%canpar%'));\n $tableName = Mage::getSingleton('core/resource')->getTableName('ch_canpar_shipment');\n\n $collection->getSelect()->joinLeft(array('ch_shipment'=>$tableName), 'main_table.entity_id=ch_shipment.magento_shipment_id',array(\n 'canpar_shipment_id'=>'shipment_id',\n 'manifest_id'=>'manifest_id'));\n\n $this->setCollection($collection);\n return parent::_prepareCollection();\n }",
"public function filterByOperations($operations, $comparison = null)\n {\n if ($operations instanceof Operations) {\n return $this\n ->addUsingAlias(ClientSitesPeer::CL_SITE_ID, $operations->getClSiteIdForLog(), $comparison);\n } elseif ($operations instanceof PropelObjectCollection) {\n return $this\n ->useOperationsQuery()\n ->filterByPrimaryKeys($operations->getPrimaryKeys())\n ->endUse();\n } else {\n throw new PropelException('filterByOperations() only accepts arguments of type Operations or PropelCollection');\n }\n }",
"public function resetRelations()\n\t{\n\t\t$this->relations = array();\n\t}",
"public function afterSave()\n {\n foreach ($this->relations as $rel) {\n if ($this->_settings[$rel['name']][0] === CActiveRecord::HAS_MANY ||\n $this->_settings[$rel['name']][0] === CActiveRecord::HAS_ONE\n ) {\n // If set delete option.\n if (array_key_exists('delete', $rel) && $rel['delete'] === true) {\n // Find all related models with null ID link.\n $deleteModels = call_user_func($this->_settings[$rel['name']][1] . '::model')->findAllByAttributes(array($this->_settings[$rel['name']][2] => null));\n foreach ($deleteModels as $m) {\n $m->delete();\n }\n }\n }\n }\n }",
"public function computeChangeSets()\n {\n // Compute changes for INSERTed entities first. This must always happen.\n $this->computeScheduleInsertsChangeSets();\n // Compute changes for other MANAGED entities. Change tracking policies take effect here.\n foreach ($this->identityMap as $className => $entities) {\n $class = $this->manager->getClassMetadata($className);\n // Skip class if instances are read-only\n if ($class->isReadOnly()) {\n continue;\n }\n // If change tracking is explicit or happens through notification, then only compute\n // changes on entities of that type that are explicitly marked for synchronization.\n switch (true) {\n case ($class->isChangeTrackingDeferredImplicit()):\n $entitiesToProcess = $entities;\n break;\n case (isset($this->scheduledForSynchronization[$className])):\n $entitiesToProcess = $this->scheduledForSynchronization[$className];\n break;\n default:\n $entitiesToProcess = [];\n }\n foreach ($entitiesToProcess as $entity) {\n // Ignore uninitialized proxy objects\n if ($entity instanceof Proxy && !$entity->__isInitialized__) {\n continue;\n }\n // Only MANAGED entities that are NOT SCHEDULED FOR INSERTION OR DELETION are processed here.\n $oid = spl_object_hash($entity);\n if (!isset($this->entityInsertions[$oid]) &&\n !isset($this->entityDeletions[$oid]) &&\n isset($this->entityStates[$oid])\n ) {\n $this->computeChangeSet($class, $entity);\n }\n }\n }\n }",
"public function initialize()\n {\n $this->hasMany('idprodutoArea', 'App\\Models\\TabelaPrecoHasDesconto', 'produtoArea_idprodutoArea', array('alias' => 'TabelaPrecoHasDesconto'));\n $this->belongsTo('area_cd_area', 'App\\Models\\Area', 'cd_area', array('alias' => 'Area'));\n $this->belongsTo('produto_cd_produto', 'App\\Models\\Produto', 'cd_produto', array('alias' => 'Produto'));\n $this->belongsTo('cd_tabela', 'App\\Models\\TabelaPreco', 'cd_tabela', array('alias' => 'TabelaPreco'));\n $this->belongsTo('unidade_negocio_cd_unidade', 'App\\Models\\UnidadeNegocio', 'cd_unidade', array('alias' => 'UnidadeNegocio'));\n $this->hasMany('idprodutoArea', 'App\\Models\\TabelaPrecoHasDesconto', 'produtoArea_idprodutoArea', NULL);\n $this->belongsTo('area_cd_area', 'App\\Models\\Area', 'cd_area', array('foreignKey' => true,'alias' => 'Area'));\n $this->belongsTo('produto_cd_produto', 'App\\Models\\Produto', 'cd_produto', array('foreignKey' => true,'alias' => 'Produto'));\n $this->belongsTo('cd_tabela', 'App\\Models\\TabelaPreco', 'cd_tabela', array('foreignKey' => true,'alias' => 'TabelaPreco'));\n $this->belongsTo('unidade_negocio_cd_unidade', 'App\\Models\\UnidadeNegocio', 'cd_unidade', array('foreignKey' => true,'alias' => 'UnidadeNegocio'));\n }",
"public function setPesquisas(PropelCollection $pesquisas, PropelPDO $con = null)\n\t{\n\t\t$this->pesquisasScheduledForDeletion = $this->getPesquisas(new Criteria(), $con)->diff($pesquisas);\n\n\t\tforeach ($pesquisas as $pesquisa) {\n\t\t\t// Fix issue with collection modified by reference\n\t\t\tif ($pesquisa->isNew()) {\n\t\t\t\t$pesquisa->setUsuario($this);\n\t\t\t}\n\t\t\t$this->addPesquisa($pesquisa);\n\t\t}\n\n\t\t$this->collPesquisas = $pesquisas;\n\t}",
"public function initialize()\n {\n \t$this->belongsTo('id_verificacion', 'CobVerificacion', 'id_verificacion', array(\n \t\t\t'reusable' => true\n \t));\n \t$this->belongsTo('id_actadocumentacion', 'CobActadocumentacionDatos', 'id_actadocumentacion', array(\n \t\t\t'reusable' => true\n \t));\n \t$this->belongsTo('id_usuario', 'IbcUsuario', 'id_usuario', array(\n \t\t\t'reusable' => true\n \t));\n \t$this->belongsTo('estado', 'IbcReferencia', 'id_referencia', array(\n \t\t\t'reusable' => true\n \t));\n \t$this->hasMany('id_actadocumentacion', 'CobActadocumentacionPersona', 'id_actadocumentacion', array(\n \t\t\t'foreignKey' => array(\n \t\t\t\t\t'message' => 'El acta no puede ser eliminada porque existen beneficiarios asociados a ésta'\n \t\t\t)\n \t));\n }",
"public function run()\n {\n PuestoControl::create([\n 'municipio_id' => 1,\n 'codigo' => 'CODE',\n 'nombre' => 'YUCUMO',\n 'descripcion' => 'Puesto de control',\n 'latitud' => -15.35209367916587,\n 'longitud' => -66.7307299411982,\n 'direccion' => 'Beni'\n ]);\n PuestoControl::create([\n 'municipio_id' => 1,\n 'codigo' => 'CODE',\n 'nombre' => 'TRINIDAD',\n 'descripcion' => 'Puesto de control',\n 'latitud' => -14.909695893577148,\n 'longitud' => -64.8850268161982,\n 'direccion' => 'Beni' \n ]);\n PuestoControl::create([\n 'municipio_id' => 1,\n 'codigo' => 'CODE',\n 'nombre' => 'RIBERALTA',\n 'descripcion' => 'Puesto de control',\n 'latitud' => -11.05652765418447,\n 'longitud' => -66.0276049411982,\n 'direccion' => 'Beni' \n ]);\n PuestoControl::create([\n 'municipio_id' => 1,\n 'codigo' => 'CODE',\n 'nombre' => 'SUCRE',\n 'descripcion' => 'Puesto de control',\n 'latitud' => -19.007347539704806,\n 'longitud' => -65.2756518397947,\n 'direccion' => 'Beni' \n ]);\n PuestoControl::create([\n 'municipio_id' => 1,\n 'codigo' => 'CODE',\n 'nombre' => 'SUTICOLLO',\n 'descripcion' => 'Puesto de control',\n 'latitud' => -17.59478503753576,\n 'longitud' => -66.3523119960447,\n 'direccion' => 'Beni' \n ]);\n PuestoControl::create([\n 'municipio_id' => 1,\n 'codigo' => 'CODE',\n 'nombre' => 'CASTILLO',\n 'descripcion' => 'Puesto de control',\n 'latitud' => -16.71600225727896,\n 'longitud' => -65.3855151210447,\n 'direccion' => 'Beni' \n ]);\n PuestoControl::create([\n 'municipio_id' => 1,\n 'codigo' => 'CODE',\n 'nombre' => 'LOCOTAL',\n 'descripcion' => 'Puesto de control',\n 'latitud' => -17.017895406598022,\n 'longitud' => -65.6382006679197,\n 'direccion' => 'Beni' \n ]);\n PuestoControl::create([\n 'municipio_id' => 1,\n 'codigo' => 'CODE',\n 'nombre' => 'MERCADO DE SACABA',\n 'descripcion' => 'Puesto de control',\n 'latitud' => -17.346270287267355,\n 'longitud' => -65.9568041835447,\n 'direccion' => 'Beni' \n ]);\n PuestoControl::create([\n 'municipio_id' => 1,\n 'codigo' => 'CODE',\n 'nombre' => 'CAMPAMENTO CENTRAL AGRIGENTO',\n 'descripcion' => 'Puesto de control',\n 'latitud' => -17.013393139372408,\n 'longitud' => -65.0009936366697,\n 'direccion' => 'Beni' \n ]);\n PuestoControl::create([\n 'municipio_id' => 1,\n 'codigo' => 'CODE',\n 'nombre' => 'BULO BULO',\n 'descripcion' => 'Puesto de control',\n 'latitud' => -17.241373628348416,\n 'longitud' => -64.3857592616697,\n 'direccion' => 'Beni' \n ]);\n PuestoControl::create([\n 'municipio_id' => 1,\n 'codigo' => 'CODE',\n 'nombre' => 'CAMPAMENTO MAS CERCANO',\n 'descripcion' => 'Puesto de control',\n 'latitud' => -17.07341506905012,\n 'longitud' => -64.7483080897947,\n 'direccion' => 'Beni' \n ]);\n PuestoControl::create([\n 'municipio_id' => 1,\n 'codigo' => 'CODE',\n 'nombre' => 'LA RINCONADA',\n 'descripcion' => 'Puesto de control',\n 'latitud' => -16.432705390303273,\n 'longitud' => -68.06611059447198,\n 'direccion' => 'Beni' \n ]);\n PuestoControl::create([\n 'municipio_id' => 1,\n 'codigo' => 'CODE',\n 'nombre' => 'ACHICA ARRIBA',\n 'descripcion' => 'Puesto de control',\n 'latitud' => -16.77261850854718,\n 'longitud' => -68.15400121947198,\n 'direccion' => 'Beni' \n ]);\n PuestoControl::create([\n 'municipio_id' => 1,\n 'codigo' => 'CODE',\n 'nombre' => 'BAJO CHORO',\n 'descripcion' => 'Puesto de control',\n 'latitud' => -16.06059199375514,\n 'longitud' => -67.71184398805451,\n 'direccion' => 'Beni' \n ]);\n PuestoControl::create([\n 'municipio_id' => 1,\n 'codigo' => 'CODE',\n 'nombre' => 'APOLO',\n 'descripcion' => 'Puesto de control',\n 'latitud' => -14.72132674317159,\n 'longitud' => -68.37170430102054,\n 'direccion' => 'Beni' \n ]);\n PuestoControl::create([\n 'municipio_id' => 1,\n 'codigo' => 'CODE',\n 'nombre' => 'CHARAZANI',\n 'descripcion' => 'Puesto de control',\n 'latitud' => -15.332193685993415,\n 'longitud' => -69.04187031664554,\n 'direccion' => 'Beni' \n ]);\n PuestoControl::create([\n 'municipio_id' => 1,\n 'codigo' => 'CODE',\n 'nombre' => 'CAMPAMENTO CARANAVI',\n 'descripcion' => 'Puesto de control',\n 'latitud' => -16.15244518050266,\n 'longitud' => -67.27307148852054,\n 'direccion' => 'Beni' \n ]);\n PuestoControl::create([\n 'municipio_id' => 1,\n 'codigo' => 'CODE',\n 'nombre' => 'CAMPAMENTO INCAHUARA LA ASUNTA',\n 'descripcion' => 'Puesto de control',\n 'latitud' => -16.093643128021125,\n 'longitud' => -67.51477070727054,\n 'direccion' => 'Beni' \n ]);\n PuestoControl::create([\n 'municipio_id' => 1,\n 'codigo' => 'CODE',\n 'nombre' => 'DIRECCION DEPARTAMENTAL ORURO',\n 'descripcion' => 'Puesto de control',\n 'latitud' => -17.99781779662019,\n 'longitud' => -67.0641481130109,\n 'direccion' => 'Beni' \n ]);\n PuestoControl::create([\n 'municipio_id' => 1,\n 'codigo' => 'CODE',\n 'nombre' => 'INQUISIVI',\n 'descripcion' => 'Puesto de control',\n 'latitud' => -16.79219779463698,\n 'longitud' => -67.1959840505109,\n 'direccion' => 'Beni' \n ]);\n PuestoControl::create([\n 'municipio_id' => 1,\n 'codigo' => 'CODE',\n 'nombre' => 'CHALLAPATA',\n 'descripcion' => 'Puesto de control',\n 'latitud' => -18.890375858671742,\n 'longitud' => -66.7730104176984,\n 'direccion' => 'Beni' \n ]);\n PuestoControl::create([\n 'municipio_id' => 1,\n 'codigo' => 'CODE',\n 'nombre' => 'COBIJA',\n 'descripcion' => 'Puesto de control',\n 'latitud' => -11.060326214224967,\n 'longitud' => -68.74474320397451,\n 'direccion' => 'Beni' \n ]);\n PuestoControl::create([\n 'municipio_id' => 1,\n 'codigo' => 'CODE',\n 'nombre' => 'POTOSI',\n 'descripcion' => 'Puesto de control',\n 'latitud' => -19.561224939147696,\n 'longitud' => -65.75254418560121,\n 'direccion' => 'Beni' \n ]);\n PuestoControl::create([\n 'municipio_id' => 1,\n 'codigo' => 'CODE',\n 'nombre' => 'DIRECCION DEPARTAMENTAL SANTA CRUZ',\n 'descripcion' => 'Puesto de control',\n 'latitud' => -17.75627741776405,\n 'longitud' => -63.15961699765285,\n 'direccion' => 'Beni' \n ]);\n PuestoControl::create([\n 'municipio_id' => 1,\n 'codigo' => 'CODE',\n 'nombre' => 'KM40',\n 'descripcion' => 'Puesto de control',\n 'latitud' => -17.398687318609124,\n 'longitud' => -64.02753691952785,\n 'direccion' => 'Beni' \n ]);\n PuestoControl::create([\n 'municipio_id' => 1,\n 'codigo' => 'CODE',\n 'nombre' => 'MONTERO',\n 'descripcion' => 'Puesto de control',\n 'latitud' => -17.34176708157874,\n 'longitud' => -63.34638457577785,\n 'direccion' => 'Beni' \n ]);\n PuestoControl::create([\n 'municipio_id' => 1,\n 'codigo' => 'CODE',\n 'nombre' => 'LOS TRONCOS',\n 'descripcion' => 'Puesto de control',\n 'latitud' => -17.032893468264465,\n 'longitud' => -62.64325957577785,\n 'direccion' => 'Beni' \n ]);\n PuestoControl::create([\n 'municipio_id' => 1,\n 'codigo' => 'CODE',\n 'nombre' => 'PAILON',\n 'descripcion' => 'Puesto de control',\n 'latitud' => -17.68302162546419,\n 'longitud' => -62.55536895077785,\n 'direccion' => 'Beni' \n ]);\n PuestoControl::create([\n 'municipio_id' => 1,\n 'codigo' => 'CODE',\n 'nombre' => 'TARIJA',\n 'descripcion' => 'Puesto de control',\n 'latitud' => -21.4824694116092,\n 'longitud' => -64.76246088355941,\n 'direccion' => 'Beni' \n ]);\n PuestoControl::create([\n 'municipio_id' => 1,\n 'codigo' => 'CODE',\n 'nombre' => 'REGIONAL YACUIBA',\n 'descripcion' => 'Puesto de control',\n 'latitud' => -21.937410672952993,\n 'longitud' => -63.64185541480941,\n 'direccion' => 'Beni' \n ]);\n PuestoControl::create([\n 'municipio_id' => 1,\n 'codigo' => 'CODE',\n 'nombre' => 'REGIONAL VILLAMONTES',\n 'descripcion' => 'Puesto de control',\n 'latitud' => -21.257387882119094,\n 'longitud' => -63.35621088355941,\n 'direccion' => 'Beni' \n ]);\n PuestoControl::create([\n 'municipio_id' => 1,\n 'codigo' => 'CODE',\n 'nombre' => 'REGIONAL BERMEJO',\n 'descripcion' => 'Puesto de control',\n 'latitud' => -22.557683266438165,\n 'longitud' => -64.32300775855941,\n 'direccion' => 'Beni' \n ]);\n PuestoControl::create([\n 'municipio_id' => 1,\n 'codigo' => 'CODE',\n 'nombre' => 'REGIONAL VILLAZON',\n 'descripcion' => 'Puesto de control',\n 'latitud' => -21.816525248537438,\n 'longitud' => -65.48755853980941,\n 'direccion' => 'Beni' \n ]);\n }",
"public function initialize()\n {\n $this->setSchema(\"c5_espositori\");\n $this->setSource(\"exhibitors\");\n $this->hasMany('id', 'Reservations', 'exhibitors_id', ['alias' => 'Reservations', 'reusable' => true]);\n $this->hasMany('id', 'Reservations', 'padre_id', ['alias' => 'Padri']);\n }",
"public function afterSave(){\r\n parent::afterSave();\r\n if($this->isNewRecord){\r\n $class = Strategy::getClass('Aro');\r\n $aro = new $class();\r\n $aro->model = get_class($this);\r\n $aro->foreign_key = $this->getPrimaryKey();\r\n if(!$aro->save())\r\n throw new RuntimeError(\"Unable to save Aro-Collection\");\r\n }\r\n }",
"public function flush()\r\n {\r\n foreach ($this->_collections as $key => $coll) {\r\n $coll->takeSnapshot();\r\n }\r\n foreach ($this->_tables as $table) {\r\n $table->setAttribute(Doctrine::ATTR_LOAD_REFERENCES, true);\r\n }\r\n $this->_initializedRelations = null;\r\n $this->_collections = null;\r\n $this->_tables = null;\r\n }",
"public function buildRelations()\n {\n $this->addRelation('Country', 'Slashworks\\\\AppBundle\\\\Model\\\\Country', RelationMap::MANY_TO_ONE, array('country_id' => 'id', ), null, 'CASCADE');\n $this->addRelation('RemoteApp', 'Slashworks\\\\AppBundle\\\\Model\\\\RemoteApp', RelationMap::ONE_TO_MANY, array('id' => 'customer_id', ), 'SET NULL', 'CASCADE', 'RemoteApps');\n $this->addRelation('UserCustomerRelation', 'Slashworks\\\\AppBundle\\\\Model\\\\UserCustomerRelation', RelationMap::ONE_TO_MANY, array('id' => 'customer_id', ), 'CASCADE', 'CASCADE', 'UserCustomerRelations');\n }",
"public function setPatients(Collection $patients, ConnectionInterface $con = null)\n {\n $this->clearPatients();\n $currentPatients = $this->getPatients();\n\n $patientsScheduledForDeletion = $currentPatients->diff($patients);\n\n foreach ($patientsScheduledForDeletion as $toDelete) {\n $this->removePatient($toDelete);\n }\n\n foreach ($patients as $patient) {\n if (!$currentPatients->contains($patient)) {\n $this->doAddPatient($patient);\n }\n }\n\n $this->collPatientsPartial = false;\n $this->collPatients = $patients;\n\n return $this;\n }",
"public function initialize()\n {\n $this->hasMany('idmov', 'App\\Models\\MovEstoque', 'movimentacao_manual_estoque_idmov', array('alias' => 'MovEstoque'));\n $this->hasMany('idmov', 'App\\Models\\MovimentacaoManualEstoqueItem', 'idmov', array('alias' => 'MovimentacaoManualEstoqueItem'));\n $this->belongsTo('cd_ordem_servico_reparo', 'App\\Models\\OrdemServicoReparo', 'cd_ordem_servico', array('alias' => 'OrdemServicoReparo'));\n $this->belongsTo('cd_unidade', 'App\\Models\\UnidadeNegocio', 'cd_unidade', array('alias' => 'UnidadeNegocio'));\n $this->belongsTo('requerente', 'App\\Models\\Empresa', 'cd_empresa', array('alias' => 'Empresa'));\n $this->belongsTo('usuario_responsavel', 'App\\Models\\Usuario', 'cd_usuario', array('alias' => 'Usuario'));\n }",
"public function setRecogidas(array $data, $deleteOrphans = false)\n {\n if ($deleteOrphans === true) {\n\n if ($this->_Recogidas === null) {\n\n $this->getRecogidas();\n }\n\n $oldRelations = $this->_Recogidas;\n\n if (is_array($oldRelations)) {\n\n $dataPKs = array();\n\n foreach ($data as $newItem) {\n\n $pk = $newItem->getPrimaryKey();\n if (!empty($pk)) {\n $dataPKs[] = $pk;\n }\n }\n\n foreach ($oldRelations as $oldItem) {\n\n if (!in_array($oldItem->getPrimaryKey(), $dataPKs)) {\n\n $this->_orphans[] = $oldItem;\n }\n }\n }\n }\n\n $this->_Recogidas = array();\n\n foreach ($data as $object) {\n $this->addRecogidas($object);\n }\n\n return $this;\n }",
"private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void\n {\n $this->openAPINullablesSetToNull = $openAPINullablesSetToNull;\n }",
"private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void\n {\n $this->openAPINullablesSetToNull = $openAPINullablesSetToNull;\n }",
"private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void\n {\n $this->openAPINullablesSetToNull = $openAPINullablesSetToNull;\n }",
"private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void\n {\n $this->openAPINullablesSetToNull = $openAPINullablesSetToNull;\n }",
"private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void\n {\n $this->openAPINullablesSetToNull = $openAPINullablesSetToNull;\n }",
"private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void\n {\n $this->openAPINullablesSetToNull = $openAPINullablesSetToNull;\n }",
"private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void\n {\n $this->openAPINullablesSetToNull = $openAPINullablesSetToNull;\n }",
"private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void\n {\n $this->openAPINullablesSetToNull = $openAPINullablesSetToNull;\n }",
"private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void\n {\n $this->openAPINullablesSetToNull = $openAPINullablesSetToNull;\n }",
"private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void\n {\n $this->openAPINullablesSetToNull = $openAPINullablesSetToNull;\n }",
"private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void\n {\n $this->openAPINullablesSetToNull = $openAPINullablesSetToNull;\n }",
"private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void\n {\n $this->openAPINullablesSetToNull = $openAPINullablesSetToNull;\n }",
"private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void\n {\n $this->openAPINullablesSetToNull = $openAPINullablesSetToNull;\n }",
"private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void\n {\n $this->openAPINullablesSetToNull = $openAPINullablesSetToNull;\n }",
"private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void\n {\n $this->openAPINullablesSetToNull = $openAPINullablesSetToNull;\n }",
"private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void\n {\n $this->openAPINullablesSetToNull = $openAPINullablesSetToNull;\n }",
"private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void\n {\n $this->openAPINullablesSetToNull = $openAPINullablesSetToNull;\n }",
"private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void\n {\n $this->openAPINullablesSetToNull = $openAPINullablesSetToNull;\n }",
"public function resetPartialOperationPrestationss($v = true)\n {\n $this->collOperationPrestationssPartial = $v;\n }",
"public function setRelations(Notification $notification, Collection $entities)\n {\n $entities->each(function ($entity) use ($notification) {\n $entity->notifications()->attach($notification->id);\n });\n }",
"public function buildRelations()\n {\n $this->addRelation('Attendance', '\\\\lwops\\\\lwops\\\\Attendance', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':employeeOid',\n 1 => ':oid',\n ),\n), null, null, 'Attendances', false);\n $this->addRelation('Casualemployeepayslip', '\\\\lwops\\\\lwops\\\\Casualemployeepayslip', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':employeeOid',\n 1 => ':oid',\n ),\n), null, null, 'Casualemployeepayslips', false);\n $this->addRelation('Employeeloan', '\\\\lwops\\\\lwops\\\\Employeeloan', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':employeeOid',\n 1 => ':oid',\n ),\n), null, null, 'Employeeloans', false);\n $this->addRelation('Employeeotherdeduction', '\\\\lwops\\\\lwops\\\\Employeeotherdeduction', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':employeeOid',\n 1 => ':oid',\n ),\n), null, null, 'Employeeotherdeductions', false);\n $this->addRelation('Employeepurchases', '\\\\lwops\\\\lwops\\\\Employeepurchases', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':employeeOid',\n 1 => ':oid',\n ),\n), null, null, 'Employeepurchasess', false);\n $this->addRelation('Employeerole', '\\\\lwops\\\\lwops\\\\Employeerole', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':employeeOid',\n 1 => ':oid',\n ),\n), null, null, 'Employeeroles', false);\n $this->addRelation('Employeesalaryexpenseallocation', '\\\\lwops\\\\lwops\\\\Employeesalaryexpenseallocation', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':employeeOid',\n 1 => ':oid',\n ),\n), null, null, 'Employeesalaryexpenseallocations', false);\n $this->addRelation('Employeetermination', '\\\\lwops\\\\lwops\\\\Employeetermination', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':employeeOid',\n 1 => ':oid',\n ),\n), null, null, 'Employeeterminations', false);\n $this->addRelation('Fteemployeepayslip', '\\\\lwops\\\\lwops\\\\Fteemployeepayslip', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':employeeOid',\n 1 => ':oid',\n ),\n), null, null, 'Fteemployeepayslips', false);\n $this->addRelation('Ftesalaryadvance', '\\\\lwops\\\\lwops\\\\Ftesalaryadvance', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':employeeOid',\n 1 => ':oid',\n ),\n), null, null, 'Ftesalaryadvances', false);\n $this->addRelation('Medicaldeduction', '\\\\lwops\\\\lwops\\\\Medicaldeduction', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':employeeOid',\n 1 => ':oid',\n ),\n), null, null, 'Medicaldeductions', false);\n $this->addRelation('Nssfdeduction', '\\\\lwops\\\\lwops\\\\Nssfdeduction', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':employeeOid',\n 1 => ':oid',\n ),\n), null, null, 'Nssfdeductions', false);\n $this->addRelation('Parttimedetail', '\\\\lwops\\\\lwops\\\\Parttimedetail', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':employeeOid',\n 1 => ':oid',\n ),\n), null, null, 'Parttimedetails', false);\n $this->addRelation('Salary', '\\\\lwops\\\\lwops\\\\Salary', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':employeeOid',\n 1 => ':oid',\n ),\n), null, null, 'Salaries', false);\n }",
"protected function doInitialize()\n {\n // Has NEW objects added through add(). Remember them.\n $newObjects = [];\n if ($this->isDirty) {\n $newObjects = $this->collection->toArray();\n }\n $this->collection->clear();\n $this->manager->getUnitOfWork()->loadCollection($this);\n $this->takeSnapshot();\n // Reattach NEW objects added through add(), if any.\n if ($newObjects) {\n foreach ($newObjects as $obj) {\n $this->collection->add($obj);\n }\n $this->isDirty = true;\n }\n }",
"public function structuresAutomatiques() {\n\t\t\t$this->Structurereferente = ClassRegistry::init( 'Structurereferente' );\n\n\t\t\t$results = $this->Structurereferente->find(\n\t\t\t\t'all',\n\t\t\t\tarray(\n\t\t\t\t\t'fields' => array(\n\t\t\t\t\t\t'Structurereferente.typeorient_id',\n\t\t\t\t\t\t'( \"Structurereferente\".\"typeorient_id\" || \\'_\\' || \"Structurereferente\".\"id\" ) AS \"Structurereferente__id\"',\n\t\t\t\t\t\t'Canton.canton'\n\t\t\t\t\t),\n\t\t\t\t\t'conditions' => array(\n\t\t\t\t\t\t'Structurereferente.typeorient_id' => Configure::read( 'Nonoriente66.notisemploi.typeorientId' )\n\t\t\t\t\t),\n\t\t\t\t\t'joins' => array(\n\t\t\t\t\t\t$this->Structurereferente->join( 'StructurereferenteZonegeographique' ),\n\t\t\t\t\t\t$this->Structurereferente->StructurereferenteZonegeographique->join( 'Zonegeographique' ),\n\t\t\t\t\t\t$this->Structurereferente->StructurereferenteZonegeographique->Zonegeographique->join( 'Canton' )\n\t\t\t\t\t),\n\t\t\t\t\t'contain' => false\n\t\t\t\t)\n\t\t\t);\n\n\t\t\treturn Set::combine( $results, '{n}.Structurereferente.typeorient_id', '{n}.Structurereferente.id', '{n}.Canton.canton' );\n\t\t}",
"private function executeExtraUpdates()\n {\n foreach ($this->extraUpdates as $oid => $update) {\n list ($entity, $changeset) = $update;\n $this->entityChangeSets[$oid] = $changeset;\n $this->getEntityPersister(get_class($entity))->update($entity);\n }\n $this->extraUpdates = [];\n }",
"public function updateAllStoreAssociations() {\n\n $allstores = $this->getStores(null, 1);\n $this->load->model('user/productset');\n\n //echo count($allstores);\n\n //print_r($allstores);\n foreach ($allstores as $store_info) {\n //KMC new category management, disabled all categories first.\n //\n // ???? SHOULD I DELETE CATEGORIES FOR THE STORE/PRODUCTSETS FIRST??\n // Yes, I think we should otherwise we will not pick up good changes.\n $this->db->query(\"DELETE FROM \". DB_PREFIX . \"category WHERE store_code='\".$store_info['code'].\"'\");\n \n unset($productset_ids);\n\n // This picks up whatever is already set (checked in their catalog list) for a dealer.\n $productset_array = $this->model_user_productset->getProductsetsForStoreId($store_info['store_id']);\n\n foreach ($productset_array as $pset)\n {\n $productset_ids[] = $pset['productset_id'];\n }\n print_r($productset_ids);\n \t \n // For each productset ...\n if ($productset_ids) {\n \t\tforeach ($productset_ids as $productset_id) {\n // Make sure that we have categories defined for this productset, \n // else we have to add them based on our ZZZ store which holds the defaults.\n $this->load->model('catalog/category');\n $this->model_catalog_category->createStoreCategoriesIfNeeded($store_info['code'], $productset_id);\n \t\t}\n \n // Create the product_to_category associations.\n $this->load->model('productset/product');\n $this->model_productset_product->buildProductToCategoryAssociations($store_info['code'], $productset_ids);\n \n // Re-build related products for the dealer based no the default set of ZZZ.\n $this->model_productset_product->buildRelatedProductAssociations($store_info['code'], $productset_ids);\n \n // Now update the store_product table.\n $this->load->model('store/product');\n $this->model_store_product->createUnjunctionedProductRecords($store_info['code']);\n }\n }\n }",
"private function prepRelations() : self\n {\n\n // Lvd.\n $maxRId = 0;\n $relationships = [];\n\n // Add Sheets.\n foreach ($this->xlsx->getBook()->getSheets() as $sheet) {\n\n $relationships[] = [\n '@Id' => 'rId' . $sheet->getId(),\n '@Type' => $this->types['sheet'],\n '@Target' => 'worksheets/sheet' . $sheet->getId() . '.xml',\n ];\n\n // Count max ID.\n $maxRId = max($maxRId, $sheet->getId());\n }\n\n // Add the rest of relationships.\n $relationships[] = [\n '@Id' => 'rId' . ( ++$maxRId ),\n '@Type' => $this->types['styles'],\n '@Target' => 'styles.xml',\n ];\n $relationships[] = [\n '@Id' => 'rId' . ( ++$maxRId ),\n '@Type' => $this->types['theme'],\n '@Target' => 'theme/theme1.xml',\n ];\n $relationships[] = [\n '@Id' => 'rId' . ( ++$maxRId ),\n '@Type' => $this->types['sharedStrings'],\n '@Target' => 'sharedStrings.xml',\n ];\n\n // Save.\n $this->array['Relationships']['@@']['Relationship'] = $relationships;\n\n return $this;\n }",
"protected function updateServicesRelationship(array $services, $id_employee, $id_coupon)\n\t{\n\t\tif ($id_coupon <= 0)\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\t$dbo = JFactory::getDbo();\n\n\t\t// get existing services\n\t\t$existing = array();\n\n\t\t$q = $dbo->getQuery(true)\n\t\t\t->select($dbo->qn('id_service'))\n\t\t\t->from($dbo->qn('#__vikappointments_coupon_service_assoc'))\n\t\t\t->where($dbo->qn('id_coupon') . ' = ' . (int) $id_coupon);\n\n\t\t$dbo->setQuery($q);\n\t\t$dbo->execute();\n\n\t\tif ($dbo->getNumRows())\n\t\t{\n\t\t\t$existing = $dbo->loadColumn();\n\t\t}\n\n\t\t// create relationship for new services\n\t\t$missing = array();\n\n\t\tforeach ($services as $s)\n\t\t{\n\t\t\tif (!in_array($s, $existing))\n\t\t\t{\n\t\t\t\t$missing[] = $s;\n\t\t\t}\n\t\t}\n\n\t\t$this->insertServicesRelationship($missing, $id_coupon);\n\n\t\t// detach relationship for existing services that are no more selected\n\t\t$detach = array();\n\n\t\tforeach ($existing as $s)\n\t\t{\n\t\t\tif (!in_array($s, $services))\n\t\t\t{\n\t\t\t\t$detach[] = $s;\n\t\t\t}\n\t\t}\n\n\t\t$this->deleteServicesRelationships($id_coupon, $detach);\n\t}",
"private function _set_relationships()\n {\n if(empty($this->_relationships))\n {\n $options = array('has_one','has_many','has_many_pivot');\n foreach($options as $option)\n {\n if(isset($this->{$option}) && !empty($this->{$option}))\n {\n foreach($this->{$option} as $key => $relation)\n {\n $foreign_model = (is_array($relation)) ? $relation[0] : $relation;\n $foreign_model_name = strtolower($foreign_model);\n $this->load->model($foreign_model_name);\n $foreign_table = $this->{$foreign_model_name}->table;\n if($option=='has_many_pivot')\n {\n $tables = array($this->table, $foreign_table);\n sort($tables);\n $pivot_table = $tables[0].'_'.$tables[1];\n $foreign_key = (is_array($relation)) ? $relation[1] : $this->{$foreign_model_name}->primary;\n $local_key = (is_array($relation) && isset($relation[2])) ? $relation[2] : $this->primary;\n }\n else\n {\n $foreign_key = (is_array($relation)) ? $relation[1] : singular($this->table) . '_id';\n $local_key = (is_array($relation) && isset($relation[2])) ? $relation[2] : $this->primary;\n }\n $this->_relationships[$key] = array('relation' => $option, 'relation_key' => $key, 'foreign_model' => $foreign_model_name, 'foreign_table' => $foreign_table, 'foreign_key' => $foreign_key, 'local_key' => $local_key);\n ($option == 'has_many_pivot') ? ($this->_relationships[$key]['pivot_table'] = $pivot_table) : FALSE;\n\n }\n }\n }\n }\n }",
"protected function addActionsForRelatedEntities()\n {\n if (! $this->mapper) {\n return;\n }\n\n foreach ($this->mapper->getRelations() as $name) {\n $this->mapper->getRelation($name)->addActions($this);\n }\n }",
"public function initVenueratings()\n\t{\n\t\t$this->collVenueratings = new PropelObjectCollection();\n\t\t$this->collVenueratings->setModel('Venuerating');\n\t}",
"public function buildRelations()\n {\n $this->addRelation('CiOptionsRelatedByIdOptionTipoAsociado', '\\\\CiOptions', RelationMap::MANY_TO_ONE, array (\n 0 =>\n array (\n 0 => ':id_option_tipo_asociado',\n 1 => ':id_option',\n ),\n), null, null, null, false);\n $this->addRelation('CiOptionsRelatedByIdOptionNivelAsociado', '\\\\CiOptions', RelationMap::MANY_TO_ONE, array (\n 0 =>\n array (\n 0 => ':id_option_nivel_asociado',\n 1 => ':id_option',\n ),\n), null, null, null, false);\n $this->addRelation('CiUsuariosRelatedByInvitadoPor', '\\\\CiUsuarios', RelationMap::MANY_TO_ONE, array (\n 0 =>\n array (\n 0 => ':invitado_por',\n 1 => ':id_usuario',\n ),\n), null, null, null, false);\n $this->addRelation('CiOptionsRelatedByIdOpcionRole', '\\\\CiOptions', RelationMap::MANY_TO_ONE, array (\n 0 =>\n array (\n 0 => ':id_opcion_role',\n 1 => ':id_option',\n ),\n), null, null, null, false);\n $this->addRelation('HbfTurnosRelatedByIdTurno', '\\\\HbfTurnos', RelationMap::MANY_TO_ONE, array (\n 0 =>\n array (\n 0 => ':id_turno',\n 1 => ':id_turno',\n ),\n), null, null, null, false);\n $this->addRelation('HbfSesionesRelatedByIdSesion', '\\\\HbfSesiones', RelationMap::MANY_TO_ONE, array (\n 0 =>\n array (\n 0 => ':id_sesion',\n 1 => ':id_sesion',\n ),\n), null, null, null, false);\n $this->addRelation('CiOptionsRelatedByIdTipoUsuario', '\\\\CiOptions', RelationMap::MANY_TO_ONE, array (\n 0 =>\n array (\n 0 => ':id_tipo_usuario',\n 1 => ':id_option',\n ),\n), null, null, null, false);\n $this->addRelation('HbfClubsRelatedByIdClub', '\\\\HbfClubs', RelationMap::MANY_TO_ONE, array (\n 0 =>\n array (\n 0 => ':id_club',\n 1 => ':id_club',\n ),\n), null, null, null, false);\n $this->addRelation('CiModulosRelatedByIdUserCreated', '\\\\CiModulos', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_user_created',\n 1 => ':id_usuario',\n ),\n), null, null, 'CiModulossRelatedByIdUserCreated', false);\n $this->addRelation('CiModulosRelatedByIdUserModified', '\\\\CiModulos', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_user_modified',\n 1 => ':id_usuario',\n ),\n), null, null, 'CiModulossRelatedByIdUserModified', false);\n $this->addRelation('CiOptionsRelatedByIdUserCreated', '\\\\CiOptions', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_user_created',\n 1 => ':id_usuario',\n ),\n), null, null, 'CiOptionssRelatedByIdUserCreated', false);\n $this->addRelation('CiOptionsRelatedByIdUserModified', '\\\\CiOptions', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_user_modified',\n 1 => ':id_usuario',\n ),\n), null, null, 'CiOptionssRelatedByIdUserModified', false);\n $this->addRelation('CiSessions', '\\\\CiSessions', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_usuario',\n 1 => ':id_usuario',\n ),\n), null, null, 'CiSessionss', false);\n $this->addRelation('CiSettingsRelatedByIdUserCreated', '\\\\CiSettings', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_user_created',\n 1 => ':id_usuario',\n ),\n), null, null, 'CiSettingssRelatedByIdUserCreated', false);\n $this->addRelation('CiSettingsRelatedByIdUserModified', '\\\\CiSettings', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_user_modified',\n 1 => ':id_usuario',\n ),\n), null, null, 'CiSettingssRelatedByIdUserModified', false);\n $this->addRelation('CiUsuariosRelatedByIdUsuario', '\\\\CiUsuarios', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':invitado_por',\n 1 => ':id_usuario',\n ),\n), null, null, 'CiUsuariossRelatedByIdUsuario', false);\n $this->addRelation('HbfClubsRelatedByIdUserCreated', '\\\\HbfClubs', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_user_created',\n 1 => ':id_usuario',\n ),\n), null, null, 'HbfClubssRelatedByIdUserCreated', false);\n $this->addRelation('HbfClubsRelatedByIdUserModified', '\\\\HbfClubs', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_user_modified',\n 1 => ':id_usuario',\n ),\n), null, null, 'HbfClubssRelatedByIdUserModified', false);\n $this->addRelation('HbfComandasRelatedByIdUserCreated', '\\\\HbfComandas', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_user_created',\n 1 => ':id_usuario',\n ),\n), null, null, 'HbfComandassRelatedByIdUserCreated', false);\n $this->addRelation('HbfComandasRelatedByIdUserModified', '\\\\HbfComandas', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_user_modified',\n 1 => ':id_usuario',\n ),\n), null, null, 'HbfComandassRelatedByIdUserModified', false);\n $this->addRelation('HbfComandasRelatedByIdCliente', '\\\\HbfComandas', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_cliente',\n 1 => ':id_usuario',\n ),\n), null, null, 'HbfComandassRelatedByIdCliente', false);\n $this->addRelation('HbfDetallesPedidosRelatedByIdUserCreated', '\\\\HbfDetallesPedidos', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_user_created',\n 1 => ':id_usuario',\n ),\n), null, null, 'HbfDetallesPedidossRelatedByIdUserCreated', false);\n $this->addRelation('HbfDetallesPedidosRelatedByIdUserModified', '\\\\HbfDetallesPedidos', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_user_modified',\n 1 => ':id_usuario',\n ),\n), null, null, 'HbfDetallesPedidossRelatedByIdUserModified', false);\n $this->addRelation('HbfEgresosRelatedByIdUserCreated', '\\\\HbfEgresos', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_user_created',\n 1 => ':id_usuario',\n ),\n), null, null, 'HbfEgresossRelatedByIdUserCreated', false);\n $this->addRelation('HbfEgresosRelatedByIdUserModified', '\\\\HbfEgresos', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_user_modified',\n 1 => ':id_usuario',\n ),\n), null, null, 'HbfEgresossRelatedByIdUserModified', false);\n $this->addRelation('HbfEgresosRelatedByIdCliente', '\\\\HbfEgresos', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_cliente',\n 1 => ':id_usuario',\n ),\n), null, null, 'HbfEgresossRelatedByIdCliente', false);\n $this->addRelation('HbfIngresosRelatedByIdUserCreated', '\\\\HbfIngresos', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_user_created',\n 1 => ':id_usuario',\n ),\n), null, null, 'HbfIngresossRelatedByIdUserCreated', false);\n $this->addRelation('HbfIngresosRelatedByIdUserModified', '\\\\HbfIngresos', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_user_modified',\n 1 => ':id_usuario',\n ),\n), null, null, 'HbfIngresossRelatedByIdUserModified', false);\n $this->addRelation('HbfIngresosRelatedByIdCliente', '\\\\HbfIngresos', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_cliente',\n 1 => ':id_usuario',\n ),\n), null, null, 'HbfIngresossRelatedByIdCliente', false);\n $this->addRelation('HbfPorcionesRelatedByIdUserCreated', '\\\\HbfPorciones', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_user_created',\n 1 => ':id_usuario',\n ),\n), null, null, 'HbfPorcionessRelatedByIdUserCreated', false);\n $this->addRelation('HbfPorcionesRelatedByIdUserModified', '\\\\HbfPorciones', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_user_modified',\n 1 => ':id_usuario',\n ),\n), null, null, 'HbfPorcionessRelatedByIdUserModified', false);\n $this->addRelation('HbfPrepagosRelatedByIdCliente', '\\\\HbfPrepagos', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_cliente',\n 1 => ':id_usuario',\n ),\n), null, null, 'HbfPrepagossRelatedByIdCliente', false);\n $this->addRelation('HbfPrepagosRelatedByIdUserCreated', '\\\\HbfPrepagos', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_user_created',\n 1 => ':id_usuario',\n ),\n), null, null, 'HbfPrepagossRelatedByIdUserCreated', false);\n $this->addRelation('HbfPrepagosRelatedByIdUserModified', '\\\\HbfPrepagos', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_user_modified',\n 1 => ':id_usuario',\n ),\n), null, null, 'HbfPrepagossRelatedByIdUserModified', false);\n $this->addRelation('HbfProductosRelatedByIdUserCreated', '\\\\HbfProductos', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_user_created',\n 1 => ':id_usuario',\n ),\n), null, null, 'HbfProductossRelatedByIdUserCreated', false);\n $this->addRelation('HbfProductosRelatedByIdUserModified', '\\\\HbfProductos', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_user_modified',\n 1 => ':id_usuario',\n ),\n), null, null, 'HbfProductossRelatedByIdUserModified', false);\n $this->addRelation('HbfSesionesRelatedByIdUserCreated', '\\\\HbfSesiones', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_user_created',\n 1 => ':id_usuario',\n ),\n), null, null, 'HbfSesionessRelatedByIdUserCreated', false);\n $this->addRelation('HbfSesionesRelatedByIdUserModified', '\\\\HbfSesiones', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_user_modified',\n 1 => ':id_usuario',\n ),\n), null, null, 'HbfSesionessRelatedByIdUserModified', false);\n $this->addRelation('HbfSesionesRelatedByIdAsociado', '\\\\HbfSesiones', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_asociado',\n 1 => ':id_usuario',\n ),\n), null, null, 'HbfSesionessRelatedByIdAsociado', false);\n $this->addRelation('HbfTurnosRelatedByIdUserCreated', '\\\\HbfTurnos', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_user_created',\n 1 => ':id_usuario',\n ),\n), null, null, 'HbfTurnossRelatedByIdUserCreated', false);\n $this->addRelation('HbfTurnosRelatedByIdUserModified', '\\\\HbfTurnos', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_user_modified',\n 1 => ':id_usuario',\n ),\n), null, null, 'HbfTurnossRelatedByIdUserModified', false);\n $this->addRelation('HbfTurnosRelatedByIdAsociado', '\\\\HbfTurnos', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_asociado',\n 1 => ':id_usuario',\n ),\n), null, null, 'HbfTurnossRelatedByIdAsociado', false);\n $this->addRelation('HbfVasosRelatedByIdUserModified', '\\\\HbfVasos', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_user_modified',\n 1 => ':id_usuario',\n ),\n), 'CASCADE', 'CASCADE', 'HbfVasossRelatedByIdUserModified', false);\n $this->addRelation('HbfVasosRelatedByIdUserCreated', '\\\\HbfVasos', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_user_created',\n 1 => ':id_usuario',\n ),\n), 'CASCADE', 'CASCADE', 'HbfVasossRelatedByIdUserCreated', false);\n $this->addRelation('HbfVentasRelatedByIdUserCreated', '\\\\HbfVentas', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_user_created',\n 1 => ':id_usuario',\n ),\n), null, null, 'HbfVentassRelatedByIdUserCreated', false);\n $this->addRelation('HbfVentasRelatedByIdUserModified', '\\\\HbfVentas', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_user_modified',\n 1 => ':id_usuario',\n ),\n), null, null, 'HbfVentassRelatedByIdUserModified', false);\n $this->addRelation('HbfVentasRelatedByIdCliente', '\\\\HbfVentas', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_cliente',\n 1 => ':id_usuario',\n ),\n), null, null, 'HbfVentassRelatedByIdCliente', false);\n }",
"public function setEnderecos(PropelCollection $enderecos, PropelPDO $con = null)\n\t{\n\t\t$this->enderecosScheduledForDeletion = $this->getEnderecos(new Criteria(), $con)->diff($enderecos);\n\n\t\tforeach ($enderecos as $endereco) {\n\t\t\t// Fix issue with collection modified by reference\n\t\t\tif ($endereco->isNew()) {\n\t\t\t\t$endereco->setCidade($this);\n\t\t\t}\n\t\t\t$this->addEndereco($endereco);\n\t\t}\n\n\t\t$this->collEnderecos = $enderecos;\n\t}",
"protected function _prepareCollection() {\n $collection = Config::get()->collectionTransaction();\n $asTrnx = 'main_table';\n $collection->addFieldToSelect(Transaction::ATTR_ID, self::AS_TRAN_ID);\n $collection->addFieldToSelect(Transaction::ATTR_DATE_APPLIED, self::AS_DATE_APPLIED);\n $collection->addFieldToSelect(Transaction::ATTR_VALUE, self::AS_VALUE);\n /* LEFT JOIN prxgt_bonus_operation oper ON trnx.operation_id = oper.id */\n $asOper = 'oper';\n $tbl = array( $asOper => Config::ENTITY_OPERATION );\n $cond = $asTrnx . '.' . Transaction::ATTR_OPERATION_ID . '=' . $asOper . '.' . Operation::ATTR_ID;\n $cols = array(\n self::AS_OPER_ID => Operation::ATTR_ID,\n self::AS_DATE_PERFORMED => Operation::ATTR_DATE_PERFORMED\n );\n $collection->join($tbl, $cond, $cols);\n /* LEFT JOIN prxgt_bonus_account credit ON trnx.credit_acc_id = credit.id */\n $asCredit = 'credit';\n $tbl = array( $asCredit => Config::ENTITY_ACCOUNT );\n $cond = $asTrnx . '.' . Transaction::ATTR_CREDIT_ACC_ID . '=' . $asCredit . '.' . Account::ATTR_ID;\n $cols = array();\n $collection->join($tbl, $cond, $cols);\n /* LEFT JOIN prxgt_bonus_account debit ON trnx.debit_acc_id = debit.id */\n $asDebit = 'debit';\n $tbl = array( $asDebit => Config::ENTITY_ACCOUNT );\n $cond = $asTrnx . '.' . Transaction::ATTR_DEBIT_ACC_ID . '=' . $asDebit . '.' . Account::ATTR_ID;\n $cols = array();\n $collection->join($tbl, $cond, $cols);\n /* LEFT JOIN customer_entity custCred ON credit.customer_id = custCred.entity_id */\n $asCreditCust = 'creditCust';\n $tbl = array( $asCreditCust => 'customer/entity' );\n $cond = $asCredit . '.' . Account::ATTR_CUSTOMER_ID . '=' . $asCreditCust . '.' . Eav::DEFAULT_ENTITY_ID_FIELD;\n $cols = array( self::AS_CREDIT_CUST => ConfigCore::ATTR_CUST_MLM_ID );\n $collection->join($tbl, $cond, $cols);\n /* LEFT JOIN customer_entity custDeb ON debit.customer_id = custDeb.entity_id */\n $asDebitCust = 'debitCust';\n $tbl = array( $asDebitCust => 'customer/entity' );\n $cond = $asDebit . '.' . Account::ATTR_CUSTOMER_ID . '=' . $asDebitCust . '.' . Eav::DEFAULT_ENTITY_ID_FIELD;\n $cols = array( self::AS_DEBIT_CUST => ConfigCore::ATTR_CUST_MLM_ID );\n $collection->join($tbl, $cond, $cols);\n /* LEFT JOIN prxgt_bonus_type_asset asset ON credit.asset_id = asset.id */\n $asAsset = 'asset';\n $tbl = array( $asAsset => Config::ENTITY_TYPE_ASSET );\n $cond = $asCredit . '.' . Account::ATTR_ASSET_ID . '=' . $asAsset . '.' . TypeAsset::ATTR_ID;\n $cols = array( self::AS_ASSET_CODE => TypeAsset::ATTR_CODE );\n $collection->join($tbl, $cond, $cols);\n /* LEFT JOIN prxgt_bonus_type_oper operType ON oper.type_id = operType.id */\n $asOperType = 'operType';\n $tbl = array( $asOperType => Config::ENTITY_TYPE_OPER );\n $cond = $asOper . '.' . Operation::ATTR_TYPE_ID . '=' . $asOperType . '.' . TypeOper::ATTR_ID;\n $cols = array( self::AS_OPER_CODE => TypeOper::ATTR_CODE );\n $collection->join($tbl, $cond, $cols);\n /* prepare collection */\n $sql = $collection->getSelectSql(true);\n $this->setCollection($collection);\n parent::_prepareCollection();\n return $this;\n }",
"public function buildRelations()\n {\n $this->addRelation('RemoteApp', 'Slashworks\\\\AppBundle\\\\Model\\\\RemoteApp', RelationMap::MANY_TO_ONE, array('remote_app_id' => 'id', ), 'CASCADE', 'CASCADE');\n }",
"public function initialize()\n {\n $this->setSchema(\"ieslluis_gestiovfc\");\n $this->setSource(\"lines_comandes\");\n $this->hasMany('ncomanda', 'Comandes', 'numero', ['alias' => 'Comandes']);\n $this->hasMany('producte', 'Productes', 'codi', ['alias' => 'Productes']);\n }",
"protected function _prepareCollection() {\n $session = Mage::getModel('core/session');\n $filterConditions = $session->getData('rp_conditions');\n if (!$filterConditions)\n $filterConditions = $this->_filterConditions;\n $posorderCollection = Mage::getModel('webpos/posorder')->getCollection();\n /* Jack - create an empty collection */\n $collection = $posorderCollection;\n foreach ($collection->getItems() as $key => $item) {\n $collection->removeItemByKey($key);\n }\n /**/\n\n /* Define variables and set default data */\n $totalsSalesByUser = array();\n $totalSales = 0;\n $incTimeStrings = array('1' => ' +1 week', '2' => ' +1 day', '3' => ' +1 month', '4' => ' +1 day', '5' => ' +1 day', '6' => ' +1 week', '7' => ' +1 week');\n $descTimeStrings = array('4' => ' -1 week', '5' => ' -1 week', '6' => ' -1 month', '7' => ' -1 month');\n $periodFormat = ($filterConditions['period'] == 3 || $filterConditions['period'] == 6 || $filterConditions['period'] == 7 ) ? \"Y-m-d\" : \"Y-m-d\";\n $specialPeriod = array('1', '2', '3', '4');\n $stringTimeFrom = array('1' => 'monday this week', '2' => 'monday last week', '3' => 'first day of this month', '4' => 'first day of previous month');\n $stringTimeTo = array('1' => 'sunday this week', '2' => 'sunday last week', '3' => 'last day of this month', '4' => 'last day of previous month');\n $thisFriday = date($periodFormat, strtotime('friday this week'));\n $today = date($periodFormat);\n $userIds = $this->userIds;\n if (($filterConditions['from'] == '' || $filterConditions['to'] == '' ) && in_array($filterConditions['period'], $specialPeriod) == false) {\n $this->setCollection($collection);\n return parent::_prepareCollection();\n }\n\n $startTime = (in_array($filterConditions['range'], $specialPeriod)) ? (date($periodFormat, strtotime($stringTimeFrom[$filterConditions['range']]))) : date($periodFormat, strtotime($filterConditions['from']));\n $timeFrom = (in_array($filterConditions['range'], $specialPeriod)) ? (date($periodFormat, strtotime($stringTimeFrom[$filterConditions['range']]))) : date($periodFormat, strtotime($filterConditions['from']));\n $timeTo = (in_array($filterConditions['range'], $specialPeriod)) ? (date($periodFormat, strtotime($stringTimeTo[$filterConditions['range']]))) : date(\"Y-m-d\", strtotime($filterConditions['to']));\n if ($timeFrom && $timeTo) {\n while ($timeFrom <= $timeTo) {\n $i = 0;\n foreach ($this->userIds as $userId => $displayName) {\n $isSave = true;\n $totalSalesOfPeriod = 0;\n $isEmpty = true;\n if ($filterConditions['period'] == 1) {\n $endTime = $this->lastDayOf('year', new DateTime($timeFrom))->format('Y-m-d');\n } else if ($filterConditions['period'] == 3) {\n $endTime = $this->lastDayOf('month', new DateTime($timeFrom))->format('Y-m-d');\n } else\n $endTime = date('Y-m-d', strtotime($timeFrom . $incTimeStrings[$filterConditions['period']]));\n $endTime = (strtotime($endTime) < strtotime($timeTo)) ? $endTime : $timeTo;\n $itemDataObject = new Varien_Object();\n if ($i == 0) {\n if ($filterConditions['period'] == 1) {\n $exTimeFrom = explode('-', $timeFrom);\n $itemDataObject->setData('period', $exTimeFrom[0]);\n } else if ($filterConditions['period'] == 3) {\n $exTimeFrom = explode('-', $timeFrom);\n $itemDataObject->setData('period', $exTimeFrom[0] . '-' . $exTimeFrom[1]);\n } else\n $itemDataObject->setData('period', $timeFrom);\n } else\n $itemDataObject->setData('period', '');\n if ($itemDataObject->getData('period'))\n $itemDataObject->setData('period', date('F j, Y', strtotime($itemDataObject->getData('period'))));\n $webposOrderCollection = $this->getSalesCollection($timeFrom, $endTime, array('user_id' => $userId));\n $totalU = 0;\n if (count($webposOrderCollection) > 0) {\n foreach ($webposOrderCollection as $order) {\n $totalU += $order->getTotals();\n }\n }\n if (!$totalU && $filterConditions['rp_settings']['show_empty_result'] == 'false')\n $isSave = false;\n\n if ($isSave) {\n $itemDataObject->setData('user', $displayName);\n\n $itemDataObject->setData('totals_sales', ($totalU > 0) ? $totalU : '0.00');\n $collection->addItem($itemDataObject);\n }\n $i++;\n }\n if ($filterConditions['period'] == 1)\n $timeFrom = date('Y-m-d', strtotime($endTime));\n else\n $timeFrom = date($periodFormat, strtotime($timeFrom . $incTimeStrings[$filterConditions['period']]));\n }\n /* get last item data \n $i = 0;\n foreach($this->userIds as $userId => $displayName){\n $isSave = true;\n $beforeLastItem = new Varien_Object();\n if($i == 0){\n if($filterConditions['period'] == 1){\n $exTimeFrom = explode('-',$timeTo);\n $beforeLastItem->setData('period',$exTimeFrom[0]);\n }\n else if($filterConditions['period'] == 3){\n $exTimeFrom = explode('-',$timeTo);\n $beforeLastItem->setData('period',$exTimeFrom[0].'-'.$exTimeFrom[1]);\n }\n else\n $beforeLastItem->setData('period',$timeTo);\n }\n else\n $beforeLastItem->setData('period','');\n if($beforeLastItem->getData('period'))\n $beforeLastItem->setData('period',date('F j, Y', strtotime($beforeLastItem->getData('period'))));\n $webposOrderCollection = $this->getSalesCollection($timeTo,$timeTo,array('user_id' => $userId))->getFirstItem();\n if( !$webposOrderCollection->getTotals() && $filterConditions['rp_settings']['show_empty_result'] == 'false')\n $isSave = false;\n if($isSave){\n $beforeLastItem->setData('user',$displayName);\n $beforeLastItem->setData('totals_sales',$webposOrderCollection->getTotals()?$webposOrderCollection->getTotals():'0.00');\n $collection->addItem($beforeLastItem);\n }\n $i++;\n }\n end last item */\n }\n /* set data for totals row */\n $lastItemDataObject = new Varien_Object();\n $lastItemDataObject->setData('period', 'Totals:');\n $orders = $this->getSalesTotal($startTime, $endTime);\n\n $totalU = 0;\n if (count($orders) > 0) {\n foreach ($orders as $order) {\n $totalU += $order->getTotals();\n }\n }\n $lastItemDataObject->setData('totals_sales', $totalU);\n $collection->addItem($lastItemDataObject);\n $this->setCollection($collection);\n /* set session for chart */\n $sessionObject = new Varien_Object();\n foreach ($this->userIds as $userId => $username) {\n $orders = $this->getSalesTotal($startTime, $endTime, array('user_id' => $userId));\n\n\n $totalU = 0;\n if (count($orders) > 0) {\n foreach ($orders as $order) {\n $totalU += $order->getTotals();\n }\n }\n $sessionObject->setData($username, $totalU);\n }\n Mage::getSingleton('core/session')->setData('total_sales_by_user', $sessionObject->toArray());\n Mage::getSingleton('core/session')->setType('user');\n $this->setTotalRowByUser($sessionObject->toArray());\n return parent::_prepareCollection();\n }"
] | [
"0.5673637",
"0.5381319",
"0.5125052",
"0.49006987",
"0.48189643",
"0.48117965",
"0.47645417",
"0.47203207",
"0.47000292",
"0.46939012",
"0.4684295",
"0.46268004",
"0.45624357",
"0.45560598",
"0.4534751",
"0.45255712",
"0.45244035",
"0.44927466",
"0.4476819",
"0.4476819",
"0.44755816",
"0.4472171",
"0.44331926",
"0.44051525",
"0.4373516",
"0.435988",
"0.43329126",
"0.42984635",
"0.4290301",
"0.4274179",
"0.427028",
"0.42566845",
"0.42462832",
"0.4244259",
"0.42310107",
"0.42234778",
"0.42207485",
"0.42029476",
"0.41994822",
"0.41994557",
"0.41937128",
"0.41931215",
"0.41917786",
"0.41901535",
"0.4185095",
"0.41824076",
"0.41819763",
"0.41746998",
"0.41679287",
"0.4155853",
"0.41548666",
"0.41523626",
"0.41450098",
"0.4124077",
"0.4117909",
"0.41124523",
"0.41094327",
"0.41083094",
"0.41050735",
"0.4104263",
"0.410184",
"0.40989798",
"0.40972832",
"0.40831703",
"0.4076294",
"0.4076294",
"0.4076294",
"0.4076294",
"0.4076294",
"0.4076294",
"0.4076294",
"0.4076294",
"0.4076294",
"0.4076294",
"0.4076294",
"0.4076294",
"0.4076294",
"0.4076294",
"0.4076294",
"0.4076294",
"0.4076294",
"0.4076294",
"0.40718135",
"0.40680307",
"0.40610227",
"0.40533587",
"0.40502426",
"0.4047808",
"0.404746",
"0.4045661",
"0.40455362",
"0.40434647",
"0.40424538",
"0.4035738",
"0.40320456",
"0.40291706",
"0.40257812",
"0.40222204",
"0.4021683",
"0.40203"
] | 0.6159088 | 0 |
Returns the number of related OperationPrestations objects. | public function countOperationPrestationss(Criteria $criteria = null, $distinct = false, PropelPDO $con = null)
{
$partial = $this->collOperationPrestationssPartial && !$this->isNew();
if (null === $this->collOperationPrestationss || null !== $criteria || $partial) {
if ($this->isNew() && null === $this->collOperationPrestationss) {
return 0;
}
if ($partial && !$criteria) {
return count($this->getOperationPrestationss());
}
$query = OperationPrestationsQuery::create(null, $criteria);
if ($distinct) {
$query->distinct();
}
return $query
->filterByOperationPrimes($this)
->count($con);
}
return count($this->collOperationPrestationss);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getOperationsCount()\n {\n return $this->count(self::_OPERATIONS);\n }",
"public function count()\n\t{\n\t\treturn $this->getParentObject()->count();\n\t}",
"public function getCount()\n {\n return count($this->getModels());\n }",
"public function getCount()\n {\n return count($this->getModels());\n }",
"public function count() {\r\n return count($this->objects);\r\n }",
"public static function nombreAssociations() {\n $req = 'SELECT COUNT(*)\n FROM association_vehicule_conducteur';\n return Db::dbQuery($req);\n }",
"public function count() {\r\n if (is_null($this->objectcount)) {\r\n $this->fetchData();\r\n }\r\n return $this->objectcount;\r\n }",
"public function count()\n {\n return count($this->_models);\n }",
"public function count()\n {\n return $this->getChildsObject()->count();\n }",
"public function size()\n {\n return count($this->models);\n }",
"public static function getCount()\n\t{\n\t\treturn self::find()->count();\n\t}",
"public function getNumberOfWorks()\n {\n return $this->createQueryBuilder('w')\n ->select('COUNT(w)')\n ->getQuery();\n }",
"public function count(): int\n {\n return count($this->resources);\n }",
"public static function getCount()\n {\n return static::find()->count();\n }",
"public function getPromotionsCount()\n {\n return $this->count(self::promotions);\n }",
"public function getCount()\n {\n return $this->model->count();\n }",
"public function count()\n {\n return count($this->countable);\n }",
"public function count()\n {\n return count($this->entities);\n }",
"public function count()\n {\n return count($this->entities);\n }",
"public function count()\n\t{\n\t\treturn $this->all()->count();\n\t}",
"function get_object_count()\r\n {\r\n return $this->get_browser()->count_profile_publications($this->get_condition());\r\n }",
"public function getNumberOfRelations()\n {\n return count($this->relations);\n }",
"public function count()\n {\n return count($this->_mappersByPriority);\n }",
"public function getCount()\n\t{\n\t\treturn $this->getFilteredCollection()->count();\n\t}",
"public function getNumObservationsAttribute() {\n return $this->observations()->count();\n }",
"public function countAncestors();",
"protected function getIterationsCount()\n {\n return count($this->readerGroups->getGroup('source_documents'));\n }",
"public function countEntities(): int;",
"public function size()\n {\n return count($this->getCollection());\n }",
"public function count()\n {\n return $this->getNumParts();\n }",
"public function getProNumRows()\n {\n return $this->db->count_all('products');\n }",
"public static function nombreConducteurs() {\n $req = 'SELECT COUNT(*)\n FROM conducteur';\n return Db::dbQuery($req);\n }",
"public function sparePartOrderCount()\n {\n $ordersCount = SparePartsOrderModel::where('confirmation', 'not confirmed')->count();\n return $ordersCount;\n }",
"public function findCount()\n {\n return $this->getEntityManager()\n ->createQuery(\"SELECT t.number, COUNT(f.id) as cnt\n FROM GazMainBundle:Finance f\n LEFT JOIN f.terminal t\n LEFT JOIN f.clientSale cs\n\t\t\t\t\t\t\tLEFT JOIN f.clientBuy cb\n\t\t\t\t\t\t\tWHERE f.financeType = FALSE\n\t\t\t\t\t\t\tGROUP BY t.number\n\t\t\t\t\t\t\tORDER BY t.number ASC\n \")\n ->getResult();\n }",
"public function count()\n {\n return $this->model->count();\n }",
"public function count()\n {\n return $this->model->count();\n }",
"public function count()\n {\n return count($this->getInnerIterator());\n }",
"public function count()\n {\n return count($this->collection);\n }",
"public function getResourceCount()\n {\n return $this->resourceCount;\n }",
"public function count() {\n return $this->model->all()->count();\n }",
"public function count() {\r\n\t\treturn count($this->collection);\r\n\t}",
"public function count() {\n\t\treturn count($this->_dataobjects);\n\t}",
"function get_object_count()\r\n {\r\n return $this->get_browser()->count_photo_gallery_publications($this->get_condition());\r\n }",
"public function count()\n {\n $this->setIteratorFilter(self::FLIST_NOCONTAINER | self::FLIST_UNSUB);\n return count(iterator_to_array($this));\n }",
"public function count(): int\n\t{\n\t\treturn count($this->all());\n\t}",
"function count()\r\n\t{\r\n\t\t// Check if related object\r\n\t\tif ( ! empty($this->parent))\r\n\t\t{\r\n\t\t\t// Prepare model\r\n\t\t\t$model = ucfirst($this->parent['model']);\r\n\t\t\t$object = new $model();\r\n\r\n\t\t\t// Determine relationship table name\r\n\t\t\t$relationship_table = $this->_get_relationship_table($object->prefix, $object->table, $object->model);\r\n\r\n\t\t\t$this->db->where($this->parent['model'] . '_id', $this->parent['id']);\r\n\t\t\t$this->db->from($relationship_table);\r\n\r\n\t\t\t// Return count\r\n\t\t\treturn $this->db->count_all_results();\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t$this->db->from($this->table);\r\n\r\n\t\t\t// Return count\r\n\t\t\treturn $this->db->count_all_results();\r\n\t\t}\r\n\t}",
"public function count()\n {\n return $this->getCount();\n }",
"public function getParentsCount()\n {\n if (!isset($this->_parentsCount)) {\n $this->_parentsCount = $this->_getRepository()->countParents($this->id);\n }\n\n return $this->_parentsCount;\n }",
"public function getCentresCount()\n {\n return $this->manager->createQuery('SELECT COUNT(c) FROM App\\Entity\\CentreEtatCivil c')\n ->getSingleScalarResult();\n }",
"public function count()\n {\n return $this->size();\n }",
"public function getResCount()\n {\n return $this->count(self::RES);\n }",
"public function count()\n {\n return $this->model->paginate(1, $this->select)->total();\n }",
"public function count()\n {\n return count($this->plans);\n }",
"public function count()\n\t{\n\t\treturn $this->getCount();\n\t}",
"final public function count(): int\n {\n return count($this->all());\n }",
"public function count()\n {\n return $this->collection->count();\n }",
"public function count()\n {\n return $this->collection->count();\n }",
"public function numeroInscripciones()\n {\n $socio = Auth()->user()->socio->id;\n $res = Inscription::where('partners_id', $socio)->count();\n return $res;\n }",
"public function count()\n {\n return $this->iterator->count();\n }",
"public function getRoundsCount()\n {\n return $this->rounds()->count();\n }",
"public function getNbObservateurs()\n {\n return $this->nbObservateurs;\n }",
"public function count()\n {\n return count($this->container);\n }",
"public function getCabinetCountAttribute()\n {\n return $this->cabinets->count();\n }",
"public function getServicesCount()\n {\n return $this->count(self::services);\n }",
"public function getAppliersCount()\n {\n return $this->count(self::_APPLIERS);\n }",
"public function count(): int\n {\n return ($this->constraint !== null) ? $this->constraint->count() + 1 : 1;\n }",
"public function count()\n {\n return count($this->getResults());\n }",
"public function count() {\n\t\treturn count($this->getData());\n\t}",
"public function count()\n {\n return sizeof($this->allStates);\n }",
"public function countTriples()\n {\n $count = 0;\n foreach ($this->index as $resource) {\n foreach ($resource as $values) {\n $count += count($values);\n }\n }\n return $count;\n }",
"public function getOpposCount()\n {\n return $this->count(self::_OPPOS);\n }",
"public function getOpposCount()\n {\n return $this->count(self::_OPPOS);\n }",
"public function getOpposCount()\n {\n return $this->count(self::_OPPOS);\n }",
"public function countAll()\n {\n return $this->getModel()->count();\n }",
"public function getCount()\n {\n return $this->doQuery(null, false, false)->count();\n }",
"public function count()\r\n\t{\r\n\t\t$countModel = clone $this->model;\r\n\t\t$countQuery = $countModel->getQuery();\r\n\t\t$countQuery->orders = null;\r\n\t\t$countModel->setQuery($countQuery);\r\n\r\n\t\treturn $countModel->count();\r\n\t}",
"public function count(): int\n {\n return count( $this->toArray() );\n }",
"public function incomming ()\n {\n $stock = 0;\n\n foreach ($this->batches as $batch) {\n $edge = $batch->article()->edge($this);\n\n $stock = $stock + $edge->count;\n }\n\n return $stock;\n }",
"public function count() {\n return count($this->components);\n }",
"public function count()\n {\n return iterator_count($this->getIterator());\n }",
"protected function calculateTotalItemCount()\n\t{\n\t\t$this->addScopes();\n\t\treturn CActiveRecord::model($this->modelClass)->count($this->getCriteria());\n\t}",
"public function count() {\n\t\treturn count($this->store);\n\t}",
"public function getCompCount()\n {\n return $this->count(self::_COMP);\n }",
"public function getReviewInfoCount()\n {\n return $this->count(self::review_info);\n }",
"public abstract function countObjects();",
"function getRowCount() {\n\t\t$saleData = $this->getProducts();\n\t\t$saleSize = sizeof($saleData);\n\t\treturn $saleSize -=1;\n\t}",
"public function getCount()\n\t{\n\t\treturn $this->data_source->count();\n\t}",
"function getResubmitCount(){\n\t\t$sectionDecisionDao = DAORegistry::getDAO('SectionDecisionDAO');\n\t\treturn $sectionDecisionDao->getResubmitCount($this->getDateDecided(), $this->getArticleId(), $this->getReviewType(), $this->getRound());\n\t}",
"public function count()\n {\n if ($model = $this->model()) {\n return $model->count();\n }\n return null;\n }",
"public function size()\n {\n $count = 0;\n foreach ($this->identityMap as $documentSet) {\n $count += count($documentSet);\n }\n return $count;\n }",
"public function count() {\n\t\treturn count($this->getIterator());\n\t}",
"public function count(): int {\n return count($this->toArray());\n }",
"public function getNumber()\n {\n return $this->model->count();\n }",
"public function getShopCount()\n {\n return $this->count(self::_SHOP);\n }",
"public function count()\n {\n return $this->client->count($this->compile())['count'];\n }",
"public function size()\n {\n return Iterators::size($this->iterator());\n }",
"public function count(): int\n {\n return count($this->collection);\n }",
"private function count_operation_rows()\n {\n // $license_rows = $license['rows'];\n\n // $constructse = $this->Header_model->get_data_list('license_constructs', array('status' => 1));\n // $constructse_rows = $constructse['rows'];\n\n // return ($license_rows + $constructse_rows);\n }",
"public function count() {\n $repo = $this->getRepository();\n\n return $repo->aggregate($this->limit(0), __FUNCTION__, $repo->getPrimaryKey());\n }",
"public function getReferenceCount() {}"
] | [
"0.6750167",
"0.66764724",
"0.632291",
"0.632291",
"0.631262",
"0.6311577",
"0.6285987",
"0.6283289",
"0.6233375",
"0.62145764",
"0.6151324",
"0.61412656",
"0.61003566",
"0.60918987",
"0.6084116",
"0.6083367",
"0.60772383",
"0.6066715",
"0.6066715",
"0.6058796",
"0.60579795",
"0.60571283",
"0.6044151",
"0.60332084",
"0.60285723",
"0.602331",
"0.60084015",
"0.6000782",
"0.5985511",
"0.5969007",
"0.59684336",
"0.596404",
"0.59604204",
"0.5958547",
"0.59545213",
"0.59545213",
"0.5949868",
"0.594281",
"0.59366125",
"0.59318274",
"0.5927512",
"0.5924799",
"0.59201944",
"0.591792",
"0.5915066",
"0.5915013",
"0.59081614",
"0.5907648",
"0.5901066",
"0.5898926",
"0.58952564",
"0.5893561",
"0.589332",
"0.5888754",
"0.5888158",
"0.58830523",
"0.58830523",
"0.58743036",
"0.5868486",
"0.58666694",
"0.58637357",
"0.5857536",
"0.58551216",
"0.5851681",
"0.58515656",
"0.58489984",
"0.58391553",
"0.58310366",
"0.5830653",
"0.5825487",
"0.5823757",
"0.5823757",
"0.5823757",
"0.5820929",
"0.5819759",
"0.58131313",
"0.58113277",
"0.58091265",
"0.5809059",
"0.5806435",
"0.5804583",
"0.57993597",
"0.57975703",
"0.57924044",
"0.57846105",
"0.5779036",
"0.5778735",
"0.5776005",
"0.57755053",
"0.57749903",
"0.5774377",
"0.5771759",
"0.5771391",
"0.5770523",
"0.57641876",
"0.5761414",
"0.57576996",
"0.575347",
"0.57346475",
"0.57271314"
] | 0.6507987 | 2 |
Method called to associate a OperationPrestations object to this object through the OperationPrestations foreign key attribute. | public function addOperationPrestations(OperationPrestations $l)
{
if ($this->collOperationPrestationss === null) {
$this->initOperationPrestationss();
$this->collOperationPrestationssPartial = true;
}
if (!in_array($l, $this->collOperationPrestationss->getArrayCopy(), true)) { // only add it if the **same** object is not already associated
$this->doAddOperationPrestations($l);
if ($this->operationPrestationssScheduledForDeletion and $this->operationPrestationssScheduledForDeletion->contains($l)) {
$this->operationPrestationssScheduledForDeletion->remove($this->operationPrestationssScheduledForDeletion->search($l));
}
}
return $this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function initOperationPrestationss($overrideExisting = true)\n {\n if (null !== $this->collOperationPrestationss && !$overrideExisting) {\n return;\n }\n $this->collOperationPrestationss = new PropelObjectCollection();\n $this->collOperationPrestationss->setModel('OperationPrestations');\n }",
"public function setOperationPrestationss(PropelCollection $operationPrestationss, PropelPDO $con = null)\n {\n $operationPrestationssToDelete = $this->getOperationPrestationss(new Criteria(), $con)->diff($operationPrestationss);\n\n\n $this->operationPrestationssScheduledForDeletion = $operationPrestationssToDelete;\n\n foreach ($operationPrestationssToDelete as $operationPrestationsRemoved) {\n $operationPrestationsRemoved->setOperationPrimes(null);\n }\n\n $this->collOperationPrestationss = null;\n foreach ($operationPrestationss as $operationPrestations) {\n $this->addOperationPrestations($operationPrestations);\n }\n\n $this->collOperationPrestationss = $operationPrestationss;\n $this->collOperationPrestationssPartial = false;\n\n return $this;\n }",
"public function getOperationPrestationssJoinOperations($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN)\n {\n $query = OperationPrestationsQuery::create(null, $criteria);\n $query->joinWith('Operations', $join_behavior);\n\n return $this->getOperationPrestationss($query, $con);\n }",
"public function getOperationPrestationssJoinRPrestations($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN)\n {\n $query = OperationPrestationsQuery::create(null, $criteria);\n $query->joinWith('RPrestations', $join_behavior);\n\n return $this->getOperationPrestationss($query, $con);\n }",
"public function getOperationPrestationssJoinOperationScenarii($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN)\n {\n $query = OperationPrestationsQuery::create(null, $criteria);\n $query->joinWith('OperationScenarii', $join_behavior);\n\n return $this->getOperationPrestationss($query, $con);\n }",
"public function filterByRPrestations($rPrestations, $comparison = null)\n {\n if ($rPrestations instanceof RPrestations) {\n return $this\n ->addUsingAlias(FacturesPrestationsPeer::R_PRESTATION_ID, $rPrestations->getRPrestationId(), $comparison);\n } elseif ($rPrestations instanceof PropelObjectCollection) {\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n\n return $this\n ->addUsingAlias(FacturesPrestationsPeer::R_PRESTATION_ID, $rPrestations->toKeyValue('PrimaryKey', 'RPrestationId'), $comparison);\n } else {\n throw new PropelException('filterByRPrestations() only accepts arguments of type RPrestations or PropelCollection');\n }\n }",
"public function clearOperationPrestationss()\n {\n $this->collOperationPrestationss = null; // important to set this to null since that means it is uninitialized\n $this->collOperationPrestationssPartial = null;\n\n return $this;\n }",
"public function getOperationPrestationssJoinOperationRubriques($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN)\n {\n $query = OperationPrestationsQuery::create(null, $criteria);\n $query->joinWith('OperationRubriques', $join_behavior);\n\n return $this->getOperationPrestationss($query, $con);\n }",
"public function initialize()\n {\n $this->belongsTo('id_segmentation', 'Entities\\Segmentation', 'id', array('foreignKey' => true, 'alias' => 'Segmentation'));\n $this->belongsTo('id_factor_network', 'Entities\\FactorNetwork', 'id', array('foreignKey' => true, 'alias' => 'FactorNetwork'));\n }",
"public function getOperationPrestationss($criteria = null, PropelPDO $con = null)\n {\n $partial = $this->collOperationPrestationssPartial && !$this->isNew();\n if (null === $this->collOperationPrestationss || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collOperationPrestationss) {\n // return empty collection\n $this->initOperationPrestationss();\n } else {\n $collOperationPrestationss = OperationPrestationsQuery::create(null, $criteria)\n ->filterByOperationPrimes($this)\n ->find($con);\n if (null !== $criteria) {\n if (false !== $this->collOperationPrestationssPartial && count($collOperationPrestationss)) {\n $this->initOperationPrestationss(false);\n\n foreach ($collOperationPrestationss as $obj) {\n if (false == $this->collOperationPrestationss->contains($obj)) {\n $this->collOperationPrestationss->append($obj);\n }\n }\n\n $this->collOperationPrestationssPartial = true;\n }\n\n $collOperationPrestationss->getInternalIterator()->rewind();\n\n return $collOperationPrestationss;\n }\n\n if ($partial && $this->collOperationPrestationss) {\n foreach ($this->collOperationPrestationss as $obj) {\n if ($obj->isNew()) {\n $collOperationPrestationss[] = $obj;\n }\n }\n }\n\n $this->collOperationPrestationss = $collOperationPrestationss;\n $this->collOperationPrestationssPartial = false;\n }\n }\n\n return $this->collOperationPrestationss;\n }",
"public function addOperation(string $operation): OperationInterface;",
"public function addOperation(ckWsdlOperation $operation)\r\n {\r\n $this->operations[] = $operation;\r\n }",
"public function issuing_station(){\n return $this->belongsTo('App\\Station', 'issuing_station');\n }",
"private function setOperation(OperatorInterface $operation)\n {\n \t$this->operation = $operation;\n }",
"public function countOperationPrestationss(Criteria $criteria = null, $distinct = false, PropelPDO $con = null)\n {\n $partial = $this->collOperationPrestationssPartial && !$this->isNew();\n if (null === $this->collOperationPrestationss || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collOperationPrestationss) {\n return 0;\n }\n\n if ($partial && !$criteria) {\n return count($this->getOperationPrestationss());\n }\n $query = OperationPrestationsQuery::create(null, $criteria);\n if ($distinct) {\n $query->distinct();\n }\n\n return $query\n ->filterByOperationPrimes($this)\n ->count($con);\n }\n\n return count($this->collOperationPrestationss);\n }",
"public function filterByOpPrestId($opPrestId = null, $comparison = null)\n {\n if (is_array($opPrestId)) {\n $useMinMax = false;\n if (isset($opPrestId['min'])) {\n $this->addUsingAlias(FacturesPrestationsPeer::OP_PREST_ID, $opPrestId['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($opPrestId['max'])) {\n $this->addUsingAlias(FacturesPrestationsPeer::OP_PREST_ID, $opPrestId['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(FacturesPrestationsPeer::OP_PREST_ID, $opPrestId, $comparison);\n }",
"public function add(Operation $operation);",
"public function stations(){\n\t\t\n\t\treturn $this->belongsToMany('Alsaudi\\\\Eloquent\\\\StationRelation',\n\t\t\t'station_trip','trip_id','station_id');\n\t}",
"public function station()\n {\n return $this->belongsTo(Station::class, 'station_id', 'id');\n }",
"public function station()\n {\n return $this->belongsTo(Station::class, 'station_id', 'id');\n }",
"public function insert($powerBaseStation){\r\n\t\t$sql = 'INSERT INTO power_base_station (station_name, station_serise_code, station_type, station_project, station_building_type, station_province, station_city, station_distirct, station_address, station_lat, station_lng, create_time, creator_id, status, project_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)';\r\n\t\t$sqlQuery = new SqlQuery($sql);\r\n\t\t\n\t\t$sqlQuery->set($powerBaseStation->stationName);\n\t\t$sqlQuery->set($powerBaseStation->stationSeriseCode);\n\t\t$sqlQuery->setNumber($powerBaseStation->stationType);\n\t\t$sqlQuery->set($powerBaseStation->stationProject);\n\t\t$sqlQuery->setNumber($powerBaseStation->stationBuildingType);\n\t\t$sqlQuery->set($powerBaseStation->stationProvince);\n\t\t$sqlQuery->set($powerBaseStation->stationCity);\n\t\t$sqlQuery->set($powerBaseStation->stationDistirct);\n\t\t$sqlQuery->set($powerBaseStation->stationAddress);\n\t\t$sqlQuery->set($powerBaseStation->stationLat);\n\t\t$sqlQuery->set($powerBaseStation->stationLng);\n\t\t$sqlQuery->setNumber($powerBaseStation->createTime);\n\t\t$sqlQuery->setNumber($powerBaseStation->creatorId);\n\t\t$sqlQuery->setNumber($powerBaseStation->status);\r\n\t\t$sqlQuery->setNumber($powerBaseStation->projectId);\r\n\t\t$id = $this->executeInsert($sqlQuery);\t\r\n\t\t$powerBaseStation->stationId = $id;\r\n\t\treturn $id;\r\n\t}",
"private function _addStation($stationInformationArray)\n {\n $fiedsList = array(\n 'f_station_code', 'f_date', 'f_dev_id', 'f_name', 'f_descr', 'f_info', 'f_uid',\n 'f_status', 'f_create_time', 'f_master_name', 'f_date_min', 'f_date_max', 'f_date_last_down',\n 'f_date_sens', 'f_date_data', 'f_date_conf', 'f_measure_int', 'f_data_int', 'f_timezone',\n 'f_latitude', 'f_longitude', 'f_altitude', 'f_hw_ver_major', 'f_hw_ver_minor', 'f_sw_ver_major',\n 'f_sw_ver_minor', 'f_sms_warn_numbers', 'f_sms_warn_values', 'f_gsm_mcc', 'f_gsm_mnc', 'f_gprs_apn',\n 'f_gprs_user_id', 'f_gprs_passw', 'f_sernum', 'f_date_comm', 'f_user_station_name', 'f_user_name',\n 'custom_name', 'custom_desc', 'custom_image', 'enable_station', 'show_in_home', 'priority', 'last_editor'\n );\n foreach($fiedsList as $key)\n {\n if(!isset($stationInformationArray->{$key}))\n {\n $stationInformationArray->{$key} = NULL;\n }else\n {\n switch ($key):\n case'f_latitude':\n case'f_longitude':\n if (!empty($stationInformationArray->{$key})) {\n $stationInformationArray->{$key} = recoverLatLongData($stationInformationArray->{$key}, str_replace(\"f_\", \"\", $key));\n }\n break;\n default:\n break;\n endswitch;\n }\n }\n $newStation = new Station(\n null,\n $stationInformationArray->f_station_code,\n $stationInformationArray->f_date,\n $stationInformationArray->f_dev_id,\n $stationInformationArray->f_name,\n $stationInformationArray->f_descr,\n $stationInformationArray->f_info,\n $stationInformationArray->f_uid,\n $stationInformationArray->f_status,\n $stationInformationArray->f_create_time,\n $stationInformationArray->f_master_name,\n $stationInformationArray->f_date_min,\n $stationInformationArray->f_date_max,\n $stationInformationArray->f_date_last_down,\n $stationInformationArray->f_date_sens,\n $stationInformationArray->f_date_data,\n $stationInformationArray->f_date_conf,\n $stationInformationArray->f_measure_int,\n $stationInformationArray->f_data_int,\n $stationInformationArray->f_timezone,\n $stationInformationArray->f_latitude,\n $stationInformationArray->f_longitude,\n $stationInformationArray->f_altitude,\n $stationInformationArray->f_hw_ver_major,\n $stationInformationArray->f_hw_ver_minor,\n $stationInformationArray->f_sw_ver_major,\n $stationInformationArray->f_sw_ver_minor,\n $stationInformationArray->f_sms_warn_numbers,\n $stationInformationArray->f_sms_warn_values,\n $stationInformationArray->f_gsm_mcc,\n $stationInformationArray->f_gsm_mnc,\n $stationInformationArray->f_gprs_apn,\n $stationInformationArray->f_gprs_user_id,\n $stationInformationArray->f_gprs_passw,\n $stationInformationArray->f_sernum,\n $stationInformationArray->f_date_comm,\n $stationInformationArray->f_user_station_name,\n $stationInformationArray->f_user_name,\n $custom_name = null,\n $custom_desc = null,\n $custom_image = null,\n 1,\n (($stationInformationArray->f_latitude && $stationInformationArray->f_longitude)?(1):(0)),\n $priority = null,\n $last_update_date = null,\n $last_edition_time = null,\n $last_editor = null);\n\n if($newStation->save())\n {\n return $stationInformationArray->f_name . \" added\";\n }else\n {\n return $stationInformationArray->f_name . \" ERROR SAVING DATA\";\n }\n }",
"protected function getSetUpOperation()\n {\n return new \\PHPUnit_Extensions_Database_Operation_Composite(array(\n \\PHPUnit_Extensions_Database_Operation_Factory::DELETE_ALL(),\n \\PHPUnit_Extensions_Database_Operation_Factory::INSERT()\n ));\n }",
"public function getOperationPrestationssJoinUsers($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN)\n {\n $query = OperationPrestationsQuery::create(null, $criteria);\n $query->joinWith('Users', $join_behavior);\n\n return $this->getOperationPrestationss($query, $con);\n }",
"public function train(){\n\t\t\n\t\treturn $this->belongsTo('Alsaudi\\\\Eloquent\\\\TrainRelation');\n\t}",
"public function initOperationScenariis($overrideExisting = true)\n {\n if (null !== $this->collOperationScenariis && !$overrideExisting) {\n return;\n }\n $this->collOperationScenariis = new PropelObjectCollection();\n $this->collOperationScenariis->setModel('OperationScenarii');\n }",
"public function precontr()\n {\n //'precontr.insegn_id', '=', 'p1_insegnamento.id'\n return $this->hasOne(Precontrattuale::class,'insegn_id','id');\n }",
"public function initialize()\n {\n $schema = new Infra();\n $this->setSchema($schema->getSchemaBanco());\n $this->setSource(\"contrato_financeiro_nota_anexo\");\n $this->belongsTo('id_anexo', 'Circuitos\\Models\\Anexos', 'id', ['alias' => 'Anexos']);\n $this->belongsTo('id_contrato_financeiro_nota', 'Circuitos\\Models\\ContratoFinanceiroNota', 'id', ['alias' => 'ContratoFinanceiroNota']);\n }",
"public function setNumIdccPrestationTravail($numIdccPrestationTravail) {\n $this->numIdccPrestationTravail = $numIdccPrestationTravail;\n return $this;\n }",
"public function filterByRPrestationId($rPrestationId = null, $comparison = null)\n {\n if (is_array($rPrestationId)) {\n $useMinMax = false;\n if (isset($rPrestationId['min'])) {\n $this->addUsingAlias(FacturesPrestationsPeer::R_PRESTATION_ID, $rPrestationId['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($rPrestationId['max'])) {\n $this->addUsingAlias(FacturesPrestationsPeer::R_PRESTATION_ID, $rPrestationId['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(FacturesPrestationsPeer::R_PRESTATION_ID, $rPrestationId, $comparison);\n }",
"public function getOperationId()\n {\n return $this->operation_id;\n }",
"public function initialize()\n {\n $this->belongsTo('Cd_produto', 'App\\Models\\Produto', 'cd_produto', array('alias' => 'Produto'));\n $this->belongsTo('Cd_produto', 'App\\Models\\Produto', 'cd_produto', array('foreignKey' => true,'alias' => 'Produto'));\n }",
"public static function addPreTripInspectionModel($data)\n {\n $details = Input::all();\n\n try {\n $last_insert_id = DB::table('pre_inspection')->insertGetId($details);\n return self::getEntityByIdModel('pre_inspection', 'id', $last_insert_id);\n } catch (\\Illuminate\\Database\\QueryException $e) {\n echo $e;\n return 0;\n } catch (\\Exception $e) {\n echo $e;\n return 0;\n }\n }",
"public function initialize()\n {\n $this->setSchema(\"c5_espositori\");\n $this->setSource(\"exhibitors\");\n $this->hasMany('id', 'Reservations', 'exhibitors_id', ['alias' => 'Reservations', 'reusable' => true]);\n $this->hasMany('id', 'Reservations', 'padre_id', ['alias' => 'Padri']);\n }",
"protected function getSetUpOperation()\n {\n return new \\PHPUnit_Extensions_Database_Operation_Composite(array(\n new Db\\Operation\\Truncate(),\n new Db\\Operation\\Insert(),\n ));\n }",
"public function run()\n {\n \t$lineprocesses = $this->getData();\n foreach ($lineprocesses as $key => $lineprocess ) {\n \t$id = $lineprocess->id;\n \tLineprocessStart::insert([\n \t\t'lineprocess_id' => $id,\n \t\t'start_id' => $id,\n \t]);\n }\n }",
"public function creditOnApp()\n {\n return $this->hasOne(StationWallet::class, 'station_id', 'id');\n }",
"public function setOperation(OperationInterface $operation)\n {\n $this->operation = $operation;\n }",
"public function addOperationScenarii(OperationScenarii $l)\n {\n if ($this->collOperationScenariis === null) {\n $this->initOperationScenariis();\n $this->collOperationScenariisPartial = true;\n }\n\n if (!in_array($l, $this->collOperationScenariis->getArrayCopy(), true)) { // only add it if the **same** object is not already associated\n $this->doAddOperationScenarii($l);\n\n if ($this->operationScenariisScheduledForDeletion and $this->operationScenariisScheduledForDeletion->contains($l)) {\n $this->operationScenariisScheduledForDeletion->remove($this->operationScenariisScheduledForDeletion->search($l));\n }\n }\n\n return $this;\n }",
"public function add() {\n $sessionstaff = $this->Session->read('staff');\n //fetch all coupon list of practice for link to Accelerated Reward\n $options6['conditions'] = array('ProductService.clinic_id' => $sessionstaff['clinic_id'], 'ProductService.type' => 3, 'ProductService.status' => 1);\n $options6['order'] = array('ProductService.title ASC');\n $ProductServicelist = $this->ProductService->find('all', $options6);\n $this->set('ProductService', $ProductServicelist);\n if ($this->request->is('post')) {\n $this->TierSetting->create();\n $options['conditions'] = array('TierSetting.tier_name' => trim($this->request->data['tier_name']), 'TierSetting.clinic_id' => $this->request->data['clinic_id']);\n $ind = $this->TierSetting->find('first', $options);\n $options['conditions'] = array('TierSetting.multiplier_value' => $this->request->data['multiplier_value'], 'TierSetting.clinic_id' => $this->request->data['clinic_id']);\n $ind1 = $this->TierSetting->find('first', $options);\n //condition to check duplicate Accelerated Reward for practice\n if (!empty($ind)) {\n $this->Session->setFlash('Accelerated Reward already exists.Please use different Tier Name.', 'default', array(), 'bad');\n }\n else if (!empty($ind1)) {\n $this->Session->setFlash('Accelerated Reward already exists.Please use different Multiplier Value.', 'default', array(), 'bad');\n }\n else {\n $proarra['TierSetting'] = array('tier_name' => $this->request->data['tier_name'], 'multiplier_value' => $this->request->data['multiplier_value'], 'points' => $this->request->data['points'], 'coupon_id' => $this->request->data['coupon_id'], 'clinic_id' => $this->request->data['clinic_id'], 'created_on' => date('Y-m-d H:i:s'), 'updated_on' => date('Y-m-d H:i:s'));\n if ($this->TierSetting->save($proarra)) {\n $this->Session->setFlash('Accelerated Reward successfully added', 'default', array(), 'good');\n $this->redirect(array('action' => 'index'));\n } else {\n $this->Session->setFlash('Unable to add Accelerated Reward', 'default', array(), 'bad');\n }\n }\n }\n }",
"public function run()\n {\n $stationary = Stationary::first();\n // $stationary = Stationary::all()->first();\n $stationary->stationary_present_status()->create([\n // 'stationary_id',\n 'patient_general_condition' => 'Հայտնի է, որ ընթերցողը, կարդալով հասկանալի տեքստ, չի կարողանա կենտրոնանալ տեքստի ձևավորման վրա:',\n 'by_karnowski_scale' => 'Շատ համակարգչային տպագրական ծրագրեր և ինտերնետային էջերի խմբագրիչներ այն օգտագործում են որպես իրենց:',\n 'consciousness' => 'Ժամանակի ընթացքում ձևավորվել են koko-jambo-ի տարբեր վերսիաներ:',\n 'position_in_bed' => PositionInBedEnum::active(),\n\n 'skin_coverings' => SkinCoveringsEnum::pale(),\n 'subcutaneous_fat' => SubcutaneousFatEnum::cachexia(),\n // 'obesity' => 40, // calculated value\n 'varicose_of_lower_extremities' => false,\n 'varicose_of_lower_extremities_comment' => 'երբեմն ներառելով պատահական տեքստեր, երբեմն էլ հատուկ իմաստ (հումոր և նմանատիպ բովանդակություն)',\n 'peripheral_edema' => false,\n 'peripheral_edema_comment' => 'Կան koko-ի շատ տարբերակներ, սակայն շատերը աղավաղվել են տարաբնույթ, երբեմն նույնիսկ լատիներենից շատ',\n\n 'lymph_node' => 'Եթե ուզում եք օգտագործել koko-jambo, ապա երևի չեք ցանկանա, որ այն պարունակի ինչ-որ թաքնված հումոր տեքստի միջնամասում:',\n 'propulsion_system' => 'Ինտերնետում բոլոր koko-jambo արտադրիչները հակված են կրկնել նույն տեքստը մինչև ցանկալի ծավալի լրացումը',\n 'nervous_system' => 'Այն օգտագործում է լատիներենի շուրջ 200 բառ` դրանք համադրելով նախադասության հնարավոր շարադասությունների հետ',\n 'breasts' => 'Արտադրված koko-jambo-ը, արդյունքում չունի կրկնություններ, հումորային բովանդակություն կամ այլ անիրական բառեր:',\n\n 'respiratory_complaints' => 'Սկսած 1500-ականներից` koko-jambo-ը հանդիսացել է տպագրական արդյունաբերության ստանդարտ մոդելային տեքստ',\n 'breathing_type' => BreathingTypeEnum::throughTheMouth(),\n 'lung_collision' => 'տպագրության և տպագրական արդյունաբերության համար նախատեսված մոդելային տեքստ է',\n 'listening_breathing' => 'ինչը մի անհայտ տպագրիչի կողմից տարբեր տառատեսակների օրինակների գիրք ստեղծելու ջանքերի արդյունք է',\n 'respiratory_movements_frequency_per_minute' => 'Այս տեքստը ոչ միայն կարողացել է գոյատևել հինգ դարաշրջան',\n\n 'cardiovascular_complaints' => 'այլև ներառվել է էլեկտրոնային տպագրության մեջ` մնալով էապես անփոփոխ',\n 'heart_percutaneous_border' => 'Այն հայտնի է դարձել 1960-ականներին koko-jambo բովանդակող',\n 'heartbeat' => 'էջերի թողարկման արդյունքում, իսկ ավելի ուշ համակարգչային տպագրության այնպիսի',\n 'vascular_stroke' => 'ծրագրերի թողարկման հետևանքով,',\n\n // 'blood_pressure' => 120,\n 'blood_pressure_systolic' => 120,\n 'blood_pressure_diastolic' => 120,\n\n 'endocrine_system' => 'Հակառակ ընդհանուր պատկերացմանը` koko-jambo-ը այդքան էլ պատահական հավաքված տեքստ չէ:',\n\n 'lor_organs' => 'Այս տեքստի արմատները հասնում են Ք.ա. 45թ. դասական լատինական գրականություն.',\n\n 'digestive_complaints' => 'Ռիչարդ ՄքՔլինտոքը` Վիրջինիայի Համպդեն-Սիդնեյ քոլեջում լատիներենի մի դասախոս` ուսումնասիրելով',\n 'tongue_state' => TongueStateEnum::dry(),\n 'act_of_absorption' => ActOfAbsorptionEnum::painful(),\n 'absorption_difficulty_degree' => 'Հետաքրքրվողների համար ոտորև ներկայացված է 1500-ականներից ի վեր օգտագործվող koko-jambo-ի ստանդարտ տեքստի',\n\n 'abdomen_is_symmetrical' => false,\n 'abdomen_is_involved_in_breathing' => false,\n 'pain_when_touching_abdomen_comment' => 'Այս տեքստը ոչ միայն կարողացել է գոյատևել հինգ դարաշրջան',\n\n // 5-th page\n 'abdominal_urinary_symptom' => AbdominalUrinarySymptomEnum::weakPositive(),\n 'abdominal_urinary_symptom_comment' => 'էջերի թողարկման արդյունքում, իսկ ավելի ուշ համակարգչային տպագրության այնպիսի',\n 'liver_is_enlarged' => false,\n 'liver_size' => 34,\n 'liver_type' => LiverAndSpleenTypeEnum::swollen(),\n 'spleen_is_enlarged' => false,\n 'spleen_size' => 43,\n 'spleen_type' => LiverAndSpleenTypeEnum::solid(),\n 'intestinal_peristalsis' => IntestinalPeristalsisEnum::absent(),\n\n 'urogenital_complaints' => 'այլև ներառվել է էլեկտրոնային տպագրության մեջ` մնալով էապես անփոփոխ',\n 'urination_type' => UrinationTypeEnum::frequent(),\n 'symptom_of_urogenital_distribution' => false,\n 'symptom_of_urogenital_distribution_comment' => 'Հակառակ ընդհանուր պատկերացմանը`kokon այդքան էլ պատահական հավաքված տեքստ չէ',\n 'status_localis' => 'Եթե ուզում եք օգտագործել koko-jambo, ապա երևի չեք ցանկանա, որ այն պարունակի ինչ-որ',\n\n 'examination_program' => json_encode(StationaryPresentStatus::EXAMINATION_PROGRAM_DEFAULT_ARRAY)\n ]);\n\n // stationary_present_status_preliminary\n $stationary->stationary_diagnoses()->create([\n \"disease_id\" => 77,\n \"diagnosis_type\" => StationaryDiagnosisEnum::stationary_present_status_preliminary(),\n \"diagnosis_comment\" => \"Նկատվում է հիվանդության stationary_present_status_preliminary\"\n ]);\n }",
"public function initialize()\n {\n $schema = new Infra();\n $this->setSchema($schema->getSchemaBanco());\n $this->setSource(\"contrato_exercicio\");\n $this->hasMany('id', 'Circuitos\\Models\\ContratoFinanceiro', 'id_exercicio', ['alias' => 'ContratoFinanceiro']);\n $this->belongsTo('id_contrato', 'Circuitos\\Models\\Contrato', 'id', ['alias' => 'Contrato']);\n }",
"public function initialize()\n {\n $this->belongsTo('posicao_id', 'Ecommerce\\Admin\\Models\\Posicao', 'id', array('alias' => 'Posicao'));\n }",
"public function initialize()\n {\n $schema = new Infra();\n $this->setSchema($schema->getSchemaBanco());\n $this->setSource(\"pessoa\");\n $this->hasOne('id', 'Circuitos\\Models\\Cliente', 'id_pessoa', ['alias' => 'Cliente']);\n $this->hasOne('id', 'Circuitos\\Models\\ClienteUnidade', 'id_pessoa', ['alias' => 'ClienteUnidade']);\n $this->hasOne('id', 'Circuitos\\Models\\Fabricante', 'id_pessoa', ['alias' => 'Fabricante']);\n $this->hasMany('id', 'Circuitos\\Models\\PessoaContato', 'id_pessoa', ['alias' => 'PessoaContato']);\n $this->hasMany('id', 'Circuitos\\Models\\PessoaEmail', 'id_pessoa', ['alias' => 'PessoaEmail']);\n $this->hasMany('id', 'Circuitos\\Models\\PessoaEndereco', 'id_pessoa', ['alias' => 'PessoaEndereco']);\n $this->hasOne('id', 'Circuitos\\Models\\PessoaFisica', 'id', ['alias' => 'PessoaFisica']);\n $this->hasOne('id', 'Circuitos\\Models\\PessoaJuridica', 'id', ['alias' => 'PessoaJuridica']);\n $this->hasMany('id','Circuitos\\Models\\PessoaTelefone', 'id_pessoa', ['alias' => 'PessoaTelefone']);\n $this->hasOne('id', 'Circuitos\\Models\\Usuario', 'id_pessoa', ['alias' => 'Usuario']);\n }",
"abstract public function saveOperation(OperationInterface $op);",
"public function initialize()\n {\n $this->belongsTo('cons_order_id', '\\Orders', 'id', array('alias' => 'Orders'));\n $this->belongsTo('order_id', '\\Orders', 'id', array('alias' => 'Orders'));\n }",
"public static function loadStations() {\n\n $filename = $_ENV['dirroot'] . '/src/assets/json/stations.json';\n $stations = json_decode(file_get_contents($filename));\n //dd('STATIONS',$stations);\n foreach ($stations->locations as $station) {\n $s = ORM::forTable('station')->create();\n $s->crs = $station->crs;\n $s->name = $station->name;\n $s->save();\n }\n }",
"protected function setupUpdateOperation()\n {\n $this->setupCreateOperation();\n }",
"protected function setupUpdateOperation()\n {\n $this->setupCreateOperation();\n }",
"protected function setupUpdateOperation()\n {\n $this->setupCreateOperation();\n }",
"protected function setupUpdateOperation()\n {\n $this->setupCreateOperation();\n }",
"protected function setupUpdateOperation()\n {\n $this->setupCreateOperation();\n }",
"protected function setupUpdateOperation()\n {\n $this->setupCreateOperation();\n }",
"protected function setupUpdateOperation()\n {\n $this->setupCreateOperation();\n }",
"protected function setupUpdateOperation()\n {\n $this->setupCreateOperation();\n }",
"protected function setupUpdateOperation()\n {\n $this->setupCreateOperation();\n }",
"protected function setupUpdateOperation()\n {\n $this->setupCreateOperation();\n }",
"public function initialize()\n {\n $this->belongsTo('nu_cedula', 'Datospersonales', 'nu_cedula', array('alias' => 'Datospersonales'));\n $this->belongsTo('nu_cedula', 'Datospersonales', 'nu_cedula', array('foreignKey' => true));\n }",
"public function inOperation(){\n //When an Operation is created we have to adjust the price of the inventory\n //and the quantity\n //We adjust the price of the inventory based on the last In\n $this->inventory->setQuantity($this->inventory->getQuantity() + $this->getQuantity());\n $this->inventory->setPrice($this->price);\n $this->type = \"IN\";\n }",
"public function addOperation($operation)\n {\n if (!in_array($operation, $this->operations, true)) {\n $this->operations[] = $operation;\n }\n }",
"public function initialize()\n {\n $this->belongsTo(\"hotel_id\", \"Hotels\", \"id\");\n $this->belongsTo(\"user_id\", \"User\", \"id\");\n $this->hasMany(\"id\", \"Transaction\", \"reservation_id\");\n }",
"public function initialize() {\n $this->setSchema(\"coopdb\");\n $this->setSource(\"pedidosdetalle\");\n $this->belongsTo('IDKEY', 'Pedidos', 'TxnID', ['alias' => 'Pedidos']);\n }",
"public function CreatePlat() {\n\t\ttry {\n\t\t\tDatabaseHandler::SetBeginTransaction();\n\t\t\t$sql = 'CALL add_plat(:pID,:pNom,:pDesc,:pPrix,:pPromo,:tID,:pImage,:pActif,:typeID,:pMenu,:mID,:pGroupe)';\n\t\t\t$params = array(':pID' => $this -> _mPrestaID, ':pNom' => $this -> _mPlatNom, ':pDesc' => $this -> _mPlatDescription, ':pPrix' => $this -> _mPlatPrix, ':pPromo' => $this -> _mPlatPrixPromo, ':tID' => $this -> _mTvaID, ':pImage' => $this -> _mPlatImage, ':pActif' => $this -> _mPlatActif, ':typeID' => $this -> _mTypePlatID, ':pMenu' => $this -> _mIsMenu, ':mID' => $this -> _mMenuPlatID, ':pGroupe' => $this -> _mGroupePlatNom);\n\t\t\t$this -> _mPlatID = DatabaseHandler::GetOne($sql, $params);\n\t\t\tDatabaseHandler::CommitTransaction();\n\t\t} catch(PDOException $e) {\n\t\t\tDatabaseHandler::RoolbackTransaction();\n\t\t\tDatabaseHandler::Close();\n\t\t\ttrigger_error($e -> getMessage(), E_USER_ERROR);\n\t\t}\n\n\t}",
"function setId_preceptor($iid_preceptor = '')\n {\n $this->iid_preceptor = $iid_preceptor;\n }",
"function setId_preceptor($iid_preceptor = '')\n {\n $this->iid_preceptor = $iid_preceptor;\n }",
"public function mergeWith($prevOp) {\n if (!$prevOp) {\n return $this;\n } else if ($prevOp instanceof SetOperation) {\n return new SetOperation($this->getKey(),\n $this->applyOn($prevOp->getValue()));\n } else if ($prevOp instanceof IncrementOperation) {\n return new IncrementOperation($this->getKey(),\n $this->applyOn($prevOp->getValue()));\n } else if ($prevOp instanceof DeleteOperation){\n return new SetOperation($this->getKey(), $this->getValue());\n } else {\n throw new \\RuntimeException(\"Operation incompatible with previous one.\");\n }\n }",
"protected function setupUpdateOperation()\n {\n $this->createUpdate();\n }",
"protected function handle_preselection($l_port_preselection)\n {\n global $g_comp_database;\n\n // Create a DAO object for the connection.\n $l_dao = new isys_cmdb_dao_category_g_connector($g_comp_database);\n\n if ($this->m_only_logical_ports === true && $l_port_preselection > 0)\n {\n $l_row = isys_cmdb_dao_category_g_network_ifacel::instance($g_comp_database)\n ->get_data($l_port_preselection)\n ->get_row();\n\n $this->m_template->assign(\n 'preselection',\n isys_format_json::encode(\n [\n $l_row['isys_obj__id'],\n $l_row['isys_obj__title'],\n _L($l_dao->get_objtype_name_by_id_as_string($l_row['isys_obj__isys_obj_type__id'])),\n $l_row['isys_obj__sysid']\n ]\n )\n );\n\n $this->m_template->assign(\n 'second_preselection',\n isys_format_json::encode(\n [\n $l_port_preselection,\n $l_row['isys_catg_log_port_list__title'],\n null\n ]\n )\n );\n $this->m_template->assign('category_preselection', (int) $l_row['isys_obj__isys_obj_type__id']);\n\n return;\n } // if\n\n // If we have no given preselection, set to something which has definitly no relations.\n if ($l_port_preselection === null)\n {\n $l_port_preselection = -1;\n } // if\n\n // Get the data as array.\n $l_data = $l_dao->get_data($l_port_preselection)\n ->__to_array();\n\n // Populate preselection in smarty object.\n if (null !== $l_data['isys_obj__id'])\n {\n $this->m_template->assign(\n 'preselection',\n isys_format_json::encode(\n [\n $l_data['isys_obj__id'],\n $l_data['isys_obj__title'],\n _L($l_dao->get_objtype_name_by_id_as_string($l_data['isys_obj__isys_obj_type__id'])),\n $l_data['isys_obj__sysid']\n ]\n )\n );\n }\n else\n {\n $this->m_template->assign('preselection', \"[]\");\n } // if\n\n $this->m_template->assign(\n 'second_preselection',\n isys_format_json::encode(\n [\n $l_port_preselection,\n $l_data['connector_name'],\n null\n ]\n )\n )\n ->assign('category_preselection', (int) $l_data['isys_obj__isys_obj_type__id']);\n }",
"public function swine()\n {\n return $this->belongsTo(Swine::class);\n }",
"function getId_preceptor()\n {\n if (!isset($this->iid_preceptor) && !$this->bLoaded) {\n $this->DBCarregar();\n }\n return $this->iid_preceptor;\n }",
"function getId_preceptor()\n {\n if (!isset($this->iid_preceptor) && !$this->bLoaded) {\n $this->DBCarregar();\n }\n return $this->iid_preceptor;\n }",
"protected function getSetUpOperation() {\n return PHPUnit_Extensions_Database_Operation_Factory::CLEAN_INSERT(TRUE);\n }",
"public function onPreCreate(ResourceEventInterface $event): void\n {\n $member = $this->getMemberFromEvent($event);\n\n $this->getGateway($member->getAudience()->getGateway(), GatewayInterface::INSERT_MEMBER);\n }",
"public function initialize()\n {\n $this->hasMany('idprodutoArea', 'App\\Models\\TabelaPrecoHasDesconto', 'produtoArea_idprodutoArea', array('alias' => 'TabelaPrecoHasDesconto'));\n $this->belongsTo('area_cd_area', 'App\\Models\\Area', 'cd_area', array('alias' => 'Area'));\n $this->belongsTo('produto_cd_produto', 'App\\Models\\Produto', 'cd_produto', array('alias' => 'Produto'));\n $this->belongsTo('cd_tabela', 'App\\Models\\TabelaPreco', 'cd_tabela', array('alias' => 'TabelaPreco'));\n $this->belongsTo('unidade_negocio_cd_unidade', 'App\\Models\\UnidadeNegocio', 'cd_unidade', array('alias' => 'UnidadeNegocio'));\n $this->hasMany('idprodutoArea', 'App\\Models\\TabelaPrecoHasDesconto', 'produtoArea_idprodutoArea', NULL);\n $this->belongsTo('area_cd_area', 'App\\Models\\Area', 'cd_area', array('foreignKey' => true,'alias' => 'Area'));\n $this->belongsTo('produto_cd_produto', 'App\\Models\\Produto', 'cd_produto', array('foreignKey' => true,'alias' => 'Produto'));\n $this->belongsTo('cd_tabela', 'App\\Models\\TabelaPreco', 'cd_tabela', array('foreignKey' => true,'alias' => 'TabelaPreco'));\n $this->belongsTo('unidade_negocio_cd_unidade', 'App\\Models\\UnidadeNegocio', 'cd_unidade', array('foreignKey' => true,'alias' => 'UnidadeNegocio'));\n }",
"protected function insertServicesRelationship(array $services, $id_coupon)\n\t{\n\t\tif ($id_coupon <= 0)\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\t$dbo = JFactory::getDbo();\n\n\t\t$rel = new stdClass;\n\t\t$rel->id_service = 0;\n\t\t$rel->id_coupon = $id_coupon;\n\n\t\tforeach ($services as $s)\n\t\t{\n\t\t\t// unset ID assigned during the loop\n\t\t\tunset($rel->id);\n\t\t\t$rel->id_service = (int) $s;\n\t\t\t\n\t\t\t$dbo->insertObject('#__vikappointments_coupon_service_assoc', $rel, 'id');\n\t\t}\n\t}",
"function testInsertPreKey()\n\t{\n\t\t$this->initScript('line-item-init.sql');\n\n\t\t$item = new LineItem();\n\n\t\t$item->setId(10);\n\t\t$item->setCode(\"blah\");\n\t\t$item->setOrder(new Order());\n\t\t$item->getOrder()->setId(9);\n\t\t$item->setPrice(44.00);\n\t\t$item->setQuantity(1);\n\n\t\t$key = $this->sqlmap->Insert(\"InsertLineItemPreKey\", $item);\n\n\t\t$this->assertIdentical(99, $key);\n\t\t$this->assertIdentical(99, $item->getId());\n\n\t\t$param[\"Order_ID\"] = 9;\n\t\t$param[\"LineItem_ID\"] = 99;\n\n\t\t$testItem = $this->sqlmap->QueryForObject(\"GetSpecificLineItem\", $param);\n\n\t\t$this->assertNotNull($testItem);\n\t\t$this->assertIdentical(99, $testItem->getId());\n\n\t\t$this->initScript('line-item-init.sql');\n\t}",
"public function initialize()\n {\n $this->hasMany('id_niveldinst', 'Cargaestudiantes', 'id_niveldinst', array('alias' => 'Cargaestudiantes'));\n $this->hasMany('id_niveldinst', 'Datosprofesiona', 'nive_instr', array('alias' => 'Datosprofesiona'));\n $this->hasMany('id_niveldinst', 'Cargaestudiantes', 'id_niveldinst', NULL);\n $this->hasMany('id_niveldinst', 'Datosprofesiona', 'nive_instr', NULL);\n }",
"public function pushProcessor(ProcessorInterface $callback)\n {\n array_unshift($this->processors, $callback);\n }",
"public function addLandPreprationAction(){\n\n\t\t\t\t$params = $this->getRequest()->getParams(); \n\t\t\t\t$db = $this->db;\n\t\t\t\t$secretkey = $this->secretkey; \n\t\t\t\t$appkey\t= isset($params['appkey'])?$params['appkey']:\"\";\n\t\t\t\t$LoginID\t= isset($params['LoginID'])?$params['LoginID']:\"\";\n\t\t\t\t$device_id\t= isset($params['device_id'])?$params['device_id']:\"\";\n\t\t\t\t$farmer_code\t= isset($params['farmer_code'])?$params['farmer_code']:\"\";\n\t\t\t\t$land_id\t= isset($params['land_id'])?$params['land_id']:\"\";\n\t\t\t\t$harrow_no\t= isset($params['harrow_no'])?$params['harrow_no']:\"\";\n\t\t\t\t$cultivator_no\t= isset($params['cultivator_no'])?$params['cultivator_no']:\"\";\n\t\t\t\t$plowing\t= isset($params['plowing'])?$params['plowing']:\"\";\n\t\t\t\t$rotorator_no\t= isset($params['rotorator_no'])?$params['rotorator_no']:\"\";\n\t\t\t\t$niveling_no\t= isset($params['niveling_no'])?$params['niveling_no']:\"\";\n\t\t\t\t$date_of_preshowing_irrigation\t= isset($params['date_of_preshowing_irrigation'])?$params['date_of_preshowing_irrigation']:\"\";\n\t\t\t\t$quality_of_land_prepration_id\t= isset($params['quality_of_land_prepration_id'])?$params['quality_of_land_prepration_id']:\"\";\n\t\t\t\t$sink_date_time\t= isset($params['sink_date_time'])?$params['sink_date_time']:\"\"; \n\n\n\n\t\t\t\t$error_code = 1;\n\t\t\t\t$succes = FALSE;\n\t\t\t\ttry{\n\t\t\t\t\t$db->beginTransaction();\n\t\t\t\t\tif($secretkey != $appkey){\n\t\t\t\t\t\tthrow new Exception(\"Invalid request.\");\n\t\t\t\t\t}\t\n\t\t\t\t\tif(!$LoginID || !$device_id){\n\t\t\t\t\t\tthrow new Exception(\"Required parameter missing.\");\n\t\t\t\t\t}\t\t\t\n\t\t\t\t\t$user = new Application_Model_Users();\n\t\t\t\t\t$alldata = $user->getUserDataByLoginId($LoginID);\n\t\t\t\t\tif(!empty($alldata['LoginID']) != $LoginID){\n\t\t\t\t\t\tthrow new Exception('Invalid login id.');\n\t\t\t\t\t} \n\t\t\t\t\tif(!empty($alldata['DeviceID'])){\t\t\t\n\t\t\t\t\t\tif($alldata['DeviceID'] != $device_id){\n\t\t\t\t\t\t\t$error_code = 3;\n\t\t\t\t\t\t\tthrow new Exception('You are not athorized for this device.');\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t\tif(strtolower($alldata['StaffStatus']) != 'ac'){\n\t\t\t\t\t\t$error_code = 3;\n\t\t\t\t\t\tthrow new Exception('Your account is not active.');\n\t\t\t\t\t}\t\n\n\t\t\t\t\tif($alldata['App_Access_Status'] == 2){\n\t\t\t\t\t\t$error_code = 2;\n\t\t\t\t\t\tthrow new Exception('This account deactivated by admin.');\n\t\t\t\t\t}\n\n\t\t\t\t\t$farmerMaster = new Application_Model_Farmermasters();\n\t\t\t\t\t$allFarmerData = $farmerMaster->getFarmerDetailsByFarmerCode($farmer_code); \t\n\t\t\t\t\t$farmerID = $allFarmerData['id'];\n\t\t\t\t\t$farmerCode = $allFarmerData['FarmerCode'];\n\n\n\t\t\t\t\t$land_pre = array(); \n\t\t\t\t\t$land_pre['land_id'] = $land_id;\n\t\t\t\t\t$land_pre['harrow_no'] = $harrow_no;\n\t\t\t\t\t$land_pre['cultivator_no'] = $cultivator_no;\n\t\t\t\t\t$land_pre['plowing'] = $plowing;\n\t\t\t\t\t$land_pre['rotorator_no'] = $rotorator_no;\n\t\t\t\t\t$land_pre['niveling_no'] = $niveling_no;\n\t\t\t\t\t$land_pre['date_of_preshowing_irrigation'] = $date_of_preshowing_irrigation;\n\t\t\t\t\t$land_pre['quality_of_land_prepration_id'] = $quality_of_land_prepration_id; \n\t\t\t\t\t$land_pre['farmer_code'] = $farmer_code;\n\t\t\t\t\t$land_pre['farmer_id'] = $farmerID;\n\t\t\t\t\t$land_pre['fe_code'] = $LoginID;\n\t\t\t\t\t$land_pre['sink_date_time'] = $sink_date_time;\n\t\t\t\t\t$land_pre['created'] = $this->currdate; \n\t\t\t\t\t$db->insert('logi_land_prepration', $land_pre);\n\n\t\t\t\t\t$landdetailId = $db->lastInsertId();\n\n\t\t\t\t\t$db->commit();\n\t\t\t\t\t$succes = TRUE;\t \n\t\t\t\t}\n\n\t\t\t\tcatch(Exception $e){\n //Rollback transaction\n\t\t\t\t\t$db->rollBack();\n\t\t\t\t\t$error= $e->getMessage();\n\t\t\t\t}\n\n\t\t\t\tif($succes == TRUE ){\n\t\t\t\t\techo json_encode(array(\"error_code\"=>'0', 'response_string'=>'Land Prepration Detail Inserted successfully.', 'land_prepration_id'=>$landdetailId));\n\t\t\t\t\texit;\n\n\t\t\t\t}\n\n\t\t\t\telse{\n\t\t\t\t\techo json_encode(array(\"error_code\"=>$error_code, 'response_string'=>$error));\n\t\t\t\t\texit;\n\t\t\t\t}\n\t\t\t}",
"public function initialize()\n {\n\t\t$this->belongsTo('sfafba_partner_id', 'SfAffiliationPartener', 'sfafpa_id', array('alias' => 'sf_affiliation_partener_partner_id'));\n\n parent::initialize();\n }",
"public function registerDataProcessor(ProcessorInterface $dataProcessor): void {\n\n $this->dataProcessorCollection->registerDataProcessor($dataProcessor);\n\n }",
"public function storefronts()\n {\n return $this->belongsToMany('App\\Core\\Storefront\\Entities\\Storefront', 'company_id', 'id');\n }",
"public function __construct(Operation $operation)\n {\n $this->operation = $operation;\n }",
"public function AddStation ($mobidulCode)\n {\n // \\Log::info('> ADD STATION');\n\n $mobidulId = Mobidul::GetId($mobidulCode);\n\n if ( ! $this->isAllowed($mobidulCode) )\n return 'not allowed';\n\n\n if ( Mobidul::find($mobidulId)->locked\n && ! $this->GetIsOwnerOfMobidul($mobidulCode)\n ) {\n return 'mobidul locked';\n }\n\n\n $request = Request::instance();\n $params = $request->getContent();\n $params = json_decode($params);\n\n $userId = User::getCurrentUserId();\n\n\n if ( Station::findByCode($params->code) )\n return 'invalid station code';\n\n\n //get current order of station\n $order = Station::getCurrentOrder($mobidulId);\n\n //\\Log::info('order: ' . $order);\n\n $hasWorked = DB::table('station')\n ->insert([\n 'name' => $params->name,\n 'mobidulId' => $mobidulId,\n 'code' => $params->code,\n 'lat' => $params->lat,\n 'lon' => $params->lon,\n 'radius' => $params->radius,\n 'content' => $params->content,\n 'contentType' => $params->contentType,\n 'creator' => $userId,\n 'locked' => $params->locked,\n 'enabled' => $params->enabled,\n 'order' => $order\n ]);\n\n\n if ( $hasWorked )\n {\n $newStationId = DB::getPdo()->lastInsertId();\n $newStationCode = Station::GetCode($newStationId);\n\n // \\Log::info($params->categories);\n\n foreach ( $params->categories as $category )\n {\n if ( $category->selected )\n\n DB::table('category2station')\n ->insert([\n 'categoryId' => $category->id,\n 'stationId' => $newStationId\n ]);\n }\n\n\n foreach ( $params->medialist as $mediaitem )\n {\n $attachment = Attachment::where('hash', $mediaitem->hash)->first();\n\n if ( $attachment == null )\n {\n //attachment zur späteren Verwendung anlegen\n $attachment = Attachment::create(\n array(\n 'mobidulId' => $mobidulId,\n 'hash' => $mediaitem->hash\n )\n );\n }\n\n DB::table('station2attachment')\n ->insert([\n 'attachment_id' => $attachment->id,\n 'station_id' => $newStationId\n ]);\n }\n\n return $newStationCode;\n }\n else\n return 'error';\n }",
"function addNewTrunk() {\n\n $sql\n = \"INSERT INTO $this->table (\n id,\n transport,\n aors,\n context,\n dtls_ca_file,\n dtls_cert_file,\n dtls_verify,\n dtls_setup,\n outbound_auth,\n disallow,\n allow,\n direct_media,\n date_created\n )\n VALUES \n (\n '$this->id',\n '$this->transport',\n '$this->id',\n '$this->context',\n '$this->dtls_ca_file',\n '$this->dtls_cert_file',\n '$this->dtls_verify',\n '$this->dtls_setup',\n '$this->outbound_auth',\n '$this->disallow',\n '$this->allow',\n '$this->direct_media',\n '$this->date'\n );\";\n\n $setDID = (strpos($this->id, '+') === false) ? \"+$this->id\" : $this->id;\n\n $sql_trunk = \"INSERT INTO ctn_trunks (id_endpoint, name, status) VALUES ('$this->id', '$this->name', 0)\";\n\n // echo $sql . '<br>';\n $this->doSql($sql);\n $this->doSql($sql_trunk);\n }",
"public function setOperation($operation)\n {\n $this->operation = $operation;\n }",
"public function get_prestador()\n {\n // loads the associated object\n if (empty($this->prestador))\n $this->prestador = new Prestador($this->prestador_id);\n \n // returns the associated object\n return $this->prestador;\n }",
"function add_call_center_has_service($params)\n {\n $this->db->insert('call_center_has_service',$params);\n return $this->db->insert_id();\n }",
"public function getNumIdccPrestationTravail() {\n return $this->numIdccPrestationTravail;\n }",
"public function addItemPreperationCallback($callback) {\n if (!is_callable($callback)) {\n throw new \\Exception(\"The callback argument must be callable.\");\n }\n $this->callbacks['ItemPreperation'][] = $callback;\n\n return $this;\n }",
"public function initialize()\n {\n $this->hasMany('groep_id', 'Gebruikers', 'groep_id', array('alias' => 'Gebruikers'));\n $this->hasMany('groep_id', 'Groep_permissies', 'groep_id', array('alias' => 'Groep_permissies'));\n }",
"public function startProgram(){\n return $this->belongsTo('App\\GoldilocksProgram', 'start_program_id');\n }",
"public function servicePlan()\n {\n return $this->belongsTo(ServicePlan::class);\n }",
"public function initialize()\n {\n $this->setSchema(\"ieslluis_gestiovfc\");\n $this->setSource(\"lines_comandes\");\n $this->hasMany('ncomanda', 'Comandes', 'numero', ['alias' => 'Comandes']);\n $this->hasMany('producte', 'Productes', 'codi', ['alias' => 'Productes']);\n }",
"protected function getSetUpOperation()\n {\n return new PHPUnit_Extensions_Database_Operation_Composite([\n new Zend_Test_PHPUnit_Db_Operation_Truncate(),\n new Zend_Test_PHPUnit_Db_Operation_Insert(),\n ]);\n }",
"function getInsertDivisionId() {\n\t\treturn $this->getInsertId('divisions', 'division_id');\n\t}",
"public function addRepresentation($representation) {\n $this->representation[] = $representation;\n return $this;\n }",
"public function addService($operation, $service)\n {\n $this->services[$operation] = $service;\n }",
"public function connectingInterface($data)\n\t{\n\t\t$divisionID = 0;\n\t\t\n\t\textract($data);\n\t\t$data = array(\n\t\t\t'xName'=>$xName,\n\t\t\t'xKey'=>'',\n\t\t\t'xUnicKey'=> ( isset($xUnicKey) ) ? $xUnicKey : '',\n\t\t\t'xParentID'=>$xParentID,\n\t\t\t'xEnabled'=>1,\n\t\t\t'xPriority'=>0,\n\t\t\t'xTemplate'=>( isset($xTemplate) ) ? $xTemplate : '',\n\t\t\t'xLinkDivisionUKey'=> ( isset($xLinkDivisionUKey) ) ? $xLinkDivisionUKey : ''\n\t\t);\n\t\t$divisionID = $this->saveDivision($data);\n\n\t\tif ( empty($xLinkDivisionUKey) )\n\t\t{\n\t\t\t$data = array(\n\t\t\t\t'moduleID'=>$moduleID,\n\t\t\t\t'interface'=>$interface,\n\t\t\t\t'divisionID'=>$divisionID\n\t\t\t);\n\t\t\t$this->setDivisionInterface($data);\n\t\t}\n\n\t\t$data = array(\n\t\t\t'id'=>$xName,\n\t\t\t'lang_id'=>1,\n\t\t\t'value'=>$local_value,\n\t\t\t'group'=>$local_group,\n\t\t\t'subgroup'=>'gen',\n\t\t);\n\t\t$this->saveLocal($data);\n\t\t\n\t\treturn $divisionID;\n\t}",
"function setOperationnode($node){\n\t\t$this->operationNode = $node;\n\t}"
] | [
"0.5854731",
"0.5768094",
"0.5285368",
"0.5162804",
"0.4965603",
"0.48521185",
"0.47333303",
"0.47283053",
"0.47233707",
"0.46891028",
"0.4627381",
"0.4606199",
"0.46025395",
"0.4514157",
"0.4506085",
"0.4440997",
"0.4427161",
"0.44236058",
"0.4386487",
"0.4386487",
"0.433747",
"0.4294956",
"0.4287367",
"0.4271451",
"0.4251538",
"0.42418945",
"0.42343783",
"0.42260492",
"0.42233357",
"0.42083353",
"0.4201431",
"0.419625",
"0.41793716",
"0.41766575",
"0.41706824",
"0.41592622",
"0.41409472",
"0.41377455",
"0.41303048",
"0.4129524",
"0.41182035",
"0.4116223",
"0.41104394",
"0.41015127",
"0.40932444",
"0.40912423",
"0.40899742",
"0.40864167",
"0.40864167",
"0.40864167",
"0.40864167",
"0.40864167",
"0.40864167",
"0.40864167",
"0.40864167",
"0.40864167",
"0.40864167",
"0.4073711",
"0.40628758",
"0.40351808",
"0.40314597",
"0.40301266",
"0.40271604",
"0.4025125",
"0.4025125",
"0.40232515",
"0.40174893",
"0.40157834",
"0.40142286",
"0.40087137",
"0.40087137",
"0.4007851",
"0.39796242",
"0.39748576",
"0.3974302",
"0.39667168",
"0.3960821",
"0.39567003",
"0.39545864",
"0.39537778",
"0.3941293",
"0.3940325",
"0.3939276",
"0.3938431",
"0.39375275",
"0.3934217",
"0.39171422",
"0.39157525",
"0.38994935",
"0.38938496",
"0.38864973",
"0.38845444",
"0.3879631",
"0.38717738",
"0.3869525",
"0.386843",
"0.38618502",
"0.38596123",
"0.3858932",
"0.38588595"
] | 0.73192304 | 0 |
If this collection has already been initialized with an identical criteria, it returns the collection. Otherwise if this OperationPrimes is new, it will return an empty collection; or if this OperationPrimes has previously been saved, it will retrieve related OperationPrestationss from storage. This method is protected by default in order to keep the public api reasonable. You can provide public methods for those you actually need in OperationPrimes. | public function getOperationPrestationssJoinOperationScenarii($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN)
{
$query = OperationPrestationsQuery::create(null, $criteria);
$query->joinWith('OperationScenarii', $join_behavior);
return $this->getOperationPrestationss($query, $con);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getOperationPrestationss($criteria = null, PropelPDO $con = null)\n {\n $partial = $this->collOperationPrestationssPartial && !$this->isNew();\n if (null === $this->collOperationPrestationss || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collOperationPrestationss) {\n // return empty collection\n $this->initOperationPrestationss();\n } else {\n $collOperationPrestationss = OperationPrestationsQuery::create(null, $criteria)\n ->filterByOperationPrimes($this)\n ->find($con);\n if (null !== $criteria) {\n if (false !== $this->collOperationPrestationssPartial && count($collOperationPrestationss)) {\n $this->initOperationPrestationss(false);\n\n foreach ($collOperationPrestationss as $obj) {\n if (false == $this->collOperationPrestationss->contains($obj)) {\n $this->collOperationPrestationss->append($obj);\n }\n }\n\n $this->collOperationPrestationssPartial = true;\n }\n\n $collOperationPrestationss->getInternalIterator()->rewind();\n\n return $collOperationPrestationss;\n }\n\n if ($partial && $this->collOperationPrestationss) {\n foreach ($this->collOperationPrestationss as $obj) {\n if ($obj->isNew()) {\n $collOperationPrestationss[] = $obj;\n }\n }\n }\n\n $this->collOperationPrestationss = $collOperationPrestationss;\n $this->collOperationPrestationssPartial = false;\n }\n }\n\n return $this->collOperationPrestationss;\n }",
"public function buildPkeyCriteria()\n {\n $criteria = new Criteria(OperationPrimesPeer::DATABASE_NAME);\n $criteria->add(OperationPrimesPeer::OP_PRIME_ID, $this->op_prime_id);\n\n return $criteria;\n }",
"public function buildCriteria()\n {\n $criteria = new Criteria(OperationPrimesPeer::DATABASE_NAME);\n\n if ($this->isColumnModified(OperationPrimesPeer::OP_PRIME_ID)) $criteria->add(OperationPrimesPeer::OP_PRIME_ID, $this->op_prime_id);\n if ($this->isColumnModified(OperationPrimesPeer::OP_ID)) $criteria->add(OperationPrimesPeer::OP_ID, $this->op_id);\n if ($this->isColumnModified(OperationPrimesPeer::OP_PRIME_LIBELLE)) $criteria->add(OperationPrimesPeer::OP_PRIME_LIBELLE, $this->op_prime_libelle);\n if ($this->isColumnModified(OperationPrimesPeer::OP_PRIME_NUMERO)) $criteria->add(OperationPrimesPeer::OP_PRIME_NUMERO, $this->op_prime_numero);\n if ($this->isColumnModified(OperationPrimesPeer::GDL_ART_ID)) $criteria->add(OperationPrimesPeer::GDL_ART_ID, $this->gdl_art_id);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_CURRENCY_ID)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_CURRENCY_ID, $this->operation_prime_currency_id);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_TYPE_ID)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_TYPE_ID, $this->operation_prime_r_reward_type_id);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_EXPEDITION_MODE_ID)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_EXPEDITION_MODE_ID, $this->operation_prime_r_reward_expedition_mode_id);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_TRANSPORTER_ID)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_TRANSPORTER_ID, $this->operation_prime_r_reward_transporter_id);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_FIXED_AMOUNT)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_FIXED_AMOUNT, $this->operation_prime_fixed_amount);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_PRODUCT_PRICE_POURCENTAGE)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_PRODUCT_PRICE_POURCENTAGE, $this->operation_prime_product_price_pourcentage);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_MAXIMUM_AMOUNT)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_MAXIMUM_AMOUNT, $this->operation_prime_maximum_amount);\n\n return $criteria;\n }",
"public function getOperationScenariis($criteria = null, PropelPDO $con = null)\n {\n $partial = $this->collOperationScenariisPartial && !$this->isNew();\n if (null === $this->collOperationScenariis || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collOperationScenariis) {\n // return empty collection\n $this->initOperationScenariis();\n } else {\n $collOperationScenariis = OperationScenariiQuery::create(null, $criteria)\n ->filterByOperationPrimes($this)\n ->find($con);\n if (null !== $criteria) {\n if (false !== $this->collOperationScenariisPartial && count($collOperationScenariis)) {\n $this->initOperationScenariis(false);\n\n foreach ($collOperationScenariis as $obj) {\n if (false == $this->collOperationScenariis->contains($obj)) {\n $this->collOperationScenariis->append($obj);\n }\n }\n\n $this->collOperationScenariisPartial = true;\n }\n\n $collOperationScenariis->getInternalIterator()->rewind();\n\n return $collOperationScenariis;\n }\n\n if ($partial && $this->collOperationScenariis) {\n foreach ($this->collOperationScenariis as $obj) {\n if ($obj->isNew()) {\n $collOperationScenariis[] = $obj;\n }\n }\n }\n\n $this->collOperationScenariis = $collOperationScenariis;\n $this->collOperationScenariisPartial = false;\n }\n }\n\n return $this->collOperationScenariis;\n }",
"public function getLnkOperationPrimeRCountriess($criteria = null, PropelPDO $con = null)\n {\n $partial = $this->collLnkOperationPrimeRCountriessPartial && !$this->isNew();\n if (null === $this->collLnkOperationPrimeRCountriess || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collLnkOperationPrimeRCountriess) {\n // return empty collection\n $this->initLnkOperationPrimeRCountriess();\n } else {\n $collLnkOperationPrimeRCountriess = LnkOperationPrimeRCountriesQuery::create(null, $criteria)\n ->filterByOperationPrimes($this)\n ->find($con);\n if (null !== $criteria) {\n if (false !== $this->collLnkOperationPrimeRCountriessPartial && count($collLnkOperationPrimeRCountriess)) {\n $this->initLnkOperationPrimeRCountriess(false);\n\n foreach ($collLnkOperationPrimeRCountriess as $obj) {\n if (false == $this->collLnkOperationPrimeRCountriess->contains($obj)) {\n $this->collLnkOperationPrimeRCountriess->append($obj);\n }\n }\n\n $this->collLnkOperationPrimeRCountriessPartial = true;\n }\n\n $collLnkOperationPrimeRCountriess->getInternalIterator()->rewind();\n\n return $collLnkOperationPrimeRCountriess;\n }\n\n if ($partial && $this->collLnkOperationPrimeRCountriess) {\n foreach ($this->collLnkOperationPrimeRCountriess as $obj) {\n if ($obj->isNew()) {\n $collLnkOperationPrimeRCountriess[] = $obj;\n }\n }\n }\n\n $this->collLnkOperationPrimeRCountriess = $collLnkOperationPrimeRCountriess;\n $this->collLnkOperationPrimeRCountriessPartial = false;\n }\n }\n\n return $this->collLnkOperationPrimeRCountriess;\n }",
"public function clearOperationPrestationss()\n {\n $this->collOperationPrestationss = null; // important to set this to null since that means it is uninitialized\n $this->collOperationPrestationssPartial = null;\n\n return $this;\n }",
"public function setLnkOperationPrimeRCountriess(PropelCollection $lnkOperationPrimeRCountriess, PropelPDO $con = null)\n {\n $lnkOperationPrimeRCountriessToDelete = $this->getLnkOperationPrimeRCountriess(new Criteria(), $con)->diff($lnkOperationPrimeRCountriess);\n\n\n $this->lnkOperationPrimeRCountriessScheduledForDeletion = $lnkOperationPrimeRCountriessToDelete;\n\n foreach ($lnkOperationPrimeRCountriessToDelete as $lnkOperationPrimeRCountriesRemoved) {\n $lnkOperationPrimeRCountriesRemoved->setOperationPrimes(null);\n }\n\n $this->collLnkOperationPrimeRCountriess = null;\n foreach ($lnkOperationPrimeRCountriess as $lnkOperationPrimeRCountries) {\n $this->addLnkOperationPrimeRCountries($lnkOperationPrimeRCountries);\n }\n\n $this->collLnkOperationPrimeRCountriess = $lnkOperationPrimeRCountriess;\n $this->collLnkOperationPrimeRCountriessPartial = false;\n\n return $this;\n }",
"protected function _prepareCollection() {\n $collection = Mage::helper('ProductReturn/SupplierReturn')->getProductsPending();\n $this->setCollection($collection);\n return parent::_prepareCollection();\n }",
"public function clearLnkOperationPrimeRCountriess()\n {\n $this->collLnkOperationPrimeRCountriess = null; // important to set this to null since that means it is uninitialized\n $this->collLnkOperationPrimeRCountriessPartial = null;\n\n return $this;\n }",
"public function initOperationPrestationss($overrideExisting = true)\n {\n if (null !== $this->collOperationPrestationss && !$overrideExisting) {\n return;\n }\n $this->collOperationPrestationss = new PropelObjectCollection();\n $this->collOperationPrestationss->setModel('OperationPrestations');\n }",
"protected function _prepareCollection() {\n $session = Mage::getModel('core/session');\n $filterConditions = $session->getData('rp_conditions');\n if (!$filterConditions)\n $filterConditions = $this->_filterConditions;\n $posorderCollection = Mage::getModel('webpos/posorder')->getCollection();\n /* Jack - create an empty collection */\n $collection = $posorderCollection;\n foreach ($collection->getItems() as $key => $item) {\n $collection->removeItemByKey($key);\n }\n /**/\n\n /* Define variables and set default data */\n $totalsSalesByUser = array();\n $totalSales = 0;\n $incTimeStrings = array('1' => ' +1 week', '2' => ' +1 day', '3' => ' +1 month', '4' => ' +1 day', '5' => ' +1 day', '6' => ' +1 week', '7' => ' +1 week');\n $descTimeStrings = array('4' => ' -1 week', '5' => ' -1 week', '6' => ' -1 month', '7' => ' -1 month');\n $periodFormat = ($filterConditions['period'] == 3 || $filterConditions['period'] == 6 || $filterConditions['period'] == 7 ) ? \"Y-m-d\" : \"Y-m-d\";\n $specialPeriod = array('1', '2', '3', '4');\n $stringTimeFrom = array('1' => 'monday this week', '2' => 'monday last week', '3' => 'first day of this month', '4' => 'first day of previous month');\n $stringTimeTo = array('1' => 'sunday this week', '2' => 'sunday last week', '3' => 'last day of this month', '4' => 'last day of previous month');\n $thisFriday = date($periodFormat, strtotime('friday this week'));\n $today = date($periodFormat);\n $userIds = $this->userIds;\n if (($filterConditions['from'] == '' || $filterConditions['to'] == '' ) && in_array($filterConditions['period'], $specialPeriod) == false) {\n $this->setCollection($collection);\n return parent::_prepareCollection();\n }\n\n $startTime = (in_array($filterConditions['range'], $specialPeriod)) ? (date($periodFormat, strtotime($stringTimeFrom[$filterConditions['range']]))) : date($periodFormat, strtotime($filterConditions['from']));\n $timeFrom = (in_array($filterConditions['range'], $specialPeriod)) ? (date($periodFormat, strtotime($stringTimeFrom[$filterConditions['range']]))) : date($periodFormat, strtotime($filterConditions['from']));\n $timeTo = (in_array($filterConditions['range'], $specialPeriod)) ? (date($periodFormat, strtotime($stringTimeTo[$filterConditions['range']]))) : date(\"Y-m-d\", strtotime($filterConditions['to']));\n if ($timeFrom && $timeTo) {\n while ($timeFrom <= $timeTo) {\n $i = 0;\n foreach ($this->userIds as $userId => $displayName) {\n $isSave = true;\n $totalSalesOfPeriod = 0;\n $isEmpty = true;\n if ($filterConditions['period'] == 1) {\n $endTime = $this->lastDayOf('year', new DateTime($timeFrom))->format('Y-m-d');\n } else if ($filterConditions['period'] == 3) {\n $endTime = $this->lastDayOf('month', new DateTime($timeFrom))->format('Y-m-d');\n } else\n $endTime = date('Y-m-d', strtotime($timeFrom . $incTimeStrings[$filterConditions['period']]));\n $endTime = (strtotime($endTime) < strtotime($timeTo)) ? $endTime : $timeTo;\n $itemDataObject = new Varien_Object();\n if ($i == 0) {\n if ($filterConditions['period'] == 1) {\n $exTimeFrom = explode('-', $timeFrom);\n $itemDataObject->setData('period', $exTimeFrom[0]);\n } else if ($filterConditions['period'] == 3) {\n $exTimeFrom = explode('-', $timeFrom);\n $itemDataObject->setData('period', $exTimeFrom[0] . '-' . $exTimeFrom[1]);\n } else\n $itemDataObject->setData('period', $timeFrom);\n } else\n $itemDataObject->setData('period', '');\n if ($itemDataObject->getData('period'))\n $itemDataObject->setData('period', date('F j, Y', strtotime($itemDataObject->getData('period'))));\n $webposOrderCollection = $this->getSalesCollection($timeFrom, $endTime, array('user_id' => $userId));\n $totalU = 0;\n if (count($webposOrderCollection) > 0) {\n foreach ($webposOrderCollection as $order) {\n $totalU += $order->getTotals();\n }\n }\n if (!$totalU && $filterConditions['rp_settings']['show_empty_result'] == 'false')\n $isSave = false;\n\n if ($isSave) {\n $itemDataObject->setData('user', $displayName);\n\n $itemDataObject->setData('totals_sales', ($totalU > 0) ? $totalU : '0.00');\n $collection->addItem($itemDataObject);\n }\n $i++;\n }\n if ($filterConditions['period'] == 1)\n $timeFrom = date('Y-m-d', strtotime($endTime));\n else\n $timeFrom = date($periodFormat, strtotime($timeFrom . $incTimeStrings[$filterConditions['period']]));\n }\n /* get last item data \n $i = 0;\n foreach($this->userIds as $userId => $displayName){\n $isSave = true;\n $beforeLastItem = new Varien_Object();\n if($i == 0){\n if($filterConditions['period'] == 1){\n $exTimeFrom = explode('-',$timeTo);\n $beforeLastItem->setData('period',$exTimeFrom[0]);\n }\n else if($filterConditions['period'] == 3){\n $exTimeFrom = explode('-',$timeTo);\n $beforeLastItem->setData('period',$exTimeFrom[0].'-'.$exTimeFrom[1]);\n }\n else\n $beforeLastItem->setData('period',$timeTo);\n }\n else\n $beforeLastItem->setData('period','');\n if($beforeLastItem->getData('period'))\n $beforeLastItem->setData('period',date('F j, Y', strtotime($beforeLastItem->getData('period'))));\n $webposOrderCollection = $this->getSalesCollection($timeTo,$timeTo,array('user_id' => $userId))->getFirstItem();\n if( !$webposOrderCollection->getTotals() && $filterConditions['rp_settings']['show_empty_result'] == 'false')\n $isSave = false;\n if($isSave){\n $beforeLastItem->setData('user',$displayName);\n $beforeLastItem->setData('totals_sales',$webposOrderCollection->getTotals()?$webposOrderCollection->getTotals():'0.00');\n $collection->addItem($beforeLastItem);\n }\n $i++;\n }\n end last item */\n }\n /* set data for totals row */\n $lastItemDataObject = new Varien_Object();\n $lastItemDataObject->setData('period', 'Totals:');\n $orders = $this->getSalesTotal($startTime, $endTime);\n\n $totalU = 0;\n if (count($orders) > 0) {\n foreach ($orders as $order) {\n $totalU += $order->getTotals();\n }\n }\n $lastItemDataObject->setData('totals_sales', $totalU);\n $collection->addItem($lastItemDataObject);\n $this->setCollection($collection);\n /* set session for chart */\n $sessionObject = new Varien_Object();\n foreach ($this->userIds as $userId => $username) {\n $orders = $this->getSalesTotal($startTime, $endTime, array('user_id' => $userId));\n\n\n $totalU = 0;\n if (count($orders) > 0) {\n foreach ($orders as $order) {\n $totalU += $order->getTotals();\n }\n }\n $sessionObject->setData($username, $totalU);\n }\n Mage::getSingleton('core/session')->setData('total_sales_by_user', $sessionObject->toArray());\n Mage::getSingleton('core/session')->setType('user');\n $this->setTotalRowByUser($sessionObject->toArray());\n return parent::_prepareCollection();\n }",
"protected function _prepareCollection()\n {\n $collection = $this->collectionFactory->create();\n $this->setCollection($collection);\n\n return parent::_prepareCollection();\n }",
"public function clearOperationScenariis()\n {\n $this->collOperationScenariis = null; // important to set this to null since that means it is uninitialized\n $this->collOperationScenariisPartial = null;\n\n return $this;\n }",
"protected function _prepareCollection()\n {\n $userId = Mage::getSingleton('admin/session')->getUser()->getId();\n\n /* var $collection Gri_Cms_Model_Mysql4_Version_Collection */\n $collection = Mage::getModel('gri_cms/page_version')->getCollection()\n ->addPageFilter($this->getPage())\n ->addVisibilityFilter($userId,\n Mage::getSingleton('gri_cms/config')->getAllowedAccessLevel())\n ->addUserColumn()\n ->addUserNameColumn();\n\n if (!$this->getParam($this->getVarNameSort())) {\n $collection->addNumberSort();\n }\n\n $this->setCollection($collection);\n\n return parent::_prepareCollection();\n }",
"protected function _prepareCollection()\n\t{\n\t\t$collection = Mage::getResourceModel($this->_getCollectionClass());\n\t\t$this->setCollection($collection);\n\t\t \n\t\treturn parent::_prepareCollection();\n\t}",
"protected function _prepareCollection()\n {\n $collection = Mage::getResourceModel($this->_getCollectionClass());\n $collection->setOrder('ID','DESC');\n $this->setCollection($collection);\n return parent::_prepareCollection();\n }",
"protected function _getCollection()\n {\n if (!$this->_collection) {\n $websiteId = Mage::app()->getWebsite()->getId();\n $this->_collection = Mage::getModel('gri_reward/reward_history')->getCollection()\n ->addCustomerFilter(Mage::getSingleton('customer/session')->getCustomerId())\n ->addWebsiteFilter($websiteId)\n ->setExpiryConfig(Mage::helper('gri_reward')->getExpiryConfig())\n ->addExpirationDate($websiteId)\n ->skipExpiredDuplicates()\n ->setDefaultOrder()\n ;\n }\n return $this->_collection;\n }",
"protected function _prepareCollection()\n {\n $collection = Mage::getResourceModel($this->_getCollectionClass());\n $this->setCollection($collection);\n\n return parent::_prepareCollection();\n }",
"public function setOperationPrestationss(PropelCollection $operationPrestationss, PropelPDO $con = null)\n {\n $operationPrestationssToDelete = $this->getOperationPrestationss(new Criteria(), $con)->diff($operationPrestationss);\n\n\n $this->operationPrestationssScheduledForDeletion = $operationPrestationssToDelete;\n\n foreach ($operationPrestationssToDelete as $operationPrestationsRemoved) {\n $operationPrestationsRemoved->setOperationPrimes(null);\n }\n\n $this->collOperationPrestationss = null;\n foreach ($operationPrestationss as $operationPrestations) {\n $this->addOperationPrestations($operationPrestations);\n }\n\n $this->collOperationPrestationss = $operationPrestationss;\n $this->collOperationPrestationssPartial = false;\n\n return $this;\n }",
"public function getPeer()\n {\n if (self::$peer === null) {\n self::$peer = new OperationPrimesPeer();\n }\n\n return self::$peer;\n }",
"public function cleanCopy()\n {\n $clone = clone $this;\n $clone->setEagerLoader(clone $this->getEagerLoader());\n $clone->triggerBeforeFind();\n $clone->enableAutoFields(false);\n $clone->limit(null);\n $clone->order([], true);\n $clone->offset(null);\n $clone->mapReduce(null, null, true);\n $clone->formatResults(null, true);\n $clone->setSelectTypeMap(new TypeMap());\n $clone->decorateResults(null, true);\n\n return $clone;\n }",
"protected function _prepareCollection() {\n $website_id = Mage::app()->getWebsite()->getId();\n $collection = Mage::getModel('inchoo_supportticket/ticket')\n ->getCollection();\n $this->setCollection($collection);\n parent::_prepareCollection();\n return $this;\n }",
"protected function _initProductCollection()\n {\n $client = Mage::helper('catalogsearch')->getEngine()->getClient();\n $baseQuery = $this->_getBaseSearchQuery();\n $optimizedQuery = $this->_getOptimizedQuery($baseQuery);\n $baseProductIds = $this->_getProductIdsFromSearchQuery($baseQuery);\n $optimizeProductIds = $this->_getProductIdsFromSearchQuery($optimizedQuery);\n\n $this->setBaseProductIds($baseProductIds);\n $this->setOptimizedProductIds($optimizeProductIds);\n\n $allIds = array_merge($baseProductIds, $optimizeProductIds);\n\n if (empty($allIds)) {\n $allIds = array(0);\n }\n\n $attributes = Mage::getModel('catalog/config')->getProductCollectionAttributes();\n $collection = Mage::getResourceModel('catalog/product_collection')\n ->setStoreId($this->getStoreId())\n ->addIdFilter($allIds)\n ->addAttributeToSelect($attributes)\n ->load();\n\n $this->setProductCollection($collection);\n\n return $this;\n }",
"protected function _getCollection()\n\t{\n\t\t//Check collection\n\t\tif($this->_collection)\n\t\t\treturn $this->_collection;\n\n\t\t//Get collection\n\t\t$this->_collection = new \\Framework\\Database\\Drivers\\Mongo\\CDatabaseModelCollection($this, $this->execute());\n\t\treturn $this->_collection;\n\t}",
"protected function _prepareCollection()\n {\t\t \n\t\t\n $collection = Mage::getModel('catalog/product')\n \t->getCollection()\n \t->addAttributeToSelect('name')\n \t->addAttributeToSelect('price')\n \t->addAttributeToSelect('special_price')\n \t->addAttributeToSelect('name')\n \t->addAttributeToSelect('manufacturer')\n \t->addFieldToFilter('type_id', array('in' => array(Mage_Catalog_Model_Product_Type::TYPE_SIMPLE, Mage_Catalog_Model_Product_Type::TYPE_VIRTUAL)))\n ->joinField('qty',\n 'cataloginventory/stock_item',\n 'qty',\n 'product_id=entity_id',\n '{{table}}.stock_id=1',\n 'left');\n \t;\n $this->setCollection($collection);\n return parent::_prepareCollection();\n }",
"public function getFeatureCvtermprops($criteria = null, PropelPDO $con = null)\n {\n $partial = $this->collFeatureCvtermpropsPartial && !$this->isNew();\n if (null === $this->collFeatureCvtermprops || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collFeatureCvtermprops) {\n // return empty collection\n $this->initFeatureCvtermprops();\n } else {\n $collFeatureCvtermprops = FeatureCvtermpropQuery::create(null, $criteria)\n ->filterByFeatureCvterm($this)\n ->find($con);\n if (null !== $criteria) {\n if (false !== $this->collFeatureCvtermpropsPartial && count($collFeatureCvtermprops)) {\n $this->initFeatureCvtermprops(false);\n\n foreach($collFeatureCvtermprops as $obj) {\n if (false == $this->collFeatureCvtermprops->contains($obj)) {\n $this->collFeatureCvtermprops->append($obj);\n }\n }\n\n $this->collFeatureCvtermpropsPartial = true;\n }\n\n $collFeatureCvtermprops->getInternalIterator()->rewind();\n return $collFeatureCvtermprops;\n }\n\n if($partial && $this->collFeatureCvtermprops) {\n foreach($this->collFeatureCvtermprops as $obj) {\n if($obj->isNew()) {\n $collFeatureCvtermprops[] = $obj;\n }\n }\n }\n\n $this->collFeatureCvtermprops = $collFeatureCvtermprops;\n $this->collFeatureCvtermpropsPartial = false;\n }\n }\n\n return $this->collFeatureCvtermprops;\n }",
"protected function _prepareCollection()\n {\n $collection = Mage::getResourceModel('bs_worksheet/worksheet_collection');\n if ($this->getCurriculum()->getId()) {\n $constraint = 'related.curriculum_id='.$this->getCurriculum()->getId();\n } else {\n $constraint = 'related.curriculum_id=0';\n }\n $collection->getSelect()->joinLeft(\n array('related' => $collection->getTable('bs_worksheet/worksheet_curriculum')),\n 'related.worksheet_id=main_table.entity_id AND '.$constraint,\n array('position')\n );\n $this->setCollection($collection);\n parent::_prepareCollection();\n return $this;\n }",
"public function createCollection()\n\t{\n\t\t/** @var $collection \\Magento\\Catalog\\Model\\ResourceModel\\Product\\Collection */\n\t\t$collection = $this->productCollectionFactory->create();\n\t\t$collection->setVisibility($this->catalogProductVisibility->getVisibleInCatalogIds());\n\n\t\t$collection = $this->_addProductAttributesAndPrices($collection)\n\t\t\t->addStoreFilter()\n\t\t\t->setPageSize($this->getPageSize())\n\t\t\t->setCurPage($this->getRequest()->getParam(self::PAGE_VAR_NAME, 1));\n\n\t\t$conditions = $this->getConditions();\n\t\t$conditions->collectValidatedAttributes($collection);\n\t\t$this->sqlBuilder->attachConditionToCollection($collection, $conditions);\n\n\t\treturn $collection;\n\t}",
"protected function _prepareCollection() {\n /**\n * Get the Collection of Manage Subscription\n */\n $manageSubscription = Mage::getModel ( 'airhotels/managesubscriptions' )->getCollection ();\n \n /**\n * Get the Table Prefix Value\n */\n $tablePrefix = Mage::getConfig ()->getTablePrefix ();\n $manageSubscription->getSelect ()->group ( 'main_table.product_id' )->joinLeft ( $tablePrefix . 'apptha_productsubscriptions', 'main_table.product_id =' . $tablePrefix . 'apptha_productsubscriptions.product_id AND ' . $tablePrefix . 'apptha_productsubscriptions.is_delete = 0', array (\n 'main_table.id as id',\n 'main_table.product_name as product_name',\n $tablePrefix . 'apptha_productsubscriptions.subscription_type as subscription_type' \n ) )->where ( 'main_table.is_subscription_only = ?', 1 );\n \n $collection = $manageSubscription;\n $this->setCollection ( $collection );\n /**\n * Calling the parent Construct Method.\n */\n return parent::_prepareCollection ();\n }",
"protected function _prepareCollection()\n {\n $collection = $this->_createCollection()->addCustomerIdFilter($this->_getCustomer()->getId())\n ->resetSortOrder()\n ->addDaysInWishlist()\n ->addStoreData();\n $this->setCollection($collection);\n\n return parent::_prepareCollection();\n }",
"protected function _getCollection()\n {\n if (!$this->_collection) {\n $websiteId = $this->_storeManager->getWebsite()->getId();\n $this->_collection = $this->_historyFactory->create()\n ->addCustomerFilter($this->currentCustomer->getCustomerId())\n ->addWebsiteFilter($websiteId)\n ->setExpiryConfig($this->_rewardData->getExpiryConfig())\n ->addExpirationDate($websiteId)\n ->skipExpiredDuplicates()\n ->setDefaultOrder();\n }\n return $this->_collection;\n }",
"public function getProduitsPanier()\n {\n return $this->CollProduit->getCollection();\n }",
"public function __clone() {\n if ($this->_where) {\n $this->_where = clone $this->_where;\n }\n\n if ($this->_having) {\n $this->_having = clone $this->_having;\n }\n }",
"protected function getComposedCollection()\n {\n return $this->composedCollection;\n }",
"public function initLnkOperationPrimeRCountriess($overrideExisting = true)\n {\n if (null !== $this->collLnkOperationPrimeRCountriess && !$overrideExisting) {\n return;\n }\n $this->collLnkOperationPrimeRCountriess = new PropelObjectCollection();\n $this->collLnkOperationPrimeRCountriess->setModel('LnkOperationPrimeRCountries');\n }",
"protected function _prepareCollection()\n {\n $collection = Mage::getModel('oggetto_oneclick/order')->getResourceCollection();\n $this->setCollection($collection);\n return parent::_prepareCollection();\n }",
"protected function _prepareCollection()\n {\n /** @var $collection ChazkiExpressCollection */\n $collection = $this->_collectionFactory->create();\n $collection->setWebsiteFilter($this->getWebsiteId());\n\n $this->setCollection($collection);\n\n return parent::_prepareCollection();\n }",
"public function getContributionss(Criteria $criteria = null, ConnectionInterface $con = null)\n {\n $partial = $this->collContributionssPartial && !$this->isNew();\n if (null === $this->collContributionss || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collContributionss) {\n // return empty collection\n $this->initContributionss();\n } else {\n $collContributionss = ChildContributionsQuery::create(null, $criteria)\n ->filterByIssues($this)\n ->find($con);\n\n if (null !== $criteria) {\n if (false !== $this->collContributionssPartial && count($collContributionss)) {\n $this->initContributionss(false);\n\n foreach ($collContributionss as $obj) {\n if (false == $this->collContributionss->contains($obj)) {\n $this->collContributionss->append($obj);\n }\n }\n\n $this->collContributionssPartial = true;\n }\n\n return $collContributionss;\n }\n\n if ($partial && $this->collContributionss) {\n foreach ($this->collContributionss as $obj) {\n if ($obj->isNew()) {\n $collContributionss[] = $obj;\n }\n }\n }\n\n $this->collContributionss = $collContributionss;\n $this->collContributionssPartial = false;\n }\n }\n\n return $this->collContributionss;\n }",
"public static function cooperations() {\n return self::query()\n ->join('ownership', 'ownership.fobjsid', 'vp.sId')\n ->join('jobs', 'ownership.tobjsid', 'jobs.sId')\n ->select('vp.*')\n ->where('jobs.type', Job::TYPE_COOPERATION);\n }",
"public function getProcessorsCollection();",
"public function clearOperations()\n {\n $this->_operations = array();\n\n return $this;\n }",
"protected function _prepareCollection()\n {\n $collection = Mage::getModel('iparcel/log')->getCollection();\n $this->setCollection($collection);\n\n return parent::_prepareCollection();\n }",
"public function copy(): Collection\n {\n return clone $this;\n }",
"protected function _prepareCollection()\n {\n $collection = Mage::getModel('solutionpartner/partner')->getCollection();\n $collection->getSelect()->joinLeft(\n array('order' => $collection->getTable('sales/order')),\n 'main_table.email = order.customer_email AND order.status = \"complete\"',\n array(\n 'order_id' => 'entity_id',\n 'order_status' => 'order.status',\n 'number_qtys' => 'count(order.entity_id)'\n ))\n ->group('main_table.solutionpartner_id');\n $this->setCollection($collection);\n return parent::_prepareCollection();\n }",
"public function searchPesificacionesSinCompletar()\n\t{\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n $criteria->condition= \"estado=:estado\";\n\t\t$criteria->params = array(':estado'=> Pesificaciones::ESTADO_ABIERTO);\n\n\t\t//$criteria->condition= \"(t.montoAcreditar+t.montoGastos) NOT IN (SELECT SUM(cheques.montoOrigen) FROM cheques, detallePesificaciones WHERE detallePesificaciones.chequeId=cheques.id AND detallePesificaciones.pesificacionId=t.id)\";\n\t\treturn new CActiveDataProvider(new Pesificaciones, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}",
"protected function _prepareCollection()\n\t{\n\t\t$collection = Mage::getResourceModel($this->_getCollectionClass());\n $collection->getSelect()->joinLeft(\n array('sfo' => 'sales_flat_order'),\n 'main_table.order_id = sfo.entity_id',\n array('increment_id')\n );\n\t\t$this->setCollection($collection);\n\n\t\treturn parent::_prepareCollection();\n\t}",
"protected function _prepareCollection()\n {\n /* @var $collection Scandi_MenuManager_Model_Resource_Item_Collection */\n $collection = Mage::getModel('scandi_menumanager/item')->getResourceCollection()\n ->addMenuFilter(Mage::registry('menumanager_menu'));\n if (!$this->getRequest()->getParam('sort')) { $collection->setPositionOrder(); }\n\n $this->setCollection($collection);\n return parent::_prepareCollection();\n }",
"public function getProductCollection()\n {\n\n if (is_null($this->_productCollection)) {\n $collection = $this->_engine->getAdvancedResultCollection();\n $this->prepareProductCollection($collection);\n if (!$collection) {\n return $collection;\n }\n $this->_productCollection = $collection;\n }\n\n return $this->_productCollection;\n }",
"protected function getProductResultCollection()\n {\n $collection = Mage::registry('recommendation_collection');\n\n if (empty($collection)) {\n $collection = array();\n }\n\n return $collection;\n }",
"public function getProductCollection()\n {\n $this->_basketProducts = $this->_getCartProductIds();\n $products = $this->_complementaryEngine->sendQuery($this->_basketProducts);\n\n if ($products['rules']) {\n return $this->_getPredictedProducts($products['rules']);\n }\n\n return false;\n }",
"public function buildPkeyCriteria()\n {\n $criteria = new Criteria(SanitasiPeer::DATABASE_NAME);\n $criteria->add(SanitasiPeer::SEKOLAH_ID, $this->sekolah_id);\n $criteria->add(SanitasiPeer::SEMESTER_ID, $this->semester_id);\n\n return $criteria;\n }",
"public function getOperations(PropelPDO $con = null, $doQuery = true)\n {\n if ($this->aOperations === null && ($this->op_id !== null) && $doQuery) {\n $this->aOperations = OperationsQuery::create()->findPk($this->op_id, $con);\n /* The following can be used additionally to\n guarantee the related object contains a reference\n to this object. This level of coupling may, however, be\n undesirable since it could result in an only partially populated collection\n in the referenced object.\n $this->aOperations->addOperationPrimess($this);\n */\n }\n\n return $this->aOperations;\n }",
"public function getCriteria()\n {\n if (!isset($this->currentCriteria)) {\n throw new CollectionDriverException('Criteria is accessible only during preGetResult event.');\n }\n\n return $this->currentCriteria;\n }",
"protected function _prepareCollection()\n {\n $collection = Mage::getModel('catalog/product')->getCollection()\n ->addAttributeToSelect('name')\n ->addAttributeToSelect('type')\n ->addAttributeToSelect('status')\n ->addAttributeToSelect('visibility')\n ->addAttributeToSelect('sku');\n $this->setCollection($collection);\n return parent::_prepareCollection();\n }",
"function getComposite()\n {\n return $this;\n }",
"public function __clone()\r\n {\r\n $this->document = [];\r\n $this->document_id = 0;\r\n\r\n $this->documentTotal = 0;\r\n $this->documentExchageTotal = 0;\r\n\r\n $this->associatedDocuments = [];\r\n }",
"public function buildPkeyCriteria()\n\t{\n\t\t$criteria = new Criteria(C060InventarioPeer::DATABASE_NAME);\n\n\t\t$criteria->add(C060InventarioPeer::CO_NUM_INVENTARIO, $this->co_num_inventario);\n\n\t\treturn $criteria;\n\t}",
"public function __clone() {\n $this->name = clone $this->name;\n $this->type = clone $this->type;\n $this->op = clone $this->op;\n\n $this->currentPeriod = clone $this->currentPeriod;\n $this->previousPeriod = clone $this->previousPeriod;\n\n $products = array();\n foreach ($this->products as $idx=>$product) {\n $products[] = clone $product;\n }\n $this->products = $products;\n }",
"function productCollection()\n {\n return eZProductCollection::fetch( $this->attribute( 'productcollection_id' ) );\n }",
"public function chapitrePrec() {\n $prevChapitre = $this->cour->chapitres()->where('num_ordre', '<', $this->num_ordre)\n ->orderBy('num_ordre', 'desc')\n ->first();\n\n if($prevChapitre) {\n return $prevChapitre;\n }\n\n return $this;\n }",
"public function getProposedChanges(): ProposedChangeCollection\n {\n return $this->proposedChanges;\n }",
"protected function getPagerCollectionInstance()\n {\n $pagerCollection = $this->dataBackend->getPagerCollection();\n $pagerCollection->setItemCount($this->dataBackend->getTotalItemsCount());\n return $pagerCollection;\n }",
"public function findNewProd()\r\n {\r\n $query = $this->getEntityManager()\r\n ->createQuery(\"select m from CondorsTnMallBundle:Produit m ORDER BY m.datecreation DESC \")\r\n ->setMaxResults(5);\r\n\r\n return $query->getResult();\r\n\r\n }",
"function detachProductCollection()\n {\n $collection = $this->productCollection();\n if ( !$collection )\n {\n $retValue = false;\n return $retValue;\n }\n\n $db = eZDB::instance();\n $db->begin();\n $newCollection = $collection->copy();\n if ( !$newCollection )\n {\n $db->commit();\n $retValue = false;\n return $retValue;\n }\n $this->setAttribute( 'productcollection_id', $newCollection->attribute( 'id' ) );\n $this->store();\n\n $db->commit();\n return $newCollection;\n }",
"protected function _prepareCollection()\n {\n $collection = Mage::getResourceModel('bs_docwise/docwisement_collection');\n\n if ($this->getExam()->getId()) {\n $constraint = 'related.exam_id='.$this->getExam()->getId();\n } else {\n $constraint = 'related.exam_id=0';\n }\n $collection->getSelect()->joinLeft(\n array('related' => $collection->getTable('bs_docwise/exam_docwisement')),\n 'related.docwisement_id = main_table.entity_id AND '.$constraint,\n array('position')\n );\n\n\n $this->setCollection($collection);\n parent::_prepareCollection();\n return $this;\n }",
"public function initPesquisas($overrideExisting = true)\n\t{\n\t\tif (null !== $this->collPesquisas && !$overrideExisting) {\n\t\t\treturn;\n\t\t}\n\t\t$this->collPesquisas = new PropelObjectCollection();\n\t\t$this->collPesquisas->setModel('Pesquisa');\n\t}",
"public function clearFindCriteria()\n {\n $this->findCriteria = [];\n return $this;\n }",
"public function relCooperations() {\n return Job::query()\n ->join('ownership', 'ownership.tobjsid', 'jobs.sId')\n ->select('jobs.*')\n ->where('ownership.fobjsid', parent::__get('sId'))\n ->where('jobs.type', Job::TYPE_COOPERATION)\n ->get();\n }",
"public function Panier() \n {\n $this->CollProduit = new Collection;\n }",
"public function load()\n {\n if (!$this->loaded) {\n $searchData = [];\n foreach (persistableCollection::getInstance($this->resourceName)->getPrimaryFields() as $fieldName) {\n $searchData[$fieldName] = $this->$fieldName;\n }\n $result = persistableCollection::getInstance($this->resourceName)->loadObject($searchData);\n $this->persisted = true;\n $this->loaded = true;\n return $result;\n }\n return $this;\n }",
"public function __clone()\n {\n parent::__clone();\n $this->_stockItem = null;\n $this->_stockItems = null;\n $this->_inStockStockItems = null;\n return $this;\n }",
"public function getCollection() {\n return $this->gateway->find(\n $this->getFilter(),\n $this->order,\n $this->relations,\n $this->pager,\n !$this->excludeRepo\n );\n }",
"public function retrievePriceFilters()\n {\n $select = $this->getSelect();\n $select->setPart(Zend_Db_Select::WHERE, $this->_wherePartStash);\n $select->setPart(Zend_Db_Select::GROUP, $this->_groupPartStash);\n\n $this->clearStatisticsData();\n\n return $this;\n }",
"public function __clone()\n {\n if (is_object($this->collection)) {\n $this->collection = clone $this->collection;\n }\n $this->initialize();\n $this->owner = null;\n $this->snapshot = [];\n $this->changed();\n }",
"public function getInappropriates($criteria = null, PropelPDO $con = null)\n\t{\n\t\tif ($criteria === null) {\n\t\t\t$criteria = new Criteria(PostPeer::DATABASE_NAME);\n\t\t}\n\t\telseif ($criteria instanceof Criteria)\n\t\t{\n\t\t\t$criteria = clone $criteria;\n\t\t}\n\n\t\tif ($this->collInappropriates === null) {\n\t\t\tif ($this->isNew()) {\n\t\t\t $this->collInappropriates = array();\n\t\t\t} else {\n\n\t\t\t\t$criteria->add(InappropriatePeer::POST_ID, $this->id);\n\n\t\t\t\tInappropriatePeer::addSelectColumns($criteria);\n\t\t\t\t$this->collInappropriates = InappropriatePeer::doSelect($criteria, $con);\n\t\t\t}\n\t\t} else {\n\t\t\t// criteria has no effect for a new object\n\t\t\tif (!$this->isNew()) {\n\t\t\t\t// the following code is to determine if a new query is\n\t\t\t\t// called for. If the criteria is the same as the last\n\t\t\t\t// one, just return the collection.\n\n\n\t\t\t\t$criteria->add(InappropriatePeer::POST_ID, $this->id);\n\n\t\t\t\tInappropriatePeer::addSelectColumns($criteria);\n\t\t\t\tif (!isset($this->lastInappropriateCriteria) || !$this->lastInappropriateCriteria->equals($criteria)) {\n\t\t\t\t\t$this->collInappropriates = InappropriatePeer::doSelect($criteria, $con);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$this->lastInappropriateCriteria = $criteria;\n\t\treturn $this->collInappropriates;\n\t}",
"public function getParameters() : CollectionInterface\n {\n return $this->parameters->copy();\n }",
"public function __clone()\n {\n $this->query = clone $this->query;\n }",
"protected function _prepareCollection()\n {\n $baseQuery = $this->_getBaseSearchQuery();\n $productIds = $this->_getProductIdsFromSearchQuery($baseQuery);\n\n if (empty($productIds)) {\n $productIds = array(0);\n }\n\n $attributes = Mage::getModel('catalog/config')->getProductCollectionAttributes();\n\n /** @var Mage_Catalog_Model_Resource_Product_Collection $collection */\n $collection = Mage::getResourceModel('catalog/product_collection')\n ->addIdFilter($productIds)\n ->addAttributeToSelect($attributes);\n\n $storeIds = implode(\",\", array_unique(array_map(\"intval\", array(Mage_Core_Model_App::ADMIN_STORE_ID, $this->getStoreId()))));\n\n if ($this->getStoreId() != Mage_Core_Model_App::ADMIN_STORE_ID) {\n $collection->setStoreId($this->getStoreId());\n $joinCond = \"category_id = \" . (int) $this->getCategory()->getId() . \" AND store_id = {$this->getStoreId()}\";\n } else {\n $joinCond = \"category_id = \" . (int) $this->getCategory()->getId() . \" AND store_id IN ({$storeIds})\";\n }\n\n $collection->joinField(\n 'position',\n 'smile_virtualcategories/category_product_position',\n 'position',\n 'product_id = entity_id',\n $joinCond,\n 'left'\n );\n\n $collection->getSelect()->order(\n new Zend_Db_Expr(\"- position DESC\") // mimic a \"SORT BY #field NULL LAST\n );\n\n $entityIds = implode(\",\", $productIds);\n $collection->getSelect()->order(\n new Zend_Db_Expr(\"FIELD(e.entity_id, {$entityIds})\") // restore sort order given by ES\n );\n\n $this->setCollection($collection);\n\n return parent::_prepareCollection();\n }",
"public function getDataProcessorCollection(): ProcessorCollection {\n\n return $this->dataProcessorCollection;\n\n }",
"public function applyCriteria() {\n if ($this->skipCriteria === true) {\n return $this;\n }\n\n foreach ($this->getCriteria() as $criteria) {\n if ($criteria instanceof Criteria) {\n $this->model = $criteria->apply($this->model, $this);\n }\n }\n\n return $this;\n }",
"public function collection() {\n \t$db = $this->db;\n\t\t$sql = $this->sql();\n\t\t$rows = $db::execute($sql);\n\t\t$model = $this->model;\n\t\treturn new \\Collection($model::arrayFactoryFromRows($rows));\n\t}",
"public function getCollection()\n {\n $collection = trim(str_replace('\\\\', '_', $this->collection), '_');\n return $this->$collection()\n ->setDatabase($this->database)\n ->setTable($this->table)\n ->setModel($this->model)\n ->set($this->getRows());\n }",
"function getCommonProvisions();",
"protected function applyCriteria()\n {\n if ($this->skipCriteria === true) {\n return $this;\n }\n\n $criteria = $this->getCriteria();\n\n if ($criteria) {\n foreach ($criteria as $c) {\n $this->model = $c->apply($this->model, $this);\n }\n }\n\n return $this;\n }",
"public function fresh()\n {\n if ($this->hasModel() && $this->exists()) {\n return odb($this->db(), $this->table())->find((int) $this->data['id']);\n }\n\n return $this;\n }",
"public function buildPkeyCriteria()\n {\n $criteria = new Criteria(SekolahPaudPeer::DATABASE_NAME);\n $criteria->add(SekolahPaudPeer::SEKOLAH_ID, $this->sekolah_id);\n\n return $criteria;\n }",
"public function getCriteriaCollection(): CriteriaCollection;",
"public function clearPriceFilters()\n {\n $select = $this->getSelect();\n $this->_wherePartStash = $select->getPart(Zend_Db_Select::WHERE);\n $this->_groupPartStash = $select->getPart(Zend_Db_Select::GROUP);\n $select->reset(Zend_Db_Select::WHERE);\n $select->reset(Zend_Db_Select::GROUP);\n\n $this->clearStatisticsData();\n\n return $this;\n }",
"protected function getPluginCollection() {\n if (!$this->pluginCollection) {\n $plugin_manager = \\Drupal::service('plugin.manager.commerce_installment_plan_methods');\n $this->pluginCollection = new InstallmentPlanMethodPluginCollection($plugin_manager, $this->plugin, $this->configuration, $this->id);\n }\n return $this->pluginCollection;\n }",
"public function getCompetitionsWithReload() {\n $this->competitionsLoaded = false;\n return $this->getCompetitions();\n }",
"public function buildPkeyCriteria()\n\t{\n\t\t$criteria = new Criteria(VpoRequestPeer::DATABASE_NAME);\n\n\t\t$criteria->add(VpoRequestPeer::ID, $this->id);\n\n\t\treturn $criteria;\n\t}",
"private function applyCriteria()\n {\n foreach( $this->criteria as $criterion )\n {\n $this->query = $criterion->apply( $this->query, $this );\n }\n\n return $this;\n }",
"public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME)\n {\n $keys = OperationPrimesPeer::getFieldNames($keyType);\n\n if (array_key_exists($keys[0], $arr)) $this->setOpPrimeId($arr[$keys[0]]);\n if (array_key_exists($keys[1], $arr)) $this->setOpId($arr[$keys[1]]);\n if (array_key_exists($keys[2], $arr)) $this->setOpPrimeLibelle($arr[$keys[2]]);\n if (array_key_exists($keys[3], $arr)) $this->setOpPrimeNumero($arr[$keys[3]]);\n if (array_key_exists($keys[4], $arr)) $this->setGdlArtId($arr[$keys[4]]);\n if (array_key_exists($keys[5], $arr)) $this->setOperationPrimeCurrencyId($arr[$keys[5]]);\n if (array_key_exists($keys[6], $arr)) $this->setOperationPrimeRRewardTypeId($arr[$keys[6]]);\n if (array_key_exists($keys[7], $arr)) $this->setOperationPrimeRRewardExpeditionModeId($arr[$keys[7]]);\n if (array_key_exists($keys[8], $arr)) $this->setOperationPrimeRRewardTransporterId($arr[$keys[8]]);\n if (array_key_exists($keys[9], $arr)) $this->setOperationPrimeFixedAmount($arr[$keys[9]]);\n if (array_key_exists($keys[10], $arr)) $this->setOperationPrimeProductPricePourcentage($arr[$keys[10]]);\n if (array_key_exists($keys[11], $arr)) $this->setOperationPrimeMaximumAmount($arr[$keys[11]]);\n }",
"protected function _getQueueCollection() : \\Pulchritudinous\\Queue\\Model\\ResourceModel\\Labour\\Collection\n {\n $collection = $this->_objectManager->create('Pulchritudinous\\Queue\\Model\\ResourceModel\\Labour\\Collection')\n ->addFieldToFilter('status', ['eq' => Labour::STATUS_PENDING])\n ->addFieldToFilter('execute_at', ['lteq' => time()])\n ->setOrder('priority', 'ASC')\n ->setOrder('execute_at', 'ASC');\n\n return $collection;\n }",
"public function getResultsCollections()\n\t {\n\t \tif ( is_array($this->results) && $this->isMulti() ) {\n\n\t \t\treturn new MagentoObjectCollection($this->results);\n\n\t \t} elseif( is_array($this->results) && !$this->isMulti() ) {\n\n\t \t\treturn new MagentoObject($this->results);\n\n\t \t} elseif( is_object($this->results) ) {\n\n\t \t\treturn new MagentoObject($this->results);\n\n\t \t} else {\n\n\t \t\treturn $this->results;\n\t \t}\n\t }",
"protected function processData($data)\n {\n // reuse the existing collection to optimize for Doctrine\n if ($data instanceof Collection) {\n $currentData = $this->getData();\n\n if (!$currentData) {\n $currentData = $data;\n } else if (count($data) === 0) {\n $currentData->clear();\n } else {\n // merge $data into $currentData\n foreach ($currentData as $entity) {\n if (!$data->contains($entity)) {\n $currentData->removeElement($entity);\n } else {\n $data->removeElement($entity);\n }\n }\n\n foreach ($data as $entity) {\n $currentData->add($entity);\n }\n }\n\n return $currentData;\n }\n\n return $data;\n }",
"protected function _prepareCollection()\n {\n $currentCampaign = Mage::getSingleton('adminhtml/session')->getCurrentCampaign();\n $collection = Mage::getModel('campaign/bannerslider')->getCollection();\n $collection->getSelect()\n ->joinLeft(array('campaign'=>$collection->getTable('campaign/campaign')),\n 'main_table.campaign_id = campaign.campaign_id', '')\n ->columns(array('campaign_name'=>'IF(main_table.campaign_id = \"'.$currentCampaign->getId().'\", \"Current\", campaign.name)'))\n ->group('main_table.bannerslider_id');\n $filter = Mage::registry('banner_reloaded_ids');\n if(!isset($filter)){//if reset no filter\n $selected_id = $this->_selectedId();\n if(!empty($selected_id)){\n $collection->addFieldToFilter('bannerslider_id', array('in'=>$selected_id));\n }\n }\n $this->setCollection($collection);\n return parent::_prepareCollection();\n }",
"public function __clone() {\n foreach ($this->conditions as $i => $condition) {\n $this->conditions[$i] = clone $condition;\n }\n }",
"public function initInappropriates()\n\t{\n\t\t$this->collInappropriates = array();\n\t}",
"protected function _getProductCollection()\n {\n $collection = parent::_getProductCollection();\n\t\t$helper = Mage::helper('catalogMembersonly/productsFilter');\n\t\t$collection = $helper->filterProductCollection($collection);\n\n return $collection;\t\t\n }",
"public function getCollection(){\r\n\t\treturn $this->_collection;\r\n\t}"
] | [
"0.6223161",
"0.61505544",
"0.61426204",
"0.5984671",
"0.5883592",
"0.57162875",
"0.5676253",
"0.5420158",
"0.53778625",
"0.5211605",
"0.5209868",
"0.511553",
"0.5107279",
"0.51052123",
"0.5103099",
"0.5096419",
"0.50754106",
"0.5062974",
"0.50593853",
"0.5047776",
"0.50465685",
"0.5036991",
"0.501542",
"0.500213",
"0.4992476",
"0.4979534",
"0.4978856",
"0.49652416",
"0.49320698",
"0.4928134",
"0.49174252",
"0.48946124",
"0.48824278",
"0.48658296",
"0.4835394",
"0.48343933",
"0.48329476",
"0.47993264",
"0.47747976",
"0.4763615",
"0.474965",
"0.4748084",
"0.4745459",
"0.47331795",
"0.47313368",
"0.47205004",
"0.47050261",
"0.4672744",
"0.46722308",
"0.4669221",
"0.46595016",
"0.46480328",
"0.46472865",
"0.46467364",
"0.46457967",
"0.46378392",
"0.4635455",
"0.46350542",
"0.46341696",
"0.46331027",
"0.46263528",
"0.46223912",
"0.46214393",
"0.46166977",
"0.4614713",
"0.46104255",
"0.458414",
"0.45840186",
"0.458275",
"0.45826036",
"0.45775226",
"0.45652106",
"0.4559568",
"0.45571038",
"0.45559457",
"0.45462412",
"0.45450878",
"0.4540985",
"0.45386803",
"0.453671",
"0.45360306",
"0.45353776",
"0.4534455",
"0.4530839",
"0.45287603",
"0.45240828",
"0.4523874",
"0.45221555",
"0.45171282",
"0.4516373",
"0.45137736",
"0.45112708",
"0.45103353",
"0.4494699",
"0.44887224",
"0.44856283",
"0.4482714",
"0.44751164",
"0.44747463",
"0.4466979",
"0.44658387"
] | 0.0 | -1 |
If this collection has already been initialized with an identical criteria, it returns the collection. Otherwise if this OperationPrimes is new, it will return an empty collection; or if this OperationPrimes has previously been saved, it will retrieve related OperationPrestationss from storage. This method is protected by default in order to keep the public api reasonable. You can provide public methods for those you actually need in OperationPrimes. | public function getOperationPrestationssJoinOperationRubriques($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN)
{
$query = OperationPrestationsQuery::create(null, $criteria);
$query->joinWith('OperationRubriques', $join_behavior);
return $this->getOperationPrestationss($query, $con);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getOperationPrestationss($criteria = null, PropelPDO $con = null)\n {\n $partial = $this->collOperationPrestationssPartial && !$this->isNew();\n if (null === $this->collOperationPrestationss || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collOperationPrestationss) {\n // return empty collection\n $this->initOperationPrestationss();\n } else {\n $collOperationPrestationss = OperationPrestationsQuery::create(null, $criteria)\n ->filterByOperationPrimes($this)\n ->find($con);\n if (null !== $criteria) {\n if (false !== $this->collOperationPrestationssPartial && count($collOperationPrestationss)) {\n $this->initOperationPrestationss(false);\n\n foreach ($collOperationPrestationss as $obj) {\n if (false == $this->collOperationPrestationss->contains($obj)) {\n $this->collOperationPrestationss->append($obj);\n }\n }\n\n $this->collOperationPrestationssPartial = true;\n }\n\n $collOperationPrestationss->getInternalIterator()->rewind();\n\n return $collOperationPrestationss;\n }\n\n if ($partial && $this->collOperationPrestationss) {\n foreach ($this->collOperationPrestationss as $obj) {\n if ($obj->isNew()) {\n $collOperationPrestationss[] = $obj;\n }\n }\n }\n\n $this->collOperationPrestationss = $collOperationPrestationss;\n $this->collOperationPrestationssPartial = false;\n }\n }\n\n return $this->collOperationPrestationss;\n }",
"public function buildPkeyCriteria()\n {\n $criteria = new Criteria(OperationPrimesPeer::DATABASE_NAME);\n $criteria->add(OperationPrimesPeer::OP_PRIME_ID, $this->op_prime_id);\n\n return $criteria;\n }",
"public function buildCriteria()\n {\n $criteria = new Criteria(OperationPrimesPeer::DATABASE_NAME);\n\n if ($this->isColumnModified(OperationPrimesPeer::OP_PRIME_ID)) $criteria->add(OperationPrimesPeer::OP_PRIME_ID, $this->op_prime_id);\n if ($this->isColumnModified(OperationPrimesPeer::OP_ID)) $criteria->add(OperationPrimesPeer::OP_ID, $this->op_id);\n if ($this->isColumnModified(OperationPrimesPeer::OP_PRIME_LIBELLE)) $criteria->add(OperationPrimesPeer::OP_PRIME_LIBELLE, $this->op_prime_libelle);\n if ($this->isColumnModified(OperationPrimesPeer::OP_PRIME_NUMERO)) $criteria->add(OperationPrimesPeer::OP_PRIME_NUMERO, $this->op_prime_numero);\n if ($this->isColumnModified(OperationPrimesPeer::GDL_ART_ID)) $criteria->add(OperationPrimesPeer::GDL_ART_ID, $this->gdl_art_id);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_CURRENCY_ID)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_CURRENCY_ID, $this->operation_prime_currency_id);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_TYPE_ID)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_TYPE_ID, $this->operation_prime_r_reward_type_id);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_EXPEDITION_MODE_ID)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_EXPEDITION_MODE_ID, $this->operation_prime_r_reward_expedition_mode_id);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_TRANSPORTER_ID)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_TRANSPORTER_ID, $this->operation_prime_r_reward_transporter_id);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_FIXED_AMOUNT)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_FIXED_AMOUNT, $this->operation_prime_fixed_amount);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_PRODUCT_PRICE_POURCENTAGE)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_PRODUCT_PRICE_POURCENTAGE, $this->operation_prime_product_price_pourcentage);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_MAXIMUM_AMOUNT)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_MAXIMUM_AMOUNT, $this->operation_prime_maximum_amount);\n\n return $criteria;\n }",
"public function getOperationScenariis($criteria = null, PropelPDO $con = null)\n {\n $partial = $this->collOperationScenariisPartial && !$this->isNew();\n if (null === $this->collOperationScenariis || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collOperationScenariis) {\n // return empty collection\n $this->initOperationScenariis();\n } else {\n $collOperationScenariis = OperationScenariiQuery::create(null, $criteria)\n ->filterByOperationPrimes($this)\n ->find($con);\n if (null !== $criteria) {\n if (false !== $this->collOperationScenariisPartial && count($collOperationScenariis)) {\n $this->initOperationScenariis(false);\n\n foreach ($collOperationScenariis as $obj) {\n if (false == $this->collOperationScenariis->contains($obj)) {\n $this->collOperationScenariis->append($obj);\n }\n }\n\n $this->collOperationScenariisPartial = true;\n }\n\n $collOperationScenariis->getInternalIterator()->rewind();\n\n return $collOperationScenariis;\n }\n\n if ($partial && $this->collOperationScenariis) {\n foreach ($this->collOperationScenariis as $obj) {\n if ($obj->isNew()) {\n $collOperationScenariis[] = $obj;\n }\n }\n }\n\n $this->collOperationScenariis = $collOperationScenariis;\n $this->collOperationScenariisPartial = false;\n }\n }\n\n return $this->collOperationScenariis;\n }",
"public function getLnkOperationPrimeRCountriess($criteria = null, PropelPDO $con = null)\n {\n $partial = $this->collLnkOperationPrimeRCountriessPartial && !$this->isNew();\n if (null === $this->collLnkOperationPrimeRCountriess || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collLnkOperationPrimeRCountriess) {\n // return empty collection\n $this->initLnkOperationPrimeRCountriess();\n } else {\n $collLnkOperationPrimeRCountriess = LnkOperationPrimeRCountriesQuery::create(null, $criteria)\n ->filterByOperationPrimes($this)\n ->find($con);\n if (null !== $criteria) {\n if (false !== $this->collLnkOperationPrimeRCountriessPartial && count($collLnkOperationPrimeRCountriess)) {\n $this->initLnkOperationPrimeRCountriess(false);\n\n foreach ($collLnkOperationPrimeRCountriess as $obj) {\n if (false == $this->collLnkOperationPrimeRCountriess->contains($obj)) {\n $this->collLnkOperationPrimeRCountriess->append($obj);\n }\n }\n\n $this->collLnkOperationPrimeRCountriessPartial = true;\n }\n\n $collLnkOperationPrimeRCountriess->getInternalIterator()->rewind();\n\n return $collLnkOperationPrimeRCountriess;\n }\n\n if ($partial && $this->collLnkOperationPrimeRCountriess) {\n foreach ($this->collLnkOperationPrimeRCountriess as $obj) {\n if ($obj->isNew()) {\n $collLnkOperationPrimeRCountriess[] = $obj;\n }\n }\n }\n\n $this->collLnkOperationPrimeRCountriess = $collLnkOperationPrimeRCountriess;\n $this->collLnkOperationPrimeRCountriessPartial = false;\n }\n }\n\n return $this->collLnkOperationPrimeRCountriess;\n }",
"public function clearOperationPrestationss()\n {\n $this->collOperationPrestationss = null; // important to set this to null since that means it is uninitialized\n $this->collOperationPrestationssPartial = null;\n\n return $this;\n }",
"public function setLnkOperationPrimeRCountriess(PropelCollection $lnkOperationPrimeRCountriess, PropelPDO $con = null)\n {\n $lnkOperationPrimeRCountriessToDelete = $this->getLnkOperationPrimeRCountriess(new Criteria(), $con)->diff($lnkOperationPrimeRCountriess);\n\n\n $this->lnkOperationPrimeRCountriessScheduledForDeletion = $lnkOperationPrimeRCountriessToDelete;\n\n foreach ($lnkOperationPrimeRCountriessToDelete as $lnkOperationPrimeRCountriesRemoved) {\n $lnkOperationPrimeRCountriesRemoved->setOperationPrimes(null);\n }\n\n $this->collLnkOperationPrimeRCountriess = null;\n foreach ($lnkOperationPrimeRCountriess as $lnkOperationPrimeRCountries) {\n $this->addLnkOperationPrimeRCountries($lnkOperationPrimeRCountries);\n }\n\n $this->collLnkOperationPrimeRCountriess = $lnkOperationPrimeRCountriess;\n $this->collLnkOperationPrimeRCountriessPartial = false;\n\n return $this;\n }",
"protected function _prepareCollection() {\n $collection = Mage::helper('ProductReturn/SupplierReturn')->getProductsPending();\n $this->setCollection($collection);\n return parent::_prepareCollection();\n }",
"public function clearLnkOperationPrimeRCountriess()\n {\n $this->collLnkOperationPrimeRCountriess = null; // important to set this to null since that means it is uninitialized\n $this->collLnkOperationPrimeRCountriessPartial = null;\n\n return $this;\n }",
"protected function _prepareCollection() {\n $session = Mage::getModel('core/session');\n $filterConditions = $session->getData('rp_conditions');\n if (!$filterConditions)\n $filterConditions = $this->_filterConditions;\n $posorderCollection = Mage::getModel('webpos/posorder')->getCollection();\n /* Jack - create an empty collection */\n $collection = $posorderCollection;\n foreach ($collection->getItems() as $key => $item) {\n $collection->removeItemByKey($key);\n }\n /**/\n\n /* Define variables and set default data */\n $totalsSalesByUser = array();\n $totalSales = 0;\n $incTimeStrings = array('1' => ' +1 week', '2' => ' +1 day', '3' => ' +1 month', '4' => ' +1 day', '5' => ' +1 day', '6' => ' +1 week', '7' => ' +1 week');\n $descTimeStrings = array('4' => ' -1 week', '5' => ' -1 week', '6' => ' -1 month', '7' => ' -1 month');\n $periodFormat = ($filterConditions['period'] == 3 || $filterConditions['period'] == 6 || $filterConditions['period'] == 7 ) ? \"Y-m-d\" : \"Y-m-d\";\n $specialPeriod = array('1', '2', '3', '4');\n $stringTimeFrom = array('1' => 'monday this week', '2' => 'monday last week', '3' => 'first day of this month', '4' => 'first day of previous month');\n $stringTimeTo = array('1' => 'sunday this week', '2' => 'sunday last week', '3' => 'last day of this month', '4' => 'last day of previous month');\n $thisFriday = date($periodFormat, strtotime('friday this week'));\n $today = date($periodFormat);\n $userIds = $this->userIds;\n if (($filterConditions['from'] == '' || $filterConditions['to'] == '' ) && in_array($filterConditions['period'], $specialPeriod) == false) {\n $this->setCollection($collection);\n return parent::_prepareCollection();\n }\n\n $startTime = (in_array($filterConditions['range'], $specialPeriod)) ? (date($periodFormat, strtotime($stringTimeFrom[$filterConditions['range']]))) : date($periodFormat, strtotime($filterConditions['from']));\n $timeFrom = (in_array($filterConditions['range'], $specialPeriod)) ? (date($periodFormat, strtotime($stringTimeFrom[$filterConditions['range']]))) : date($periodFormat, strtotime($filterConditions['from']));\n $timeTo = (in_array($filterConditions['range'], $specialPeriod)) ? (date($periodFormat, strtotime($stringTimeTo[$filterConditions['range']]))) : date(\"Y-m-d\", strtotime($filterConditions['to']));\n if ($timeFrom && $timeTo) {\n while ($timeFrom <= $timeTo) {\n $i = 0;\n foreach ($this->userIds as $userId => $displayName) {\n $isSave = true;\n $totalSalesOfPeriod = 0;\n $isEmpty = true;\n if ($filterConditions['period'] == 1) {\n $endTime = $this->lastDayOf('year', new DateTime($timeFrom))->format('Y-m-d');\n } else if ($filterConditions['period'] == 3) {\n $endTime = $this->lastDayOf('month', new DateTime($timeFrom))->format('Y-m-d');\n } else\n $endTime = date('Y-m-d', strtotime($timeFrom . $incTimeStrings[$filterConditions['period']]));\n $endTime = (strtotime($endTime) < strtotime($timeTo)) ? $endTime : $timeTo;\n $itemDataObject = new Varien_Object();\n if ($i == 0) {\n if ($filterConditions['period'] == 1) {\n $exTimeFrom = explode('-', $timeFrom);\n $itemDataObject->setData('period', $exTimeFrom[0]);\n } else if ($filterConditions['period'] == 3) {\n $exTimeFrom = explode('-', $timeFrom);\n $itemDataObject->setData('period', $exTimeFrom[0] . '-' . $exTimeFrom[1]);\n } else\n $itemDataObject->setData('period', $timeFrom);\n } else\n $itemDataObject->setData('period', '');\n if ($itemDataObject->getData('period'))\n $itemDataObject->setData('period', date('F j, Y', strtotime($itemDataObject->getData('period'))));\n $webposOrderCollection = $this->getSalesCollection($timeFrom, $endTime, array('user_id' => $userId));\n $totalU = 0;\n if (count($webposOrderCollection) > 0) {\n foreach ($webposOrderCollection as $order) {\n $totalU += $order->getTotals();\n }\n }\n if (!$totalU && $filterConditions['rp_settings']['show_empty_result'] == 'false')\n $isSave = false;\n\n if ($isSave) {\n $itemDataObject->setData('user', $displayName);\n\n $itemDataObject->setData('totals_sales', ($totalU > 0) ? $totalU : '0.00');\n $collection->addItem($itemDataObject);\n }\n $i++;\n }\n if ($filterConditions['period'] == 1)\n $timeFrom = date('Y-m-d', strtotime($endTime));\n else\n $timeFrom = date($periodFormat, strtotime($timeFrom . $incTimeStrings[$filterConditions['period']]));\n }\n /* get last item data \n $i = 0;\n foreach($this->userIds as $userId => $displayName){\n $isSave = true;\n $beforeLastItem = new Varien_Object();\n if($i == 0){\n if($filterConditions['period'] == 1){\n $exTimeFrom = explode('-',$timeTo);\n $beforeLastItem->setData('period',$exTimeFrom[0]);\n }\n else if($filterConditions['period'] == 3){\n $exTimeFrom = explode('-',$timeTo);\n $beforeLastItem->setData('period',$exTimeFrom[0].'-'.$exTimeFrom[1]);\n }\n else\n $beforeLastItem->setData('period',$timeTo);\n }\n else\n $beforeLastItem->setData('period','');\n if($beforeLastItem->getData('period'))\n $beforeLastItem->setData('period',date('F j, Y', strtotime($beforeLastItem->getData('period'))));\n $webposOrderCollection = $this->getSalesCollection($timeTo,$timeTo,array('user_id' => $userId))->getFirstItem();\n if( !$webposOrderCollection->getTotals() && $filterConditions['rp_settings']['show_empty_result'] == 'false')\n $isSave = false;\n if($isSave){\n $beforeLastItem->setData('user',$displayName);\n $beforeLastItem->setData('totals_sales',$webposOrderCollection->getTotals()?$webposOrderCollection->getTotals():'0.00');\n $collection->addItem($beforeLastItem);\n }\n $i++;\n }\n end last item */\n }\n /* set data for totals row */\n $lastItemDataObject = new Varien_Object();\n $lastItemDataObject->setData('period', 'Totals:');\n $orders = $this->getSalesTotal($startTime, $endTime);\n\n $totalU = 0;\n if (count($orders) > 0) {\n foreach ($orders as $order) {\n $totalU += $order->getTotals();\n }\n }\n $lastItemDataObject->setData('totals_sales', $totalU);\n $collection->addItem($lastItemDataObject);\n $this->setCollection($collection);\n /* set session for chart */\n $sessionObject = new Varien_Object();\n foreach ($this->userIds as $userId => $username) {\n $orders = $this->getSalesTotal($startTime, $endTime, array('user_id' => $userId));\n\n\n $totalU = 0;\n if (count($orders) > 0) {\n foreach ($orders as $order) {\n $totalU += $order->getTotals();\n }\n }\n $sessionObject->setData($username, $totalU);\n }\n Mage::getSingleton('core/session')->setData('total_sales_by_user', $sessionObject->toArray());\n Mage::getSingleton('core/session')->setType('user');\n $this->setTotalRowByUser($sessionObject->toArray());\n return parent::_prepareCollection();\n }",
"public function initOperationPrestationss($overrideExisting = true)\n {\n if (null !== $this->collOperationPrestationss && !$overrideExisting) {\n return;\n }\n $this->collOperationPrestationss = new PropelObjectCollection();\n $this->collOperationPrestationss->setModel('OperationPrestations');\n }",
"protected function _prepareCollection()\n {\n $collection = $this->collectionFactory->create();\n $this->setCollection($collection);\n\n return parent::_prepareCollection();\n }",
"public function clearOperationScenariis()\n {\n $this->collOperationScenariis = null; // important to set this to null since that means it is uninitialized\n $this->collOperationScenariisPartial = null;\n\n return $this;\n }",
"protected function _prepareCollection()\n {\n $userId = Mage::getSingleton('admin/session')->getUser()->getId();\n\n /* var $collection Gri_Cms_Model_Mysql4_Version_Collection */\n $collection = Mage::getModel('gri_cms/page_version')->getCollection()\n ->addPageFilter($this->getPage())\n ->addVisibilityFilter($userId,\n Mage::getSingleton('gri_cms/config')->getAllowedAccessLevel())\n ->addUserColumn()\n ->addUserNameColumn();\n\n if (!$this->getParam($this->getVarNameSort())) {\n $collection->addNumberSort();\n }\n\n $this->setCollection($collection);\n\n return parent::_prepareCollection();\n }",
"protected function _prepareCollection()\n\t{\n\t\t$collection = Mage::getResourceModel($this->_getCollectionClass());\n\t\t$this->setCollection($collection);\n\t\t \n\t\treturn parent::_prepareCollection();\n\t}",
"protected function _prepareCollection()\n {\n $collection = Mage::getResourceModel($this->_getCollectionClass());\n $collection->setOrder('ID','DESC');\n $this->setCollection($collection);\n return parent::_prepareCollection();\n }",
"protected function _getCollection()\n {\n if (!$this->_collection) {\n $websiteId = Mage::app()->getWebsite()->getId();\n $this->_collection = Mage::getModel('gri_reward/reward_history')->getCollection()\n ->addCustomerFilter(Mage::getSingleton('customer/session')->getCustomerId())\n ->addWebsiteFilter($websiteId)\n ->setExpiryConfig(Mage::helper('gri_reward')->getExpiryConfig())\n ->addExpirationDate($websiteId)\n ->skipExpiredDuplicates()\n ->setDefaultOrder()\n ;\n }\n return $this->_collection;\n }",
"protected function _prepareCollection()\n {\n $collection = Mage::getResourceModel($this->_getCollectionClass());\n $this->setCollection($collection);\n\n return parent::_prepareCollection();\n }",
"public function setOperationPrestationss(PropelCollection $operationPrestationss, PropelPDO $con = null)\n {\n $operationPrestationssToDelete = $this->getOperationPrestationss(new Criteria(), $con)->diff($operationPrestationss);\n\n\n $this->operationPrestationssScheduledForDeletion = $operationPrestationssToDelete;\n\n foreach ($operationPrestationssToDelete as $operationPrestationsRemoved) {\n $operationPrestationsRemoved->setOperationPrimes(null);\n }\n\n $this->collOperationPrestationss = null;\n foreach ($operationPrestationss as $operationPrestations) {\n $this->addOperationPrestations($operationPrestations);\n }\n\n $this->collOperationPrestationss = $operationPrestationss;\n $this->collOperationPrestationssPartial = false;\n\n return $this;\n }",
"public function cleanCopy()\n {\n $clone = clone $this;\n $clone->setEagerLoader(clone $this->getEagerLoader());\n $clone->triggerBeforeFind();\n $clone->enableAutoFields(false);\n $clone->limit(null);\n $clone->order([], true);\n $clone->offset(null);\n $clone->mapReduce(null, null, true);\n $clone->formatResults(null, true);\n $clone->setSelectTypeMap(new TypeMap());\n $clone->decorateResults(null, true);\n\n return $clone;\n }",
"public function getPeer()\n {\n if (self::$peer === null) {\n self::$peer = new OperationPrimesPeer();\n }\n\n return self::$peer;\n }",
"protected function _prepareCollection() {\n $website_id = Mage::app()->getWebsite()->getId();\n $collection = Mage::getModel('inchoo_supportticket/ticket')\n ->getCollection();\n $this->setCollection($collection);\n parent::_prepareCollection();\n return $this;\n }",
"protected function _initProductCollection()\n {\n $client = Mage::helper('catalogsearch')->getEngine()->getClient();\n $baseQuery = $this->_getBaseSearchQuery();\n $optimizedQuery = $this->_getOptimizedQuery($baseQuery);\n $baseProductIds = $this->_getProductIdsFromSearchQuery($baseQuery);\n $optimizeProductIds = $this->_getProductIdsFromSearchQuery($optimizedQuery);\n\n $this->setBaseProductIds($baseProductIds);\n $this->setOptimizedProductIds($optimizeProductIds);\n\n $allIds = array_merge($baseProductIds, $optimizeProductIds);\n\n if (empty($allIds)) {\n $allIds = array(0);\n }\n\n $attributes = Mage::getModel('catalog/config')->getProductCollectionAttributes();\n $collection = Mage::getResourceModel('catalog/product_collection')\n ->setStoreId($this->getStoreId())\n ->addIdFilter($allIds)\n ->addAttributeToSelect($attributes)\n ->load();\n\n $this->setProductCollection($collection);\n\n return $this;\n }",
"protected function _getCollection()\n\t{\n\t\t//Check collection\n\t\tif($this->_collection)\n\t\t\treturn $this->_collection;\n\n\t\t//Get collection\n\t\t$this->_collection = new \\Framework\\Database\\Drivers\\Mongo\\CDatabaseModelCollection($this, $this->execute());\n\t\treturn $this->_collection;\n\t}",
"protected function _prepareCollection()\n {\t\t \n\t\t\n $collection = Mage::getModel('catalog/product')\n \t->getCollection()\n \t->addAttributeToSelect('name')\n \t->addAttributeToSelect('price')\n \t->addAttributeToSelect('special_price')\n \t->addAttributeToSelect('name')\n \t->addAttributeToSelect('manufacturer')\n \t->addFieldToFilter('type_id', array('in' => array(Mage_Catalog_Model_Product_Type::TYPE_SIMPLE, Mage_Catalog_Model_Product_Type::TYPE_VIRTUAL)))\n ->joinField('qty',\n 'cataloginventory/stock_item',\n 'qty',\n 'product_id=entity_id',\n '{{table}}.stock_id=1',\n 'left');\n \t;\n $this->setCollection($collection);\n return parent::_prepareCollection();\n }",
"protected function _prepareCollection()\n {\n $collection = Mage::getResourceModel('bs_worksheet/worksheet_collection');\n if ($this->getCurriculum()->getId()) {\n $constraint = 'related.curriculum_id='.$this->getCurriculum()->getId();\n } else {\n $constraint = 'related.curriculum_id=0';\n }\n $collection->getSelect()->joinLeft(\n array('related' => $collection->getTable('bs_worksheet/worksheet_curriculum')),\n 'related.worksheet_id=main_table.entity_id AND '.$constraint,\n array('position')\n );\n $this->setCollection($collection);\n parent::_prepareCollection();\n return $this;\n }",
"public function getFeatureCvtermprops($criteria = null, PropelPDO $con = null)\n {\n $partial = $this->collFeatureCvtermpropsPartial && !$this->isNew();\n if (null === $this->collFeatureCvtermprops || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collFeatureCvtermprops) {\n // return empty collection\n $this->initFeatureCvtermprops();\n } else {\n $collFeatureCvtermprops = FeatureCvtermpropQuery::create(null, $criteria)\n ->filterByFeatureCvterm($this)\n ->find($con);\n if (null !== $criteria) {\n if (false !== $this->collFeatureCvtermpropsPartial && count($collFeatureCvtermprops)) {\n $this->initFeatureCvtermprops(false);\n\n foreach($collFeatureCvtermprops as $obj) {\n if (false == $this->collFeatureCvtermprops->contains($obj)) {\n $this->collFeatureCvtermprops->append($obj);\n }\n }\n\n $this->collFeatureCvtermpropsPartial = true;\n }\n\n $collFeatureCvtermprops->getInternalIterator()->rewind();\n return $collFeatureCvtermprops;\n }\n\n if($partial && $this->collFeatureCvtermprops) {\n foreach($this->collFeatureCvtermprops as $obj) {\n if($obj->isNew()) {\n $collFeatureCvtermprops[] = $obj;\n }\n }\n }\n\n $this->collFeatureCvtermprops = $collFeatureCvtermprops;\n $this->collFeatureCvtermpropsPartial = false;\n }\n }\n\n return $this->collFeatureCvtermprops;\n }",
"public function createCollection()\n\t{\n\t\t/** @var $collection \\Magento\\Catalog\\Model\\ResourceModel\\Product\\Collection */\n\t\t$collection = $this->productCollectionFactory->create();\n\t\t$collection->setVisibility($this->catalogProductVisibility->getVisibleInCatalogIds());\n\n\t\t$collection = $this->_addProductAttributesAndPrices($collection)\n\t\t\t->addStoreFilter()\n\t\t\t->setPageSize($this->getPageSize())\n\t\t\t->setCurPage($this->getRequest()->getParam(self::PAGE_VAR_NAME, 1));\n\n\t\t$conditions = $this->getConditions();\n\t\t$conditions->collectValidatedAttributes($collection);\n\t\t$this->sqlBuilder->attachConditionToCollection($collection, $conditions);\n\n\t\treturn $collection;\n\t}",
"protected function _prepareCollection() {\n /**\n * Get the Collection of Manage Subscription\n */\n $manageSubscription = Mage::getModel ( 'airhotels/managesubscriptions' )->getCollection ();\n \n /**\n * Get the Table Prefix Value\n */\n $tablePrefix = Mage::getConfig ()->getTablePrefix ();\n $manageSubscription->getSelect ()->group ( 'main_table.product_id' )->joinLeft ( $tablePrefix . 'apptha_productsubscriptions', 'main_table.product_id =' . $tablePrefix . 'apptha_productsubscriptions.product_id AND ' . $tablePrefix . 'apptha_productsubscriptions.is_delete = 0', array (\n 'main_table.id as id',\n 'main_table.product_name as product_name',\n $tablePrefix . 'apptha_productsubscriptions.subscription_type as subscription_type' \n ) )->where ( 'main_table.is_subscription_only = ?', 1 );\n \n $collection = $manageSubscription;\n $this->setCollection ( $collection );\n /**\n * Calling the parent Construct Method.\n */\n return parent::_prepareCollection ();\n }",
"protected function _prepareCollection()\n {\n $collection = $this->_createCollection()->addCustomerIdFilter($this->_getCustomer()->getId())\n ->resetSortOrder()\n ->addDaysInWishlist()\n ->addStoreData();\n $this->setCollection($collection);\n\n return parent::_prepareCollection();\n }",
"protected function _getCollection()\n {\n if (!$this->_collection) {\n $websiteId = $this->_storeManager->getWebsite()->getId();\n $this->_collection = $this->_historyFactory->create()\n ->addCustomerFilter($this->currentCustomer->getCustomerId())\n ->addWebsiteFilter($websiteId)\n ->setExpiryConfig($this->_rewardData->getExpiryConfig())\n ->addExpirationDate($websiteId)\n ->skipExpiredDuplicates()\n ->setDefaultOrder();\n }\n return $this->_collection;\n }",
"public function getProduitsPanier()\n {\n return $this->CollProduit->getCollection();\n }",
"public function __clone() {\n if ($this->_where) {\n $this->_where = clone $this->_where;\n }\n\n if ($this->_having) {\n $this->_having = clone $this->_having;\n }\n }",
"protected function getComposedCollection()\n {\n return $this->composedCollection;\n }",
"protected function _prepareCollection()\n {\n $collection = Mage::getModel('oggetto_oneclick/order')->getResourceCollection();\n $this->setCollection($collection);\n return parent::_prepareCollection();\n }",
"public function initLnkOperationPrimeRCountriess($overrideExisting = true)\n {\n if (null !== $this->collLnkOperationPrimeRCountriess && !$overrideExisting) {\n return;\n }\n $this->collLnkOperationPrimeRCountriess = new PropelObjectCollection();\n $this->collLnkOperationPrimeRCountriess->setModel('LnkOperationPrimeRCountries');\n }",
"protected function _prepareCollection()\n {\n /** @var $collection ChazkiExpressCollection */\n $collection = $this->_collectionFactory->create();\n $collection->setWebsiteFilter($this->getWebsiteId());\n\n $this->setCollection($collection);\n\n return parent::_prepareCollection();\n }",
"public function getContributionss(Criteria $criteria = null, ConnectionInterface $con = null)\n {\n $partial = $this->collContributionssPartial && !$this->isNew();\n if (null === $this->collContributionss || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collContributionss) {\n // return empty collection\n $this->initContributionss();\n } else {\n $collContributionss = ChildContributionsQuery::create(null, $criteria)\n ->filterByIssues($this)\n ->find($con);\n\n if (null !== $criteria) {\n if (false !== $this->collContributionssPartial && count($collContributionss)) {\n $this->initContributionss(false);\n\n foreach ($collContributionss as $obj) {\n if (false == $this->collContributionss->contains($obj)) {\n $this->collContributionss->append($obj);\n }\n }\n\n $this->collContributionssPartial = true;\n }\n\n return $collContributionss;\n }\n\n if ($partial && $this->collContributionss) {\n foreach ($this->collContributionss as $obj) {\n if ($obj->isNew()) {\n $collContributionss[] = $obj;\n }\n }\n }\n\n $this->collContributionss = $collContributionss;\n $this->collContributionssPartial = false;\n }\n }\n\n return $this->collContributionss;\n }",
"public static function cooperations() {\n return self::query()\n ->join('ownership', 'ownership.fobjsid', 'vp.sId')\n ->join('jobs', 'ownership.tobjsid', 'jobs.sId')\n ->select('vp.*')\n ->where('jobs.type', Job::TYPE_COOPERATION);\n }",
"public function getProcessorsCollection();",
"public function clearOperations()\n {\n $this->_operations = array();\n\n return $this;\n }",
"protected function _prepareCollection()\n {\n $collection = Mage::getModel('iparcel/log')->getCollection();\n $this->setCollection($collection);\n\n return parent::_prepareCollection();\n }",
"public function copy(): Collection\n {\n return clone $this;\n }",
"protected function _prepareCollection()\n {\n $collection = Mage::getModel('solutionpartner/partner')->getCollection();\n $collection->getSelect()->joinLeft(\n array('order' => $collection->getTable('sales/order')),\n 'main_table.email = order.customer_email AND order.status = \"complete\"',\n array(\n 'order_id' => 'entity_id',\n 'order_status' => 'order.status',\n 'number_qtys' => 'count(order.entity_id)'\n ))\n ->group('main_table.solutionpartner_id');\n $this->setCollection($collection);\n return parent::_prepareCollection();\n }",
"public function searchPesificacionesSinCompletar()\n\t{\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n $criteria->condition= \"estado=:estado\";\n\t\t$criteria->params = array(':estado'=> Pesificaciones::ESTADO_ABIERTO);\n\n\t\t//$criteria->condition= \"(t.montoAcreditar+t.montoGastos) NOT IN (SELECT SUM(cheques.montoOrigen) FROM cheques, detallePesificaciones WHERE detallePesificaciones.chequeId=cheques.id AND detallePesificaciones.pesificacionId=t.id)\";\n\t\treturn new CActiveDataProvider(new Pesificaciones, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}",
"protected function _prepareCollection()\n\t{\n\t\t$collection = Mage::getResourceModel($this->_getCollectionClass());\n $collection->getSelect()->joinLeft(\n array('sfo' => 'sales_flat_order'),\n 'main_table.order_id = sfo.entity_id',\n array('increment_id')\n );\n\t\t$this->setCollection($collection);\n\n\t\treturn parent::_prepareCollection();\n\t}",
"protected function _prepareCollection()\n {\n /* @var $collection Scandi_MenuManager_Model_Resource_Item_Collection */\n $collection = Mage::getModel('scandi_menumanager/item')->getResourceCollection()\n ->addMenuFilter(Mage::registry('menumanager_menu'));\n if (!$this->getRequest()->getParam('sort')) { $collection->setPositionOrder(); }\n\n $this->setCollection($collection);\n return parent::_prepareCollection();\n }",
"public function getProductCollection()\n {\n\n if (is_null($this->_productCollection)) {\n $collection = $this->_engine->getAdvancedResultCollection();\n $this->prepareProductCollection($collection);\n if (!$collection) {\n return $collection;\n }\n $this->_productCollection = $collection;\n }\n\n return $this->_productCollection;\n }",
"protected function getProductResultCollection()\n {\n $collection = Mage::registry('recommendation_collection');\n\n if (empty($collection)) {\n $collection = array();\n }\n\n return $collection;\n }",
"public function getProductCollection()\n {\n $this->_basketProducts = $this->_getCartProductIds();\n $products = $this->_complementaryEngine->sendQuery($this->_basketProducts);\n\n if ($products['rules']) {\n return $this->_getPredictedProducts($products['rules']);\n }\n\n return false;\n }",
"public function buildPkeyCriteria()\n {\n $criteria = new Criteria(SanitasiPeer::DATABASE_NAME);\n $criteria->add(SanitasiPeer::SEKOLAH_ID, $this->sekolah_id);\n $criteria->add(SanitasiPeer::SEMESTER_ID, $this->semester_id);\n\n return $criteria;\n }",
"public function getOperations(PropelPDO $con = null, $doQuery = true)\n {\n if ($this->aOperations === null && ($this->op_id !== null) && $doQuery) {\n $this->aOperations = OperationsQuery::create()->findPk($this->op_id, $con);\n /* The following can be used additionally to\n guarantee the related object contains a reference\n to this object. This level of coupling may, however, be\n undesirable since it could result in an only partially populated collection\n in the referenced object.\n $this->aOperations->addOperationPrimess($this);\n */\n }\n\n return $this->aOperations;\n }",
"protected function _prepareCollection()\n {\n $collection = Mage::getModel('catalog/product')->getCollection()\n ->addAttributeToSelect('name')\n ->addAttributeToSelect('type')\n ->addAttributeToSelect('status')\n ->addAttributeToSelect('visibility')\n ->addAttributeToSelect('sku');\n $this->setCollection($collection);\n return parent::_prepareCollection();\n }",
"public function getCriteria()\n {\n if (!isset($this->currentCriteria)) {\n throw new CollectionDriverException('Criteria is accessible only during preGetResult event.');\n }\n\n return $this->currentCriteria;\n }",
"function getComposite()\n {\n return $this;\n }",
"public function __clone()\r\n {\r\n $this->document = [];\r\n $this->document_id = 0;\r\n\r\n $this->documentTotal = 0;\r\n $this->documentExchageTotal = 0;\r\n\r\n $this->associatedDocuments = [];\r\n }",
"public function __clone() {\n $this->name = clone $this->name;\n $this->type = clone $this->type;\n $this->op = clone $this->op;\n\n $this->currentPeriod = clone $this->currentPeriod;\n $this->previousPeriod = clone $this->previousPeriod;\n\n $products = array();\n foreach ($this->products as $idx=>$product) {\n $products[] = clone $product;\n }\n $this->products = $products;\n }",
"public function buildPkeyCriteria()\n\t{\n\t\t$criteria = new Criteria(C060InventarioPeer::DATABASE_NAME);\n\n\t\t$criteria->add(C060InventarioPeer::CO_NUM_INVENTARIO, $this->co_num_inventario);\n\n\t\treturn $criteria;\n\t}",
"function productCollection()\n {\n return eZProductCollection::fetch( $this->attribute( 'productcollection_id' ) );\n }",
"public function chapitrePrec() {\n $prevChapitre = $this->cour->chapitres()->where('num_ordre', '<', $this->num_ordre)\n ->orderBy('num_ordre', 'desc')\n ->first();\n\n if($prevChapitre) {\n return $prevChapitre;\n }\n\n return $this;\n }",
"public function getProposedChanges(): ProposedChangeCollection\n {\n return $this->proposedChanges;\n }",
"protected function getPagerCollectionInstance()\n {\n $pagerCollection = $this->dataBackend->getPagerCollection();\n $pagerCollection->setItemCount($this->dataBackend->getTotalItemsCount());\n return $pagerCollection;\n }",
"public function findNewProd()\r\n {\r\n $query = $this->getEntityManager()\r\n ->createQuery(\"select m from CondorsTnMallBundle:Produit m ORDER BY m.datecreation DESC \")\r\n ->setMaxResults(5);\r\n\r\n return $query->getResult();\r\n\r\n }",
"function detachProductCollection()\n {\n $collection = $this->productCollection();\n if ( !$collection )\n {\n $retValue = false;\n return $retValue;\n }\n\n $db = eZDB::instance();\n $db->begin();\n $newCollection = $collection->copy();\n if ( !$newCollection )\n {\n $db->commit();\n $retValue = false;\n return $retValue;\n }\n $this->setAttribute( 'productcollection_id', $newCollection->attribute( 'id' ) );\n $this->store();\n\n $db->commit();\n return $newCollection;\n }",
"protected function _prepareCollection()\n {\n $collection = Mage::getResourceModel('bs_docwise/docwisement_collection');\n\n if ($this->getExam()->getId()) {\n $constraint = 'related.exam_id='.$this->getExam()->getId();\n } else {\n $constraint = 'related.exam_id=0';\n }\n $collection->getSelect()->joinLeft(\n array('related' => $collection->getTable('bs_docwise/exam_docwisement')),\n 'related.docwisement_id = main_table.entity_id AND '.$constraint,\n array('position')\n );\n\n\n $this->setCollection($collection);\n parent::_prepareCollection();\n return $this;\n }",
"public function initPesquisas($overrideExisting = true)\n\t{\n\t\tif (null !== $this->collPesquisas && !$overrideExisting) {\n\t\t\treturn;\n\t\t}\n\t\t$this->collPesquisas = new PropelObjectCollection();\n\t\t$this->collPesquisas->setModel('Pesquisa');\n\t}",
"public function clearFindCriteria()\n {\n $this->findCriteria = [];\n return $this;\n }",
"public function relCooperations() {\n return Job::query()\n ->join('ownership', 'ownership.tobjsid', 'jobs.sId')\n ->select('jobs.*')\n ->where('ownership.fobjsid', parent::__get('sId'))\n ->where('jobs.type', Job::TYPE_COOPERATION)\n ->get();\n }",
"public function load()\n {\n if (!$this->loaded) {\n $searchData = [];\n foreach (persistableCollection::getInstance($this->resourceName)->getPrimaryFields() as $fieldName) {\n $searchData[$fieldName] = $this->$fieldName;\n }\n $result = persistableCollection::getInstance($this->resourceName)->loadObject($searchData);\n $this->persisted = true;\n $this->loaded = true;\n return $result;\n }\n return $this;\n }",
"public function Panier() \n {\n $this->CollProduit = new Collection;\n }",
"public function __clone()\n {\n parent::__clone();\n $this->_stockItem = null;\n $this->_stockItems = null;\n $this->_inStockStockItems = null;\n return $this;\n }",
"public function getCollection() {\n return $this->gateway->find(\n $this->getFilter(),\n $this->order,\n $this->relations,\n $this->pager,\n !$this->excludeRepo\n );\n }",
"public function retrievePriceFilters()\n {\n $select = $this->getSelect();\n $select->setPart(Zend_Db_Select::WHERE, $this->_wherePartStash);\n $select->setPart(Zend_Db_Select::GROUP, $this->_groupPartStash);\n\n $this->clearStatisticsData();\n\n return $this;\n }",
"public function __clone()\n {\n if (is_object($this->collection)) {\n $this->collection = clone $this->collection;\n }\n $this->initialize();\n $this->owner = null;\n $this->snapshot = [];\n $this->changed();\n }",
"public function getInappropriates($criteria = null, PropelPDO $con = null)\n\t{\n\t\tif ($criteria === null) {\n\t\t\t$criteria = new Criteria(PostPeer::DATABASE_NAME);\n\t\t}\n\t\telseif ($criteria instanceof Criteria)\n\t\t{\n\t\t\t$criteria = clone $criteria;\n\t\t}\n\n\t\tif ($this->collInappropriates === null) {\n\t\t\tif ($this->isNew()) {\n\t\t\t $this->collInappropriates = array();\n\t\t\t} else {\n\n\t\t\t\t$criteria->add(InappropriatePeer::POST_ID, $this->id);\n\n\t\t\t\tInappropriatePeer::addSelectColumns($criteria);\n\t\t\t\t$this->collInappropriates = InappropriatePeer::doSelect($criteria, $con);\n\t\t\t}\n\t\t} else {\n\t\t\t// criteria has no effect for a new object\n\t\t\tif (!$this->isNew()) {\n\t\t\t\t// the following code is to determine if a new query is\n\t\t\t\t// called for. If the criteria is the same as the last\n\t\t\t\t// one, just return the collection.\n\n\n\t\t\t\t$criteria->add(InappropriatePeer::POST_ID, $this->id);\n\n\t\t\t\tInappropriatePeer::addSelectColumns($criteria);\n\t\t\t\tif (!isset($this->lastInappropriateCriteria) || !$this->lastInappropriateCriteria->equals($criteria)) {\n\t\t\t\t\t$this->collInappropriates = InappropriatePeer::doSelect($criteria, $con);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$this->lastInappropriateCriteria = $criteria;\n\t\treturn $this->collInappropriates;\n\t}",
"public function __clone()\n {\n $this->query = clone $this->query;\n }",
"public function getParameters() : CollectionInterface\n {\n return $this->parameters->copy();\n }",
"protected function _prepareCollection()\n {\n $baseQuery = $this->_getBaseSearchQuery();\n $productIds = $this->_getProductIdsFromSearchQuery($baseQuery);\n\n if (empty($productIds)) {\n $productIds = array(0);\n }\n\n $attributes = Mage::getModel('catalog/config')->getProductCollectionAttributes();\n\n /** @var Mage_Catalog_Model_Resource_Product_Collection $collection */\n $collection = Mage::getResourceModel('catalog/product_collection')\n ->addIdFilter($productIds)\n ->addAttributeToSelect($attributes);\n\n $storeIds = implode(\",\", array_unique(array_map(\"intval\", array(Mage_Core_Model_App::ADMIN_STORE_ID, $this->getStoreId()))));\n\n if ($this->getStoreId() != Mage_Core_Model_App::ADMIN_STORE_ID) {\n $collection->setStoreId($this->getStoreId());\n $joinCond = \"category_id = \" . (int) $this->getCategory()->getId() . \" AND store_id = {$this->getStoreId()}\";\n } else {\n $joinCond = \"category_id = \" . (int) $this->getCategory()->getId() . \" AND store_id IN ({$storeIds})\";\n }\n\n $collection->joinField(\n 'position',\n 'smile_virtualcategories/category_product_position',\n 'position',\n 'product_id = entity_id',\n $joinCond,\n 'left'\n );\n\n $collection->getSelect()->order(\n new Zend_Db_Expr(\"- position DESC\") // mimic a \"SORT BY #field NULL LAST\n );\n\n $entityIds = implode(\",\", $productIds);\n $collection->getSelect()->order(\n new Zend_Db_Expr(\"FIELD(e.entity_id, {$entityIds})\") // restore sort order given by ES\n );\n\n $this->setCollection($collection);\n\n return parent::_prepareCollection();\n }",
"public function getDataProcessorCollection(): ProcessorCollection {\n\n return $this->dataProcessorCollection;\n\n }",
"public function collection() {\n \t$db = $this->db;\n\t\t$sql = $this->sql();\n\t\t$rows = $db::execute($sql);\n\t\t$model = $this->model;\n\t\treturn new \\Collection($model::arrayFactoryFromRows($rows));\n\t}",
"public function getCollection()\n {\n $collection = trim(str_replace('\\\\', '_', $this->collection), '_');\n return $this->$collection()\n ->setDatabase($this->database)\n ->setTable($this->table)\n ->setModel($this->model)\n ->set($this->getRows());\n }",
"public function applyCriteria() {\n if ($this->skipCriteria === true) {\n return $this;\n }\n\n foreach ($this->getCriteria() as $criteria) {\n if ($criteria instanceof Criteria) {\n $this->model = $criteria->apply($this->model, $this);\n }\n }\n\n return $this;\n }",
"function getCommonProvisions();",
"public function fresh()\n {\n if ($this->hasModel() && $this->exists()) {\n return odb($this->db(), $this->table())->find((int) $this->data['id']);\n }\n\n return $this;\n }",
"protected function applyCriteria()\n {\n if ($this->skipCriteria === true) {\n return $this;\n }\n\n $criteria = $this->getCriteria();\n\n if ($criteria) {\n foreach ($criteria as $c) {\n $this->model = $c->apply($this->model, $this);\n }\n }\n\n return $this;\n }",
"public function buildPkeyCriteria()\n {\n $criteria = new Criteria(SekolahPaudPeer::DATABASE_NAME);\n $criteria->add(SekolahPaudPeer::SEKOLAH_ID, $this->sekolah_id);\n\n return $criteria;\n }",
"public function clearPriceFilters()\n {\n $select = $this->getSelect();\n $this->_wherePartStash = $select->getPart(Zend_Db_Select::WHERE);\n $this->_groupPartStash = $select->getPart(Zend_Db_Select::GROUP);\n $select->reset(Zend_Db_Select::WHERE);\n $select->reset(Zend_Db_Select::GROUP);\n\n $this->clearStatisticsData();\n\n return $this;\n }",
"public function getCriteriaCollection(): CriteriaCollection;",
"protected function getPluginCollection() {\n if (!$this->pluginCollection) {\n $plugin_manager = \\Drupal::service('plugin.manager.commerce_installment_plan_methods');\n $this->pluginCollection = new InstallmentPlanMethodPluginCollection($plugin_manager, $this->plugin, $this->configuration, $this->id);\n }\n return $this->pluginCollection;\n }",
"public function getCompetitionsWithReload() {\n $this->competitionsLoaded = false;\n return $this->getCompetitions();\n }",
"public function buildPkeyCriteria()\n\t{\n\t\t$criteria = new Criteria(VpoRequestPeer::DATABASE_NAME);\n\n\t\t$criteria->add(VpoRequestPeer::ID, $this->id);\n\n\t\treturn $criteria;\n\t}",
"private function applyCriteria()\n {\n foreach( $this->criteria as $criterion )\n {\n $this->query = $criterion->apply( $this->query, $this );\n }\n\n return $this;\n }",
"public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME)\n {\n $keys = OperationPrimesPeer::getFieldNames($keyType);\n\n if (array_key_exists($keys[0], $arr)) $this->setOpPrimeId($arr[$keys[0]]);\n if (array_key_exists($keys[1], $arr)) $this->setOpId($arr[$keys[1]]);\n if (array_key_exists($keys[2], $arr)) $this->setOpPrimeLibelle($arr[$keys[2]]);\n if (array_key_exists($keys[3], $arr)) $this->setOpPrimeNumero($arr[$keys[3]]);\n if (array_key_exists($keys[4], $arr)) $this->setGdlArtId($arr[$keys[4]]);\n if (array_key_exists($keys[5], $arr)) $this->setOperationPrimeCurrencyId($arr[$keys[5]]);\n if (array_key_exists($keys[6], $arr)) $this->setOperationPrimeRRewardTypeId($arr[$keys[6]]);\n if (array_key_exists($keys[7], $arr)) $this->setOperationPrimeRRewardExpeditionModeId($arr[$keys[7]]);\n if (array_key_exists($keys[8], $arr)) $this->setOperationPrimeRRewardTransporterId($arr[$keys[8]]);\n if (array_key_exists($keys[9], $arr)) $this->setOperationPrimeFixedAmount($arr[$keys[9]]);\n if (array_key_exists($keys[10], $arr)) $this->setOperationPrimeProductPricePourcentage($arr[$keys[10]]);\n if (array_key_exists($keys[11], $arr)) $this->setOperationPrimeMaximumAmount($arr[$keys[11]]);\n }",
"protected function _getQueueCollection() : \\Pulchritudinous\\Queue\\Model\\ResourceModel\\Labour\\Collection\n {\n $collection = $this->_objectManager->create('Pulchritudinous\\Queue\\Model\\ResourceModel\\Labour\\Collection')\n ->addFieldToFilter('status', ['eq' => Labour::STATUS_PENDING])\n ->addFieldToFilter('execute_at', ['lteq' => time()])\n ->setOrder('priority', 'ASC')\n ->setOrder('execute_at', 'ASC');\n\n return $collection;\n }",
"public function getResultsCollections()\n\t {\n\t \tif ( is_array($this->results) && $this->isMulti() ) {\n\n\t \t\treturn new MagentoObjectCollection($this->results);\n\n\t \t} elseif( is_array($this->results) && !$this->isMulti() ) {\n\n\t \t\treturn new MagentoObject($this->results);\n\n\t \t} elseif( is_object($this->results) ) {\n\n\t \t\treturn new MagentoObject($this->results);\n\n\t \t} else {\n\n\t \t\treturn $this->results;\n\t \t}\n\t }",
"protected function processData($data)\n {\n // reuse the existing collection to optimize for Doctrine\n if ($data instanceof Collection) {\n $currentData = $this->getData();\n\n if (!$currentData) {\n $currentData = $data;\n } else if (count($data) === 0) {\n $currentData->clear();\n } else {\n // merge $data into $currentData\n foreach ($currentData as $entity) {\n if (!$data->contains($entity)) {\n $currentData->removeElement($entity);\n } else {\n $data->removeElement($entity);\n }\n }\n\n foreach ($data as $entity) {\n $currentData->add($entity);\n }\n }\n\n return $currentData;\n }\n\n return $data;\n }",
"protected function _prepareCollection()\n {\n $currentCampaign = Mage::getSingleton('adminhtml/session')->getCurrentCampaign();\n $collection = Mage::getModel('campaign/bannerslider')->getCollection();\n $collection->getSelect()\n ->joinLeft(array('campaign'=>$collection->getTable('campaign/campaign')),\n 'main_table.campaign_id = campaign.campaign_id', '')\n ->columns(array('campaign_name'=>'IF(main_table.campaign_id = \"'.$currentCampaign->getId().'\", \"Current\", campaign.name)'))\n ->group('main_table.bannerslider_id');\n $filter = Mage::registry('banner_reloaded_ids');\n if(!isset($filter)){//if reset no filter\n $selected_id = $this->_selectedId();\n if(!empty($selected_id)){\n $collection->addFieldToFilter('bannerslider_id', array('in'=>$selected_id));\n }\n }\n $this->setCollection($collection);\n return parent::_prepareCollection();\n }",
"public function __clone() {\n foreach ($this->conditions as $i => $condition) {\n $this->conditions[$i] = clone $condition;\n }\n }",
"public function initInappropriates()\n\t{\n\t\t$this->collInappropriates = array();\n\t}",
"protected function _getProductCollection()\n {\n $collection = parent::_getProductCollection();\n\t\t$helper = Mage::helper('catalogMembersonly/productsFilter');\n\t\t$collection = $helper->filterProductCollection($collection);\n\n return $collection;\t\t\n }",
"public function getCollection(){\r\n\t\treturn $this->_collection;\r\n\t}"
] | [
"0.62205374",
"0.61501235",
"0.61416936",
"0.59834236",
"0.5882558",
"0.5715867",
"0.5676356",
"0.5420742",
"0.53788686",
"0.5210833",
"0.52108145",
"0.5117575",
"0.5108138",
"0.5106548",
"0.5105183",
"0.5098247",
"0.50771606",
"0.506499",
"0.5058717",
"0.50490826",
"0.50481415",
"0.5038274",
"0.50162053",
"0.50039375",
"0.49937728",
"0.49794662",
"0.49781063",
"0.49662885",
"0.49339598",
"0.49296522",
"0.4919599",
"0.4893606",
"0.4884278",
"0.48657843",
"0.48362705",
"0.48359987",
"0.48348853",
"0.4797901",
"0.4775233",
"0.47632825",
"0.47505373",
"0.47500306",
"0.4746676",
"0.47338608",
"0.47309533",
"0.47219744",
"0.4706939",
"0.46731475",
"0.46720025",
"0.4669084",
"0.46592468",
"0.46481085",
"0.4647947",
"0.46466413",
"0.46460128",
"0.46407282",
"0.4636831",
"0.4635498",
"0.4635388",
"0.4634498",
"0.46267027",
"0.46233788",
"0.46223283",
"0.46180996",
"0.46160725",
"0.46111217",
"0.4585173",
"0.4585007",
"0.45845056",
"0.45834363",
"0.45795825",
"0.45653504",
"0.45607457",
"0.45600715",
"0.45546553",
"0.45472294",
"0.4545127",
"0.45422015",
"0.45393106",
"0.4537041",
"0.45365354",
"0.45356366",
"0.45331556",
"0.45306823",
"0.45299596",
"0.45239583",
"0.45233446",
"0.452328",
"0.45179158",
"0.45160252",
"0.4513337",
"0.45111609",
"0.45101893",
"0.44946745",
"0.44884977",
"0.44854257",
"0.44831833",
"0.44764265",
"0.44740954",
"0.44679588",
"0.44669658"
] | 0.0 | -1 |
If this collection has already been initialized with an identical criteria, it returns the collection. Otherwise if this OperationPrimes is new, it will return an empty collection; or if this OperationPrimes has previously been saved, it will retrieve related OperationPrestationss from storage. This method is protected by default in order to keep the public api reasonable. You can provide public methods for those you actually need in OperationPrimes. | public function getOperationPrestationssJoinOperations($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN)
{
$query = OperationPrestationsQuery::create(null, $criteria);
$query->joinWith('Operations', $join_behavior);
return $this->getOperationPrestationss($query, $con);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getOperationPrestationss($criteria = null, PropelPDO $con = null)\n {\n $partial = $this->collOperationPrestationssPartial && !$this->isNew();\n if (null === $this->collOperationPrestationss || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collOperationPrestationss) {\n // return empty collection\n $this->initOperationPrestationss();\n } else {\n $collOperationPrestationss = OperationPrestationsQuery::create(null, $criteria)\n ->filterByOperationPrimes($this)\n ->find($con);\n if (null !== $criteria) {\n if (false !== $this->collOperationPrestationssPartial && count($collOperationPrestationss)) {\n $this->initOperationPrestationss(false);\n\n foreach ($collOperationPrestationss as $obj) {\n if (false == $this->collOperationPrestationss->contains($obj)) {\n $this->collOperationPrestationss->append($obj);\n }\n }\n\n $this->collOperationPrestationssPartial = true;\n }\n\n $collOperationPrestationss->getInternalIterator()->rewind();\n\n return $collOperationPrestationss;\n }\n\n if ($partial && $this->collOperationPrestationss) {\n foreach ($this->collOperationPrestationss as $obj) {\n if ($obj->isNew()) {\n $collOperationPrestationss[] = $obj;\n }\n }\n }\n\n $this->collOperationPrestationss = $collOperationPrestationss;\n $this->collOperationPrestationssPartial = false;\n }\n }\n\n return $this->collOperationPrestationss;\n }",
"public function buildPkeyCriteria()\n {\n $criteria = new Criteria(OperationPrimesPeer::DATABASE_NAME);\n $criteria->add(OperationPrimesPeer::OP_PRIME_ID, $this->op_prime_id);\n\n return $criteria;\n }",
"public function buildCriteria()\n {\n $criteria = new Criteria(OperationPrimesPeer::DATABASE_NAME);\n\n if ($this->isColumnModified(OperationPrimesPeer::OP_PRIME_ID)) $criteria->add(OperationPrimesPeer::OP_PRIME_ID, $this->op_prime_id);\n if ($this->isColumnModified(OperationPrimesPeer::OP_ID)) $criteria->add(OperationPrimesPeer::OP_ID, $this->op_id);\n if ($this->isColumnModified(OperationPrimesPeer::OP_PRIME_LIBELLE)) $criteria->add(OperationPrimesPeer::OP_PRIME_LIBELLE, $this->op_prime_libelle);\n if ($this->isColumnModified(OperationPrimesPeer::OP_PRIME_NUMERO)) $criteria->add(OperationPrimesPeer::OP_PRIME_NUMERO, $this->op_prime_numero);\n if ($this->isColumnModified(OperationPrimesPeer::GDL_ART_ID)) $criteria->add(OperationPrimesPeer::GDL_ART_ID, $this->gdl_art_id);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_CURRENCY_ID)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_CURRENCY_ID, $this->operation_prime_currency_id);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_TYPE_ID)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_TYPE_ID, $this->operation_prime_r_reward_type_id);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_EXPEDITION_MODE_ID)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_EXPEDITION_MODE_ID, $this->operation_prime_r_reward_expedition_mode_id);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_TRANSPORTER_ID)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_TRANSPORTER_ID, $this->operation_prime_r_reward_transporter_id);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_FIXED_AMOUNT)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_FIXED_AMOUNT, $this->operation_prime_fixed_amount);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_PRODUCT_PRICE_POURCENTAGE)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_PRODUCT_PRICE_POURCENTAGE, $this->operation_prime_product_price_pourcentage);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_MAXIMUM_AMOUNT)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_MAXIMUM_AMOUNT, $this->operation_prime_maximum_amount);\n\n return $criteria;\n }",
"public function getOperationScenariis($criteria = null, PropelPDO $con = null)\n {\n $partial = $this->collOperationScenariisPartial && !$this->isNew();\n if (null === $this->collOperationScenariis || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collOperationScenariis) {\n // return empty collection\n $this->initOperationScenariis();\n } else {\n $collOperationScenariis = OperationScenariiQuery::create(null, $criteria)\n ->filterByOperationPrimes($this)\n ->find($con);\n if (null !== $criteria) {\n if (false !== $this->collOperationScenariisPartial && count($collOperationScenariis)) {\n $this->initOperationScenariis(false);\n\n foreach ($collOperationScenariis as $obj) {\n if (false == $this->collOperationScenariis->contains($obj)) {\n $this->collOperationScenariis->append($obj);\n }\n }\n\n $this->collOperationScenariisPartial = true;\n }\n\n $collOperationScenariis->getInternalIterator()->rewind();\n\n return $collOperationScenariis;\n }\n\n if ($partial && $this->collOperationScenariis) {\n foreach ($this->collOperationScenariis as $obj) {\n if ($obj->isNew()) {\n $collOperationScenariis[] = $obj;\n }\n }\n }\n\n $this->collOperationScenariis = $collOperationScenariis;\n $this->collOperationScenariisPartial = false;\n }\n }\n\n return $this->collOperationScenariis;\n }",
"public function getLnkOperationPrimeRCountriess($criteria = null, PropelPDO $con = null)\n {\n $partial = $this->collLnkOperationPrimeRCountriessPartial && !$this->isNew();\n if (null === $this->collLnkOperationPrimeRCountriess || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collLnkOperationPrimeRCountriess) {\n // return empty collection\n $this->initLnkOperationPrimeRCountriess();\n } else {\n $collLnkOperationPrimeRCountriess = LnkOperationPrimeRCountriesQuery::create(null, $criteria)\n ->filterByOperationPrimes($this)\n ->find($con);\n if (null !== $criteria) {\n if (false !== $this->collLnkOperationPrimeRCountriessPartial && count($collLnkOperationPrimeRCountriess)) {\n $this->initLnkOperationPrimeRCountriess(false);\n\n foreach ($collLnkOperationPrimeRCountriess as $obj) {\n if (false == $this->collLnkOperationPrimeRCountriess->contains($obj)) {\n $this->collLnkOperationPrimeRCountriess->append($obj);\n }\n }\n\n $this->collLnkOperationPrimeRCountriessPartial = true;\n }\n\n $collLnkOperationPrimeRCountriess->getInternalIterator()->rewind();\n\n return $collLnkOperationPrimeRCountriess;\n }\n\n if ($partial && $this->collLnkOperationPrimeRCountriess) {\n foreach ($this->collLnkOperationPrimeRCountriess as $obj) {\n if ($obj->isNew()) {\n $collLnkOperationPrimeRCountriess[] = $obj;\n }\n }\n }\n\n $this->collLnkOperationPrimeRCountriess = $collLnkOperationPrimeRCountriess;\n $this->collLnkOperationPrimeRCountriessPartial = false;\n }\n }\n\n return $this->collLnkOperationPrimeRCountriess;\n }",
"public function clearOperationPrestationss()\n {\n $this->collOperationPrestationss = null; // important to set this to null since that means it is uninitialized\n $this->collOperationPrestationssPartial = null;\n\n return $this;\n }",
"public function setLnkOperationPrimeRCountriess(PropelCollection $lnkOperationPrimeRCountriess, PropelPDO $con = null)\n {\n $lnkOperationPrimeRCountriessToDelete = $this->getLnkOperationPrimeRCountriess(new Criteria(), $con)->diff($lnkOperationPrimeRCountriess);\n\n\n $this->lnkOperationPrimeRCountriessScheduledForDeletion = $lnkOperationPrimeRCountriessToDelete;\n\n foreach ($lnkOperationPrimeRCountriessToDelete as $lnkOperationPrimeRCountriesRemoved) {\n $lnkOperationPrimeRCountriesRemoved->setOperationPrimes(null);\n }\n\n $this->collLnkOperationPrimeRCountriess = null;\n foreach ($lnkOperationPrimeRCountriess as $lnkOperationPrimeRCountries) {\n $this->addLnkOperationPrimeRCountries($lnkOperationPrimeRCountries);\n }\n\n $this->collLnkOperationPrimeRCountriess = $lnkOperationPrimeRCountriess;\n $this->collLnkOperationPrimeRCountriessPartial = false;\n\n return $this;\n }",
"protected function _prepareCollection() {\n $collection = Mage::helper('ProductReturn/SupplierReturn')->getProductsPending();\n $this->setCollection($collection);\n return parent::_prepareCollection();\n }",
"public function clearLnkOperationPrimeRCountriess()\n {\n $this->collLnkOperationPrimeRCountriess = null; // important to set this to null since that means it is uninitialized\n $this->collLnkOperationPrimeRCountriessPartial = null;\n\n return $this;\n }",
"public function initOperationPrestationss($overrideExisting = true)\n {\n if (null !== $this->collOperationPrestationss && !$overrideExisting) {\n return;\n }\n $this->collOperationPrestationss = new PropelObjectCollection();\n $this->collOperationPrestationss->setModel('OperationPrestations');\n }",
"protected function _prepareCollection() {\n $session = Mage::getModel('core/session');\n $filterConditions = $session->getData('rp_conditions');\n if (!$filterConditions)\n $filterConditions = $this->_filterConditions;\n $posorderCollection = Mage::getModel('webpos/posorder')->getCollection();\n /* Jack - create an empty collection */\n $collection = $posorderCollection;\n foreach ($collection->getItems() as $key => $item) {\n $collection->removeItemByKey($key);\n }\n /**/\n\n /* Define variables and set default data */\n $totalsSalesByUser = array();\n $totalSales = 0;\n $incTimeStrings = array('1' => ' +1 week', '2' => ' +1 day', '3' => ' +1 month', '4' => ' +1 day', '5' => ' +1 day', '6' => ' +1 week', '7' => ' +1 week');\n $descTimeStrings = array('4' => ' -1 week', '5' => ' -1 week', '6' => ' -1 month', '7' => ' -1 month');\n $periodFormat = ($filterConditions['period'] == 3 || $filterConditions['period'] == 6 || $filterConditions['period'] == 7 ) ? \"Y-m-d\" : \"Y-m-d\";\n $specialPeriod = array('1', '2', '3', '4');\n $stringTimeFrom = array('1' => 'monday this week', '2' => 'monday last week', '3' => 'first day of this month', '4' => 'first day of previous month');\n $stringTimeTo = array('1' => 'sunday this week', '2' => 'sunday last week', '3' => 'last day of this month', '4' => 'last day of previous month');\n $thisFriday = date($periodFormat, strtotime('friday this week'));\n $today = date($periodFormat);\n $userIds = $this->userIds;\n if (($filterConditions['from'] == '' || $filterConditions['to'] == '' ) && in_array($filterConditions['period'], $specialPeriod) == false) {\n $this->setCollection($collection);\n return parent::_prepareCollection();\n }\n\n $startTime = (in_array($filterConditions['range'], $specialPeriod)) ? (date($periodFormat, strtotime($stringTimeFrom[$filterConditions['range']]))) : date($periodFormat, strtotime($filterConditions['from']));\n $timeFrom = (in_array($filterConditions['range'], $specialPeriod)) ? (date($periodFormat, strtotime($stringTimeFrom[$filterConditions['range']]))) : date($periodFormat, strtotime($filterConditions['from']));\n $timeTo = (in_array($filterConditions['range'], $specialPeriod)) ? (date($periodFormat, strtotime($stringTimeTo[$filterConditions['range']]))) : date(\"Y-m-d\", strtotime($filterConditions['to']));\n if ($timeFrom && $timeTo) {\n while ($timeFrom <= $timeTo) {\n $i = 0;\n foreach ($this->userIds as $userId => $displayName) {\n $isSave = true;\n $totalSalesOfPeriod = 0;\n $isEmpty = true;\n if ($filterConditions['period'] == 1) {\n $endTime = $this->lastDayOf('year', new DateTime($timeFrom))->format('Y-m-d');\n } else if ($filterConditions['period'] == 3) {\n $endTime = $this->lastDayOf('month', new DateTime($timeFrom))->format('Y-m-d');\n } else\n $endTime = date('Y-m-d', strtotime($timeFrom . $incTimeStrings[$filterConditions['period']]));\n $endTime = (strtotime($endTime) < strtotime($timeTo)) ? $endTime : $timeTo;\n $itemDataObject = new Varien_Object();\n if ($i == 0) {\n if ($filterConditions['period'] == 1) {\n $exTimeFrom = explode('-', $timeFrom);\n $itemDataObject->setData('period', $exTimeFrom[0]);\n } else if ($filterConditions['period'] == 3) {\n $exTimeFrom = explode('-', $timeFrom);\n $itemDataObject->setData('period', $exTimeFrom[0] . '-' . $exTimeFrom[1]);\n } else\n $itemDataObject->setData('period', $timeFrom);\n } else\n $itemDataObject->setData('period', '');\n if ($itemDataObject->getData('period'))\n $itemDataObject->setData('period', date('F j, Y', strtotime($itemDataObject->getData('period'))));\n $webposOrderCollection = $this->getSalesCollection($timeFrom, $endTime, array('user_id' => $userId));\n $totalU = 0;\n if (count($webposOrderCollection) > 0) {\n foreach ($webposOrderCollection as $order) {\n $totalU += $order->getTotals();\n }\n }\n if (!$totalU && $filterConditions['rp_settings']['show_empty_result'] == 'false')\n $isSave = false;\n\n if ($isSave) {\n $itemDataObject->setData('user', $displayName);\n\n $itemDataObject->setData('totals_sales', ($totalU > 0) ? $totalU : '0.00');\n $collection->addItem($itemDataObject);\n }\n $i++;\n }\n if ($filterConditions['period'] == 1)\n $timeFrom = date('Y-m-d', strtotime($endTime));\n else\n $timeFrom = date($periodFormat, strtotime($timeFrom . $incTimeStrings[$filterConditions['period']]));\n }\n /* get last item data \n $i = 0;\n foreach($this->userIds as $userId => $displayName){\n $isSave = true;\n $beforeLastItem = new Varien_Object();\n if($i == 0){\n if($filterConditions['period'] == 1){\n $exTimeFrom = explode('-',$timeTo);\n $beforeLastItem->setData('period',$exTimeFrom[0]);\n }\n else if($filterConditions['period'] == 3){\n $exTimeFrom = explode('-',$timeTo);\n $beforeLastItem->setData('period',$exTimeFrom[0].'-'.$exTimeFrom[1]);\n }\n else\n $beforeLastItem->setData('period',$timeTo);\n }\n else\n $beforeLastItem->setData('period','');\n if($beforeLastItem->getData('period'))\n $beforeLastItem->setData('period',date('F j, Y', strtotime($beforeLastItem->getData('period'))));\n $webposOrderCollection = $this->getSalesCollection($timeTo,$timeTo,array('user_id' => $userId))->getFirstItem();\n if( !$webposOrderCollection->getTotals() && $filterConditions['rp_settings']['show_empty_result'] == 'false')\n $isSave = false;\n if($isSave){\n $beforeLastItem->setData('user',$displayName);\n $beforeLastItem->setData('totals_sales',$webposOrderCollection->getTotals()?$webposOrderCollection->getTotals():'0.00');\n $collection->addItem($beforeLastItem);\n }\n $i++;\n }\n end last item */\n }\n /* set data for totals row */\n $lastItemDataObject = new Varien_Object();\n $lastItemDataObject->setData('period', 'Totals:');\n $orders = $this->getSalesTotal($startTime, $endTime);\n\n $totalU = 0;\n if (count($orders) > 0) {\n foreach ($orders as $order) {\n $totalU += $order->getTotals();\n }\n }\n $lastItemDataObject->setData('totals_sales', $totalU);\n $collection->addItem($lastItemDataObject);\n $this->setCollection($collection);\n /* set session for chart */\n $sessionObject = new Varien_Object();\n foreach ($this->userIds as $userId => $username) {\n $orders = $this->getSalesTotal($startTime, $endTime, array('user_id' => $userId));\n\n\n $totalU = 0;\n if (count($orders) > 0) {\n foreach ($orders as $order) {\n $totalU += $order->getTotals();\n }\n }\n $sessionObject->setData($username, $totalU);\n }\n Mage::getSingleton('core/session')->setData('total_sales_by_user', $sessionObject->toArray());\n Mage::getSingleton('core/session')->setType('user');\n $this->setTotalRowByUser($sessionObject->toArray());\n return parent::_prepareCollection();\n }",
"protected function _prepareCollection()\n {\n $collection = $this->collectionFactory->create();\n $this->setCollection($collection);\n\n return parent::_prepareCollection();\n }",
"protected function _prepareCollection()\n {\n $userId = Mage::getSingleton('admin/session')->getUser()->getId();\n\n /* var $collection Gri_Cms_Model_Mysql4_Version_Collection */\n $collection = Mage::getModel('gri_cms/page_version')->getCollection()\n ->addPageFilter($this->getPage())\n ->addVisibilityFilter($userId,\n Mage::getSingleton('gri_cms/config')->getAllowedAccessLevel())\n ->addUserColumn()\n ->addUserNameColumn();\n\n if (!$this->getParam($this->getVarNameSort())) {\n $collection->addNumberSort();\n }\n\n $this->setCollection($collection);\n\n return parent::_prepareCollection();\n }",
"public function clearOperationScenariis()\n {\n $this->collOperationScenariis = null; // important to set this to null since that means it is uninitialized\n $this->collOperationScenariisPartial = null;\n\n return $this;\n }",
"protected function _prepareCollection()\n\t{\n\t\t$collection = Mage::getResourceModel($this->_getCollectionClass());\n\t\t$this->setCollection($collection);\n\t\t \n\t\treturn parent::_prepareCollection();\n\t}",
"protected function _prepareCollection()\n {\n $collection = Mage::getResourceModel($this->_getCollectionClass());\n $collection->setOrder('ID','DESC');\n $this->setCollection($collection);\n return parent::_prepareCollection();\n }",
"protected function _getCollection()\n {\n if (!$this->_collection) {\n $websiteId = Mage::app()->getWebsite()->getId();\n $this->_collection = Mage::getModel('gri_reward/reward_history')->getCollection()\n ->addCustomerFilter(Mage::getSingleton('customer/session')->getCustomerId())\n ->addWebsiteFilter($websiteId)\n ->setExpiryConfig(Mage::helper('gri_reward')->getExpiryConfig())\n ->addExpirationDate($websiteId)\n ->skipExpiredDuplicates()\n ->setDefaultOrder()\n ;\n }\n return $this->_collection;\n }",
"protected function _prepareCollection()\n {\n $collection = Mage::getResourceModel($this->_getCollectionClass());\n $this->setCollection($collection);\n\n return parent::_prepareCollection();\n }",
"public function setOperationPrestationss(PropelCollection $operationPrestationss, PropelPDO $con = null)\n {\n $operationPrestationssToDelete = $this->getOperationPrestationss(new Criteria(), $con)->diff($operationPrestationss);\n\n\n $this->operationPrestationssScheduledForDeletion = $operationPrestationssToDelete;\n\n foreach ($operationPrestationssToDelete as $operationPrestationsRemoved) {\n $operationPrestationsRemoved->setOperationPrimes(null);\n }\n\n $this->collOperationPrestationss = null;\n foreach ($operationPrestationss as $operationPrestations) {\n $this->addOperationPrestations($operationPrestations);\n }\n\n $this->collOperationPrestationss = $operationPrestationss;\n $this->collOperationPrestationssPartial = false;\n\n return $this;\n }",
"public function cleanCopy()\n {\n $clone = clone $this;\n $clone->setEagerLoader(clone $this->getEagerLoader());\n $clone->triggerBeforeFind();\n $clone->enableAutoFields(false);\n $clone->limit(null);\n $clone->order([], true);\n $clone->offset(null);\n $clone->mapReduce(null, null, true);\n $clone->formatResults(null, true);\n $clone->setSelectTypeMap(new TypeMap());\n $clone->decorateResults(null, true);\n\n return $clone;\n }",
"public function getPeer()\n {\n if (self::$peer === null) {\n self::$peer = new OperationPrimesPeer();\n }\n\n return self::$peer;\n }",
"protected function _prepareCollection() {\n $website_id = Mage::app()->getWebsite()->getId();\n $collection = Mage::getModel('inchoo_supportticket/ticket')\n ->getCollection();\n $this->setCollection($collection);\n parent::_prepareCollection();\n return $this;\n }",
"protected function _initProductCollection()\n {\n $client = Mage::helper('catalogsearch')->getEngine()->getClient();\n $baseQuery = $this->_getBaseSearchQuery();\n $optimizedQuery = $this->_getOptimizedQuery($baseQuery);\n $baseProductIds = $this->_getProductIdsFromSearchQuery($baseQuery);\n $optimizeProductIds = $this->_getProductIdsFromSearchQuery($optimizedQuery);\n\n $this->setBaseProductIds($baseProductIds);\n $this->setOptimizedProductIds($optimizeProductIds);\n\n $allIds = array_merge($baseProductIds, $optimizeProductIds);\n\n if (empty($allIds)) {\n $allIds = array(0);\n }\n\n $attributes = Mage::getModel('catalog/config')->getProductCollectionAttributes();\n $collection = Mage::getResourceModel('catalog/product_collection')\n ->setStoreId($this->getStoreId())\n ->addIdFilter($allIds)\n ->addAttributeToSelect($attributes)\n ->load();\n\n $this->setProductCollection($collection);\n\n return $this;\n }",
"protected function _getCollection()\n\t{\n\t\t//Check collection\n\t\tif($this->_collection)\n\t\t\treturn $this->_collection;\n\n\t\t//Get collection\n\t\t$this->_collection = new \\Framework\\Database\\Drivers\\Mongo\\CDatabaseModelCollection($this, $this->execute());\n\t\treturn $this->_collection;\n\t}",
"protected function _prepareCollection()\n {\t\t \n\t\t\n $collection = Mage::getModel('catalog/product')\n \t->getCollection()\n \t->addAttributeToSelect('name')\n \t->addAttributeToSelect('price')\n \t->addAttributeToSelect('special_price')\n \t->addAttributeToSelect('name')\n \t->addAttributeToSelect('manufacturer')\n \t->addFieldToFilter('type_id', array('in' => array(Mage_Catalog_Model_Product_Type::TYPE_SIMPLE, Mage_Catalog_Model_Product_Type::TYPE_VIRTUAL)))\n ->joinField('qty',\n 'cataloginventory/stock_item',\n 'qty',\n 'product_id=entity_id',\n '{{table}}.stock_id=1',\n 'left');\n \t;\n $this->setCollection($collection);\n return parent::_prepareCollection();\n }",
"public function getFeatureCvtermprops($criteria = null, PropelPDO $con = null)\n {\n $partial = $this->collFeatureCvtermpropsPartial && !$this->isNew();\n if (null === $this->collFeatureCvtermprops || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collFeatureCvtermprops) {\n // return empty collection\n $this->initFeatureCvtermprops();\n } else {\n $collFeatureCvtermprops = FeatureCvtermpropQuery::create(null, $criteria)\n ->filterByFeatureCvterm($this)\n ->find($con);\n if (null !== $criteria) {\n if (false !== $this->collFeatureCvtermpropsPartial && count($collFeatureCvtermprops)) {\n $this->initFeatureCvtermprops(false);\n\n foreach($collFeatureCvtermprops as $obj) {\n if (false == $this->collFeatureCvtermprops->contains($obj)) {\n $this->collFeatureCvtermprops->append($obj);\n }\n }\n\n $this->collFeatureCvtermpropsPartial = true;\n }\n\n $collFeatureCvtermprops->getInternalIterator()->rewind();\n return $collFeatureCvtermprops;\n }\n\n if($partial && $this->collFeatureCvtermprops) {\n foreach($this->collFeatureCvtermprops as $obj) {\n if($obj->isNew()) {\n $collFeatureCvtermprops[] = $obj;\n }\n }\n }\n\n $this->collFeatureCvtermprops = $collFeatureCvtermprops;\n $this->collFeatureCvtermpropsPartial = false;\n }\n }\n\n return $this->collFeatureCvtermprops;\n }",
"protected function _prepareCollection()\n {\n $collection = Mage::getResourceModel('bs_worksheet/worksheet_collection');\n if ($this->getCurriculum()->getId()) {\n $constraint = 'related.curriculum_id='.$this->getCurriculum()->getId();\n } else {\n $constraint = 'related.curriculum_id=0';\n }\n $collection->getSelect()->joinLeft(\n array('related' => $collection->getTable('bs_worksheet/worksheet_curriculum')),\n 'related.worksheet_id=main_table.entity_id AND '.$constraint,\n array('position')\n );\n $this->setCollection($collection);\n parent::_prepareCollection();\n return $this;\n }",
"public function createCollection()\n\t{\n\t\t/** @var $collection \\Magento\\Catalog\\Model\\ResourceModel\\Product\\Collection */\n\t\t$collection = $this->productCollectionFactory->create();\n\t\t$collection->setVisibility($this->catalogProductVisibility->getVisibleInCatalogIds());\n\n\t\t$collection = $this->_addProductAttributesAndPrices($collection)\n\t\t\t->addStoreFilter()\n\t\t\t->setPageSize($this->getPageSize())\n\t\t\t->setCurPage($this->getRequest()->getParam(self::PAGE_VAR_NAME, 1));\n\n\t\t$conditions = $this->getConditions();\n\t\t$conditions->collectValidatedAttributes($collection);\n\t\t$this->sqlBuilder->attachConditionToCollection($collection, $conditions);\n\n\t\treturn $collection;\n\t}",
"protected function _prepareCollection() {\n /**\n * Get the Collection of Manage Subscription\n */\n $manageSubscription = Mage::getModel ( 'airhotels/managesubscriptions' )->getCollection ();\n \n /**\n * Get the Table Prefix Value\n */\n $tablePrefix = Mage::getConfig ()->getTablePrefix ();\n $manageSubscription->getSelect ()->group ( 'main_table.product_id' )->joinLeft ( $tablePrefix . 'apptha_productsubscriptions', 'main_table.product_id =' . $tablePrefix . 'apptha_productsubscriptions.product_id AND ' . $tablePrefix . 'apptha_productsubscriptions.is_delete = 0', array (\n 'main_table.id as id',\n 'main_table.product_name as product_name',\n $tablePrefix . 'apptha_productsubscriptions.subscription_type as subscription_type' \n ) )->where ( 'main_table.is_subscription_only = ?', 1 );\n \n $collection = $manageSubscription;\n $this->setCollection ( $collection );\n /**\n * Calling the parent Construct Method.\n */\n return parent::_prepareCollection ();\n }",
"protected function _prepareCollection()\n {\n $collection = $this->_createCollection()->addCustomerIdFilter($this->_getCustomer()->getId())\n ->resetSortOrder()\n ->addDaysInWishlist()\n ->addStoreData();\n $this->setCollection($collection);\n\n return parent::_prepareCollection();\n }",
"protected function _getCollection()\n {\n if (!$this->_collection) {\n $websiteId = $this->_storeManager->getWebsite()->getId();\n $this->_collection = $this->_historyFactory->create()\n ->addCustomerFilter($this->currentCustomer->getCustomerId())\n ->addWebsiteFilter($websiteId)\n ->setExpiryConfig($this->_rewardData->getExpiryConfig())\n ->addExpirationDate($websiteId)\n ->skipExpiredDuplicates()\n ->setDefaultOrder();\n }\n return $this->_collection;\n }",
"public function getProduitsPanier()\n {\n return $this->CollProduit->getCollection();\n }",
"public function __clone() {\n if ($this->_where) {\n $this->_where = clone $this->_where;\n }\n\n if ($this->_having) {\n $this->_having = clone $this->_having;\n }\n }",
"protected function getComposedCollection()\n {\n return $this->composedCollection;\n }",
"public function initLnkOperationPrimeRCountriess($overrideExisting = true)\n {\n if (null !== $this->collLnkOperationPrimeRCountriess && !$overrideExisting) {\n return;\n }\n $this->collLnkOperationPrimeRCountriess = new PropelObjectCollection();\n $this->collLnkOperationPrimeRCountriess->setModel('LnkOperationPrimeRCountries');\n }",
"protected function _prepareCollection()\n {\n $collection = Mage::getModel('oggetto_oneclick/order')->getResourceCollection();\n $this->setCollection($collection);\n return parent::_prepareCollection();\n }",
"protected function _prepareCollection()\n {\n /** @var $collection ChazkiExpressCollection */\n $collection = $this->_collectionFactory->create();\n $collection->setWebsiteFilter($this->getWebsiteId());\n\n $this->setCollection($collection);\n\n return parent::_prepareCollection();\n }",
"public function getContributionss(Criteria $criteria = null, ConnectionInterface $con = null)\n {\n $partial = $this->collContributionssPartial && !$this->isNew();\n if (null === $this->collContributionss || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collContributionss) {\n // return empty collection\n $this->initContributionss();\n } else {\n $collContributionss = ChildContributionsQuery::create(null, $criteria)\n ->filterByIssues($this)\n ->find($con);\n\n if (null !== $criteria) {\n if (false !== $this->collContributionssPartial && count($collContributionss)) {\n $this->initContributionss(false);\n\n foreach ($collContributionss as $obj) {\n if (false == $this->collContributionss->contains($obj)) {\n $this->collContributionss->append($obj);\n }\n }\n\n $this->collContributionssPartial = true;\n }\n\n return $collContributionss;\n }\n\n if ($partial && $this->collContributionss) {\n foreach ($this->collContributionss as $obj) {\n if ($obj->isNew()) {\n $collContributionss[] = $obj;\n }\n }\n }\n\n $this->collContributionss = $collContributionss;\n $this->collContributionssPartial = false;\n }\n }\n\n return $this->collContributionss;\n }",
"public static function cooperations() {\n return self::query()\n ->join('ownership', 'ownership.fobjsid', 'vp.sId')\n ->join('jobs', 'ownership.tobjsid', 'jobs.sId')\n ->select('vp.*')\n ->where('jobs.type', Job::TYPE_COOPERATION);\n }",
"public function getProcessorsCollection();",
"public function clearOperations()\n {\n $this->_operations = array();\n\n return $this;\n }",
"protected function _prepareCollection()\n {\n $collection = Mage::getModel('iparcel/log')->getCollection();\n $this->setCollection($collection);\n\n return parent::_prepareCollection();\n }",
"public function copy(): Collection\n {\n return clone $this;\n }",
"protected function _prepareCollection()\n {\n $collection = Mage::getModel('solutionpartner/partner')->getCollection();\n $collection->getSelect()->joinLeft(\n array('order' => $collection->getTable('sales/order')),\n 'main_table.email = order.customer_email AND order.status = \"complete\"',\n array(\n 'order_id' => 'entity_id',\n 'order_status' => 'order.status',\n 'number_qtys' => 'count(order.entity_id)'\n ))\n ->group('main_table.solutionpartner_id');\n $this->setCollection($collection);\n return parent::_prepareCollection();\n }",
"public function searchPesificacionesSinCompletar()\n\t{\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n $criteria->condition= \"estado=:estado\";\n\t\t$criteria->params = array(':estado'=> Pesificaciones::ESTADO_ABIERTO);\n\n\t\t//$criteria->condition= \"(t.montoAcreditar+t.montoGastos) NOT IN (SELECT SUM(cheques.montoOrigen) FROM cheques, detallePesificaciones WHERE detallePesificaciones.chequeId=cheques.id AND detallePesificaciones.pesificacionId=t.id)\";\n\t\treturn new CActiveDataProvider(new Pesificaciones, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}",
"protected function _prepareCollection()\n\t{\n\t\t$collection = Mage::getResourceModel($this->_getCollectionClass());\n $collection->getSelect()->joinLeft(\n array('sfo' => 'sales_flat_order'),\n 'main_table.order_id = sfo.entity_id',\n array('increment_id')\n );\n\t\t$this->setCollection($collection);\n\n\t\treturn parent::_prepareCollection();\n\t}",
"protected function _prepareCollection()\n {\n /* @var $collection Scandi_MenuManager_Model_Resource_Item_Collection */\n $collection = Mage::getModel('scandi_menumanager/item')->getResourceCollection()\n ->addMenuFilter(Mage::registry('menumanager_menu'));\n if (!$this->getRequest()->getParam('sort')) { $collection->setPositionOrder(); }\n\n $this->setCollection($collection);\n return parent::_prepareCollection();\n }",
"public function getProductCollection()\n {\n\n if (is_null($this->_productCollection)) {\n $collection = $this->_engine->getAdvancedResultCollection();\n $this->prepareProductCollection($collection);\n if (!$collection) {\n return $collection;\n }\n $this->_productCollection = $collection;\n }\n\n return $this->_productCollection;\n }",
"protected function getProductResultCollection()\n {\n $collection = Mage::registry('recommendation_collection');\n\n if (empty($collection)) {\n $collection = array();\n }\n\n return $collection;\n }",
"public function getProductCollection()\n {\n $this->_basketProducts = $this->_getCartProductIds();\n $products = $this->_complementaryEngine->sendQuery($this->_basketProducts);\n\n if ($products['rules']) {\n return $this->_getPredictedProducts($products['rules']);\n }\n\n return false;\n }",
"public function buildPkeyCriteria()\n {\n $criteria = new Criteria(SanitasiPeer::DATABASE_NAME);\n $criteria->add(SanitasiPeer::SEKOLAH_ID, $this->sekolah_id);\n $criteria->add(SanitasiPeer::SEMESTER_ID, $this->semester_id);\n\n return $criteria;\n }",
"protected function _prepareCollection()\n {\n $collection = Mage::getModel('catalog/product')->getCollection()\n ->addAttributeToSelect('name')\n ->addAttributeToSelect('type')\n ->addAttributeToSelect('status')\n ->addAttributeToSelect('visibility')\n ->addAttributeToSelect('sku');\n $this->setCollection($collection);\n return parent::_prepareCollection();\n }",
"public function getOperations(PropelPDO $con = null, $doQuery = true)\n {\n if ($this->aOperations === null && ($this->op_id !== null) && $doQuery) {\n $this->aOperations = OperationsQuery::create()->findPk($this->op_id, $con);\n /* The following can be used additionally to\n guarantee the related object contains a reference\n to this object. This level of coupling may, however, be\n undesirable since it could result in an only partially populated collection\n in the referenced object.\n $this->aOperations->addOperationPrimess($this);\n */\n }\n\n return $this->aOperations;\n }",
"public function getCriteria()\n {\n if (!isset($this->currentCriteria)) {\n throw new CollectionDriverException('Criteria is accessible only during preGetResult event.');\n }\n\n return $this->currentCriteria;\n }",
"function getComposite()\n {\n return $this;\n }",
"public function __clone()\r\n {\r\n $this->document = [];\r\n $this->document_id = 0;\r\n\r\n $this->documentTotal = 0;\r\n $this->documentExchageTotal = 0;\r\n\r\n $this->associatedDocuments = [];\r\n }",
"public function __clone() {\n $this->name = clone $this->name;\n $this->type = clone $this->type;\n $this->op = clone $this->op;\n\n $this->currentPeriod = clone $this->currentPeriod;\n $this->previousPeriod = clone $this->previousPeriod;\n\n $products = array();\n foreach ($this->products as $idx=>$product) {\n $products[] = clone $product;\n }\n $this->products = $products;\n }",
"public function buildPkeyCriteria()\n\t{\n\t\t$criteria = new Criteria(C060InventarioPeer::DATABASE_NAME);\n\n\t\t$criteria->add(C060InventarioPeer::CO_NUM_INVENTARIO, $this->co_num_inventario);\n\n\t\treturn $criteria;\n\t}",
"function productCollection()\n {\n return eZProductCollection::fetch( $this->attribute( 'productcollection_id' ) );\n }",
"public function chapitrePrec() {\n $prevChapitre = $this->cour->chapitres()->where('num_ordre', '<', $this->num_ordre)\n ->orderBy('num_ordre', 'desc')\n ->first();\n\n if($prevChapitre) {\n return $prevChapitre;\n }\n\n return $this;\n }",
"public function getProposedChanges(): ProposedChangeCollection\n {\n return $this->proposedChanges;\n }",
"public function findNewProd()\r\n {\r\n $query = $this->getEntityManager()\r\n ->createQuery(\"select m from CondorsTnMallBundle:Produit m ORDER BY m.datecreation DESC \")\r\n ->setMaxResults(5);\r\n\r\n return $query->getResult();\r\n\r\n }",
"protected function getPagerCollectionInstance()\n {\n $pagerCollection = $this->dataBackend->getPagerCollection();\n $pagerCollection->setItemCount($this->dataBackend->getTotalItemsCount());\n return $pagerCollection;\n }",
"function detachProductCollection()\n {\n $collection = $this->productCollection();\n if ( !$collection )\n {\n $retValue = false;\n return $retValue;\n }\n\n $db = eZDB::instance();\n $db->begin();\n $newCollection = $collection->copy();\n if ( !$newCollection )\n {\n $db->commit();\n $retValue = false;\n return $retValue;\n }\n $this->setAttribute( 'productcollection_id', $newCollection->attribute( 'id' ) );\n $this->store();\n\n $db->commit();\n return $newCollection;\n }",
"protected function _prepareCollection()\n {\n $collection = Mage::getResourceModel('bs_docwise/docwisement_collection');\n\n if ($this->getExam()->getId()) {\n $constraint = 'related.exam_id='.$this->getExam()->getId();\n } else {\n $constraint = 'related.exam_id=0';\n }\n $collection->getSelect()->joinLeft(\n array('related' => $collection->getTable('bs_docwise/exam_docwisement')),\n 'related.docwisement_id = main_table.entity_id AND '.$constraint,\n array('position')\n );\n\n\n $this->setCollection($collection);\n parent::_prepareCollection();\n return $this;\n }",
"public function initPesquisas($overrideExisting = true)\n\t{\n\t\tif (null !== $this->collPesquisas && !$overrideExisting) {\n\t\t\treturn;\n\t\t}\n\t\t$this->collPesquisas = new PropelObjectCollection();\n\t\t$this->collPesquisas->setModel('Pesquisa');\n\t}",
"public function clearFindCriteria()\n {\n $this->findCriteria = [];\n return $this;\n }",
"public function load()\n {\n if (!$this->loaded) {\n $searchData = [];\n foreach (persistableCollection::getInstance($this->resourceName)->getPrimaryFields() as $fieldName) {\n $searchData[$fieldName] = $this->$fieldName;\n }\n $result = persistableCollection::getInstance($this->resourceName)->loadObject($searchData);\n $this->persisted = true;\n $this->loaded = true;\n return $result;\n }\n return $this;\n }",
"public function Panier() \n {\n $this->CollProduit = new Collection;\n }",
"public function relCooperations() {\n return Job::query()\n ->join('ownership', 'ownership.tobjsid', 'jobs.sId')\n ->select('jobs.*')\n ->where('ownership.fobjsid', parent::__get('sId'))\n ->where('jobs.type', Job::TYPE_COOPERATION)\n ->get();\n }",
"public function __clone()\n {\n parent::__clone();\n $this->_stockItem = null;\n $this->_stockItems = null;\n $this->_inStockStockItems = null;\n return $this;\n }",
"public function getCollection() {\n return $this->gateway->find(\n $this->getFilter(),\n $this->order,\n $this->relations,\n $this->pager,\n !$this->excludeRepo\n );\n }",
"public function __clone()\n {\n if (is_object($this->collection)) {\n $this->collection = clone $this->collection;\n }\n $this->initialize();\n $this->owner = null;\n $this->snapshot = [];\n $this->changed();\n }",
"public function retrievePriceFilters()\n {\n $select = $this->getSelect();\n $select->setPart(Zend_Db_Select::WHERE, $this->_wherePartStash);\n $select->setPart(Zend_Db_Select::GROUP, $this->_groupPartStash);\n\n $this->clearStatisticsData();\n\n return $this;\n }",
"public function getInappropriates($criteria = null, PropelPDO $con = null)\n\t{\n\t\tif ($criteria === null) {\n\t\t\t$criteria = new Criteria(PostPeer::DATABASE_NAME);\n\t\t}\n\t\telseif ($criteria instanceof Criteria)\n\t\t{\n\t\t\t$criteria = clone $criteria;\n\t\t}\n\n\t\tif ($this->collInappropriates === null) {\n\t\t\tif ($this->isNew()) {\n\t\t\t $this->collInappropriates = array();\n\t\t\t} else {\n\n\t\t\t\t$criteria->add(InappropriatePeer::POST_ID, $this->id);\n\n\t\t\t\tInappropriatePeer::addSelectColumns($criteria);\n\t\t\t\t$this->collInappropriates = InappropriatePeer::doSelect($criteria, $con);\n\t\t\t}\n\t\t} else {\n\t\t\t// criteria has no effect for a new object\n\t\t\tif (!$this->isNew()) {\n\t\t\t\t// the following code is to determine if a new query is\n\t\t\t\t// called for. If the criteria is the same as the last\n\t\t\t\t// one, just return the collection.\n\n\n\t\t\t\t$criteria->add(InappropriatePeer::POST_ID, $this->id);\n\n\t\t\t\tInappropriatePeer::addSelectColumns($criteria);\n\t\t\t\tif (!isset($this->lastInappropriateCriteria) || !$this->lastInappropriateCriteria->equals($criteria)) {\n\t\t\t\t\t$this->collInappropriates = InappropriatePeer::doSelect($criteria, $con);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$this->lastInappropriateCriteria = $criteria;\n\t\treturn $this->collInappropriates;\n\t}",
"public function __clone()\n {\n $this->query = clone $this->query;\n }",
"public function getParameters() : CollectionInterface\n {\n return $this->parameters->copy();\n }",
"protected function _prepareCollection()\n {\n $baseQuery = $this->_getBaseSearchQuery();\n $productIds = $this->_getProductIdsFromSearchQuery($baseQuery);\n\n if (empty($productIds)) {\n $productIds = array(0);\n }\n\n $attributes = Mage::getModel('catalog/config')->getProductCollectionAttributes();\n\n /** @var Mage_Catalog_Model_Resource_Product_Collection $collection */\n $collection = Mage::getResourceModel('catalog/product_collection')\n ->addIdFilter($productIds)\n ->addAttributeToSelect($attributes);\n\n $storeIds = implode(\",\", array_unique(array_map(\"intval\", array(Mage_Core_Model_App::ADMIN_STORE_ID, $this->getStoreId()))));\n\n if ($this->getStoreId() != Mage_Core_Model_App::ADMIN_STORE_ID) {\n $collection->setStoreId($this->getStoreId());\n $joinCond = \"category_id = \" . (int) $this->getCategory()->getId() . \" AND store_id = {$this->getStoreId()}\";\n } else {\n $joinCond = \"category_id = \" . (int) $this->getCategory()->getId() . \" AND store_id IN ({$storeIds})\";\n }\n\n $collection->joinField(\n 'position',\n 'smile_virtualcategories/category_product_position',\n 'position',\n 'product_id = entity_id',\n $joinCond,\n 'left'\n );\n\n $collection->getSelect()->order(\n new Zend_Db_Expr(\"- position DESC\") // mimic a \"SORT BY #field NULL LAST\n );\n\n $entityIds = implode(\",\", $productIds);\n $collection->getSelect()->order(\n new Zend_Db_Expr(\"FIELD(e.entity_id, {$entityIds})\") // restore sort order given by ES\n );\n\n $this->setCollection($collection);\n\n return parent::_prepareCollection();\n }",
"public function getDataProcessorCollection(): ProcessorCollection {\n\n return $this->dataProcessorCollection;\n\n }",
"public function applyCriteria() {\n if ($this->skipCriteria === true) {\n return $this;\n }\n\n foreach ($this->getCriteria() as $criteria) {\n if ($criteria instanceof Criteria) {\n $this->model = $criteria->apply($this->model, $this);\n }\n }\n\n return $this;\n }",
"public function collection() {\n \t$db = $this->db;\n\t\t$sql = $this->sql();\n\t\t$rows = $db::execute($sql);\n\t\t$model = $this->model;\n\t\treturn new \\Collection($model::arrayFactoryFromRows($rows));\n\t}",
"public function getCollection()\n {\n $collection = trim(str_replace('\\\\', '_', $this->collection), '_');\n return $this->$collection()\n ->setDatabase($this->database)\n ->setTable($this->table)\n ->setModel($this->model)\n ->set($this->getRows());\n }",
"function getCommonProvisions();",
"protected function applyCriteria()\n {\n if ($this->skipCriteria === true) {\n return $this;\n }\n\n $criteria = $this->getCriteria();\n\n if ($criteria) {\n foreach ($criteria as $c) {\n $this->model = $c->apply($this->model, $this);\n }\n }\n\n return $this;\n }",
"public function fresh()\n {\n if ($this->hasModel() && $this->exists()) {\n return odb($this->db(), $this->table())->find((int) $this->data['id']);\n }\n\n return $this;\n }",
"public function buildPkeyCriteria()\n {\n $criteria = new Criteria(SekolahPaudPeer::DATABASE_NAME);\n $criteria->add(SekolahPaudPeer::SEKOLAH_ID, $this->sekolah_id);\n\n return $criteria;\n }",
"public function getCriteriaCollection(): CriteriaCollection;",
"public function clearPriceFilters()\n {\n $select = $this->getSelect();\n $this->_wherePartStash = $select->getPart(Zend_Db_Select::WHERE);\n $this->_groupPartStash = $select->getPart(Zend_Db_Select::GROUP);\n $select->reset(Zend_Db_Select::WHERE);\n $select->reset(Zend_Db_Select::GROUP);\n\n $this->clearStatisticsData();\n\n return $this;\n }",
"protected function getPluginCollection() {\n if (!$this->pluginCollection) {\n $plugin_manager = \\Drupal::service('plugin.manager.commerce_installment_plan_methods');\n $this->pluginCollection = new InstallmentPlanMethodPluginCollection($plugin_manager, $this->plugin, $this->configuration, $this->id);\n }\n return $this->pluginCollection;\n }",
"public function getCompetitionsWithReload() {\n $this->competitionsLoaded = false;\n return $this->getCompetitions();\n }",
"public function buildPkeyCriteria()\n\t{\n\t\t$criteria = new Criteria(VpoRequestPeer::DATABASE_NAME);\n\n\t\t$criteria->add(VpoRequestPeer::ID, $this->id);\n\n\t\treturn $criteria;\n\t}",
"private function applyCriteria()\n {\n foreach( $this->criteria as $criterion )\n {\n $this->query = $criterion->apply( $this->query, $this );\n }\n\n return $this;\n }",
"public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME)\n {\n $keys = OperationPrimesPeer::getFieldNames($keyType);\n\n if (array_key_exists($keys[0], $arr)) $this->setOpPrimeId($arr[$keys[0]]);\n if (array_key_exists($keys[1], $arr)) $this->setOpId($arr[$keys[1]]);\n if (array_key_exists($keys[2], $arr)) $this->setOpPrimeLibelle($arr[$keys[2]]);\n if (array_key_exists($keys[3], $arr)) $this->setOpPrimeNumero($arr[$keys[3]]);\n if (array_key_exists($keys[4], $arr)) $this->setGdlArtId($arr[$keys[4]]);\n if (array_key_exists($keys[5], $arr)) $this->setOperationPrimeCurrencyId($arr[$keys[5]]);\n if (array_key_exists($keys[6], $arr)) $this->setOperationPrimeRRewardTypeId($arr[$keys[6]]);\n if (array_key_exists($keys[7], $arr)) $this->setOperationPrimeRRewardExpeditionModeId($arr[$keys[7]]);\n if (array_key_exists($keys[8], $arr)) $this->setOperationPrimeRRewardTransporterId($arr[$keys[8]]);\n if (array_key_exists($keys[9], $arr)) $this->setOperationPrimeFixedAmount($arr[$keys[9]]);\n if (array_key_exists($keys[10], $arr)) $this->setOperationPrimeProductPricePourcentage($arr[$keys[10]]);\n if (array_key_exists($keys[11], $arr)) $this->setOperationPrimeMaximumAmount($arr[$keys[11]]);\n }",
"protected function _getQueueCollection() : \\Pulchritudinous\\Queue\\Model\\ResourceModel\\Labour\\Collection\n {\n $collection = $this->_objectManager->create('Pulchritudinous\\Queue\\Model\\ResourceModel\\Labour\\Collection')\n ->addFieldToFilter('status', ['eq' => Labour::STATUS_PENDING])\n ->addFieldToFilter('execute_at', ['lteq' => time()])\n ->setOrder('priority', 'ASC')\n ->setOrder('execute_at', 'ASC');\n\n return $collection;\n }",
"public function getResultsCollections()\n\t {\n\t \tif ( is_array($this->results) && $this->isMulti() ) {\n\n\t \t\treturn new MagentoObjectCollection($this->results);\n\n\t \t} elseif( is_array($this->results) && !$this->isMulti() ) {\n\n\t \t\treturn new MagentoObject($this->results);\n\n\t \t} elseif( is_object($this->results) ) {\n\n\t \t\treturn new MagentoObject($this->results);\n\n\t \t} else {\n\n\t \t\treturn $this->results;\n\t \t}\n\t }",
"protected function processData($data)\n {\n // reuse the existing collection to optimize for Doctrine\n if ($data instanceof Collection) {\n $currentData = $this->getData();\n\n if (!$currentData) {\n $currentData = $data;\n } else if (count($data) === 0) {\n $currentData->clear();\n } else {\n // merge $data into $currentData\n foreach ($currentData as $entity) {\n if (!$data->contains($entity)) {\n $currentData->removeElement($entity);\n } else {\n $data->removeElement($entity);\n }\n }\n\n foreach ($data as $entity) {\n $currentData->add($entity);\n }\n }\n\n return $currentData;\n }\n\n return $data;\n }",
"protected function _prepareCollection()\n {\n $currentCampaign = Mage::getSingleton('adminhtml/session')->getCurrentCampaign();\n $collection = Mage::getModel('campaign/bannerslider')->getCollection();\n $collection->getSelect()\n ->joinLeft(array('campaign'=>$collection->getTable('campaign/campaign')),\n 'main_table.campaign_id = campaign.campaign_id', '')\n ->columns(array('campaign_name'=>'IF(main_table.campaign_id = \"'.$currentCampaign->getId().'\", \"Current\", campaign.name)'))\n ->group('main_table.bannerslider_id');\n $filter = Mage::registry('banner_reloaded_ids');\n if(!isset($filter)){//if reset no filter\n $selected_id = $this->_selectedId();\n if(!empty($selected_id)){\n $collection->addFieldToFilter('bannerslider_id', array('in'=>$selected_id));\n }\n }\n $this->setCollection($collection);\n return parent::_prepareCollection();\n }",
"public function __clone() {\n foreach ($this->conditions as $i => $condition) {\n $this->conditions[$i] = clone $condition;\n }\n }",
"public function initInappropriates()\n\t{\n\t\t$this->collInappropriates = array();\n\t}",
"protected function _getProductCollection()\n {\n $collection = parent::_getProductCollection();\n\t\t$helper = Mage::helper('catalogMembersonly/productsFilter');\n\t\t$collection = $helper->filterProductCollection($collection);\n\n return $collection;\t\t\n }",
"public function clone() {\n\t\t\t$class = get_called_class();\n\t\t\t$obj = new $class($this->_db);\n\t\t\t$obj->setFromArray($this->toArray());\n\t\t\t$obj->setChanged($this->hasChanged());\n\t\t\treturn $obj;\n\t\t}"
] | [
"0.6220034",
"0.6151145",
"0.61426246",
"0.59820646",
"0.588246",
"0.5713847",
"0.5674939",
"0.5419649",
"0.5377561",
"0.5210193",
"0.52091724",
"0.51168483",
"0.5106208",
"0.51052827",
"0.5103279",
"0.5096657",
"0.5075972",
"0.506327",
"0.5056604",
"0.5049158",
"0.5047154",
"0.5036881",
"0.5015446",
"0.5002631",
"0.49922705",
"0.49790496",
"0.49775425",
"0.49664336",
"0.49316186",
"0.49288532",
"0.49188453",
"0.4892823",
"0.4884788",
"0.48644003",
"0.48359555",
"0.48343432",
"0.48338795",
"0.4798225",
"0.47735715",
"0.47619864",
"0.4748879",
"0.47480613",
"0.47462425",
"0.47319135",
"0.473059",
"0.47194535",
"0.47056955",
"0.4671878",
"0.4670892",
"0.46684963",
"0.46598247",
"0.46468964",
"0.4646218",
"0.46460795",
"0.4644413",
"0.46398753",
"0.46367738",
"0.46360517",
"0.46330526",
"0.46326312",
"0.46274403",
"0.4623194",
"0.46226752",
"0.46167666",
"0.46138167",
"0.4612077",
"0.45856035",
"0.45843747",
"0.45827913",
"0.4582318",
"0.4578989",
"0.45646307",
"0.45593184",
"0.4559275",
"0.45563567",
"0.45468932",
"0.45462185",
"0.45409992",
"0.4538021",
"0.45365602",
"0.4535912",
"0.45345178",
"0.45337048",
"0.45307258",
"0.4530187",
"0.45247307",
"0.45241824",
"0.4521889",
"0.45174912",
"0.45164415",
"0.4514596",
"0.45117205",
"0.4510441",
"0.44939947",
"0.44876823",
"0.4483901",
"0.448189",
"0.44777173",
"0.44741732",
"0.446702",
"0.44647834"
] | 0.0 | -1 |
If this collection has already been initialized with an identical criteria, it returns the collection. Otherwise if this OperationPrimes is new, it will return an empty collection; or if this OperationPrimes has previously been saved, it will retrieve related OperationPrestationss from storage. This method is protected by default in order to keep the public api reasonable. You can provide public methods for those you actually need in OperationPrimes. | public function getOperationPrestationssJoinRPrestations($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN)
{
$query = OperationPrestationsQuery::create(null, $criteria);
$query->joinWith('RPrestations', $join_behavior);
return $this->getOperationPrestationss($query, $con);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getOperationPrestationss($criteria = null, PropelPDO $con = null)\n {\n $partial = $this->collOperationPrestationssPartial && !$this->isNew();\n if (null === $this->collOperationPrestationss || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collOperationPrestationss) {\n // return empty collection\n $this->initOperationPrestationss();\n } else {\n $collOperationPrestationss = OperationPrestationsQuery::create(null, $criteria)\n ->filterByOperationPrimes($this)\n ->find($con);\n if (null !== $criteria) {\n if (false !== $this->collOperationPrestationssPartial && count($collOperationPrestationss)) {\n $this->initOperationPrestationss(false);\n\n foreach ($collOperationPrestationss as $obj) {\n if (false == $this->collOperationPrestationss->contains($obj)) {\n $this->collOperationPrestationss->append($obj);\n }\n }\n\n $this->collOperationPrestationssPartial = true;\n }\n\n $collOperationPrestationss->getInternalIterator()->rewind();\n\n return $collOperationPrestationss;\n }\n\n if ($partial && $this->collOperationPrestationss) {\n foreach ($this->collOperationPrestationss as $obj) {\n if ($obj->isNew()) {\n $collOperationPrestationss[] = $obj;\n }\n }\n }\n\n $this->collOperationPrestationss = $collOperationPrestationss;\n $this->collOperationPrestationssPartial = false;\n }\n }\n\n return $this->collOperationPrestationss;\n }",
"public function buildPkeyCriteria()\n {\n $criteria = new Criteria(OperationPrimesPeer::DATABASE_NAME);\n $criteria->add(OperationPrimesPeer::OP_PRIME_ID, $this->op_prime_id);\n\n return $criteria;\n }",
"public function buildCriteria()\n {\n $criteria = new Criteria(OperationPrimesPeer::DATABASE_NAME);\n\n if ($this->isColumnModified(OperationPrimesPeer::OP_PRIME_ID)) $criteria->add(OperationPrimesPeer::OP_PRIME_ID, $this->op_prime_id);\n if ($this->isColumnModified(OperationPrimesPeer::OP_ID)) $criteria->add(OperationPrimesPeer::OP_ID, $this->op_id);\n if ($this->isColumnModified(OperationPrimesPeer::OP_PRIME_LIBELLE)) $criteria->add(OperationPrimesPeer::OP_PRIME_LIBELLE, $this->op_prime_libelle);\n if ($this->isColumnModified(OperationPrimesPeer::OP_PRIME_NUMERO)) $criteria->add(OperationPrimesPeer::OP_PRIME_NUMERO, $this->op_prime_numero);\n if ($this->isColumnModified(OperationPrimesPeer::GDL_ART_ID)) $criteria->add(OperationPrimesPeer::GDL_ART_ID, $this->gdl_art_id);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_CURRENCY_ID)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_CURRENCY_ID, $this->operation_prime_currency_id);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_TYPE_ID)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_TYPE_ID, $this->operation_prime_r_reward_type_id);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_EXPEDITION_MODE_ID)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_EXPEDITION_MODE_ID, $this->operation_prime_r_reward_expedition_mode_id);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_TRANSPORTER_ID)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_TRANSPORTER_ID, $this->operation_prime_r_reward_transporter_id);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_FIXED_AMOUNT)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_FIXED_AMOUNT, $this->operation_prime_fixed_amount);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_PRODUCT_PRICE_POURCENTAGE)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_PRODUCT_PRICE_POURCENTAGE, $this->operation_prime_product_price_pourcentage);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_MAXIMUM_AMOUNT)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_MAXIMUM_AMOUNT, $this->operation_prime_maximum_amount);\n\n return $criteria;\n }",
"public function getOperationScenariis($criteria = null, PropelPDO $con = null)\n {\n $partial = $this->collOperationScenariisPartial && !$this->isNew();\n if (null === $this->collOperationScenariis || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collOperationScenariis) {\n // return empty collection\n $this->initOperationScenariis();\n } else {\n $collOperationScenariis = OperationScenariiQuery::create(null, $criteria)\n ->filterByOperationPrimes($this)\n ->find($con);\n if (null !== $criteria) {\n if (false !== $this->collOperationScenariisPartial && count($collOperationScenariis)) {\n $this->initOperationScenariis(false);\n\n foreach ($collOperationScenariis as $obj) {\n if (false == $this->collOperationScenariis->contains($obj)) {\n $this->collOperationScenariis->append($obj);\n }\n }\n\n $this->collOperationScenariisPartial = true;\n }\n\n $collOperationScenariis->getInternalIterator()->rewind();\n\n return $collOperationScenariis;\n }\n\n if ($partial && $this->collOperationScenariis) {\n foreach ($this->collOperationScenariis as $obj) {\n if ($obj->isNew()) {\n $collOperationScenariis[] = $obj;\n }\n }\n }\n\n $this->collOperationScenariis = $collOperationScenariis;\n $this->collOperationScenariisPartial = false;\n }\n }\n\n return $this->collOperationScenariis;\n }",
"public function getLnkOperationPrimeRCountriess($criteria = null, PropelPDO $con = null)\n {\n $partial = $this->collLnkOperationPrimeRCountriessPartial && !$this->isNew();\n if (null === $this->collLnkOperationPrimeRCountriess || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collLnkOperationPrimeRCountriess) {\n // return empty collection\n $this->initLnkOperationPrimeRCountriess();\n } else {\n $collLnkOperationPrimeRCountriess = LnkOperationPrimeRCountriesQuery::create(null, $criteria)\n ->filterByOperationPrimes($this)\n ->find($con);\n if (null !== $criteria) {\n if (false !== $this->collLnkOperationPrimeRCountriessPartial && count($collLnkOperationPrimeRCountriess)) {\n $this->initLnkOperationPrimeRCountriess(false);\n\n foreach ($collLnkOperationPrimeRCountriess as $obj) {\n if (false == $this->collLnkOperationPrimeRCountriess->contains($obj)) {\n $this->collLnkOperationPrimeRCountriess->append($obj);\n }\n }\n\n $this->collLnkOperationPrimeRCountriessPartial = true;\n }\n\n $collLnkOperationPrimeRCountriess->getInternalIterator()->rewind();\n\n return $collLnkOperationPrimeRCountriess;\n }\n\n if ($partial && $this->collLnkOperationPrimeRCountriess) {\n foreach ($this->collLnkOperationPrimeRCountriess as $obj) {\n if ($obj->isNew()) {\n $collLnkOperationPrimeRCountriess[] = $obj;\n }\n }\n }\n\n $this->collLnkOperationPrimeRCountriess = $collLnkOperationPrimeRCountriess;\n $this->collLnkOperationPrimeRCountriessPartial = false;\n }\n }\n\n return $this->collLnkOperationPrimeRCountriess;\n }",
"public function clearOperationPrestationss()\n {\n $this->collOperationPrestationss = null; // important to set this to null since that means it is uninitialized\n $this->collOperationPrestationssPartial = null;\n\n return $this;\n }",
"public function setLnkOperationPrimeRCountriess(PropelCollection $lnkOperationPrimeRCountriess, PropelPDO $con = null)\n {\n $lnkOperationPrimeRCountriessToDelete = $this->getLnkOperationPrimeRCountriess(new Criteria(), $con)->diff($lnkOperationPrimeRCountriess);\n\n\n $this->lnkOperationPrimeRCountriessScheduledForDeletion = $lnkOperationPrimeRCountriessToDelete;\n\n foreach ($lnkOperationPrimeRCountriessToDelete as $lnkOperationPrimeRCountriesRemoved) {\n $lnkOperationPrimeRCountriesRemoved->setOperationPrimes(null);\n }\n\n $this->collLnkOperationPrimeRCountriess = null;\n foreach ($lnkOperationPrimeRCountriess as $lnkOperationPrimeRCountries) {\n $this->addLnkOperationPrimeRCountries($lnkOperationPrimeRCountries);\n }\n\n $this->collLnkOperationPrimeRCountriess = $lnkOperationPrimeRCountriess;\n $this->collLnkOperationPrimeRCountriessPartial = false;\n\n return $this;\n }",
"protected function _prepareCollection() {\n $collection = Mage::helper('ProductReturn/SupplierReturn')->getProductsPending();\n $this->setCollection($collection);\n return parent::_prepareCollection();\n }",
"public function clearLnkOperationPrimeRCountriess()\n {\n $this->collLnkOperationPrimeRCountriess = null; // important to set this to null since that means it is uninitialized\n $this->collLnkOperationPrimeRCountriessPartial = null;\n\n return $this;\n }",
"public function initOperationPrestationss($overrideExisting = true)\n {\n if (null !== $this->collOperationPrestationss && !$overrideExisting) {\n return;\n }\n $this->collOperationPrestationss = new PropelObjectCollection();\n $this->collOperationPrestationss->setModel('OperationPrestations');\n }",
"protected function _prepareCollection() {\n $session = Mage::getModel('core/session');\n $filterConditions = $session->getData('rp_conditions');\n if (!$filterConditions)\n $filterConditions = $this->_filterConditions;\n $posorderCollection = Mage::getModel('webpos/posorder')->getCollection();\n /* Jack - create an empty collection */\n $collection = $posorderCollection;\n foreach ($collection->getItems() as $key => $item) {\n $collection->removeItemByKey($key);\n }\n /**/\n\n /* Define variables and set default data */\n $totalsSalesByUser = array();\n $totalSales = 0;\n $incTimeStrings = array('1' => ' +1 week', '2' => ' +1 day', '3' => ' +1 month', '4' => ' +1 day', '5' => ' +1 day', '6' => ' +1 week', '7' => ' +1 week');\n $descTimeStrings = array('4' => ' -1 week', '5' => ' -1 week', '6' => ' -1 month', '7' => ' -1 month');\n $periodFormat = ($filterConditions['period'] == 3 || $filterConditions['period'] == 6 || $filterConditions['period'] == 7 ) ? \"Y-m-d\" : \"Y-m-d\";\n $specialPeriod = array('1', '2', '3', '4');\n $stringTimeFrom = array('1' => 'monday this week', '2' => 'monday last week', '3' => 'first day of this month', '4' => 'first day of previous month');\n $stringTimeTo = array('1' => 'sunday this week', '2' => 'sunday last week', '3' => 'last day of this month', '4' => 'last day of previous month');\n $thisFriday = date($periodFormat, strtotime('friday this week'));\n $today = date($periodFormat);\n $userIds = $this->userIds;\n if (($filterConditions['from'] == '' || $filterConditions['to'] == '' ) && in_array($filterConditions['period'], $specialPeriod) == false) {\n $this->setCollection($collection);\n return parent::_prepareCollection();\n }\n\n $startTime = (in_array($filterConditions['range'], $specialPeriod)) ? (date($periodFormat, strtotime($stringTimeFrom[$filterConditions['range']]))) : date($periodFormat, strtotime($filterConditions['from']));\n $timeFrom = (in_array($filterConditions['range'], $specialPeriod)) ? (date($periodFormat, strtotime($stringTimeFrom[$filterConditions['range']]))) : date($periodFormat, strtotime($filterConditions['from']));\n $timeTo = (in_array($filterConditions['range'], $specialPeriod)) ? (date($periodFormat, strtotime($stringTimeTo[$filterConditions['range']]))) : date(\"Y-m-d\", strtotime($filterConditions['to']));\n if ($timeFrom && $timeTo) {\n while ($timeFrom <= $timeTo) {\n $i = 0;\n foreach ($this->userIds as $userId => $displayName) {\n $isSave = true;\n $totalSalesOfPeriod = 0;\n $isEmpty = true;\n if ($filterConditions['period'] == 1) {\n $endTime = $this->lastDayOf('year', new DateTime($timeFrom))->format('Y-m-d');\n } else if ($filterConditions['period'] == 3) {\n $endTime = $this->lastDayOf('month', new DateTime($timeFrom))->format('Y-m-d');\n } else\n $endTime = date('Y-m-d', strtotime($timeFrom . $incTimeStrings[$filterConditions['period']]));\n $endTime = (strtotime($endTime) < strtotime($timeTo)) ? $endTime : $timeTo;\n $itemDataObject = new Varien_Object();\n if ($i == 0) {\n if ($filterConditions['period'] == 1) {\n $exTimeFrom = explode('-', $timeFrom);\n $itemDataObject->setData('period', $exTimeFrom[0]);\n } else if ($filterConditions['period'] == 3) {\n $exTimeFrom = explode('-', $timeFrom);\n $itemDataObject->setData('period', $exTimeFrom[0] . '-' . $exTimeFrom[1]);\n } else\n $itemDataObject->setData('period', $timeFrom);\n } else\n $itemDataObject->setData('period', '');\n if ($itemDataObject->getData('period'))\n $itemDataObject->setData('period', date('F j, Y', strtotime($itemDataObject->getData('period'))));\n $webposOrderCollection = $this->getSalesCollection($timeFrom, $endTime, array('user_id' => $userId));\n $totalU = 0;\n if (count($webposOrderCollection) > 0) {\n foreach ($webposOrderCollection as $order) {\n $totalU += $order->getTotals();\n }\n }\n if (!$totalU && $filterConditions['rp_settings']['show_empty_result'] == 'false')\n $isSave = false;\n\n if ($isSave) {\n $itemDataObject->setData('user', $displayName);\n\n $itemDataObject->setData('totals_sales', ($totalU > 0) ? $totalU : '0.00');\n $collection->addItem($itemDataObject);\n }\n $i++;\n }\n if ($filterConditions['period'] == 1)\n $timeFrom = date('Y-m-d', strtotime($endTime));\n else\n $timeFrom = date($periodFormat, strtotime($timeFrom . $incTimeStrings[$filterConditions['period']]));\n }\n /* get last item data \n $i = 0;\n foreach($this->userIds as $userId => $displayName){\n $isSave = true;\n $beforeLastItem = new Varien_Object();\n if($i == 0){\n if($filterConditions['period'] == 1){\n $exTimeFrom = explode('-',$timeTo);\n $beforeLastItem->setData('period',$exTimeFrom[0]);\n }\n else if($filterConditions['period'] == 3){\n $exTimeFrom = explode('-',$timeTo);\n $beforeLastItem->setData('period',$exTimeFrom[0].'-'.$exTimeFrom[1]);\n }\n else\n $beforeLastItem->setData('period',$timeTo);\n }\n else\n $beforeLastItem->setData('period','');\n if($beforeLastItem->getData('period'))\n $beforeLastItem->setData('period',date('F j, Y', strtotime($beforeLastItem->getData('period'))));\n $webposOrderCollection = $this->getSalesCollection($timeTo,$timeTo,array('user_id' => $userId))->getFirstItem();\n if( !$webposOrderCollection->getTotals() && $filterConditions['rp_settings']['show_empty_result'] == 'false')\n $isSave = false;\n if($isSave){\n $beforeLastItem->setData('user',$displayName);\n $beforeLastItem->setData('totals_sales',$webposOrderCollection->getTotals()?$webposOrderCollection->getTotals():'0.00');\n $collection->addItem($beforeLastItem);\n }\n $i++;\n }\n end last item */\n }\n /* set data for totals row */\n $lastItemDataObject = new Varien_Object();\n $lastItemDataObject->setData('period', 'Totals:');\n $orders = $this->getSalesTotal($startTime, $endTime);\n\n $totalU = 0;\n if (count($orders) > 0) {\n foreach ($orders as $order) {\n $totalU += $order->getTotals();\n }\n }\n $lastItemDataObject->setData('totals_sales', $totalU);\n $collection->addItem($lastItemDataObject);\n $this->setCollection($collection);\n /* set session for chart */\n $sessionObject = new Varien_Object();\n foreach ($this->userIds as $userId => $username) {\n $orders = $this->getSalesTotal($startTime, $endTime, array('user_id' => $userId));\n\n\n $totalU = 0;\n if (count($orders) > 0) {\n foreach ($orders as $order) {\n $totalU += $order->getTotals();\n }\n }\n $sessionObject->setData($username, $totalU);\n }\n Mage::getSingleton('core/session')->setData('total_sales_by_user', $sessionObject->toArray());\n Mage::getSingleton('core/session')->setType('user');\n $this->setTotalRowByUser($sessionObject->toArray());\n return parent::_prepareCollection();\n }",
"protected function _prepareCollection()\n {\n $collection = $this->collectionFactory->create();\n $this->setCollection($collection);\n\n return parent::_prepareCollection();\n }",
"public function clearOperationScenariis()\n {\n $this->collOperationScenariis = null; // important to set this to null since that means it is uninitialized\n $this->collOperationScenariisPartial = null;\n\n return $this;\n }",
"protected function _prepareCollection()\n {\n $userId = Mage::getSingleton('admin/session')->getUser()->getId();\n\n /* var $collection Gri_Cms_Model_Mysql4_Version_Collection */\n $collection = Mage::getModel('gri_cms/page_version')->getCollection()\n ->addPageFilter($this->getPage())\n ->addVisibilityFilter($userId,\n Mage::getSingleton('gri_cms/config')->getAllowedAccessLevel())\n ->addUserColumn()\n ->addUserNameColumn();\n\n if (!$this->getParam($this->getVarNameSort())) {\n $collection->addNumberSort();\n }\n\n $this->setCollection($collection);\n\n return parent::_prepareCollection();\n }",
"protected function _prepareCollection()\n\t{\n\t\t$collection = Mage::getResourceModel($this->_getCollectionClass());\n\t\t$this->setCollection($collection);\n\t\t \n\t\treturn parent::_prepareCollection();\n\t}",
"protected function _prepareCollection()\n {\n $collection = Mage::getResourceModel($this->_getCollectionClass());\n $collection->setOrder('ID','DESC');\n $this->setCollection($collection);\n return parent::_prepareCollection();\n }",
"protected function _getCollection()\n {\n if (!$this->_collection) {\n $websiteId = Mage::app()->getWebsite()->getId();\n $this->_collection = Mage::getModel('gri_reward/reward_history')->getCollection()\n ->addCustomerFilter(Mage::getSingleton('customer/session')->getCustomerId())\n ->addWebsiteFilter($websiteId)\n ->setExpiryConfig(Mage::helper('gri_reward')->getExpiryConfig())\n ->addExpirationDate($websiteId)\n ->skipExpiredDuplicates()\n ->setDefaultOrder()\n ;\n }\n return $this->_collection;\n }",
"protected function _prepareCollection()\n {\n $collection = Mage::getResourceModel($this->_getCollectionClass());\n $this->setCollection($collection);\n\n return parent::_prepareCollection();\n }",
"public function setOperationPrestationss(PropelCollection $operationPrestationss, PropelPDO $con = null)\n {\n $operationPrestationssToDelete = $this->getOperationPrestationss(new Criteria(), $con)->diff($operationPrestationss);\n\n\n $this->operationPrestationssScheduledForDeletion = $operationPrestationssToDelete;\n\n foreach ($operationPrestationssToDelete as $operationPrestationsRemoved) {\n $operationPrestationsRemoved->setOperationPrimes(null);\n }\n\n $this->collOperationPrestationss = null;\n foreach ($operationPrestationss as $operationPrestations) {\n $this->addOperationPrestations($operationPrestations);\n }\n\n $this->collOperationPrestationss = $operationPrestationss;\n $this->collOperationPrestationssPartial = false;\n\n return $this;\n }",
"public function getPeer()\n {\n if (self::$peer === null) {\n self::$peer = new OperationPrimesPeer();\n }\n\n return self::$peer;\n }",
"public function cleanCopy()\n {\n $clone = clone $this;\n $clone->setEagerLoader(clone $this->getEagerLoader());\n $clone->triggerBeforeFind();\n $clone->enableAutoFields(false);\n $clone->limit(null);\n $clone->order([], true);\n $clone->offset(null);\n $clone->mapReduce(null, null, true);\n $clone->formatResults(null, true);\n $clone->setSelectTypeMap(new TypeMap());\n $clone->decorateResults(null, true);\n\n return $clone;\n }",
"protected function _prepareCollection() {\n $website_id = Mage::app()->getWebsite()->getId();\n $collection = Mage::getModel('inchoo_supportticket/ticket')\n ->getCollection();\n $this->setCollection($collection);\n parent::_prepareCollection();\n return $this;\n }",
"protected function _initProductCollection()\n {\n $client = Mage::helper('catalogsearch')->getEngine()->getClient();\n $baseQuery = $this->_getBaseSearchQuery();\n $optimizedQuery = $this->_getOptimizedQuery($baseQuery);\n $baseProductIds = $this->_getProductIdsFromSearchQuery($baseQuery);\n $optimizeProductIds = $this->_getProductIdsFromSearchQuery($optimizedQuery);\n\n $this->setBaseProductIds($baseProductIds);\n $this->setOptimizedProductIds($optimizeProductIds);\n\n $allIds = array_merge($baseProductIds, $optimizeProductIds);\n\n if (empty($allIds)) {\n $allIds = array(0);\n }\n\n $attributes = Mage::getModel('catalog/config')->getProductCollectionAttributes();\n $collection = Mage::getResourceModel('catalog/product_collection')\n ->setStoreId($this->getStoreId())\n ->addIdFilter($allIds)\n ->addAttributeToSelect($attributes)\n ->load();\n\n $this->setProductCollection($collection);\n\n return $this;\n }",
"protected function _getCollection()\n\t{\n\t\t//Check collection\n\t\tif($this->_collection)\n\t\t\treturn $this->_collection;\n\n\t\t//Get collection\n\t\t$this->_collection = new \\Framework\\Database\\Drivers\\Mongo\\CDatabaseModelCollection($this, $this->execute());\n\t\treturn $this->_collection;\n\t}",
"protected function _prepareCollection()\n {\t\t \n\t\t\n $collection = Mage::getModel('catalog/product')\n \t->getCollection()\n \t->addAttributeToSelect('name')\n \t->addAttributeToSelect('price')\n \t->addAttributeToSelect('special_price')\n \t->addAttributeToSelect('name')\n \t->addAttributeToSelect('manufacturer')\n \t->addFieldToFilter('type_id', array('in' => array(Mage_Catalog_Model_Product_Type::TYPE_SIMPLE, Mage_Catalog_Model_Product_Type::TYPE_VIRTUAL)))\n ->joinField('qty',\n 'cataloginventory/stock_item',\n 'qty',\n 'product_id=entity_id',\n '{{table}}.stock_id=1',\n 'left');\n \t;\n $this->setCollection($collection);\n return parent::_prepareCollection();\n }",
"public function getFeatureCvtermprops($criteria = null, PropelPDO $con = null)\n {\n $partial = $this->collFeatureCvtermpropsPartial && !$this->isNew();\n if (null === $this->collFeatureCvtermprops || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collFeatureCvtermprops) {\n // return empty collection\n $this->initFeatureCvtermprops();\n } else {\n $collFeatureCvtermprops = FeatureCvtermpropQuery::create(null, $criteria)\n ->filterByFeatureCvterm($this)\n ->find($con);\n if (null !== $criteria) {\n if (false !== $this->collFeatureCvtermpropsPartial && count($collFeatureCvtermprops)) {\n $this->initFeatureCvtermprops(false);\n\n foreach($collFeatureCvtermprops as $obj) {\n if (false == $this->collFeatureCvtermprops->contains($obj)) {\n $this->collFeatureCvtermprops->append($obj);\n }\n }\n\n $this->collFeatureCvtermpropsPartial = true;\n }\n\n $collFeatureCvtermprops->getInternalIterator()->rewind();\n return $collFeatureCvtermprops;\n }\n\n if($partial && $this->collFeatureCvtermprops) {\n foreach($this->collFeatureCvtermprops as $obj) {\n if($obj->isNew()) {\n $collFeatureCvtermprops[] = $obj;\n }\n }\n }\n\n $this->collFeatureCvtermprops = $collFeatureCvtermprops;\n $this->collFeatureCvtermpropsPartial = false;\n }\n }\n\n return $this->collFeatureCvtermprops;\n }",
"protected function _prepareCollection()\n {\n $collection = Mage::getResourceModel('bs_worksheet/worksheet_collection');\n if ($this->getCurriculum()->getId()) {\n $constraint = 'related.curriculum_id='.$this->getCurriculum()->getId();\n } else {\n $constraint = 'related.curriculum_id=0';\n }\n $collection->getSelect()->joinLeft(\n array('related' => $collection->getTable('bs_worksheet/worksheet_curriculum')),\n 'related.worksheet_id=main_table.entity_id AND '.$constraint,\n array('position')\n );\n $this->setCollection($collection);\n parent::_prepareCollection();\n return $this;\n }",
"public function createCollection()\n\t{\n\t\t/** @var $collection \\Magento\\Catalog\\Model\\ResourceModel\\Product\\Collection */\n\t\t$collection = $this->productCollectionFactory->create();\n\t\t$collection->setVisibility($this->catalogProductVisibility->getVisibleInCatalogIds());\n\n\t\t$collection = $this->_addProductAttributesAndPrices($collection)\n\t\t\t->addStoreFilter()\n\t\t\t->setPageSize($this->getPageSize())\n\t\t\t->setCurPage($this->getRequest()->getParam(self::PAGE_VAR_NAME, 1));\n\n\t\t$conditions = $this->getConditions();\n\t\t$conditions->collectValidatedAttributes($collection);\n\t\t$this->sqlBuilder->attachConditionToCollection($collection, $conditions);\n\n\t\treturn $collection;\n\t}",
"protected function _prepareCollection() {\n /**\n * Get the Collection of Manage Subscription\n */\n $manageSubscription = Mage::getModel ( 'airhotels/managesubscriptions' )->getCollection ();\n \n /**\n * Get the Table Prefix Value\n */\n $tablePrefix = Mage::getConfig ()->getTablePrefix ();\n $manageSubscription->getSelect ()->group ( 'main_table.product_id' )->joinLeft ( $tablePrefix . 'apptha_productsubscriptions', 'main_table.product_id =' . $tablePrefix . 'apptha_productsubscriptions.product_id AND ' . $tablePrefix . 'apptha_productsubscriptions.is_delete = 0', array (\n 'main_table.id as id',\n 'main_table.product_name as product_name',\n $tablePrefix . 'apptha_productsubscriptions.subscription_type as subscription_type' \n ) )->where ( 'main_table.is_subscription_only = ?', 1 );\n \n $collection = $manageSubscription;\n $this->setCollection ( $collection );\n /**\n * Calling the parent Construct Method.\n */\n return parent::_prepareCollection ();\n }",
"protected function _prepareCollection()\n {\n $collection = $this->_createCollection()->addCustomerIdFilter($this->_getCustomer()->getId())\n ->resetSortOrder()\n ->addDaysInWishlist()\n ->addStoreData();\n $this->setCollection($collection);\n\n return parent::_prepareCollection();\n }",
"protected function _getCollection()\n {\n if (!$this->_collection) {\n $websiteId = $this->_storeManager->getWebsite()->getId();\n $this->_collection = $this->_historyFactory->create()\n ->addCustomerFilter($this->currentCustomer->getCustomerId())\n ->addWebsiteFilter($websiteId)\n ->setExpiryConfig($this->_rewardData->getExpiryConfig())\n ->addExpirationDate($websiteId)\n ->skipExpiredDuplicates()\n ->setDefaultOrder();\n }\n return $this->_collection;\n }",
"public function getProduitsPanier()\n {\n return $this->CollProduit->getCollection();\n }",
"public function __clone() {\n if ($this->_where) {\n $this->_where = clone $this->_where;\n }\n\n if ($this->_having) {\n $this->_having = clone $this->_having;\n }\n }",
"protected function getComposedCollection()\n {\n return $this->composedCollection;\n }",
"public function initLnkOperationPrimeRCountriess($overrideExisting = true)\n {\n if (null !== $this->collLnkOperationPrimeRCountriess && !$overrideExisting) {\n return;\n }\n $this->collLnkOperationPrimeRCountriess = new PropelObjectCollection();\n $this->collLnkOperationPrimeRCountriess->setModel('LnkOperationPrimeRCountries');\n }",
"protected function _prepareCollection()\n {\n $collection = Mage::getModel('oggetto_oneclick/order')->getResourceCollection();\n $this->setCollection($collection);\n return parent::_prepareCollection();\n }",
"protected function _prepareCollection()\n {\n /** @var $collection ChazkiExpressCollection */\n $collection = $this->_collectionFactory->create();\n $collection->setWebsiteFilter($this->getWebsiteId());\n\n $this->setCollection($collection);\n\n return parent::_prepareCollection();\n }",
"public function getContributionss(Criteria $criteria = null, ConnectionInterface $con = null)\n {\n $partial = $this->collContributionssPartial && !$this->isNew();\n if (null === $this->collContributionss || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collContributionss) {\n // return empty collection\n $this->initContributionss();\n } else {\n $collContributionss = ChildContributionsQuery::create(null, $criteria)\n ->filterByIssues($this)\n ->find($con);\n\n if (null !== $criteria) {\n if (false !== $this->collContributionssPartial && count($collContributionss)) {\n $this->initContributionss(false);\n\n foreach ($collContributionss as $obj) {\n if (false == $this->collContributionss->contains($obj)) {\n $this->collContributionss->append($obj);\n }\n }\n\n $this->collContributionssPartial = true;\n }\n\n return $collContributionss;\n }\n\n if ($partial && $this->collContributionss) {\n foreach ($this->collContributionss as $obj) {\n if ($obj->isNew()) {\n $collContributionss[] = $obj;\n }\n }\n }\n\n $this->collContributionss = $collContributionss;\n $this->collContributionssPartial = false;\n }\n }\n\n return $this->collContributionss;\n }",
"public static function cooperations() {\n return self::query()\n ->join('ownership', 'ownership.fobjsid', 'vp.sId')\n ->join('jobs', 'ownership.tobjsid', 'jobs.sId')\n ->select('vp.*')\n ->where('jobs.type', Job::TYPE_COOPERATION);\n }",
"public function getProcessorsCollection();",
"public function clearOperations()\n {\n $this->_operations = array();\n\n return $this;\n }",
"protected function _prepareCollection()\n {\n $collection = Mage::getModel('iparcel/log')->getCollection();\n $this->setCollection($collection);\n\n return parent::_prepareCollection();\n }",
"public function copy(): Collection\n {\n return clone $this;\n }",
"protected function _prepareCollection()\n {\n $collection = Mage::getModel('solutionpartner/partner')->getCollection();\n $collection->getSelect()->joinLeft(\n array('order' => $collection->getTable('sales/order')),\n 'main_table.email = order.customer_email AND order.status = \"complete\"',\n array(\n 'order_id' => 'entity_id',\n 'order_status' => 'order.status',\n 'number_qtys' => 'count(order.entity_id)'\n ))\n ->group('main_table.solutionpartner_id');\n $this->setCollection($collection);\n return parent::_prepareCollection();\n }",
"public function searchPesificacionesSinCompletar()\n\t{\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n $criteria->condition= \"estado=:estado\";\n\t\t$criteria->params = array(':estado'=> Pesificaciones::ESTADO_ABIERTO);\n\n\t\t//$criteria->condition= \"(t.montoAcreditar+t.montoGastos) NOT IN (SELECT SUM(cheques.montoOrigen) FROM cheques, detallePesificaciones WHERE detallePesificaciones.chequeId=cheques.id AND detallePesificaciones.pesificacionId=t.id)\";\n\t\treturn new CActiveDataProvider(new Pesificaciones, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}",
"protected function _prepareCollection()\n\t{\n\t\t$collection = Mage::getResourceModel($this->_getCollectionClass());\n $collection->getSelect()->joinLeft(\n array('sfo' => 'sales_flat_order'),\n 'main_table.order_id = sfo.entity_id',\n array('increment_id')\n );\n\t\t$this->setCollection($collection);\n\n\t\treturn parent::_prepareCollection();\n\t}",
"protected function _prepareCollection()\n {\n /* @var $collection Scandi_MenuManager_Model_Resource_Item_Collection */\n $collection = Mage::getModel('scandi_menumanager/item')->getResourceCollection()\n ->addMenuFilter(Mage::registry('menumanager_menu'));\n if (!$this->getRequest()->getParam('sort')) { $collection->setPositionOrder(); }\n\n $this->setCollection($collection);\n return parent::_prepareCollection();\n }",
"public function getProductCollection()\n {\n\n if (is_null($this->_productCollection)) {\n $collection = $this->_engine->getAdvancedResultCollection();\n $this->prepareProductCollection($collection);\n if (!$collection) {\n return $collection;\n }\n $this->_productCollection = $collection;\n }\n\n return $this->_productCollection;\n }",
"protected function getProductResultCollection()\n {\n $collection = Mage::registry('recommendation_collection');\n\n if (empty($collection)) {\n $collection = array();\n }\n\n return $collection;\n }",
"public function getProductCollection()\n {\n $this->_basketProducts = $this->_getCartProductIds();\n $products = $this->_complementaryEngine->sendQuery($this->_basketProducts);\n\n if ($products['rules']) {\n return $this->_getPredictedProducts($products['rules']);\n }\n\n return false;\n }",
"public function buildPkeyCriteria()\n {\n $criteria = new Criteria(SanitasiPeer::DATABASE_NAME);\n $criteria->add(SanitasiPeer::SEKOLAH_ID, $this->sekolah_id);\n $criteria->add(SanitasiPeer::SEMESTER_ID, $this->semester_id);\n\n return $criteria;\n }",
"public function getOperations(PropelPDO $con = null, $doQuery = true)\n {\n if ($this->aOperations === null && ($this->op_id !== null) && $doQuery) {\n $this->aOperations = OperationsQuery::create()->findPk($this->op_id, $con);\n /* The following can be used additionally to\n guarantee the related object contains a reference\n to this object. This level of coupling may, however, be\n undesirable since it could result in an only partially populated collection\n in the referenced object.\n $this->aOperations->addOperationPrimess($this);\n */\n }\n\n return $this->aOperations;\n }",
"public function getCriteria()\n {\n if (!isset($this->currentCriteria)) {\n throw new CollectionDriverException('Criteria is accessible only during preGetResult event.');\n }\n\n return $this->currentCriteria;\n }",
"function getComposite()\n {\n return $this;\n }",
"protected function _prepareCollection()\n {\n $collection = Mage::getModel('catalog/product')->getCollection()\n ->addAttributeToSelect('name')\n ->addAttributeToSelect('type')\n ->addAttributeToSelect('status')\n ->addAttributeToSelect('visibility')\n ->addAttributeToSelect('sku');\n $this->setCollection($collection);\n return parent::_prepareCollection();\n }",
"public function __clone()\r\n {\r\n $this->document = [];\r\n $this->document_id = 0;\r\n\r\n $this->documentTotal = 0;\r\n $this->documentExchageTotal = 0;\r\n\r\n $this->associatedDocuments = [];\r\n }",
"public function __clone() {\n $this->name = clone $this->name;\n $this->type = clone $this->type;\n $this->op = clone $this->op;\n\n $this->currentPeriod = clone $this->currentPeriod;\n $this->previousPeriod = clone $this->previousPeriod;\n\n $products = array();\n foreach ($this->products as $idx=>$product) {\n $products[] = clone $product;\n }\n $this->products = $products;\n }",
"public function buildPkeyCriteria()\n\t{\n\t\t$criteria = new Criteria(C060InventarioPeer::DATABASE_NAME);\n\n\t\t$criteria->add(C060InventarioPeer::CO_NUM_INVENTARIO, $this->co_num_inventario);\n\n\t\treturn $criteria;\n\t}",
"public function chapitrePrec() {\n $prevChapitre = $this->cour->chapitres()->where('num_ordre', '<', $this->num_ordre)\n ->orderBy('num_ordre', 'desc')\n ->first();\n\n if($prevChapitre) {\n return $prevChapitre;\n }\n\n return $this;\n }",
"function productCollection()\n {\n return eZProductCollection::fetch( $this->attribute( 'productcollection_id' ) );\n }",
"public function getProposedChanges(): ProposedChangeCollection\n {\n return $this->proposedChanges;\n }",
"public function findNewProd()\r\n {\r\n $query = $this->getEntityManager()\r\n ->createQuery(\"select m from CondorsTnMallBundle:Produit m ORDER BY m.datecreation DESC \")\r\n ->setMaxResults(5);\r\n\r\n return $query->getResult();\r\n\r\n }",
"protected function getPagerCollectionInstance()\n {\n $pagerCollection = $this->dataBackend->getPagerCollection();\n $pagerCollection->setItemCount($this->dataBackend->getTotalItemsCount());\n return $pagerCollection;\n }",
"function detachProductCollection()\n {\n $collection = $this->productCollection();\n if ( !$collection )\n {\n $retValue = false;\n return $retValue;\n }\n\n $db = eZDB::instance();\n $db->begin();\n $newCollection = $collection->copy();\n if ( !$newCollection )\n {\n $db->commit();\n $retValue = false;\n return $retValue;\n }\n $this->setAttribute( 'productcollection_id', $newCollection->attribute( 'id' ) );\n $this->store();\n\n $db->commit();\n return $newCollection;\n }",
"protected function _prepareCollection()\n {\n $collection = Mage::getResourceModel('bs_docwise/docwisement_collection');\n\n if ($this->getExam()->getId()) {\n $constraint = 'related.exam_id='.$this->getExam()->getId();\n } else {\n $constraint = 'related.exam_id=0';\n }\n $collection->getSelect()->joinLeft(\n array('related' => $collection->getTable('bs_docwise/exam_docwisement')),\n 'related.docwisement_id = main_table.entity_id AND '.$constraint,\n array('position')\n );\n\n\n $this->setCollection($collection);\n parent::_prepareCollection();\n return $this;\n }",
"public function initPesquisas($overrideExisting = true)\n\t{\n\t\tif (null !== $this->collPesquisas && !$overrideExisting) {\n\t\t\treturn;\n\t\t}\n\t\t$this->collPesquisas = new PropelObjectCollection();\n\t\t$this->collPesquisas->setModel('Pesquisa');\n\t}",
"public function relCooperations() {\n return Job::query()\n ->join('ownership', 'ownership.tobjsid', 'jobs.sId')\n ->select('jobs.*')\n ->where('ownership.fobjsid', parent::__get('sId'))\n ->where('jobs.type', Job::TYPE_COOPERATION)\n ->get();\n }",
"public function clearFindCriteria()\n {\n $this->findCriteria = [];\n return $this;\n }",
"public function Panier() \n {\n $this->CollProduit = new Collection;\n }",
"public function load()\n {\n if (!$this->loaded) {\n $searchData = [];\n foreach (persistableCollection::getInstance($this->resourceName)->getPrimaryFields() as $fieldName) {\n $searchData[$fieldName] = $this->$fieldName;\n }\n $result = persistableCollection::getInstance($this->resourceName)->loadObject($searchData);\n $this->persisted = true;\n $this->loaded = true;\n return $result;\n }\n return $this;\n }",
"public function __clone()\n {\n parent::__clone();\n $this->_stockItem = null;\n $this->_stockItems = null;\n $this->_inStockStockItems = null;\n return $this;\n }",
"public function getCollection() {\n return $this->gateway->find(\n $this->getFilter(),\n $this->order,\n $this->relations,\n $this->pager,\n !$this->excludeRepo\n );\n }",
"public function __clone()\n {\n if (is_object($this->collection)) {\n $this->collection = clone $this->collection;\n }\n $this->initialize();\n $this->owner = null;\n $this->snapshot = [];\n $this->changed();\n }",
"public function retrievePriceFilters()\n {\n $select = $this->getSelect();\n $select->setPart(Zend_Db_Select::WHERE, $this->_wherePartStash);\n $select->setPart(Zend_Db_Select::GROUP, $this->_groupPartStash);\n\n $this->clearStatisticsData();\n\n return $this;\n }",
"public function getInappropriates($criteria = null, PropelPDO $con = null)\n\t{\n\t\tif ($criteria === null) {\n\t\t\t$criteria = new Criteria(PostPeer::DATABASE_NAME);\n\t\t}\n\t\telseif ($criteria instanceof Criteria)\n\t\t{\n\t\t\t$criteria = clone $criteria;\n\t\t}\n\n\t\tif ($this->collInappropriates === null) {\n\t\t\tif ($this->isNew()) {\n\t\t\t $this->collInappropriates = array();\n\t\t\t} else {\n\n\t\t\t\t$criteria->add(InappropriatePeer::POST_ID, $this->id);\n\n\t\t\t\tInappropriatePeer::addSelectColumns($criteria);\n\t\t\t\t$this->collInappropriates = InappropriatePeer::doSelect($criteria, $con);\n\t\t\t}\n\t\t} else {\n\t\t\t// criteria has no effect for a new object\n\t\t\tif (!$this->isNew()) {\n\t\t\t\t// the following code is to determine if a new query is\n\t\t\t\t// called for. If the criteria is the same as the last\n\t\t\t\t// one, just return the collection.\n\n\n\t\t\t\t$criteria->add(InappropriatePeer::POST_ID, $this->id);\n\n\t\t\t\tInappropriatePeer::addSelectColumns($criteria);\n\t\t\t\tif (!isset($this->lastInappropriateCriteria) || !$this->lastInappropriateCriteria->equals($criteria)) {\n\t\t\t\t\t$this->collInappropriates = InappropriatePeer::doSelect($criteria, $con);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$this->lastInappropriateCriteria = $criteria;\n\t\treturn $this->collInappropriates;\n\t}",
"public function getParameters() : CollectionInterface\n {\n return $this->parameters->copy();\n }",
"public function __clone()\n {\n $this->query = clone $this->query;\n }",
"protected function _prepareCollection()\n {\n $baseQuery = $this->_getBaseSearchQuery();\n $productIds = $this->_getProductIdsFromSearchQuery($baseQuery);\n\n if (empty($productIds)) {\n $productIds = array(0);\n }\n\n $attributes = Mage::getModel('catalog/config')->getProductCollectionAttributes();\n\n /** @var Mage_Catalog_Model_Resource_Product_Collection $collection */\n $collection = Mage::getResourceModel('catalog/product_collection')\n ->addIdFilter($productIds)\n ->addAttributeToSelect($attributes);\n\n $storeIds = implode(\",\", array_unique(array_map(\"intval\", array(Mage_Core_Model_App::ADMIN_STORE_ID, $this->getStoreId()))));\n\n if ($this->getStoreId() != Mage_Core_Model_App::ADMIN_STORE_ID) {\n $collection->setStoreId($this->getStoreId());\n $joinCond = \"category_id = \" . (int) $this->getCategory()->getId() . \" AND store_id = {$this->getStoreId()}\";\n } else {\n $joinCond = \"category_id = \" . (int) $this->getCategory()->getId() . \" AND store_id IN ({$storeIds})\";\n }\n\n $collection->joinField(\n 'position',\n 'smile_virtualcategories/category_product_position',\n 'position',\n 'product_id = entity_id',\n $joinCond,\n 'left'\n );\n\n $collection->getSelect()->order(\n new Zend_Db_Expr(\"- position DESC\") // mimic a \"SORT BY #field NULL LAST\n );\n\n $entityIds = implode(\",\", $productIds);\n $collection->getSelect()->order(\n new Zend_Db_Expr(\"FIELD(e.entity_id, {$entityIds})\") // restore sort order given by ES\n );\n\n $this->setCollection($collection);\n\n return parent::_prepareCollection();\n }",
"public function getDataProcessorCollection(): ProcessorCollection {\n\n return $this->dataProcessorCollection;\n\n }",
"public function applyCriteria() {\n if ($this->skipCriteria === true) {\n return $this;\n }\n\n foreach ($this->getCriteria() as $criteria) {\n if ($criteria instanceof Criteria) {\n $this->model = $criteria->apply($this->model, $this);\n }\n }\n\n return $this;\n }",
"public function collection() {\n \t$db = $this->db;\n\t\t$sql = $this->sql();\n\t\t$rows = $db::execute($sql);\n\t\t$model = $this->model;\n\t\treturn new \\Collection($model::arrayFactoryFromRows($rows));\n\t}",
"public function getCollection()\n {\n $collection = trim(str_replace('\\\\', '_', $this->collection), '_');\n return $this->$collection()\n ->setDatabase($this->database)\n ->setTable($this->table)\n ->setModel($this->model)\n ->set($this->getRows());\n }",
"function getCommonProvisions();",
"protected function applyCriteria()\n {\n if ($this->skipCriteria === true) {\n return $this;\n }\n\n $criteria = $this->getCriteria();\n\n if ($criteria) {\n foreach ($criteria as $c) {\n $this->model = $c->apply($this->model, $this);\n }\n }\n\n return $this;\n }",
"public function fresh()\n {\n if ($this->hasModel() && $this->exists()) {\n return odb($this->db(), $this->table())->find((int) $this->data['id']);\n }\n\n return $this;\n }",
"public function buildPkeyCriteria()\n {\n $criteria = new Criteria(SekolahPaudPeer::DATABASE_NAME);\n $criteria->add(SekolahPaudPeer::SEKOLAH_ID, $this->sekolah_id);\n\n return $criteria;\n }",
"public function getCriteriaCollection(): CriteriaCollection;",
"public function clearPriceFilters()\n {\n $select = $this->getSelect();\n $this->_wherePartStash = $select->getPart(Zend_Db_Select::WHERE);\n $this->_groupPartStash = $select->getPart(Zend_Db_Select::GROUP);\n $select->reset(Zend_Db_Select::WHERE);\n $select->reset(Zend_Db_Select::GROUP);\n\n $this->clearStatisticsData();\n\n return $this;\n }",
"protected function getPluginCollection() {\n if (!$this->pluginCollection) {\n $plugin_manager = \\Drupal::service('plugin.manager.commerce_installment_plan_methods');\n $this->pluginCollection = new InstallmentPlanMethodPluginCollection($plugin_manager, $this->plugin, $this->configuration, $this->id);\n }\n return $this->pluginCollection;\n }",
"public function getCompetitionsWithReload() {\n $this->competitionsLoaded = false;\n return $this->getCompetitions();\n }",
"public function buildPkeyCriteria()\n\t{\n\t\t$criteria = new Criteria(VpoRequestPeer::DATABASE_NAME);\n\n\t\t$criteria->add(VpoRequestPeer::ID, $this->id);\n\n\t\treturn $criteria;\n\t}",
"public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME)\n {\n $keys = OperationPrimesPeer::getFieldNames($keyType);\n\n if (array_key_exists($keys[0], $arr)) $this->setOpPrimeId($arr[$keys[0]]);\n if (array_key_exists($keys[1], $arr)) $this->setOpId($arr[$keys[1]]);\n if (array_key_exists($keys[2], $arr)) $this->setOpPrimeLibelle($arr[$keys[2]]);\n if (array_key_exists($keys[3], $arr)) $this->setOpPrimeNumero($arr[$keys[3]]);\n if (array_key_exists($keys[4], $arr)) $this->setGdlArtId($arr[$keys[4]]);\n if (array_key_exists($keys[5], $arr)) $this->setOperationPrimeCurrencyId($arr[$keys[5]]);\n if (array_key_exists($keys[6], $arr)) $this->setOperationPrimeRRewardTypeId($arr[$keys[6]]);\n if (array_key_exists($keys[7], $arr)) $this->setOperationPrimeRRewardExpeditionModeId($arr[$keys[7]]);\n if (array_key_exists($keys[8], $arr)) $this->setOperationPrimeRRewardTransporterId($arr[$keys[8]]);\n if (array_key_exists($keys[9], $arr)) $this->setOperationPrimeFixedAmount($arr[$keys[9]]);\n if (array_key_exists($keys[10], $arr)) $this->setOperationPrimeProductPricePourcentage($arr[$keys[10]]);\n if (array_key_exists($keys[11], $arr)) $this->setOperationPrimeMaximumAmount($arr[$keys[11]]);\n }",
"private function applyCriteria()\n {\n foreach( $this->criteria as $criterion )\n {\n $this->query = $criterion->apply( $this->query, $this );\n }\n\n return $this;\n }",
"protected function _getQueueCollection() : \\Pulchritudinous\\Queue\\Model\\ResourceModel\\Labour\\Collection\n {\n $collection = $this->_objectManager->create('Pulchritudinous\\Queue\\Model\\ResourceModel\\Labour\\Collection')\n ->addFieldToFilter('status', ['eq' => Labour::STATUS_PENDING])\n ->addFieldToFilter('execute_at', ['lteq' => time()])\n ->setOrder('priority', 'ASC')\n ->setOrder('execute_at', 'ASC');\n\n return $collection;\n }",
"public function getResultsCollections()\n\t {\n\t \tif ( is_array($this->results) && $this->isMulti() ) {\n\n\t \t\treturn new MagentoObjectCollection($this->results);\n\n\t \t} elseif( is_array($this->results) && !$this->isMulti() ) {\n\n\t \t\treturn new MagentoObject($this->results);\n\n\t \t} elseif( is_object($this->results) ) {\n\n\t \t\treturn new MagentoObject($this->results);\n\n\t \t} else {\n\n\t \t\treturn $this->results;\n\t \t}\n\t }",
"protected function processData($data)\n {\n // reuse the existing collection to optimize for Doctrine\n if ($data instanceof Collection) {\n $currentData = $this->getData();\n\n if (!$currentData) {\n $currentData = $data;\n } else if (count($data) === 0) {\n $currentData->clear();\n } else {\n // merge $data into $currentData\n foreach ($currentData as $entity) {\n if (!$data->contains($entity)) {\n $currentData->removeElement($entity);\n } else {\n $data->removeElement($entity);\n }\n }\n\n foreach ($data as $entity) {\n $currentData->add($entity);\n }\n }\n\n return $currentData;\n }\n\n return $data;\n }",
"protected function _prepareCollection()\n {\n $currentCampaign = Mage::getSingleton('adminhtml/session')->getCurrentCampaign();\n $collection = Mage::getModel('campaign/bannerslider')->getCollection();\n $collection->getSelect()\n ->joinLeft(array('campaign'=>$collection->getTable('campaign/campaign')),\n 'main_table.campaign_id = campaign.campaign_id', '')\n ->columns(array('campaign_name'=>'IF(main_table.campaign_id = \"'.$currentCampaign->getId().'\", \"Current\", campaign.name)'))\n ->group('main_table.bannerslider_id');\n $filter = Mage::registry('banner_reloaded_ids');\n if(!isset($filter)){//if reset no filter\n $selected_id = $this->_selectedId();\n if(!empty($selected_id)){\n $collection->addFieldToFilter('bannerslider_id', array('in'=>$selected_id));\n }\n }\n $this->setCollection($collection);\n return parent::_prepareCollection();\n }",
"public function __clone() {\n foreach ($this->conditions as $i => $condition) {\n $this->conditions[$i] = clone $condition;\n }\n }",
"public function initInappropriates()\n\t{\n\t\t$this->collInappropriates = array();\n\t}",
"protected function _getProductCollection()\n {\n $collection = parent::_getProductCollection();\n\t\t$helper = Mage::helper('catalogMembersonly/productsFilter');\n\t\t$collection = $helper->filterProductCollection($collection);\n\n return $collection;\t\t\n }",
"public function getCollection(){\r\n\t\treturn $this->_collection;\r\n\t}"
] | [
"0.6221554",
"0.6149701",
"0.6142154",
"0.59836036",
"0.5882523",
"0.57150275",
"0.5676495",
"0.54171467",
"0.5377302",
"0.52112645",
"0.5207475",
"0.51135796",
"0.51064634",
"0.5103301",
"0.5100685",
"0.5094206",
"0.50737226",
"0.50609046",
"0.50593936",
"0.5048601",
"0.5045793",
"0.5034606",
"0.501308",
"0.50010586",
"0.4990244",
"0.49782228",
"0.49758965",
"0.49630105",
"0.49303123",
"0.4926317",
"0.49162847",
"0.4891602",
"0.48816755",
"0.48645774",
"0.4835913",
"0.48323965",
"0.48307505",
"0.4798249",
"0.4774085",
"0.47618118",
"0.4749842",
"0.4746372",
"0.47444683",
"0.47298646",
"0.47294393",
"0.4717697",
"0.4703885",
"0.46701062",
"0.46700373",
"0.4666136",
"0.46577236",
"0.46483883",
"0.46445224",
"0.46444115",
"0.4644174",
"0.46375364",
"0.4634603",
"0.463379",
"0.46317622",
"0.46310365",
"0.46269158",
"0.46214128",
"0.46206686",
"0.4614964",
"0.46120927",
"0.461036",
"0.4583274",
"0.45827192",
"0.45806247",
"0.45805448",
"0.45772824",
"0.45632225",
"0.45575222",
"0.45572907",
"0.45540616",
"0.45450038",
"0.45447662",
"0.45381007",
"0.45360044",
"0.45346496",
"0.45338196",
"0.45331907",
"0.4532828",
"0.45286003",
"0.4528103",
"0.45223293",
"0.45212713",
"0.45202845",
"0.45164007",
"0.45156062",
"0.4512123",
"0.45105124",
"0.4509372",
"0.44925752",
"0.44873616",
"0.4483513",
"0.44796252",
"0.44750312",
"0.4472813",
"0.4464218",
"0.4463481"
] | 0.0 | -1 |
If this collection has already been initialized with an identical criteria, it returns the collection. Otherwise if this OperationPrimes is new, it will return an empty collection; or if this OperationPrimes has previously been saved, it will retrieve related OperationPrestationss from storage. This method is protected by default in order to keep the public api reasonable. You can provide public methods for those you actually need in OperationPrimes. | public function getOperationPrestationssJoinHistoCouts($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN)
{
$query = OperationPrestationsQuery::create(null, $criteria);
$query->joinWith('HistoCouts', $join_behavior);
return $this->getOperationPrestationss($query, $con);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getOperationPrestationss($criteria = null, PropelPDO $con = null)\n {\n $partial = $this->collOperationPrestationssPartial && !$this->isNew();\n if (null === $this->collOperationPrestationss || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collOperationPrestationss) {\n // return empty collection\n $this->initOperationPrestationss();\n } else {\n $collOperationPrestationss = OperationPrestationsQuery::create(null, $criteria)\n ->filterByOperationPrimes($this)\n ->find($con);\n if (null !== $criteria) {\n if (false !== $this->collOperationPrestationssPartial && count($collOperationPrestationss)) {\n $this->initOperationPrestationss(false);\n\n foreach ($collOperationPrestationss as $obj) {\n if (false == $this->collOperationPrestationss->contains($obj)) {\n $this->collOperationPrestationss->append($obj);\n }\n }\n\n $this->collOperationPrestationssPartial = true;\n }\n\n $collOperationPrestationss->getInternalIterator()->rewind();\n\n return $collOperationPrestationss;\n }\n\n if ($partial && $this->collOperationPrestationss) {\n foreach ($this->collOperationPrestationss as $obj) {\n if ($obj->isNew()) {\n $collOperationPrestationss[] = $obj;\n }\n }\n }\n\n $this->collOperationPrestationss = $collOperationPrestationss;\n $this->collOperationPrestationssPartial = false;\n }\n }\n\n return $this->collOperationPrestationss;\n }",
"public function buildPkeyCriteria()\n {\n $criteria = new Criteria(OperationPrimesPeer::DATABASE_NAME);\n $criteria->add(OperationPrimesPeer::OP_PRIME_ID, $this->op_prime_id);\n\n return $criteria;\n }",
"public function buildCriteria()\n {\n $criteria = new Criteria(OperationPrimesPeer::DATABASE_NAME);\n\n if ($this->isColumnModified(OperationPrimesPeer::OP_PRIME_ID)) $criteria->add(OperationPrimesPeer::OP_PRIME_ID, $this->op_prime_id);\n if ($this->isColumnModified(OperationPrimesPeer::OP_ID)) $criteria->add(OperationPrimesPeer::OP_ID, $this->op_id);\n if ($this->isColumnModified(OperationPrimesPeer::OP_PRIME_LIBELLE)) $criteria->add(OperationPrimesPeer::OP_PRIME_LIBELLE, $this->op_prime_libelle);\n if ($this->isColumnModified(OperationPrimesPeer::OP_PRIME_NUMERO)) $criteria->add(OperationPrimesPeer::OP_PRIME_NUMERO, $this->op_prime_numero);\n if ($this->isColumnModified(OperationPrimesPeer::GDL_ART_ID)) $criteria->add(OperationPrimesPeer::GDL_ART_ID, $this->gdl_art_id);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_CURRENCY_ID)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_CURRENCY_ID, $this->operation_prime_currency_id);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_TYPE_ID)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_TYPE_ID, $this->operation_prime_r_reward_type_id);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_EXPEDITION_MODE_ID)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_EXPEDITION_MODE_ID, $this->operation_prime_r_reward_expedition_mode_id);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_TRANSPORTER_ID)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_TRANSPORTER_ID, $this->operation_prime_r_reward_transporter_id);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_FIXED_AMOUNT)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_FIXED_AMOUNT, $this->operation_prime_fixed_amount);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_PRODUCT_PRICE_POURCENTAGE)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_PRODUCT_PRICE_POURCENTAGE, $this->operation_prime_product_price_pourcentage);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_MAXIMUM_AMOUNT)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_MAXIMUM_AMOUNT, $this->operation_prime_maximum_amount);\n\n return $criteria;\n }",
"public function getOperationScenariis($criteria = null, PropelPDO $con = null)\n {\n $partial = $this->collOperationScenariisPartial && !$this->isNew();\n if (null === $this->collOperationScenariis || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collOperationScenariis) {\n // return empty collection\n $this->initOperationScenariis();\n } else {\n $collOperationScenariis = OperationScenariiQuery::create(null, $criteria)\n ->filterByOperationPrimes($this)\n ->find($con);\n if (null !== $criteria) {\n if (false !== $this->collOperationScenariisPartial && count($collOperationScenariis)) {\n $this->initOperationScenariis(false);\n\n foreach ($collOperationScenariis as $obj) {\n if (false == $this->collOperationScenariis->contains($obj)) {\n $this->collOperationScenariis->append($obj);\n }\n }\n\n $this->collOperationScenariisPartial = true;\n }\n\n $collOperationScenariis->getInternalIterator()->rewind();\n\n return $collOperationScenariis;\n }\n\n if ($partial && $this->collOperationScenariis) {\n foreach ($this->collOperationScenariis as $obj) {\n if ($obj->isNew()) {\n $collOperationScenariis[] = $obj;\n }\n }\n }\n\n $this->collOperationScenariis = $collOperationScenariis;\n $this->collOperationScenariisPartial = false;\n }\n }\n\n return $this->collOperationScenariis;\n }",
"public function getLnkOperationPrimeRCountriess($criteria = null, PropelPDO $con = null)\n {\n $partial = $this->collLnkOperationPrimeRCountriessPartial && !$this->isNew();\n if (null === $this->collLnkOperationPrimeRCountriess || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collLnkOperationPrimeRCountriess) {\n // return empty collection\n $this->initLnkOperationPrimeRCountriess();\n } else {\n $collLnkOperationPrimeRCountriess = LnkOperationPrimeRCountriesQuery::create(null, $criteria)\n ->filterByOperationPrimes($this)\n ->find($con);\n if (null !== $criteria) {\n if (false !== $this->collLnkOperationPrimeRCountriessPartial && count($collLnkOperationPrimeRCountriess)) {\n $this->initLnkOperationPrimeRCountriess(false);\n\n foreach ($collLnkOperationPrimeRCountriess as $obj) {\n if (false == $this->collLnkOperationPrimeRCountriess->contains($obj)) {\n $this->collLnkOperationPrimeRCountriess->append($obj);\n }\n }\n\n $this->collLnkOperationPrimeRCountriessPartial = true;\n }\n\n $collLnkOperationPrimeRCountriess->getInternalIterator()->rewind();\n\n return $collLnkOperationPrimeRCountriess;\n }\n\n if ($partial && $this->collLnkOperationPrimeRCountriess) {\n foreach ($this->collLnkOperationPrimeRCountriess as $obj) {\n if ($obj->isNew()) {\n $collLnkOperationPrimeRCountriess[] = $obj;\n }\n }\n }\n\n $this->collLnkOperationPrimeRCountriess = $collLnkOperationPrimeRCountriess;\n $this->collLnkOperationPrimeRCountriessPartial = false;\n }\n }\n\n return $this->collLnkOperationPrimeRCountriess;\n }",
"public function clearOperationPrestationss()\n {\n $this->collOperationPrestationss = null; // important to set this to null since that means it is uninitialized\n $this->collOperationPrestationssPartial = null;\n\n return $this;\n }",
"public function setLnkOperationPrimeRCountriess(PropelCollection $lnkOperationPrimeRCountriess, PropelPDO $con = null)\n {\n $lnkOperationPrimeRCountriessToDelete = $this->getLnkOperationPrimeRCountriess(new Criteria(), $con)->diff($lnkOperationPrimeRCountriess);\n\n\n $this->lnkOperationPrimeRCountriessScheduledForDeletion = $lnkOperationPrimeRCountriessToDelete;\n\n foreach ($lnkOperationPrimeRCountriessToDelete as $lnkOperationPrimeRCountriesRemoved) {\n $lnkOperationPrimeRCountriesRemoved->setOperationPrimes(null);\n }\n\n $this->collLnkOperationPrimeRCountriess = null;\n foreach ($lnkOperationPrimeRCountriess as $lnkOperationPrimeRCountries) {\n $this->addLnkOperationPrimeRCountries($lnkOperationPrimeRCountries);\n }\n\n $this->collLnkOperationPrimeRCountriess = $lnkOperationPrimeRCountriess;\n $this->collLnkOperationPrimeRCountriessPartial = false;\n\n return $this;\n }",
"protected function _prepareCollection() {\n $collection = Mage::helper('ProductReturn/SupplierReturn')->getProductsPending();\n $this->setCollection($collection);\n return parent::_prepareCollection();\n }",
"public function clearLnkOperationPrimeRCountriess()\n {\n $this->collLnkOperationPrimeRCountriess = null; // important to set this to null since that means it is uninitialized\n $this->collLnkOperationPrimeRCountriessPartial = null;\n\n return $this;\n }",
"public function initOperationPrestationss($overrideExisting = true)\n {\n if (null !== $this->collOperationPrestationss && !$overrideExisting) {\n return;\n }\n $this->collOperationPrestationss = new PropelObjectCollection();\n $this->collOperationPrestationss->setModel('OperationPrestations');\n }",
"protected function _prepareCollection() {\n $session = Mage::getModel('core/session');\n $filterConditions = $session->getData('rp_conditions');\n if (!$filterConditions)\n $filterConditions = $this->_filterConditions;\n $posorderCollection = Mage::getModel('webpos/posorder')->getCollection();\n /* Jack - create an empty collection */\n $collection = $posorderCollection;\n foreach ($collection->getItems() as $key => $item) {\n $collection->removeItemByKey($key);\n }\n /**/\n\n /* Define variables and set default data */\n $totalsSalesByUser = array();\n $totalSales = 0;\n $incTimeStrings = array('1' => ' +1 week', '2' => ' +1 day', '3' => ' +1 month', '4' => ' +1 day', '5' => ' +1 day', '6' => ' +1 week', '7' => ' +1 week');\n $descTimeStrings = array('4' => ' -1 week', '5' => ' -1 week', '6' => ' -1 month', '7' => ' -1 month');\n $periodFormat = ($filterConditions['period'] == 3 || $filterConditions['period'] == 6 || $filterConditions['period'] == 7 ) ? \"Y-m-d\" : \"Y-m-d\";\n $specialPeriod = array('1', '2', '3', '4');\n $stringTimeFrom = array('1' => 'monday this week', '2' => 'monday last week', '3' => 'first day of this month', '4' => 'first day of previous month');\n $stringTimeTo = array('1' => 'sunday this week', '2' => 'sunday last week', '3' => 'last day of this month', '4' => 'last day of previous month');\n $thisFriday = date($periodFormat, strtotime('friday this week'));\n $today = date($periodFormat);\n $userIds = $this->userIds;\n if (($filterConditions['from'] == '' || $filterConditions['to'] == '' ) && in_array($filterConditions['period'], $specialPeriod) == false) {\n $this->setCollection($collection);\n return parent::_prepareCollection();\n }\n\n $startTime = (in_array($filterConditions['range'], $specialPeriod)) ? (date($periodFormat, strtotime($stringTimeFrom[$filterConditions['range']]))) : date($periodFormat, strtotime($filterConditions['from']));\n $timeFrom = (in_array($filterConditions['range'], $specialPeriod)) ? (date($periodFormat, strtotime($stringTimeFrom[$filterConditions['range']]))) : date($periodFormat, strtotime($filterConditions['from']));\n $timeTo = (in_array($filterConditions['range'], $specialPeriod)) ? (date($periodFormat, strtotime($stringTimeTo[$filterConditions['range']]))) : date(\"Y-m-d\", strtotime($filterConditions['to']));\n if ($timeFrom && $timeTo) {\n while ($timeFrom <= $timeTo) {\n $i = 0;\n foreach ($this->userIds as $userId => $displayName) {\n $isSave = true;\n $totalSalesOfPeriod = 0;\n $isEmpty = true;\n if ($filterConditions['period'] == 1) {\n $endTime = $this->lastDayOf('year', new DateTime($timeFrom))->format('Y-m-d');\n } else if ($filterConditions['period'] == 3) {\n $endTime = $this->lastDayOf('month', new DateTime($timeFrom))->format('Y-m-d');\n } else\n $endTime = date('Y-m-d', strtotime($timeFrom . $incTimeStrings[$filterConditions['period']]));\n $endTime = (strtotime($endTime) < strtotime($timeTo)) ? $endTime : $timeTo;\n $itemDataObject = new Varien_Object();\n if ($i == 0) {\n if ($filterConditions['period'] == 1) {\n $exTimeFrom = explode('-', $timeFrom);\n $itemDataObject->setData('period', $exTimeFrom[0]);\n } else if ($filterConditions['period'] == 3) {\n $exTimeFrom = explode('-', $timeFrom);\n $itemDataObject->setData('period', $exTimeFrom[0] . '-' . $exTimeFrom[1]);\n } else\n $itemDataObject->setData('period', $timeFrom);\n } else\n $itemDataObject->setData('period', '');\n if ($itemDataObject->getData('period'))\n $itemDataObject->setData('period', date('F j, Y', strtotime($itemDataObject->getData('period'))));\n $webposOrderCollection = $this->getSalesCollection($timeFrom, $endTime, array('user_id' => $userId));\n $totalU = 0;\n if (count($webposOrderCollection) > 0) {\n foreach ($webposOrderCollection as $order) {\n $totalU += $order->getTotals();\n }\n }\n if (!$totalU && $filterConditions['rp_settings']['show_empty_result'] == 'false')\n $isSave = false;\n\n if ($isSave) {\n $itemDataObject->setData('user', $displayName);\n\n $itemDataObject->setData('totals_sales', ($totalU > 0) ? $totalU : '0.00');\n $collection->addItem($itemDataObject);\n }\n $i++;\n }\n if ($filterConditions['period'] == 1)\n $timeFrom = date('Y-m-d', strtotime($endTime));\n else\n $timeFrom = date($periodFormat, strtotime($timeFrom . $incTimeStrings[$filterConditions['period']]));\n }\n /* get last item data \n $i = 0;\n foreach($this->userIds as $userId => $displayName){\n $isSave = true;\n $beforeLastItem = new Varien_Object();\n if($i == 0){\n if($filterConditions['period'] == 1){\n $exTimeFrom = explode('-',$timeTo);\n $beforeLastItem->setData('period',$exTimeFrom[0]);\n }\n else if($filterConditions['period'] == 3){\n $exTimeFrom = explode('-',$timeTo);\n $beforeLastItem->setData('period',$exTimeFrom[0].'-'.$exTimeFrom[1]);\n }\n else\n $beforeLastItem->setData('period',$timeTo);\n }\n else\n $beforeLastItem->setData('period','');\n if($beforeLastItem->getData('period'))\n $beforeLastItem->setData('period',date('F j, Y', strtotime($beforeLastItem->getData('period'))));\n $webposOrderCollection = $this->getSalesCollection($timeTo,$timeTo,array('user_id' => $userId))->getFirstItem();\n if( !$webposOrderCollection->getTotals() && $filterConditions['rp_settings']['show_empty_result'] == 'false')\n $isSave = false;\n if($isSave){\n $beforeLastItem->setData('user',$displayName);\n $beforeLastItem->setData('totals_sales',$webposOrderCollection->getTotals()?$webposOrderCollection->getTotals():'0.00');\n $collection->addItem($beforeLastItem);\n }\n $i++;\n }\n end last item */\n }\n /* set data for totals row */\n $lastItemDataObject = new Varien_Object();\n $lastItemDataObject->setData('period', 'Totals:');\n $orders = $this->getSalesTotal($startTime, $endTime);\n\n $totalU = 0;\n if (count($orders) > 0) {\n foreach ($orders as $order) {\n $totalU += $order->getTotals();\n }\n }\n $lastItemDataObject->setData('totals_sales', $totalU);\n $collection->addItem($lastItemDataObject);\n $this->setCollection($collection);\n /* set session for chart */\n $sessionObject = new Varien_Object();\n foreach ($this->userIds as $userId => $username) {\n $orders = $this->getSalesTotal($startTime, $endTime, array('user_id' => $userId));\n\n\n $totalU = 0;\n if (count($orders) > 0) {\n foreach ($orders as $order) {\n $totalU += $order->getTotals();\n }\n }\n $sessionObject->setData($username, $totalU);\n }\n Mage::getSingleton('core/session')->setData('total_sales_by_user', $sessionObject->toArray());\n Mage::getSingleton('core/session')->setType('user');\n $this->setTotalRowByUser($sessionObject->toArray());\n return parent::_prepareCollection();\n }",
"protected function _prepareCollection()\n {\n $collection = $this->collectionFactory->create();\n $this->setCollection($collection);\n\n return parent::_prepareCollection();\n }",
"public function clearOperationScenariis()\n {\n $this->collOperationScenariis = null; // important to set this to null since that means it is uninitialized\n $this->collOperationScenariisPartial = null;\n\n return $this;\n }",
"protected function _prepareCollection()\n {\n $userId = Mage::getSingleton('admin/session')->getUser()->getId();\n\n /* var $collection Gri_Cms_Model_Mysql4_Version_Collection */\n $collection = Mage::getModel('gri_cms/page_version')->getCollection()\n ->addPageFilter($this->getPage())\n ->addVisibilityFilter($userId,\n Mage::getSingleton('gri_cms/config')->getAllowedAccessLevel())\n ->addUserColumn()\n ->addUserNameColumn();\n\n if (!$this->getParam($this->getVarNameSort())) {\n $collection->addNumberSort();\n }\n\n $this->setCollection($collection);\n\n return parent::_prepareCollection();\n }",
"protected function _prepareCollection()\n\t{\n\t\t$collection = Mage::getResourceModel($this->_getCollectionClass());\n\t\t$this->setCollection($collection);\n\t\t \n\t\treturn parent::_prepareCollection();\n\t}",
"protected function _prepareCollection()\n {\n $collection = Mage::getResourceModel($this->_getCollectionClass());\n $collection->setOrder('ID','DESC');\n $this->setCollection($collection);\n return parent::_prepareCollection();\n }",
"protected function _getCollection()\n {\n if (!$this->_collection) {\n $websiteId = Mage::app()->getWebsite()->getId();\n $this->_collection = Mage::getModel('gri_reward/reward_history')->getCollection()\n ->addCustomerFilter(Mage::getSingleton('customer/session')->getCustomerId())\n ->addWebsiteFilter($websiteId)\n ->setExpiryConfig(Mage::helper('gri_reward')->getExpiryConfig())\n ->addExpirationDate($websiteId)\n ->skipExpiredDuplicates()\n ->setDefaultOrder()\n ;\n }\n return $this->_collection;\n }",
"protected function _prepareCollection()\n {\n $collection = Mage::getResourceModel($this->_getCollectionClass());\n $this->setCollection($collection);\n\n return parent::_prepareCollection();\n }",
"public function setOperationPrestationss(PropelCollection $operationPrestationss, PropelPDO $con = null)\n {\n $operationPrestationssToDelete = $this->getOperationPrestationss(new Criteria(), $con)->diff($operationPrestationss);\n\n\n $this->operationPrestationssScheduledForDeletion = $operationPrestationssToDelete;\n\n foreach ($operationPrestationssToDelete as $operationPrestationsRemoved) {\n $operationPrestationsRemoved->setOperationPrimes(null);\n }\n\n $this->collOperationPrestationss = null;\n foreach ($operationPrestationss as $operationPrestations) {\n $this->addOperationPrestations($operationPrestations);\n }\n\n $this->collOperationPrestationss = $operationPrestationss;\n $this->collOperationPrestationssPartial = false;\n\n return $this;\n }",
"public function getPeer()\n {\n if (self::$peer === null) {\n self::$peer = new OperationPrimesPeer();\n }\n\n return self::$peer;\n }",
"public function cleanCopy()\n {\n $clone = clone $this;\n $clone->setEagerLoader(clone $this->getEagerLoader());\n $clone->triggerBeforeFind();\n $clone->enableAutoFields(false);\n $clone->limit(null);\n $clone->order([], true);\n $clone->offset(null);\n $clone->mapReduce(null, null, true);\n $clone->formatResults(null, true);\n $clone->setSelectTypeMap(new TypeMap());\n $clone->decorateResults(null, true);\n\n return $clone;\n }",
"protected function _prepareCollection() {\n $website_id = Mage::app()->getWebsite()->getId();\n $collection = Mage::getModel('inchoo_supportticket/ticket')\n ->getCollection();\n $this->setCollection($collection);\n parent::_prepareCollection();\n return $this;\n }",
"protected function _initProductCollection()\n {\n $client = Mage::helper('catalogsearch')->getEngine()->getClient();\n $baseQuery = $this->_getBaseSearchQuery();\n $optimizedQuery = $this->_getOptimizedQuery($baseQuery);\n $baseProductIds = $this->_getProductIdsFromSearchQuery($baseQuery);\n $optimizeProductIds = $this->_getProductIdsFromSearchQuery($optimizedQuery);\n\n $this->setBaseProductIds($baseProductIds);\n $this->setOptimizedProductIds($optimizeProductIds);\n\n $allIds = array_merge($baseProductIds, $optimizeProductIds);\n\n if (empty($allIds)) {\n $allIds = array(0);\n }\n\n $attributes = Mage::getModel('catalog/config')->getProductCollectionAttributes();\n $collection = Mage::getResourceModel('catalog/product_collection')\n ->setStoreId($this->getStoreId())\n ->addIdFilter($allIds)\n ->addAttributeToSelect($attributes)\n ->load();\n\n $this->setProductCollection($collection);\n\n return $this;\n }",
"protected function _getCollection()\n\t{\n\t\t//Check collection\n\t\tif($this->_collection)\n\t\t\treturn $this->_collection;\n\n\t\t//Get collection\n\t\t$this->_collection = new \\Framework\\Database\\Drivers\\Mongo\\CDatabaseModelCollection($this, $this->execute());\n\t\treturn $this->_collection;\n\t}",
"protected function _prepareCollection()\n {\t\t \n\t\t\n $collection = Mage::getModel('catalog/product')\n \t->getCollection()\n \t->addAttributeToSelect('name')\n \t->addAttributeToSelect('price')\n \t->addAttributeToSelect('special_price')\n \t->addAttributeToSelect('name')\n \t->addAttributeToSelect('manufacturer')\n \t->addFieldToFilter('type_id', array('in' => array(Mage_Catalog_Model_Product_Type::TYPE_SIMPLE, Mage_Catalog_Model_Product_Type::TYPE_VIRTUAL)))\n ->joinField('qty',\n 'cataloginventory/stock_item',\n 'qty',\n 'product_id=entity_id',\n '{{table}}.stock_id=1',\n 'left');\n \t;\n $this->setCollection($collection);\n return parent::_prepareCollection();\n }",
"public function getFeatureCvtermprops($criteria = null, PropelPDO $con = null)\n {\n $partial = $this->collFeatureCvtermpropsPartial && !$this->isNew();\n if (null === $this->collFeatureCvtermprops || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collFeatureCvtermprops) {\n // return empty collection\n $this->initFeatureCvtermprops();\n } else {\n $collFeatureCvtermprops = FeatureCvtermpropQuery::create(null, $criteria)\n ->filterByFeatureCvterm($this)\n ->find($con);\n if (null !== $criteria) {\n if (false !== $this->collFeatureCvtermpropsPartial && count($collFeatureCvtermprops)) {\n $this->initFeatureCvtermprops(false);\n\n foreach($collFeatureCvtermprops as $obj) {\n if (false == $this->collFeatureCvtermprops->contains($obj)) {\n $this->collFeatureCvtermprops->append($obj);\n }\n }\n\n $this->collFeatureCvtermpropsPartial = true;\n }\n\n $collFeatureCvtermprops->getInternalIterator()->rewind();\n return $collFeatureCvtermprops;\n }\n\n if($partial && $this->collFeatureCvtermprops) {\n foreach($this->collFeatureCvtermprops as $obj) {\n if($obj->isNew()) {\n $collFeatureCvtermprops[] = $obj;\n }\n }\n }\n\n $this->collFeatureCvtermprops = $collFeatureCvtermprops;\n $this->collFeatureCvtermpropsPartial = false;\n }\n }\n\n return $this->collFeatureCvtermprops;\n }",
"protected function _prepareCollection()\n {\n $collection = Mage::getResourceModel('bs_worksheet/worksheet_collection');\n if ($this->getCurriculum()->getId()) {\n $constraint = 'related.curriculum_id='.$this->getCurriculum()->getId();\n } else {\n $constraint = 'related.curriculum_id=0';\n }\n $collection->getSelect()->joinLeft(\n array('related' => $collection->getTable('bs_worksheet/worksheet_curriculum')),\n 'related.worksheet_id=main_table.entity_id AND '.$constraint,\n array('position')\n );\n $this->setCollection($collection);\n parent::_prepareCollection();\n return $this;\n }",
"public function createCollection()\n\t{\n\t\t/** @var $collection \\Magento\\Catalog\\Model\\ResourceModel\\Product\\Collection */\n\t\t$collection = $this->productCollectionFactory->create();\n\t\t$collection->setVisibility($this->catalogProductVisibility->getVisibleInCatalogIds());\n\n\t\t$collection = $this->_addProductAttributesAndPrices($collection)\n\t\t\t->addStoreFilter()\n\t\t\t->setPageSize($this->getPageSize())\n\t\t\t->setCurPage($this->getRequest()->getParam(self::PAGE_VAR_NAME, 1));\n\n\t\t$conditions = $this->getConditions();\n\t\t$conditions->collectValidatedAttributes($collection);\n\t\t$this->sqlBuilder->attachConditionToCollection($collection, $conditions);\n\n\t\treturn $collection;\n\t}",
"protected function _prepareCollection() {\n /**\n * Get the Collection of Manage Subscription\n */\n $manageSubscription = Mage::getModel ( 'airhotels/managesubscriptions' )->getCollection ();\n \n /**\n * Get the Table Prefix Value\n */\n $tablePrefix = Mage::getConfig ()->getTablePrefix ();\n $manageSubscription->getSelect ()->group ( 'main_table.product_id' )->joinLeft ( $tablePrefix . 'apptha_productsubscriptions', 'main_table.product_id =' . $tablePrefix . 'apptha_productsubscriptions.product_id AND ' . $tablePrefix . 'apptha_productsubscriptions.is_delete = 0', array (\n 'main_table.id as id',\n 'main_table.product_name as product_name',\n $tablePrefix . 'apptha_productsubscriptions.subscription_type as subscription_type' \n ) )->where ( 'main_table.is_subscription_only = ?', 1 );\n \n $collection = $manageSubscription;\n $this->setCollection ( $collection );\n /**\n * Calling the parent Construct Method.\n */\n return parent::_prepareCollection ();\n }",
"protected function _prepareCollection()\n {\n $collection = $this->_createCollection()->addCustomerIdFilter($this->_getCustomer()->getId())\n ->resetSortOrder()\n ->addDaysInWishlist()\n ->addStoreData();\n $this->setCollection($collection);\n\n return parent::_prepareCollection();\n }",
"protected function _getCollection()\n {\n if (!$this->_collection) {\n $websiteId = $this->_storeManager->getWebsite()->getId();\n $this->_collection = $this->_historyFactory->create()\n ->addCustomerFilter($this->currentCustomer->getCustomerId())\n ->addWebsiteFilter($websiteId)\n ->setExpiryConfig($this->_rewardData->getExpiryConfig())\n ->addExpirationDate($websiteId)\n ->skipExpiredDuplicates()\n ->setDefaultOrder();\n }\n return $this->_collection;\n }",
"public function getProduitsPanier()\n {\n return $this->CollProduit->getCollection();\n }",
"public function __clone() {\n if ($this->_where) {\n $this->_where = clone $this->_where;\n }\n\n if ($this->_having) {\n $this->_having = clone $this->_having;\n }\n }",
"protected function getComposedCollection()\n {\n return $this->composedCollection;\n }",
"public function initLnkOperationPrimeRCountriess($overrideExisting = true)\n {\n if (null !== $this->collLnkOperationPrimeRCountriess && !$overrideExisting) {\n return;\n }\n $this->collLnkOperationPrimeRCountriess = new PropelObjectCollection();\n $this->collLnkOperationPrimeRCountriess->setModel('LnkOperationPrimeRCountries');\n }",
"protected function _prepareCollection()\n {\n $collection = Mage::getModel('oggetto_oneclick/order')->getResourceCollection();\n $this->setCollection($collection);\n return parent::_prepareCollection();\n }",
"protected function _prepareCollection()\n {\n /** @var $collection ChazkiExpressCollection */\n $collection = $this->_collectionFactory->create();\n $collection->setWebsiteFilter($this->getWebsiteId());\n\n $this->setCollection($collection);\n\n return parent::_prepareCollection();\n }",
"public function getContributionss(Criteria $criteria = null, ConnectionInterface $con = null)\n {\n $partial = $this->collContributionssPartial && !$this->isNew();\n if (null === $this->collContributionss || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collContributionss) {\n // return empty collection\n $this->initContributionss();\n } else {\n $collContributionss = ChildContributionsQuery::create(null, $criteria)\n ->filterByIssues($this)\n ->find($con);\n\n if (null !== $criteria) {\n if (false !== $this->collContributionssPartial && count($collContributionss)) {\n $this->initContributionss(false);\n\n foreach ($collContributionss as $obj) {\n if (false == $this->collContributionss->contains($obj)) {\n $this->collContributionss->append($obj);\n }\n }\n\n $this->collContributionssPartial = true;\n }\n\n return $collContributionss;\n }\n\n if ($partial && $this->collContributionss) {\n foreach ($this->collContributionss as $obj) {\n if ($obj->isNew()) {\n $collContributionss[] = $obj;\n }\n }\n }\n\n $this->collContributionss = $collContributionss;\n $this->collContributionssPartial = false;\n }\n }\n\n return $this->collContributionss;\n }",
"public static function cooperations() {\n return self::query()\n ->join('ownership', 'ownership.fobjsid', 'vp.sId')\n ->join('jobs', 'ownership.tobjsid', 'jobs.sId')\n ->select('vp.*')\n ->where('jobs.type', Job::TYPE_COOPERATION);\n }",
"public function getProcessorsCollection();",
"public function clearOperations()\n {\n $this->_operations = array();\n\n return $this;\n }",
"protected function _prepareCollection()\n {\n $collection = Mage::getModel('iparcel/log')->getCollection();\n $this->setCollection($collection);\n\n return parent::_prepareCollection();\n }",
"public function copy(): Collection\n {\n return clone $this;\n }",
"protected function _prepareCollection()\n {\n $collection = Mage::getModel('solutionpartner/partner')->getCollection();\n $collection->getSelect()->joinLeft(\n array('order' => $collection->getTable('sales/order')),\n 'main_table.email = order.customer_email AND order.status = \"complete\"',\n array(\n 'order_id' => 'entity_id',\n 'order_status' => 'order.status',\n 'number_qtys' => 'count(order.entity_id)'\n ))\n ->group('main_table.solutionpartner_id');\n $this->setCollection($collection);\n return parent::_prepareCollection();\n }",
"public function searchPesificacionesSinCompletar()\n\t{\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n $criteria->condition= \"estado=:estado\";\n\t\t$criteria->params = array(':estado'=> Pesificaciones::ESTADO_ABIERTO);\n\n\t\t//$criteria->condition= \"(t.montoAcreditar+t.montoGastos) NOT IN (SELECT SUM(cheques.montoOrigen) FROM cheques, detallePesificaciones WHERE detallePesificaciones.chequeId=cheques.id AND detallePesificaciones.pesificacionId=t.id)\";\n\t\treturn new CActiveDataProvider(new Pesificaciones, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}",
"protected function _prepareCollection()\n\t{\n\t\t$collection = Mage::getResourceModel($this->_getCollectionClass());\n $collection->getSelect()->joinLeft(\n array('sfo' => 'sales_flat_order'),\n 'main_table.order_id = sfo.entity_id',\n array('increment_id')\n );\n\t\t$this->setCollection($collection);\n\n\t\treturn parent::_prepareCollection();\n\t}",
"protected function _prepareCollection()\n {\n /* @var $collection Scandi_MenuManager_Model_Resource_Item_Collection */\n $collection = Mage::getModel('scandi_menumanager/item')->getResourceCollection()\n ->addMenuFilter(Mage::registry('menumanager_menu'));\n if (!$this->getRequest()->getParam('sort')) { $collection->setPositionOrder(); }\n\n $this->setCollection($collection);\n return parent::_prepareCollection();\n }",
"public function getProductCollection()\n {\n\n if (is_null($this->_productCollection)) {\n $collection = $this->_engine->getAdvancedResultCollection();\n $this->prepareProductCollection($collection);\n if (!$collection) {\n return $collection;\n }\n $this->_productCollection = $collection;\n }\n\n return $this->_productCollection;\n }",
"protected function getProductResultCollection()\n {\n $collection = Mage::registry('recommendation_collection');\n\n if (empty($collection)) {\n $collection = array();\n }\n\n return $collection;\n }",
"public function getProductCollection()\n {\n $this->_basketProducts = $this->_getCartProductIds();\n $products = $this->_complementaryEngine->sendQuery($this->_basketProducts);\n\n if ($products['rules']) {\n return $this->_getPredictedProducts($products['rules']);\n }\n\n return false;\n }",
"public function buildPkeyCriteria()\n {\n $criteria = new Criteria(SanitasiPeer::DATABASE_NAME);\n $criteria->add(SanitasiPeer::SEKOLAH_ID, $this->sekolah_id);\n $criteria->add(SanitasiPeer::SEMESTER_ID, $this->semester_id);\n\n return $criteria;\n }",
"public function getOperations(PropelPDO $con = null, $doQuery = true)\n {\n if ($this->aOperations === null && ($this->op_id !== null) && $doQuery) {\n $this->aOperations = OperationsQuery::create()->findPk($this->op_id, $con);\n /* The following can be used additionally to\n guarantee the related object contains a reference\n to this object. This level of coupling may, however, be\n undesirable since it could result in an only partially populated collection\n in the referenced object.\n $this->aOperations->addOperationPrimess($this);\n */\n }\n\n return $this->aOperations;\n }",
"public function getCriteria()\n {\n if (!isset($this->currentCriteria)) {\n throw new CollectionDriverException('Criteria is accessible only during preGetResult event.');\n }\n\n return $this->currentCriteria;\n }",
"protected function _prepareCollection()\n {\n $collection = Mage::getModel('catalog/product')->getCollection()\n ->addAttributeToSelect('name')\n ->addAttributeToSelect('type')\n ->addAttributeToSelect('status')\n ->addAttributeToSelect('visibility')\n ->addAttributeToSelect('sku');\n $this->setCollection($collection);\n return parent::_prepareCollection();\n }",
"function getComposite()\n {\n return $this;\n }",
"public function __clone()\r\n {\r\n $this->document = [];\r\n $this->document_id = 0;\r\n\r\n $this->documentTotal = 0;\r\n $this->documentExchageTotal = 0;\r\n\r\n $this->associatedDocuments = [];\r\n }",
"public function buildPkeyCriteria()\n\t{\n\t\t$criteria = new Criteria(C060InventarioPeer::DATABASE_NAME);\n\n\t\t$criteria->add(C060InventarioPeer::CO_NUM_INVENTARIO, $this->co_num_inventario);\n\n\t\treturn $criteria;\n\t}",
"public function __clone() {\n $this->name = clone $this->name;\n $this->type = clone $this->type;\n $this->op = clone $this->op;\n\n $this->currentPeriod = clone $this->currentPeriod;\n $this->previousPeriod = clone $this->previousPeriod;\n\n $products = array();\n foreach ($this->products as $idx=>$product) {\n $products[] = clone $product;\n }\n $this->products = $products;\n }",
"function productCollection()\n {\n return eZProductCollection::fetch( $this->attribute( 'productcollection_id' ) );\n }",
"public function chapitrePrec() {\n $prevChapitre = $this->cour->chapitres()->where('num_ordre', '<', $this->num_ordre)\n ->orderBy('num_ordre', 'desc')\n ->first();\n\n if($prevChapitre) {\n return $prevChapitre;\n }\n\n return $this;\n }",
"public function getProposedChanges(): ProposedChangeCollection\n {\n return $this->proposedChanges;\n }",
"protected function getPagerCollectionInstance()\n {\n $pagerCollection = $this->dataBackend->getPagerCollection();\n $pagerCollection->setItemCount($this->dataBackend->getTotalItemsCount());\n return $pagerCollection;\n }",
"public function findNewProd()\r\n {\r\n $query = $this->getEntityManager()\r\n ->createQuery(\"select m from CondorsTnMallBundle:Produit m ORDER BY m.datecreation DESC \")\r\n ->setMaxResults(5);\r\n\r\n return $query->getResult();\r\n\r\n }",
"function detachProductCollection()\n {\n $collection = $this->productCollection();\n if ( !$collection )\n {\n $retValue = false;\n return $retValue;\n }\n\n $db = eZDB::instance();\n $db->begin();\n $newCollection = $collection->copy();\n if ( !$newCollection )\n {\n $db->commit();\n $retValue = false;\n return $retValue;\n }\n $this->setAttribute( 'productcollection_id', $newCollection->attribute( 'id' ) );\n $this->store();\n\n $db->commit();\n return $newCollection;\n }",
"protected function _prepareCollection()\n {\n $collection = Mage::getResourceModel('bs_docwise/docwisement_collection');\n\n if ($this->getExam()->getId()) {\n $constraint = 'related.exam_id='.$this->getExam()->getId();\n } else {\n $constraint = 'related.exam_id=0';\n }\n $collection->getSelect()->joinLeft(\n array('related' => $collection->getTable('bs_docwise/exam_docwisement')),\n 'related.docwisement_id = main_table.entity_id AND '.$constraint,\n array('position')\n );\n\n\n $this->setCollection($collection);\n parent::_prepareCollection();\n return $this;\n }",
"public function initPesquisas($overrideExisting = true)\n\t{\n\t\tif (null !== $this->collPesquisas && !$overrideExisting) {\n\t\t\treturn;\n\t\t}\n\t\t$this->collPesquisas = new PropelObjectCollection();\n\t\t$this->collPesquisas->setModel('Pesquisa');\n\t}",
"public function clearFindCriteria()\n {\n $this->findCriteria = [];\n return $this;\n }",
"public function relCooperations() {\n return Job::query()\n ->join('ownership', 'ownership.tobjsid', 'jobs.sId')\n ->select('jobs.*')\n ->where('ownership.fobjsid', parent::__get('sId'))\n ->where('jobs.type', Job::TYPE_COOPERATION)\n ->get();\n }",
"public function Panier() \n {\n $this->CollProduit = new Collection;\n }",
"public function load()\n {\n if (!$this->loaded) {\n $searchData = [];\n foreach (persistableCollection::getInstance($this->resourceName)->getPrimaryFields() as $fieldName) {\n $searchData[$fieldName] = $this->$fieldName;\n }\n $result = persistableCollection::getInstance($this->resourceName)->loadObject($searchData);\n $this->persisted = true;\n $this->loaded = true;\n return $result;\n }\n return $this;\n }",
"public function __clone()\n {\n parent::__clone();\n $this->_stockItem = null;\n $this->_stockItems = null;\n $this->_inStockStockItems = null;\n return $this;\n }",
"public function getCollection() {\n return $this->gateway->find(\n $this->getFilter(),\n $this->order,\n $this->relations,\n $this->pager,\n !$this->excludeRepo\n );\n }",
"public function retrievePriceFilters()\n {\n $select = $this->getSelect();\n $select->setPart(Zend_Db_Select::WHERE, $this->_wherePartStash);\n $select->setPart(Zend_Db_Select::GROUP, $this->_groupPartStash);\n\n $this->clearStatisticsData();\n\n return $this;\n }",
"public function __clone()\n {\n if (is_object($this->collection)) {\n $this->collection = clone $this->collection;\n }\n $this->initialize();\n $this->owner = null;\n $this->snapshot = [];\n $this->changed();\n }",
"public function getInappropriates($criteria = null, PropelPDO $con = null)\n\t{\n\t\tif ($criteria === null) {\n\t\t\t$criteria = new Criteria(PostPeer::DATABASE_NAME);\n\t\t}\n\t\telseif ($criteria instanceof Criteria)\n\t\t{\n\t\t\t$criteria = clone $criteria;\n\t\t}\n\n\t\tif ($this->collInappropriates === null) {\n\t\t\tif ($this->isNew()) {\n\t\t\t $this->collInappropriates = array();\n\t\t\t} else {\n\n\t\t\t\t$criteria->add(InappropriatePeer::POST_ID, $this->id);\n\n\t\t\t\tInappropriatePeer::addSelectColumns($criteria);\n\t\t\t\t$this->collInappropriates = InappropriatePeer::doSelect($criteria, $con);\n\t\t\t}\n\t\t} else {\n\t\t\t// criteria has no effect for a new object\n\t\t\tif (!$this->isNew()) {\n\t\t\t\t// the following code is to determine if a new query is\n\t\t\t\t// called for. If the criteria is the same as the last\n\t\t\t\t// one, just return the collection.\n\n\n\t\t\t\t$criteria->add(InappropriatePeer::POST_ID, $this->id);\n\n\t\t\t\tInappropriatePeer::addSelectColumns($criteria);\n\t\t\t\tif (!isset($this->lastInappropriateCriteria) || !$this->lastInappropriateCriteria->equals($criteria)) {\n\t\t\t\t\t$this->collInappropriates = InappropriatePeer::doSelect($criteria, $con);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$this->lastInappropriateCriteria = $criteria;\n\t\treturn $this->collInappropriates;\n\t}",
"public function getParameters() : CollectionInterface\n {\n return $this->parameters->copy();\n }",
"public function __clone()\n {\n $this->query = clone $this->query;\n }",
"protected function _prepareCollection()\n {\n $baseQuery = $this->_getBaseSearchQuery();\n $productIds = $this->_getProductIdsFromSearchQuery($baseQuery);\n\n if (empty($productIds)) {\n $productIds = array(0);\n }\n\n $attributes = Mage::getModel('catalog/config')->getProductCollectionAttributes();\n\n /** @var Mage_Catalog_Model_Resource_Product_Collection $collection */\n $collection = Mage::getResourceModel('catalog/product_collection')\n ->addIdFilter($productIds)\n ->addAttributeToSelect($attributes);\n\n $storeIds = implode(\",\", array_unique(array_map(\"intval\", array(Mage_Core_Model_App::ADMIN_STORE_ID, $this->getStoreId()))));\n\n if ($this->getStoreId() != Mage_Core_Model_App::ADMIN_STORE_ID) {\n $collection->setStoreId($this->getStoreId());\n $joinCond = \"category_id = \" . (int) $this->getCategory()->getId() . \" AND store_id = {$this->getStoreId()}\";\n } else {\n $joinCond = \"category_id = \" . (int) $this->getCategory()->getId() . \" AND store_id IN ({$storeIds})\";\n }\n\n $collection->joinField(\n 'position',\n 'smile_virtualcategories/category_product_position',\n 'position',\n 'product_id = entity_id',\n $joinCond,\n 'left'\n );\n\n $collection->getSelect()->order(\n new Zend_Db_Expr(\"- position DESC\") // mimic a \"SORT BY #field NULL LAST\n );\n\n $entityIds = implode(\",\", $productIds);\n $collection->getSelect()->order(\n new Zend_Db_Expr(\"FIELD(e.entity_id, {$entityIds})\") // restore sort order given by ES\n );\n\n $this->setCollection($collection);\n\n return parent::_prepareCollection();\n }",
"public function getDataProcessorCollection(): ProcessorCollection {\n\n return $this->dataProcessorCollection;\n\n }",
"public function applyCriteria() {\n if ($this->skipCriteria === true) {\n return $this;\n }\n\n foreach ($this->getCriteria() as $criteria) {\n if ($criteria instanceof Criteria) {\n $this->model = $criteria->apply($this->model, $this);\n }\n }\n\n return $this;\n }",
"public function collection() {\n \t$db = $this->db;\n\t\t$sql = $this->sql();\n\t\t$rows = $db::execute($sql);\n\t\t$model = $this->model;\n\t\treturn new \\Collection($model::arrayFactoryFromRows($rows));\n\t}",
"public function getCollection()\n {\n $collection = trim(str_replace('\\\\', '_', $this->collection), '_');\n return $this->$collection()\n ->setDatabase($this->database)\n ->setTable($this->table)\n ->setModel($this->model)\n ->set($this->getRows());\n }",
"function getCommonProvisions();",
"protected function applyCriteria()\n {\n if ($this->skipCriteria === true) {\n return $this;\n }\n\n $criteria = $this->getCriteria();\n\n if ($criteria) {\n foreach ($criteria as $c) {\n $this->model = $c->apply($this->model, $this);\n }\n }\n\n return $this;\n }",
"public function fresh()\n {\n if ($this->hasModel() && $this->exists()) {\n return odb($this->db(), $this->table())->find((int) $this->data['id']);\n }\n\n return $this;\n }",
"public function buildPkeyCriteria()\n {\n $criteria = new Criteria(SekolahPaudPeer::DATABASE_NAME);\n $criteria->add(SekolahPaudPeer::SEKOLAH_ID, $this->sekolah_id);\n\n return $criteria;\n }",
"public function getCriteriaCollection(): CriteriaCollection;",
"public function clearPriceFilters()\n {\n $select = $this->getSelect();\n $this->_wherePartStash = $select->getPart(Zend_Db_Select::WHERE);\n $this->_groupPartStash = $select->getPart(Zend_Db_Select::GROUP);\n $select->reset(Zend_Db_Select::WHERE);\n $select->reset(Zend_Db_Select::GROUP);\n\n $this->clearStatisticsData();\n\n return $this;\n }",
"protected function getPluginCollection() {\n if (!$this->pluginCollection) {\n $plugin_manager = \\Drupal::service('plugin.manager.commerce_installment_plan_methods');\n $this->pluginCollection = new InstallmentPlanMethodPluginCollection($plugin_manager, $this->plugin, $this->configuration, $this->id);\n }\n return $this->pluginCollection;\n }",
"public function getCompetitionsWithReload() {\n $this->competitionsLoaded = false;\n return $this->getCompetitions();\n }",
"public function buildPkeyCriteria()\n\t{\n\t\t$criteria = new Criteria(VpoRequestPeer::DATABASE_NAME);\n\n\t\t$criteria->add(VpoRequestPeer::ID, $this->id);\n\n\t\treturn $criteria;\n\t}",
"private function applyCriteria()\n {\n foreach( $this->criteria as $criterion )\n {\n $this->query = $criterion->apply( $this->query, $this );\n }\n\n return $this;\n }",
"public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME)\n {\n $keys = OperationPrimesPeer::getFieldNames($keyType);\n\n if (array_key_exists($keys[0], $arr)) $this->setOpPrimeId($arr[$keys[0]]);\n if (array_key_exists($keys[1], $arr)) $this->setOpId($arr[$keys[1]]);\n if (array_key_exists($keys[2], $arr)) $this->setOpPrimeLibelle($arr[$keys[2]]);\n if (array_key_exists($keys[3], $arr)) $this->setOpPrimeNumero($arr[$keys[3]]);\n if (array_key_exists($keys[4], $arr)) $this->setGdlArtId($arr[$keys[4]]);\n if (array_key_exists($keys[5], $arr)) $this->setOperationPrimeCurrencyId($arr[$keys[5]]);\n if (array_key_exists($keys[6], $arr)) $this->setOperationPrimeRRewardTypeId($arr[$keys[6]]);\n if (array_key_exists($keys[7], $arr)) $this->setOperationPrimeRRewardExpeditionModeId($arr[$keys[7]]);\n if (array_key_exists($keys[8], $arr)) $this->setOperationPrimeRRewardTransporterId($arr[$keys[8]]);\n if (array_key_exists($keys[9], $arr)) $this->setOperationPrimeFixedAmount($arr[$keys[9]]);\n if (array_key_exists($keys[10], $arr)) $this->setOperationPrimeProductPricePourcentage($arr[$keys[10]]);\n if (array_key_exists($keys[11], $arr)) $this->setOperationPrimeMaximumAmount($arr[$keys[11]]);\n }",
"protected function _getQueueCollection() : \\Pulchritudinous\\Queue\\Model\\ResourceModel\\Labour\\Collection\n {\n $collection = $this->_objectManager->create('Pulchritudinous\\Queue\\Model\\ResourceModel\\Labour\\Collection')\n ->addFieldToFilter('status', ['eq' => Labour::STATUS_PENDING])\n ->addFieldToFilter('execute_at', ['lteq' => time()])\n ->setOrder('priority', 'ASC')\n ->setOrder('execute_at', 'ASC');\n\n return $collection;\n }",
"public function getResultsCollections()\n\t {\n\t \tif ( is_array($this->results) && $this->isMulti() ) {\n\n\t \t\treturn new MagentoObjectCollection($this->results);\n\n\t \t} elseif( is_array($this->results) && !$this->isMulti() ) {\n\n\t \t\treturn new MagentoObject($this->results);\n\n\t \t} elseif( is_object($this->results) ) {\n\n\t \t\treturn new MagentoObject($this->results);\n\n\t \t} else {\n\n\t \t\treturn $this->results;\n\t \t}\n\t }",
"protected function processData($data)\n {\n // reuse the existing collection to optimize for Doctrine\n if ($data instanceof Collection) {\n $currentData = $this->getData();\n\n if (!$currentData) {\n $currentData = $data;\n } else if (count($data) === 0) {\n $currentData->clear();\n } else {\n // merge $data into $currentData\n foreach ($currentData as $entity) {\n if (!$data->contains($entity)) {\n $currentData->removeElement($entity);\n } else {\n $data->removeElement($entity);\n }\n }\n\n foreach ($data as $entity) {\n $currentData->add($entity);\n }\n }\n\n return $currentData;\n }\n\n return $data;\n }",
"protected function _prepareCollection()\n {\n $currentCampaign = Mage::getSingleton('adminhtml/session')->getCurrentCampaign();\n $collection = Mage::getModel('campaign/bannerslider')->getCollection();\n $collection->getSelect()\n ->joinLeft(array('campaign'=>$collection->getTable('campaign/campaign')),\n 'main_table.campaign_id = campaign.campaign_id', '')\n ->columns(array('campaign_name'=>'IF(main_table.campaign_id = \"'.$currentCampaign->getId().'\", \"Current\", campaign.name)'))\n ->group('main_table.bannerslider_id');\n $filter = Mage::registry('banner_reloaded_ids');\n if(!isset($filter)){//if reset no filter\n $selected_id = $this->_selectedId();\n if(!empty($selected_id)){\n $collection->addFieldToFilter('bannerslider_id', array('in'=>$selected_id));\n }\n }\n $this->setCollection($collection);\n return parent::_prepareCollection();\n }",
"public function __clone() {\n foreach ($this->conditions as $i => $condition) {\n $this->conditions[$i] = clone $condition;\n }\n }",
"public function initInappropriates()\n\t{\n\t\t$this->collInappropriates = array();\n\t}",
"protected function _getProductCollection()\n {\n $collection = parent::_getProductCollection();\n\t\t$helper = Mage::helper('catalogMembersonly/productsFilter');\n\t\t$collection = $helper->filterProductCollection($collection);\n\n return $collection;\t\t\n }",
"public function getCollection(){\r\n\t\treturn $this->_collection;\r\n\t}"
] | [
"0.6223161",
"0.61505544",
"0.61426204",
"0.5984671",
"0.5883592",
"0.57162875",
"0.5676253",
"0.5420158",
"0.53778625",
"0.5211605",
"0.5209868",
"0.511553",
"0.5107279",
"0.51052123",
"0.5103099",
"0.5096419",
"0.50754106",
"0.5062974",
"0.50593853",
"0.5047776",
"0.50465685",
"0.5036991",
"0.501542",
"0.500213",
"0.4992476",
"0.4979534",
"0.4978856",
"0.49652416",
"0.49320698",
"0.4928134",
"0.49174252",
"0.48946124",
"0.48824278",
"0.48658296",
"0.4835394",
"0.48343933",
"0.48329476",
"0.47993264",
"0.47747976",
"0.4763615",
"0.474965",
"0.4748084",
"0.4745459",
"0.47331795",
"0.47313368",
"0.47205004",
"0.47050261",
"0.4672744",
"0.46722308",
"0.4669221",
"0.46595016",
"0.46480328",
"0.46472865",
"0.46467364",
"0.46457967",
"0.46378392",
"0.4635455",
"0.46350542",
"0.46341696",
"0.46331027",
"0.46263528",
"0.46223912",
"0.46214393",
"0.46166977",
"0.4614713",
"0.46104255",
"0.458414",
"0.45840186",
"0.458275",
"0.45826036",
"0.45775226",
"0.45652106",
"0.4559568",
"0.45571038",
"0.45559457",
"0.45462412",
"0.45450878",
"0.4540985",
"0.45386803",
"0.453671",
"0.45360306",
"0.45353776",
"0.4534455",
"0.4530839",
"0.45287603",
"0.45240828",
"0.4523874",
"0.45221555",
"0.45171282",
"0.4516373",
"0.45137736",
"0.45112708",
"0.45103353",
"0.4494699",
"0.44887224",
"0.44856283",
"0.4482714",
"0.44751164",
"0.44747463",
"0.4466979",
"0.44658387"
] | 0.0 | -1 |
If this collection has already been initialized with an identical criteria, it returns the collection. Otherwise if this OperationPrimes is new, it will return an empty collection; or if this OperationPrimes has previously been saved, it will retrieve related OperationPrestationss from storage. This method is protected by default in order to keep the public api reasonable. You can provide public methods for those you actually need in OperationPrimes. | public function getOperationPrestationssJoinUsers($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN)
{
$query = OperationPrestationsQuery::create(null, $criteria);
$query->joinWith('Users', $join_behavior);
return $this->getOperationPrestationss($query, $con);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getOperationPrestationss($criteria = null, PropelPDO $con = null)\n {\n $partial = $this->collOperationPrestationssPartial && !$this->isNew();\n if (null === $this->collOperationPrestationss || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collOperationPrestationss) {\n // return empty collection\n $this->initOperationPrestationss();\n } else {\n $collOperationPrestationss = OperationPrestationsQuery::create(null, $criteria)\n ->filterByOperationPrimes($this)\n ->find($con);\n if (null !== $criteria) {\n if (false !== $this->collOperationPrestationssPartial && count($collOperationPrestationss)) {\n $this->initOperationPrestationss(false);\n\n foreach ($collOperationPrestationss as $obj) {\n if (false == $this->collOperationPrestationss->contains($obj)) {\n $this->collOperationPrestationss->append($obj);\n }\n }\n\n $this->collOperationPrestationssPartial = true;\n }\n\n $collOperationPrestationss->getInternalIterator()->rewind();\n\n return $collOperationPrestationss;\n }\n\n if ($partial && $this->collOperationPrestationss) {\n foreach ($this->collOperationPrestationss as $obj) {\n if ($obj->isNew()) {\n $collOperationPrestationss[] = $obj;\n }\n }\n }\n\n $this->collOperationPrestationss = $collOperationPrestationss;\n $this->collOperationPrestationssPartial = false;\n }\n }\n\n return $this->collOperationPrestationss;\n }",
"public function buildPkeyCriteria()\n {\n $criteria = new Criteria(OperationPrimesPeer::DATABASE_NAME);\n $criteria->add(OperationPrimesPeer::OP_PRIME_ID, $this->op_prime_id);\n\n return $criteria;\n }",
"public function buildCriteria()\n {\n $criteria = new Criteria(OperationPrimesPeer::DATABASE_NAME);\n\n if ($this->isColumnModified(OperationPrimesPeer::OP_PRIME_ID)) $criteria->add(OperationPrimesPeer::OP_PRIME_ID, $this->op_prime_id);\n if ($this->isColumnModified(OperationPrimesPeer::OP_ID)) $criteria->add(OperationPrimesPeer::OP_ID, $this->op_id);\n if ($this->isColumnModified(OperationPrimesPeer::OP_PRIME_LIBELLE)) $criteria->add(OperationPrimesPeer::OP_PRIME_LIBELLE, $this->op_prime_libelle);\n if ($this->isColumnModified(OperationPrimesPeer::OP_PRIME_NUMERO)) $criteria->add(OperationPrimesPeer::OP_PRIME_NUMERO, $this->op_prime_numero);\n if ($this->isColumnModified(OperationPrimesPeer::GDL_ART_ID)) $criteria->add(OperationPrimesPeer::GDL_ART_ID, $this->gdl_art_id);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_CURRENCY_ID)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_CURRENCY_ID, $this->operation_prime_currency_id);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_TYPE_ID)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_TYPE_ID, $this->operation_prime_r_reward_type_id);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_EXPEDITION_MODE_ID)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_EXPEDITION_MODE_ID, $this->operation_prime_r_reward_expedition_mode_id);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_TRANSPORTER_ID)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_TRANSPORTER_ID, $this->operation_prime_r_reward_transporter_id);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_FIXED_AMOUNT)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_FIXED_AMOUNT, $this->operation_prime_fixed_amount);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_PRODUCT_PRICE_POURCENTAGE)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_PRODUCT_PRICE_POURCENTAGE, $this->operation_prime_product_price_pourcentage);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_MAXIMUM_AMOUNT)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_MAXIMUM_AMOUNT, $this->operation_prime_maximum_amount);\n\n return $criteria;\n }",
"public function getOperationScenariis($criteria = null, PropelPDO $con = null)\n {\n $partial = $this->collOperationScenariisPartial && !$this->isNew();\n if (null === $this->collOperationScenariis || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collOperationScenariis) {\n // return empty collection\n $this->initOperationScenariis();\n } else {\n $collOperationScenariis = OperationScenariiQuery::create(null, $criteria)\n ->filterByOperationPrimes($this)\n ->find($con);\n if (null !== $criteria) {\n if (false !== $this->collOperationScenariisPartial && count($collOperationScenariis)) {\n $this->initOperationScenariis(false);\n\n foreach ($collOperationScenariis as $obj) {\n if (false == $this->collOperationScenariis->contains($obj)) {\n $this->collOperationScenariis->append($obj);\n }\n }\n\n $this->collOperationScenariisPartial = true;\n }\n\n $collOperationScenariis->getInternalIterator()->rewind();\n\n return $collOperationScenariis;\n }\n\n if ($partial && $this->collOperationScenariis) {\n foreach ($this->collOperationScenariis as $obj) {\n if ($obj->isNew()) {\n $collOperationScenariis[] = $obj;\n }\n }\n }\n\n $this->collOperationScenariis = $collOperationScenariis;\n $this->collOperationScenariisPartial = false;\n }\n }\n\n return $this->collOperationScenariis;\n }",
"public function getLnkOperationPrimeRCountriess($criteria = null, PropelPDO $con = null)\n {\n $partial = $this->collLnkOperationPrimeRCountriessPartial && !$this->isNew();\n if (null === $this->collLnkOperationPrimeRCountriess || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collLnkOperationPrimeRCountriess) {\n // return empty collection\n $this->initLnkOperationPrimeRCountriess();\n } else {\n $collLnkOperationPrimeRCountriess = LnkOperationPrimeRCountriesQuery::create(null, $criteria)\n ->filterByOperationPrimes($this)\n ->find($con);\n if (null !== $criteria) {\n if (false !== $this->collLnkOperationPrimeRCountriessPartial && count($collLnkOperationPrimeRCountriess)) {\n $this->initLnkOperationPrimeRCountriess(false);\n\n foreach ($collLnkOperationPrimeRCountriess as $obj) {\n if (false == $this->collLnkOperationPrimeRCountriess->contains($obj)) {\n $this->collLnkOperationPrimeRCountriess->append($obj);\n }\n }\n\n $this->collLnkOperationPrimeRCountriessPartial = true;\n }\n\n $collLnkOperationPrimeRCountriess->getInternalIterator()->rewind();\n\n return $collLnkOperationPrimeRCountriess;\n }\n\n if ($partial && $this->collLnkOperationPrimeRCountriess) {\n foreach ($this->collLnkOperationPrimeRCountriess as $obj) {\n if ($obj->isNew()) {\n $collLnkOperationPrimeRCountriess[] = $obj;\n }\n }\n }\n\n $this->collLnkOperationPrimeRCountriess = $collLnkOperationPrimeRCountriess;\n $this->collLnkOperationPrimeRCountriessPartial = false;\n }\n }\n\n return $this->collLnkOperationPrimeRCountriess;\n }",
"public function clearOperationPrestationss()\n {\n $this->collOperationPrestationss = null; // important to set this to null since that means it is uninitialized\n $this->collOperationPrestationssPartial = null;\n\n return $this;\n }",
"public function setLnkOperationPrimeRCountriess(PropelCollection $lnkOperationPrimeRCountriess, PropelPDO $con = null)\n {\n $lnkOperationPrimeRCountriessToDelete = $this->getLnkOperationPrimeRCountriess(new Criteria(), $con)->diff($lnkOperationPrimeRCountriess);\n\n\n $this->lnkOperationPrimeRCountriessScheduledForDeletion = $lnkOperationPrimeRCountriessToDelete;\n\n foreach ($lnkOperationPrimeRCountriessToDelete as $lnkOperationPrimeRCountriesRemoved) {\n $lnkOperationPrimeRCountriesRemoved->setOperationPrimes(null);\n }\n\n $this->collLnkOperationPrimeRCountriess = null;\n foreach ($lnkOperationPrimeRCountriess as $lnkOperationPrimeRCountries) {\n $this->addLnkOperationPrimeRCountries($lnkOperationPrimeRCountries);\n }\n\n $this->collLnkOperationPrimeRCountriess = $lnkOperationPrimeRCountriess;\n $this->collLnkOperationPrimeRCountriessPartial = false;\n\n return $this;\n }",
"protected function _prepareCollection() {\n $collection = Mage::helper('ProductReturn/SupplierReturn')->getProductsPending();\n $this->setCollection($collection);\n return parent::_prepareCollection();\n }",
"public function clearLnkOperationPrimeRCountriess()\n {\n $this->collLnkOperationPrimeRCountriess = null; // important to set this to null since that means it is uninitialized\n $this->collLnkOperationPrimeRCountriessPartial = null;\n\n return $this;\n }",
"protected function _prepareCollection() {\n $session = Mage::getModel('core/session');\n $filterConditions = $session->getData('rp_conditions');\n if (!$filterConditions)\n $filterConditions = $this->_filterConditions;\n $posorderCollection = Mage::getModel('webpos/posorder')->getCollection();\n /* Jack - create an empty collection */\n $collection = $posorderCollection;\n foreach ($collection->getItems() as $key => $item) {\n $collection->removeItemByKey($key);\n }\n /**/\n\n /* Define variables and set default data */\n $totalsSalesByUser = array();\n $totalSales = 0;\n $incTimeStrings = array('1' => ' +1 week', '2' => ' +1 day', '3' => ' +1 month', '4' => ' +1 day', '5' => ' +1 day', '6' => ' +1 week', '7' => ' +1 week');\n $descTimeStrings = array('4' => ' -1 week', '5' => ' -1 week', '6' => ' -1 month', '7' => ' -1 month');\n $periodFormat = ($filterConditions['period'] == 3 || $filterConditions['period'] == 6 || $filterConditions['period'] == 7 ) ? \"Y-m-d\" : \"Y-m-d\";\n $specialPeriod = array('1', '2', '3', '4');\n $stringTimeFrom = array('1' => 'monday this week', '2' => 'monday last week', '3' => 'first day of this month', '4' => 'first day of previous month');\n $stringTimeTo = array('1' => 'sunday this week', '2' => 'sunday last week', '3' => 'last day of this month', '4' => 'last day of previous month');\n $thisFriday = date($periodFormat, strtotime('friday this week'));\n $today = date($periodFormat);\n $userIds = $this->userIds;\n if (($filterConditions['from'] == '' || $filterConditions['to'] == '' ) && in_array($filterConditions['period'], $specialPeriod) == false) {\n $this->setCollection($collection);\n return parent::_prepareCollection();\n }\n\n $startTime = (in_array($filterConditions['range'], $specialPeriod)) ? (date($periodFormat, strtotime($stringTimeFrom[$filterConditions['range']]))) : date($periodFormat, strtotime($filterConditions['from']));\n $timeFrom = (in_array($filterConditions['range'], $specialPeriod)) ? (date($periodFormat, strtotime($stringTimeFrom[$filterConditions['range']]))) : date($periodFormat, strtotime($filterConditions['from']));\n $timeTo = (in_array($filterConditions['range'], $specialPeriod)) ? (date($periodFormat, strtotime($stringTimeTo[$filterConditions['range']]))) : date(\"Y-m-d\", strtotime($filterConditions['to']));\n if ($timeFrom && $timeTo) {\n while ($timeFrom <= $timeTo) {\n $i = 0;\n foreach ($this->userIds as $userId => $displayName) {\n $isSave = true;\n $totalSalesOfPeriod = 0;\n $isEmpty = true;\n if ($filterConditions['period'] == 1) {\n $endTime = $this->lastDayOf('year', new DateTime($timeFrom))->format('Y-m-d');\n } else if ($filterConditions['period'] == 3) {\n $endTime = $this->lastDayOf('month', new DateTime($timeFrom))->format('Y-m-d');\n } else\n $endTime = date('Y-m-d', strtotime($timeFrom . $incTimeStrings[$filterConditions['period']]));\n $endTime = (strtotime($endTime) < strtotime($timeTo)) ? $endTime : $timeTo;\n $itemDataObject = new Varien_Object();\n if ($i == 0) {\n if ($filterConditions['period'] == 1) {\n $exTimeFrom = explode('-', $timeFrom);\n $itemDataObject->setData('period', $exTimeFrom[0]);\n } else if ($filterConditions['period'] == 3) {\n $exTimeFrom = explode('-', $timeFrom);\n $itemDataObject->setData('period', $exTimeFrom[0] . '-' . $exTimeFrom[1]);\n } else\n $itemDataObject->setData('period', $timeFrom);\n } else\n $itemDataObject->setData('period', '');\n if ($itemDataObject->getData('period'))\n $itemDataObject->setData('period', date('F j, Y', strtotime($itemDataObject->getData('period'))));\n $webposOrderCollection = $this->getSalesCollection($timeFrom, $endTime, array('user_id' => $userId));\n $totalU = 0;\n if (count($webposOrderCollection) > 0) {\n foreach ($webposOrderCollection as $order) {\n $totalU += $order->getTotals();\n }\n }\n if (!$totalU && $filterConditions['rp_settings']['show_empty_result'] == 'false')\n $isSave = false;\n\n if ($isSave) {\n $itemDataObject->setData('user', $displayName);\n\n $itemDataObject->setData('totals_sales', ($totalU > 0) ? $totalU : '0.00');\n $collection->addItem($itemDataObject);\n }\n $i++;\n }\n if ($filterConditions['period'] == 1)\n $timeFrom = date('Y-m-d', strtotime($endTime));\n else\n $timeFrom = date($periodFormat, strtotime($timeFrom . $incTimeStrings[$filterConditions['period']]));\n }\n /* get last item data \n $i = 0;\n foreach($this->userIds as $userId => $displayName){\n $isSave = true;\n $beforeLastItem = new Varien_Object();\n if($i == 0){\n if($filterConditions['period'] == 1){\n $exTimeFrom = explode('-',$timeTo);\n $beforeLastItem->setData('period',$exTimeFrom[0]);\n }\n else if($filterConditions['period'] == 3){\n $exTimeFrom = explode('-',$timeTo);\n $beforeLastItem->setData('period',$exTimeFrom[0].'-'.$exTimeFrom[1]);\n }\n else\n $beforeLastItem->setData('period',$timeTo);\n }\n else\n $beforeLastItem->setData('period','');\n if($beforeLastItem->getData('period'))\n $beforeLastItem->setData('period',date('F j, Y', strtotime($beforeLastItem->getData('period'))));\n $webposOrderCollection = $this->getSalesCollection($timeTo,$timeTo,array('user_id' => $userId))->getFirstItem();\n if( !$webposOrderCollection->getTotals() && $filterConditions['rp_settings']['show_empty_result'] == 'false')\n $isSave = false;\n if($isSave){\n $beforeLastItem->setData('user',$displayName);\n $beforeLastItem->setData('totals_sales',$webposOrderCollection->getTotals()?$webposOrderCollection->getTotals():'0.00');\n $collection->addItem($beforeLastItem);\n }\n $i++;\n }\n end last item */\n }\n /* set data for totals row */\n $lastItemDataObject = new Varien_Object();\n $lastItemDataObject->setData('period', 'Totals:');\n $orders = $this->getSalesTotal($startTime, $endTime);\n\n $totalU = 0;\n if (count($orders) > 0) {\n foreach ($orders as $order) {\n $totalU += $order->getTotals();\n }\n }\n $lastItemDataObject->setData('totals_sales', $totalU);\n $collection->addItem($lastItemDataObject);\n $this->setCollection($collection);\n /* set session for chart */\n $sessionObject = new Varien_Object();\n foreach ($this->userIds as $userId => $username) {\n $orders = $this->getSalesTotal($startTime, $endTime, array('user_id' => $userId));\n\n\n $totalU = 0;\n if (count($orders) > 0) {\n foreach ($orders as $order) {\n $totalU += $order->getTotals();\n }\n }\n $sessionObject->setData($username, $totalU);\n }\n Mage::getSingleton('core/session')->setData('total_sales_by_user', $sessionObject->toArray());\n Mage::getSingleton('core/session')->setType('user');\n $this->setTotalRowByUser($sessionObject->toArray());\n return parent::_prepareCollection();\n }",
"public function initOperationPrestationss($overrideExisting = true)\n {\n if (null !== $this->collOperationPrestationss && !$overrideExisting) {\n return;\n }\n $this->collOperationPrestationss = new PropelObjectCollection();\n $this->collOperationPrestationss->setModel('OperationPrestations');\n }",
"protected function _prepareCollection()\n {\n $collection = $this->collectionFactory->create();\n $this->setCollection($collection);\n\n return parent::_prepareCollection();\n }",
"public function clearOperationScenariis()\n {\n $this->collOperationScenariis = null; // important to set this to null since that means it is uninitialized\n $this->collOperationScenariisPartial = null;\n\n return $this;\n }",
"protected function _prepareCollection()\n {\n $userId = Mage::getSingleton('admin/session')->getUser()->getId();\n\n /* var $collection Gri_Cms_Model_Mysql4_Version_Collection */\n $collection = Mage::getModel('gri_cms/page_version')->getCollection()\n ->addPageFilter($this->getPage())\n ->addVisibilityFilter($userId,\n Mage::getSingleton('gri_cms/config')->getAllowedAccessLevel())\n ->addUserColumn()\n ->addUserNameColumn();\n\n if (!$this->getParam($this->getVarNameSort())) {\n $collection->addNumberSort();\n }\n\n $this->setCollection($collection);\n\n return parent::_prepareCollection();\n }",
"protected function _prepareCollection()\n\t{\n\t\t$collection = Mage::getResourceModel($this->_getCollectionClass());\n\t\t$this->setCollection($collection);\n\t\t \n\t\treturn parent::_prepareCollection();\n\t}",
"protected function _prepareCollection()\n {\n $collection = Mage::getResourceModel($this->_getCollectionClass());\n $collection->setOrder('ID','DESC');\n $this->setCollection($collection);\n return parent::_prepareCollection();\n }",
"protected function _getCollection()\n {\n if (!$this->_collection) {\n $websiteId = Mage::app()->getWebsite()->getId();\n $this->_collection = Mage::getModel('gri_reward/reward_history')->getCollection()\n ->addCustomerFilter(Mage::getSingleton('customer/session')->getCustomerId())\n ->addWebsiteFilter($websiteId)\n ->setExpiryConfig(Mage::helper('gri_reward')->getExpiryConfig())\n ->addExpirationDate($websiteId)\n ->skipExpiredDuplicates()\n ->setDefaultOrder()\n ;\n }\n return $this->_collection;\n }",
"protected function _prepareCollection()\n {\n $collection = Mage::getResourceModel($this->_getCollectionClass());\n $this->setCollection($collection);\n\n return parent::_prepareCollection();\n }",
"public function setOperationPrestationss(PropelCollection $operationPrestationss, PropelPDO $con = null)\n {\n $operationPrestationssToDelete = $this->getOperationPrestationss(new Criteria(), $con)->diff($operationPrestationss);\n\n\n $this->operationPrestationssScheduledForDeletion = $operationPrestationssToDelete;\n\n foreach ($operationPrestationssToDelete as $operationPrestationsRemoved) {\n $operationPrestationsRemoved->setOperationPrimes(null);\n }\n\n $this->collOperationPrestationss = null;\n foreach ($operationPrestationss as $operationPrestations) {\n $this->addOperationPrestations($operationPrestations);\n }\n\n $this->collOperationPrestationss = $operationPrestationss;\n $this->collOperationPrestationssPartial = false;\n\n return $this;\n }",
"public function cleanCopy()\n {\n $clone = clone $this;\n $clone->setEagerLoader(clone $this->getEagerLoader());\n $clone->triggerBeforeFind();\n $clone->enableAutoFields(false);\n $clone->limit(null);\n $clone->order([], true);\n $clone->offset(null);\n $clone->mapReduce(null, null, true);\n $clone->formatResults(null, true);\n $clone->setSelectTypeMap(new TypeMap());\n $clone->decorateResults(null, true);\n\n return $clone;\n }",
"public function getPeer()\n {\n if (self::$peer === null) {\n self::$peer = new OperationPrimesPeer();\n }\n\n return self::$peer;\n }",
"protected function _prepareCollection() {\n $website_id = Mage::app()->getWebsite()->getId();\n $collection = Mage::getModel('inchoo_supportticket/ticket')\n ->getCollection();\n $this->setCollection($collection);\n parent::_prepareCollection();\n return $this;\n }",
"protected function _initProductCollection()\n {\n $client = Mage::helper('catalogsearch')->getEngine()->getClient();\n $baseQuery = $this->_getBaseSearchQuery();\n $optimizedQuery = $this->_getOptimizedQuery($baseQuery);\n $baseProductIds = $this->_getProductIdsFromSearchQuery($baseQuery);\n $optimizeProductIds = $this->_getProductIdsFromSearchQuery($optimizedQuery);\n\n $this->setBaseProductIds($baseProductIds);\n $this->setOptimizedProductIds($optimizeProductIds);\n\n $allIds = array_merge($baseProductIds, $optimizeProductIds);\n\n if (empty($allIds)) {\n $allIds = array(0);\n }\n\n $attributes = Mage::getModel('catalog/config')->getProductCollectionAttributes();\n $collection = Mage::getResourceModel('catalog/product_collection')\n ->setStoreId($this->getStoreId())\n ->addIdFilter($allIds)\n ->addAttributeToSelect($attributes)\n ->load();\n\n $this->setProductCollection($collection);\n\n return $this;\n }",
"protected function _getCollection()\n\t{\n\t\t//Check collection\n\t\tif($this->_collection)\n\t\t\treturn $this->_collection;\n\n\t\t//Get collection\n\t\t$this->_collection = new \\Framework\\Database\\Drivers\\Mongo\\CDatabaseModelCollection($this, $this->execute());\n\t\treturn $this->_collection;\n\t}",
"protected function _prepareCollection()\n {\t\t \n\t\t\n $collection = Mage::getModel('catalog/product')\n \t->getCollection()\n \t->addAttributeToSelect('name')\n \t->addAttributeToSelect('price')\n \t->addAttributeToSelect('special_price')\n \t->addAttributeToSelect('name')\n \t->addAttributeToSelect('manufacturer')\n \t->addFieldToFilter('type_id', array('in' => array(Mage_Catalog_Model_Product_Type::TYPE_SIMPLE, Mage_Catalog_Model_Product_Type::TYPE_VIRTUAL)))\n ->joinField('qty',\n 'cataloginventory/stock_item',\n 'qty',\n 'product_id=entity_id',\n '{{table}}.stock_id=1',\n 'left');\n \t;\n $this->setCollection($collection);\n return parent::_prepareCollection();\n }",
"protected function _prepareCollection()\n {\n $collection = Mage::getResourceModel('bs_worksheet/worksheet_collection');\n if ($this->getCurriculum()->getId()) {\n $constraint = 'related.curriculum_id='.$this->getCurriculum()->getId();\n } else {\n $constraint = 'related.curriculum_id=0';\n }\n $collection->getSelect()->joinLeft(\n array('related' => $collection->getTable('bs_worksheet/worksheet_curriculum')),\n 'related.worksheet_id=main_table.entity_id AND '.$constraint,\n array('position')\n );\n $this->setCollection($collection);\n parent::_prepareCollection();\n return $this;\n }",
"public function getFeatureCvtermprops($criteria = null, PropelPDO $con = null)\n {\n $partial = $this->collFeatureCvtermpropsPartial && !$this->isNew();\n if (null === $this->collFeatureCvtermprops || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collFeatureCvtermprops) {\n // return empty collection\n $this->initFeatureCvtermprops();\n } else {\n $collFeatureCvtermprops = FeatureCvtermpropQuery::create(null, $criteria)\n ->filterByFeatureCvterm($this)\n ->find($con);\n if (null !== $criteria) {\n if (false !== $this->collFeatureCvtermpropsPartial && count($collFeatureCvtermprops)) {\n $this->initFeatureCvtermprops(false);\n\n foreach($collFeatureCvtermprops as $obj) {\n if (false == $this->collFeatureCvtermprops->contains($obj)) {\n $this->collFeatureCvtermprops->append($obj);\n }\n }\n\n $this->collFeatureCvtermpropsPartial = true;\n }\n\n $collFeatureCvtermprops->getInternalIterator()->rewind();\n return $collFeatureCvtermprops;\n }\n\n if($partial && $this->collFeatureCvtermprops) {\n foreach($this->collFeatureCvtermprops as $obj) {\n if($obj->isNew()) {\n $collFeatureCvtermprops[] = $obj;\n }\n }\n }\n\n $this->collFeatureCvtermprops = $collFeatureCvtermprops;\n $this->collFeatureCvtermpropsPartial = false;\n }\n }\n\n return $this->collFeatureCvtermprops;\n }",
"public function createCollection()\n\t{\n\t\t/** @var $collection \\Magento\\Catalog\\Model\\ResourceModel\\Product\\Collection */\n\t\t$collection = $this->productCollectionFactory->create();\n\t\t$collection->setVisibility($this->catalogProductVisibility->getVisibleInCatalogIds());\n\n\t\t$collection = $this->_addProductAttributesAndPrices($collection)\n\t\t\t->addStoreFilter()\n\t\t\t->setPageSize($this->getPageSize())\n\t\t\t->setCurPage($this->getRequest()->getParam(self::PAGE_VAR_NAME, 1));\n\n\t\t$conditions = $this->getConditions();\n\t\t$conditions->collectValidatedAttributes($collection);\n\t\t$this->sqlBuilder->attachConditionToCollection($collection, $conditions);\n\n\t\treturn $collection;\n\t}",
"protected function _prepareCollection() {\n /**\n * Get the Collection of Manage Subscription\n */\n $manageSubscription = Mage::getModel ( 'airhotels/managesubscriptions' )->getCollection ();\n \n /**\n * Get the Table Prefix Value\n */\n $tablePrefix = Mage::getConfig ()->getTablePrefix ();\n $manageSubscription->getSelect ()->group ( 'main_table.product_id' )->joinLeft ( $tablePrefix . 'apptha_productsubscriptions', 'main_table.product_id =' . $tablePrefix . 'apptha_productsubscriptions.product_id AND ' . $tablePrefix . 'apptha_productsubscriptions.is_delete = 0', array (\n 'main_table.id as id',\n 'main_table.product_name as product_name',\n $tablePrefix . 'apptha_productsubscriptions.subscription_type as subscription_type' \n ) )->where ( 'main_table.is_subscription_only = ?', 1 );\n \n $collection = $manageSubscription;\n $this->setCollection ( $collection );\n /**\n * Calling the parent Construct Method.\n */\n return parent::_prepareCollection ();\n }",
"protected function _prepareCollection()\n {\n $collection = $this->_createCollection()->addCustomerIdFilter($this->_getCustomer()->getId())\n ->resetSortOrder()\n ->addDaysInWishlist()\n ->addStoreData();\n $this->setCollection($collection);\n\n return parent::_prepareCollection();\n }",
"protected function _getCollection()\n {\n if (!$this->_collection) {\n $websiteId = $this->_storeManager->getWebsite()->getId();\n $this->_collection = $this->_historyFactory->create()\n ->addCustomerFilter($this->currentCustomer->getCustomerId())\n ->addWebsiteFilter($websiteId)\n ->setExpiryConfig($this->_rewardData->getExpiryConfig())\n ->addExpirationDate($websiteId)\n ->skipExpiredDuplicates()\n ->setDefaultOrder();\n }\n return $this->_collection;\n }",
"public function getProduitsPanier()\n {\n return $this->CollProduit->getCollection();\n }",
"public function __clone() {\n if ($this->_where) {\n $this->_where = clone $this->_where;\n }\n\n if ($this->_having) {\n $this->_having = clone $this->_having;\n }\n }",
"protected function getComposedCollection()\n {\n return $this->composedCollection;\n }",
"protected function _prepareCollection()\n {\n $collection = Mage::getModel('oggetto_oneclick/order')->getResourceCollection();\n $this->setCollection($collection);\n return parent::_prepareCollection();\n }",
"public function initLnkOperationPrimeRCountriess($overrideExisting = true)\n {\n if (null !== $this->collLnkOperationPrimeRCountriess && !$overrideExisting) {\n return;\n }\n $this->collLnkOperationPrimeRCountriess = new PropelObjectCollection();\n $this->collLnkOperationPrimeRCountriess->setModel('LnkOperationPrimeRCountries');\n }",
"protected function _prepareCollection()\n {\n /** @var $collection ChazkiExpressCollection */\n $collection = $this->_collectionFactory->create();\n $collection->setWebsiteFilter($this->getWebsiteId());\n\n $this->setCollection($collection);\n\n return parent::_prepareCollection();\n }",
"public function getContributionss(Criteria $criteria = null, ConnectionInterface $con = null)\n {\n $partial = $this->collContributionssPartial && !$this->isNew();\n if (null === $this->collContributionss || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collContributionss) {\n // return empty collection\n $this->initContributionss();\n } else {\n $collContributionss = ChildContributionsQuery::create(null, $criteria)\n ->filterByIssues($this)\n ->find($con);\n\n if (null !== $criteria) {\n if (false !== $this->collContributionssPartial && count($collContributionss)) {\n $this->initContributionss(false);\n\n foreach ($collContributionss as $obj) {\n if (false == $this->collContributionss->contains($obj)) {\n $this->collContributionss->append($obj);\n }\n }\n\n $this->collContributionssPartial = true;\n }\n\n return $collContributionss;\n }\n\n if ($partial && $this->collContributionss) {\n foreach ($this->collContributionss as $obj) {\n if ($obj->isNew()) {\n $collContributionss[] = $obj;\n }\n }\n }\n\n $this->collContributionss = $collContributionss;\n $this->collContributionssPartial = false;\n }\n }\n\n return $this->collContributionss;\n }",
"public static function cooperations() {\n return self::query()\n ->join('ownership', 'ownership.fobjsid', 'vp.sId')\n ->join('jobs', 'ownership.tobjsid', 'jobs.sId')\n ->select('vp.*')\n ->where('jobs.type', Job::TYPE_COOPERATION);\n }",
"public function getProcessorsCollection();",
"public function clearOperations()\n {\n $this->_operations = array();\n\n return $this;\n }",
"protected function _prepareCollection()\n {\n $collection = Mage::getModel('iparcel/log')->getCollection();\n $this->setCollection($collection);\n\n return parent::_prepareCollection();\n }",
"public function copy(): Collection\n {\n return clone $this;\n }",
"protected function _prepareCollection()\n {\n $collection = Mage::getModel('solutionpartner/partner')->getCollection();\n $collection->getSelect()->joinLeft(\n array('order' => $collection->getTable('sales/order')),\n 'main_table.email = order.customer_email AND order.status = \"complete\"',\n array(\n 'order_id' => 'entity_id',\n 'order_status' => 'order.status',\n 'number_qtys' => 'count(order.entity_id)'\n ))\n ->group('main_table.solutionpartner_id');\n $this->setCollection($collection);\n return parent::_prepareCollection();\n }",
"public function searchPesificacionesSinCompletar()\n\t{\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n $criteria->condition= \"estado=:estado\";\n\t\t$criteria->params = array(':estado'=> Pesificaciones::ESTADO_ABIERTO);\n\n\t\t//$criteria->condition= \"(t.montoAcreditar+t.montoGastos) NOT IN (SELECT SUM(cheques.montoOrigen) FROM cheques, detallePesificaciones WHERE detallePesificaciones.chequeId=cheques.id AND detallePesificaciones.pesificacionId=t.id)\";\n\t\treturn new CActiveDataProvider(new Pesificaciones, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}",
"protected function _prepareCollection()\n\t{\n\t\t$collection = Mage::getResourceModel($this->_getCollectionClass());\n $collection->getSelect()->joinLeft(\n array('sfo' => 'sales_flat_order'),\n 'main_table.order_id = sfo.entity_id',\n array('increment_id')\n );\n\t\t$this->setCollection($collection);\n\n\t\treturn parent::_prepareCollection();\n\t}",
"protected function _prepareCollection()\n {\n /* @var $collection Scandi_MenuManager_Model_Resource_Item_Collection */\n $collection = Mage::getModel('scandi_menumanager/item')->getResourceCollection()\n ->addMenuFilter(Mage::registry('menumanager_menu'));\n if (!$this->getRequest()->getParam('sort')) { $collection->setPositionOrder(); }\n\n $this->setCollection($collection);\n return parent::_prepareCollection();\n }",
"public function getProductCollection()\n {\n\n if (is_null($this->_productCollection)) {\n $collection = $this->_engine->getAdvancedResultCollection();\n $this->prepareProductCollection($collection);\n if (!$collection) {\n return $collection;\n }\n $this->_productCollection = $collection;\n }\n\n return $this->_productCollection;\n }",
"protected function getProductResultCollection()\n {\n $collection = Mage::registry('recommendation_collection');\n\n if (empty($collection)) {\n $collection = array();\n }\n\n return $collection;\n }",
"public function getProductCollection()\n {\n $this->_basketProducts = $this->_getCartProductIds();\n $products = $this->_complementaryEngine->sendQuery($this->_basketProducts);\n\n if ($products['rules']) {\n return $this->_getPredictedProducts($products['rules']);\n }\n\n return false;\n }",
"public function buildPkeyCriteria()\n {\n $criteria = new Criteria(SanitasiPeer::DATABASE_NAME);\n $criteria->add(SanitasiPeer::SEKOLAH_ID, $this->sekolah_id);\n $criteria->add(SanitasiPeer::SEMESTER_ID, $this->semester_id);\n\n return $criteria;\n }",
"public function getOperations(PropelPDO $con = null, $doQuery = true)\n {\n if ($this->aOperations === null && ($this->op_id !== null) && $doQuery) {\n $this->aOperations = OperationsQuery::create()->findPk($this->op_id, $con);\n /* The following can be used additionally to\n guarantee the related object contains a reference\n to this object. This level of coupling may, however, be\n undesirable since it could result in an only partially populated collection\n in the referenced object.\n $this->aOperations->addOperationPrimess($this);\n */\n }\n\n return $this->aOperations;\n }",
"protected function _prepareCollection()\n {\n $collection = Mage::getModel('catalog/product')->getCollection()\n ->addAttributeToSelect('name')\n ->addAttributeToSelect('type')\n ->addAttributeToSelect('status')\n ->addAttributeToSelect('visibility')\n ->addAttributeToSelect('sku');\n $this->setCollection($collection);\n return parent::_prepareCollection();\n }",
"public function getCriteria()\n {\n if (!isset($this->currentCriteria)) {\n throw new CollectionDriverException('Criteria is accessible only during preGetResult event.');\n }\n\n return $this->currentCriteria;\n }",
"function getComposite()\n {\n return $this;\n }",
"public function __clone()\r\n {\r\n $this->document = [];\r\n $this->document_id = 0;\r\n\r\n $this->documentTotal = 0;\r\n $this->documentExchageTotal = 0;\r\n\r\n $this->associatedDocuments = [];\r\n }",
"public function __clone() {\n $this->name = clone $this->name;\n $this->type = clone $this->type;\n $this->op = clone $this->op;\n\n $this->currentPeriod = clone $this->currentPeriod;\n $this->previousPeriod = clone $this->previousPeriod;\n\n $products = array();\n foreach ($this->products as $idx=>$product) {\n $products[] = clone $product;\n }\n $this->products = $products;\n }",
"public function buildPkeyCriteria()\n\t{\n\t\t$criteria = new Criteria(C060InventarioPeer::DATABASE_NAME);\n\n\t\t$criteria->add(C060InventarioPeer::CO_NUM_INVENTARIO, $this->co_num_inventario);\n\n\t\treturn $criteria;\n\t}",
"function productCollection()\n {\n return eZProductCollection::fetch( $this->attribute( 'productcollection_id' ) );\n }",
"public function chapitrePrec() {\n $prevChapitre = $this->cour->chapitres()->where('num_ordre', '<', $this->num_ordre)\n ->orderBy('num_ordre', 'desc')\n ->first();\n\n if($prevChapitre) {\n return $prevChapitre;\n }\n\n return $this;\n }",
"public function getProposedChanges(): ProposedChangeCollection\n {\n return $this->proposedChanges;\n }",
"protected function getPagerCollectionInstance()\n {\n $pagerCollection = $this->dataBackend->getPagerCollection();\n $pagerCollection->setItemCount($this->dataBackend->getTotalItemsCount());\n return $pagerCollection;\n }",
"public function findNewProd()\r\n {\r\n $query = $this->getEntityManager()\r\n ->createQuery(\"select m from CondorsTnMallBundle:Produit m ORDER BY m.datecreation DESC \")\r\n ->setMaxResults(5);\r\n\r\n return $query->getResult();\r\n\r\n }",
"function detachProductCollection()\n {\n $collection = $this->productCollection();\n if ( !$collection )\n {\n $retValue = false;\n return $retValue;\n }\n\n $db = eZDB::instance();\n $db->begin();\n $newCollection = $collection->copy();\n if ( !$newCollection )\n {\n $db->commit();\n $retValue = false;\n return $retValue;\n }\n $this->setAttribute( 'productcollection_id', $newCollection->attribute( 'id' ) );\n $this->store();\n\n $db->commit();\n return $newCollection;\n }",
"protected function _prepareCollection()\n {\n $collection = Mage::getResourceModel('bs_docwise/docwisement_collection');\n\n if ($this->getExam()->getId()) {\n $constraint = 'related.exam_id='.$this->getExam()->getId();\n } else {\n $constraint = 'related.exam_id=0';\n }\n $collection->getSelect()->joinLeft(\n array('related' => $collection->getTable('bs_docwise/exam_docwisement')),\n 'related.docwisement_id = main_table.entity_id AND '.$constraint,\n array('position')\n );\n\n\n $this->setCollection($collection);\n parent::_prepareCollection();\n return $this;\n }",
"public function initPesquisas($overrideExisting = true)\n\t{\n\t\tif (null !== $this->collPesquisas && !$overrideExisting) {\n\t\t\treturn;\n\t\t}\n\t\t$this->collPesquisas = new PropelObjectCollection();\n\t\t$this->collPesquisas->setModel('Pesquisa');\n\t}",
"public function clearFindCriteria()\n {\n $this->findCriteria = [];\n return $this;\n }",
"public function relCooperations() {\n return Job::query()\n ->join('ownership', 'ownership.tobjsid', 'jobs.sId')\n ->select('jobs.*')\n ->where('ownership.fobjsid', parent::__get('sId'))\n ->where('jobs.type', Job::TYPE_COOPERATION)\n ->get();\n }",
"public function load()\n {\n if (!$this->loaded) {\n $searchData = [];\n foreach (persistableCollection::getInstance($this->resourceName)->getPrimaryFields() as $fieldName) {\n $searchData[$fieldName] = $this->$fieldName;\n }\n $result = persistableCollection::getInstance($this->resourceName)->loadObject($searchData);\n $this->persisted = true;\n $this->loaded = true;\n return $result;\n }\n return $this;\n }",
"public function Panier() \n {\n $this->CollProduit = new Collection;\n }",
"public function __clone()\n {\n parent::__clone();\n $this->_stockItem = null;\n $this->_stockItems = null;\n $this->_inStockStockItems = null;\n return $this;\n }",
"public function getCollection() {\n return $this->gateway->find(\n $this->getFilter(),\n $this->order,\n $this->relations,\n $this->pager,\n !$this->excludeRepo\n );\n }",
"public function retrievePriceFilters()\n {\n $select = $this->getSelect();\n $select->setPart(Zend_Db_Select::WHERE, $this->_wherePartStash);\n $select->setPart(Zend_Db_Select::GROUP, $this->_groupPartStash);\n\n $this->clearStatisticsData();\n\n return $this;\n }",
"public function __clone()\n {\n if (is_object($this->collection)) {\n $this->collection = clone $this->collection;\n }\n $this->initialize();\n $this->owner = null;\n $this->snapshot = [];\n $this->changed();\n }",
"public function getInappropriates($criteria = null, PropelPDO $con = null)\n\t{\n\t\tif ($criteria === null) {\n\t\t\t$criteria = new Criteria(PostPeer::DATABASE_NAME);\n\t\t}\n\t\telseif ($criteria instanceof Criteria)\n\t\t{\n\t\t\t$criteria = clone $criteria;\n\t\t}\n\n\t\tif ($this->collInappropriates === null) {\n\t\t\tif ($this->isNew()) {\n\t\t\t $this->collInappropriates = array();\n\t\t\t} else {\n\n\t\t\t\t$criteria->add(InappropriatePeer::POST_ID, $this->id);\n\n\t\t\t\tInappropriatePeer::addSelectColumns($criteria);\n\t\t\t\t$this->collInappropriates = InappropriatePeer::doSelect($criteria, $con);\n\t\t\t}\n\t\t} else {\n\t\t\t// criteria has no effect for a new object\n\t\t\tif (!$this->isNew()) {\n\t\t\t\t// the following code is to determine if a new query is\n\t\t\t\t// called for. If the criteria is the same as the last\n\t\t\t\t// one, just return the collection.\n\n\n\t\t\t\t$criteria->add(InappropriatePeer::POST_ID, $this->id);\n\n\t\t\t\tInappropriatePeer::addSelectColumns($criteria);\n\t\t\t\tif (!isset($this->lastInappropriateCriteria) || !$this->lastInappropriateCriteria->equals($criteria)) {\n\t\t\t\t\t$this->collInappropriates = InappropriatePeer::doSelect($criteria, $con);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$this->lastInappropriateCriteria = $criteria;\n\t\treturn $this->collInappropriates;\n\t}",
"public function __clone()\n {\n $this->query = clone $this->query;\n }",
"public function getParameters() : CollectionInterface\n {\n return $this->parameters->copy();\n }",
"protected function _prepareCollection()\n {\n $baseQuery = $this->_getBaseSearchQuery();\n $productIds = $this->_getProductIdsFromSearchQuery($baseQuery);\n\n if (empty($productIds)) {\n $productIds = array(0);\n }\n\n $attributes = Mage::getModel('catalog/config')->getProductCollectionAttributes();\n\n /** @var Mage_Catalog_Model_Resource_Product_Collection $collection */\n $collection = Mage::getResourceModel('catalog/product_collection')\n ->addIdFilter($productIds)\n ->addAttributeToSelect($attributes);\n\n $storeIds = implode(\",\", array_unique(array_map(\"intval\", array(Mage_Core_Model_App::ADMIN_STORE_ID, $this->getStoreId()))));\n\n if ($this->getStoreId() != Mage_Core_Model_App::ADMIN_STORE_ID) {\n $collection->setStoreId($this->getStoreId());\n $joinCond = \"category_id = \" . (int) $this->getCategory()->getId() . \" AND store_id = {$this->getStoreId()}\";\n } else {\n $joinCond = \"category_id = \" . (int) $this->getCategory()->getId() . \" AND store_id IN ({$storeIds})\";\n }\n\n $collection->joinField(\n 'position',\n 'smile_virtualcategories/category_product_position',\n 'position',\n 'product_id = entity_id',\n $joinCond,\n 'left'\n );\n\n $collection->getSelect()->order(\n new Zend_Db_Expr(\"- position DESC\") // mimic a \"SORT BY #field NULL LAST\n );\n\n $entityIds = implode(\",\", $productIds);\n $collection->getSelect()->order(\n new Zend_Db_Expr(\"FIELD(e.entity_id, {$entityIds})\") // restore sort order given by ES\n );\n\n $this->setCollection($collection);\n\n return parent::_prepareCollection();\n }",
"public function getDataProcessorCollection(): ProcessorCollection {\n\n return $this->dataProcessorCollection;\n\n }",
"public function collection() {\n \t$db = $this->db;\n\t\t$sql = $this->sql();\n\t\t$rows = $db::execute($sql);\n\t\t$model = $this->model;\n\t\treturn new \\Collection($model::arrayFactoryFromRows($rows));\n\t}",
"public function getCollection()\n {\n $collection = trim(str_replace('\\\\', '_', $this->collection), '_');\n return $this->$collection()\n ->setDatabase($this->database)\n ->setTable($this->table)\n ->setModel($this->model)\n ->set($this->getRows());\n }",
"public function applyCriteria() {\n if ($this->skipCriteria === true) {\n return $this;\n }\n\n foreach ($this->getCriteria() as $criteria) {\n if ($criteria instanceof Criteria) {\n $this->model = $criteria->apply($this->model, $this);\n }\n }\n\n return $this;\n }",
"function getCommonProvisions();",
"public function fresh()\n {\n if ($this->hasModel() && $this->exists()) {\n return odb($this->db(), $this->table())->find((int) $this->data['id']);\n }\n\n return $this;\n }",
"protected function applyCriteria()\n {\n if ($this->skipCriteria === true) {\n return $this;\n }\n\n $criteria = $this->getCriteria();\n\n if ($criteria) {\n foreach ($criteria as $c) {\n $this->model = $c->apply($this->model, $this);\n }\n }\n\n return $this;\n }",
"public function buildPkeyCriteria()\n {\n $criteria = new Criteria(SekolahPaudPeer::DATABASE_NAME);\n $criteria->add(SekolahPaudPeer::SEKOLAH_ID, $this->sekolah_id);\n\n return $criteria;\n }",
"public function clearPriceFilters()\n {\n $select = $this->getSelect();\n $this->_wherePartStash = $select->getPart(Zend_Db_Select::WHERE);\n $this->_groupPartStash = $select->getPart(Zend_Db_Select::GROUP);\n $select->reset(Zend_Db_Select::WHERE);\n $select->reset(Zend_Db_Select::GROUP);\n\n $this->clearStatisticsData();\n\n return $this;\n }",
"public function getCriteriaCollection(): CriteriaCollection;",
"protected function getPluginCollection() {\n if (!$this->pluginCollection) {\n $plugin_manager = \\Drupal::service('plugin.manager.commerce_installment_plan_methods');\n $this->pluginCollection = new InstallmentPlanMethodPluginCollection($plugin_manager, $this->plugin, $this->configuration, $this->id);\n }\n return $this->pluginCollection;\n }",
"public function getCompetitionsWithReload() {\n $this->competitionsLoaded = false;\n return $this->getCompetitions();\n }",
"public function buildPkeyCriteria()\n\t{\n\t\t$criteria = new Criteria(VpoRequestPeer::DATABASE_NAME);\n\n\t\t$criteria->add(VpoRequestPeer::ID, $this->id);\n\n\t\treturn $criteria;\n\t}",
"private function applyCriteria()\n {\n foreach( $this->criteria as $criterion )\n {\n $this->query = $criterion->apply( $this->query, $this );\n }\n\n return $this;\n }",
"public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME)\n {\n $keys = OperationPrimesPeer::getFieldNames($keyType);\n\n if (array_key_exists($keys[0], $arr)) $this->setOpPrimeId($arr[$keys[0]]);\n if (array_key_exists($keys[1], $arr)) $this->setOpId($arr[$keys[1]]);\n if (array_key_exists($keys[2], $arr)) $this->setOpPrimeLibelle($arr[$keys[2]]);\n if (array_key_exists($keys[3], $arr)) $this->setOpPrimeNumero($arr[$keys[3]]);\n if (array_key_exists($keys[4], $arr)) $this->setGdlArtId($arr[$keys[4]]);\n if (array_key_exists($keys[5], $arr)) $this->setOperationPrimeCurrencyId($arr[$keys[5]]);\n if (array_key_exists($keys[6], $arr)) $this->setOperationPrimeRRewardTypeId($arr[$keys[6]]);\n if (array_key_exists($keys[7], $arr)) $this->setOperationPrimeRRewardExpeditionModeId($arr[$keys[7]]);\n if (array_key_exists($keys[8], $arr)) $this->setOperationPrimeRRewardTransporterId($arr[$keys[8]]);\n if (array_key_exists($keys[9], $arr)) $this->setOperationPrimeFixedAmount($arr[$keys[9]]);\n if (array_key_exists($keys[10], $arr)) $this->setOperationPrimeProductPricePourcentage($arr[$keys[10]]);\n if (array_key_exists($keys[11], $arr)) $this->setOperationPrimeMaximumAmount($arr[$keys[11]]);\n }",
"protected function _getQueueCollection() : \\Pulchritudinous\\Queue\\Model\\ResourceModel\\Labour\\Collection\n {\n $collection = $this->_objectManager->create('Pulchritudinous\\Queue\\Model\\ResourceModel\\Labour\\Collection')\n ->addFieldToFilter('status', ['eq' => Labour::STATUS_PENDING])\n ->addFieldToFilter('execute_at', ['lteq' => time()])\n ->setOrder('priority', 'ASC')\n ->setOrder('execute_at', 'ASC');\n\n return $collection;\n }",
"public function getResultsCollections()\n\t {\n\t \tif ( is_array($this->results) && $this->isMulti() ) {\n\n\t \t\treturn new MagentoObjectCollection($this->results);\n\n\t \t} elseif( is_array($this->results) && !$this->isMulti() ) {\n\n\t \t\treturn new MagentoObject($this->results);\n\n\t \t} elseif( is_object($this->results) ) {\n\n\t \t\treturn new MagentoObject($this->results);\n\n\t \t} else {\n\n\t \t\treturn $this->results;\n\t \t}\n\t }",
"protected function processData($data)\n {\n // reuse the existing collection to optimize for Doctrine\n if ($data instanceof Collection) {\n $currentData = $this->getData();\n\n if (!$currentData) {\n $currentData = $data;\n } else if (count($data) === 0) {\n $currentData->clear();\n } else {\n // merge $data into $currentData\n foreach ($currentData as $entity) {\n if (!$data->contains($entity)) {\n $currentData->removeElement($entity);\n } else {\n $data->removeElement($entity);\n }\n }\n\n foreach ($data as $entity) {\n $currentData->add($entity);\n }\n }\n\n return $currentData;\n }\n\n return $data;\n }",
"protected function _prepareCollection()\n {\n $currentCampaign = Mage::getSingleton('adminhtml/session')->getCurrentCampaign();\n $collection = Mage::getModel('campaign/bannerslider')->getCollection();\n $collection->getSelect()\n ->joinLeft(array('campaign'=>$collection->getTable('campaign/campaign')),\n 'main_table.campaign_id = campaign.campaign_id', '')\n ->columns(array('campaign_name'=>'IF(main_table.campaign_id = \"'.$currentCampaign->getId().'\", \"Current\", campaign.name)'))\n ->group('main_table.bannerslider_id');\n $filter = Mage::registry('banner_reloaded_ids');\n if(!isset($filter)){//if reset no filter\n $selected_id = $this->_selectedId();\n if(!empty($selected_id)){\n $collection->addFieldToFilter('bannerslider_id', array('in'=>$selected_id));\n }\n }\n $this->setCollection($collection);\n return parent::_prepareCollection();\n }",
"public function __clone() {\n foreach ($this->conditions as $i => $condition) {\n $this->conditions[$i] = clone $condition;\n }\n }",
"public function initInappropriates()\n\t{\n\t\t$this->collInappropriates = array();\n\t}",
"protected function _getProductCollection()\n {\n $collection = parent::_getProductCollection();\n\t\t$helper = Mage::helper('catalogMembersonly/productsFilter');\n\t\t$collection = $helper->filterProductCollection($collection);\n\n return $collection;\t\t\n }",
"public function getCollection(){\r\n\t\treturn $this->_collection;\r\n\t}"
] | [
"0.62205374",
"0.61501235",
"0.61416936",
"0.59834236",
"0.5882558",
"0.5715867",
"0.5676356",
"0.5420742",
"0.53788686",
"0.5210833",
"0.52108145",
"0.5117575",
"0.5108138",
"0.5106548",
"0.5105183",
"0.5098247",
"0.50771606",
"0.506499",
"0.5058717",
"0.50490826",
"0.50481415",
"0.5038274",
"0.50162053",
"0.50039375",
"0.49937728",
"0.49794662",
"0.49781063",
"0.49662885",
"0.49339598",
"0.49296522",
"0.4919599",
"0.4893606",
"0.4884278",
"0.48657843",
"0.48362705",
"0.48359987",
"0.48348853",
"0.4797901",
"0.4775233",
"0.47632825",
"0.47505373",
"0.47500306",
"0.4746676",
"0.47338608",
"0.47309533",
"0.47219744",
"0.4706939",
"0.46731475",
"0.46720025",
"0.4669084",
"0.46592468",
"0.46481085",
"0.4647947",
"0.46466413",
"0.46460128",
"0.46407282",
"0.4636831",
"0.4635498",
"0.4635388",
"0.4634498",
"0.46267027",
"0.46233788",
"0.46223283",
"0.46180996",
"0.46160725",
"0.46111217",
"0.4585173",
"0.4585007",
"0.45845056",
"0.45834363",
"0.45795825",
"0.45653504",
"0.45607457",
"0.45600715",
"0.45546553",
"0.45472294",
"0.4545127",
"0.45422015",
"0.45393106",
"0.4537041",
"0.45365354",
"0.45356366",
"0.45331556",
"0.45306823",
"0.45299596",
"0.45239583",
"0.45233446",
"0.452328",
"0.45179158",
"0.45160252",
"0.4513337",
"0.45111609",
"0.45101893",
"0.44946745",
"0.44884977",
"0.44854257",
"0.44831833",
"0.44764265",
"0.44740954",
"0.44679588",
"0.44669658"
] | 0.0 | -1 |
Clears out the collOperationScenariis collection This does not modify the database; however, it will remove any associated objects, causing them to be refetched by subsequent calls to accessor method. | public function clearOperationScenariis()
{
$this->collOperationScenariis = null; // important to set this to null since that means it is uninitialized
$this->collOperationScenariisPartial = null;
return $this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function clear()\n {\n $this->collection->clear();\n $this->keys = [];\n }",
"public function clearCollection()\n {\n $this->collections = [];\n }",
"public function clear()\n {\n $this->op_prime_id = null;\n $this->op_id = null;\n $this->op_prime_libelle = null;\n $this->op_prime_numero = null;\n $this->gdl_art_id = null;\n $this->operation_prime_currency_id = null;\n $this->operation_prime_r_reward_type_id = null;\n $this->operation_prime_r_reward_expedition_mode_id = null;\n $this->operation_prime_r_reward_transporter_id = null;\n $this->operation_prime_fixed_amount = null;\n $this->operation_prime_product_price_pourcentage = null;\n $this->operation_prime_maximum_amount = null;\n $this->alreadyInSave = false;\n $this->alreadyInValidation = false;\n $this->alreadyInClearAllReferencesDeep = false;\n $this->clearAllReferences();\n $this->resetModified();\n $this->setNew(true);\n $this->setDeleted(false);\n }",
"public function clear()\n {\n $this->idmontacargas = null;\n $this->idsucursal = null;\n $this->montacargas_modelo = null;\n $this->montacargas_marca = null;\n $this->montacargas_c = null;\n $this->montacargas_k = null;\n $this->montacargas_p = null;\n $this->montacargas_t = null;\n $this->montacargas_e = null;\n $this->montacargas_volts = null;\n $this->montacargas_amperaje = null;\n $this->montacargas_nombre = null;\n $this->montacargas_numserie = null;\n $this->montacargas_comprador = null;\n $this->montacargas_ciclosmant = null;\n $this->montacargas_ciclosiniciales = null;\n $this->montacargas_baja = null;\n $this->alreadyInSave = false;\n $this->alreadyInValidation = false;\n $this->alreadyInClearAllReferencesDeep = false;\n $this->clearAllReferences();\n $this->applyDefaultValues();\n $this->resetModified();\n $this->setNew(true);\n $this->setDeleted(false);\n }",
"public function clear() {\n $this->collection = [];\n $this->noteCollectionChanged();\n }",
"public function clear()\n\t{\n\t\t$this->getObject()->clear();\n\t}",
"public function clear()\n {\n $this->feature_cvterm_id = null;\n $this->feature_id = null;\n $this->cvterm_id = null;\n $this->pub_id = null;\n $this->is_not = null;\n $this->rank = null;\n $this->alreadyInSave = false;\n $this->alreadyInValidation = false;\n $this->alreadyInClearAllReferencesDeep = false;\n $this->clearAllReferences();\n $this->applyDefaultValues();\n $this->resetModified();\n $this->setNew(true);\n $this->setDeleted(false);\n }",
"public function clearOperationPrestationss()\n {\n $this->collOperationPrestationss = null; // important to set this to null since that means it is uninitialized\n $this->collOperationPrestationssPartial = null;\n\n return $this;\n }",
"public function clearColetaPesquisas()\n\t{\n\t\t$this->collColetaPesquisas = null; // important to set this to NULL since that means it is uninitialized\n\t}",
"public function clearOperations()\n {\n $this->_operations = array();\n\n return $this;\n }",
"public function clear()\n {\n if (null !== $this->aPublisher) {\n $this->aPublisher->removeBiblio($this);\n }\n if (null !== $this->aLanguage) {\n $this->aLanguage->removeBiblio($this);\n }\n if (null !== $this->aPlace) {\n $this->aPlace->removeBiblio($this);\n }\n if (null !== $this->aFrequency) {\n $this->aFrequency->removeBiblio($this);\n }\n if (null !== $this->aUser) {\n $this->aUser->removeBiblio($this);\n }\n $this->biblio_id = null;\n $this->title = null;\n $this->sor = null;\n $this->edition = null;\n $this->isbn_issn = null;\n $this->publisher_id = null;\n $this->publish_year = null;\n $this->collation = null;\n $this->series_title = null;\n $this->call_number = null;\n $this->language_id = null;\n $this->source = null;\n $this->publish_place_id = null;\n $this->classification = null;\n $this->notes = null;\n $this->image = null;\n $this->file_att = null;\n $this->opac_hide = null;\n $this->promoted = null;\n $this->labels = null;\n $this->frequency_id = null;\n $this->spec_detail_info = null;\n $this->input_date = null;\n $this->last_update = null;\n $this->uid = null;\n $this->alreadyInSave = false;\n $this->clearAllReferences();\n $this->resetModified();\n $this->setNew(true);\n $this->setDeleted(false);\n }",
"public function clearNoticias()\n\t{\n\t\t$this->collNoticias = null; // important to set this to NULL since that means it is uninitialized\n\t}",
"public function clearPesquisas()\n\t{\n\t\t$this->collPesquisas = null; // important to set this to NULL since that means it is uninitialized\n\t}",
"function clear()\r\n\t{\r\n\t\t// Clear the all list\r\n\t\t$this->all = array();\r\n\r\n\t\t// Clear errors\r\n\t\t$this->error = new stdClass();\r\n\t\t$this->error->all = array();\r\n\t\t$this->error->string = '';\r\n\r\n\t\t// Clear this objects properties and set blank error messages in case they are accessed\r\n\t\tforeach ($this->fields as $field)\r\n\t\t{\r\n\t\t\t$this->{$field} = NULL;\r\n\t\t\t$this->error->{$field} = '';\r\n\t\t}\r\n\r\n\t\t// Clear this objects \"has many\" related objects\r\n\t\tforeach ($this->has_many as $related)\r\n\t\t{\r\n\t\t\tunset($this->{$related});\r\n\t\t}\r\n\r\n\t\t// Clear this objects \"has one\" related objects\r\n\t\tforeach ($this->has_one as $related)\r\n\t\t{\r\n\t\t\tunset($this->{$related});\r\n\t\t}\r\n\r\n\t\t// Clear the query related list\r\n\t\t$this->query_related = array();\r\n\r\n\t\t// Clear and refresh stored values\r\n\t\t$this->stored = new stdClass();\r\n\r\n\t\t$this->_refresh_stored_values();\r\n\t}",
"public function clear()\n {\n foreach ($this->objectsRepository as $repository) {\n if ($repository instanceof Repository) {\n $repository->clear();\n }\n }\n parent::clear();\n $this->objectsRepository = [];\n }",
"public function clear()\n {\n $this->connection->del($this->key);\n\n if ($this->on_change) {\n call_user_func($this->on_change, []);\n }\n\n if ($this->on_clear) {\n call_user_func($this->on_clear, []);\n }\n }",
"public function clear()\n {\n $this->collection = array();\n\n return $this;\n }",
"public function clearItems()\n {\n $this->collItems = null; // important to set this to NULL since that means it is uninitialized\n }",
"public function clear()\n {\n if (null !== $this->aSociete) {\n $this->aSociete->removeCommande($this);\n }\n if (null !== $this->aMTransport) {\n $this->aMTransport->removeCommande($this);\n }\n $this->id_commande = null;\n $this->reference = null;\n $this->soc_id_fk = null;\n $this->transport_fk = null;\n $this->quantite = null;\n $this->prix = null;\n $this->delai = null;\n $this->dte_commande = null;\n $this->priorite = null;\n $this->note = null;\n $this->alreadyInSave = false;\n $this->clearAllReferences();\n $this->resetModified();\n $this->setNew(true);\n $this->setDeleted(false);\n }",
"public function clearOpenids()\n\t{\n\t\t$this->collOpenids = null; // important to set this to NULL since that means it is uninitialized\n\t}",
"public function clear(): void\n {\n $this->collectionStatsById = [];\n $this->proxyStatsByClass = [];\n }",
"public function clear()\n {\n $this->repository->clear();\n }",
"public function clear()\n {\n $this->sekolah_id = null;\n $this->semester_id = null;\n $this->id_ruang = null;\n $this->hari = null;\n $this->bel_ke_01 = null;\n $this->bel_ke_02 = null;\n $this->bel_ke_03 = null;\n $this->bel_ke_04 = null;\n $this->bel_ke_05 = null;\n $this->bel_ke_06 = null;\n $this->bel_ke_07 = null;\n $this->bel_ke_08 = null;\n $this->bel_ke_09 = null;\n $this->bel_ke_10 = null;\n $this->bel_ke_11 = null;\n $this->bel_ke_12 = null;\n $this->bel_ke_13 = null;\n $this->bel_ke_14 = null;\n $this->bel_ke_15 = null;\n $this->bel_ke_16 = null;\n $this->bel_ke_17 = null;\n $this->bel_ke_18 = null;\n $this->bel_ke_19 = null;\n $this->bel_ke_20 = null;\n $this->create_date = null;\n $this->last_update = null;\n $this->soft_delete = null;\n $this->last_sync = null;\n $this->updater_id = null;\n $this->alreadyInSave = false;\n $this->alreadyInValidation = false;\n $this->alreadyInClearAllReferencesDeep = false;\n $this->clearAllReferences();\n $this->applyDefaultValues();\n $this->resetModified();\n $this->setNew(true);\n $this->setDeleted(false);\n }",
"public function clearShoppingCarts()\n\t{\n\t\t$this->collShoppingCarts = null; // important to set this to NULL since that means it is uninitialized\n\t}",
"public function clear()\n {\n $this->shnttype = null;\n $this->shnttypedesc = null;\n $this->oehhnbr = null;\n $this->shntyear = null;\n $this->oedhline = null;\n $this->shntlotser = null;\n $this->shntpickticket = null;\n $this->shntpackticket = null;\n $this->shntinvoice = null;\n $this->shntacknow = null;\n $this->shntseq = null;\n $this->shntnote = null;\n $this->shntkey2 = null;\n $this->shntform = null;\n $this->dateupdtd = null;\n $this->timeupdtd = null;\n $this->dummy = null;\n $this->alreadyInSave = false;\n $this->clearAllReferences();\n $this->applyDefaultValues();\n $this->resetModified();\n $this->setNew(true);\n $this->setDeleted(false);\n }",
"public function clearRatings()\n {\n $this->collRatings = null; // important to set this to NULL since that means it is uninitialized\n }",
"public function clear() : CollectionInterface;",
"public function clear()\n\t{\n\t\t$this->co_usuario = null;\n\t\t$this->nu_cpf = null;\n\t\t$this->ds_password = null;\n\t\t$this->no_usuario = null;\n\t\t$this->ds_login = null;\n\t\t$this->dt_ultimo_login = null;\n\t\t$this->ds_email = null;\n\t\t$this->co_perfil = null;\n\t\t$this->nu_celular = null;\n\t\t$this->nu_telefone = null;\n\t\t$this->st_usuario = null;\n\t\t$this->alreadyInSave = false;\n\t\t$this->alreadyInValidation = false;\n\t\t$this->clearAllReferences();\n\t\t$this->applyDefaultValues();\n\t\t$this->resetModified();\n\t\t$this->setNew(true);\n\t\t$this->setDeleted(false);\n\t}",
"private function clear()\n {\n $this->mappedQueries = [];\n $this->mappedFilters = [];\n $this->requestData = [];\n }",
"public function clear()\n {\n if (null !== $this->auserSysRef) {\n $this->auserSysRef->removeIssues($this);\n }\n if (null !== $this->aBooks) {\n $this->aBooks->removeIssues($this);\n }\n $this->id = null;\n $this->_name = null;\n $this->_opendate = null;\n $this->_closedate = null;\n $this->_status = null;\n $this->_infotext = null;\n $this->_forbook = null;\n $this->__user__ = null;\n $this->__config__ = null;\n $this->__split__ = null;\n $this->__parentnode__ = null;\n $this->__sort__ = null;\n $this->alreadyInSave = false;\n $this->clearAllReferences();\n $this->resetModified();\n $this->setNew(true);\n $this->setDeleted(false);\n }",
"public function clear()\n {\n $this->id = null;\n $this->name = null;\n $this->is_active = null;\n $this->is_closed = null;\n $this->from_date = null;\n $this->to_date = null;\n $this->sortable_rank = null;\n $this->alreadyInSave = false;\n $this->alreadyInValidation = false;\n $this->alreadyInClearAllReferencesDeep = false;\n $this->clearAllReferences();\n $this->applyDefaultValues();\n $this->resetModified();\n $this->setNew(true);\n $this->setDeleted(false);\n }",
"public function clearCurrentOperation()\n {\n $this->currentOperation = null;\n }",
"private function clear(): void\n {\n $this->centralDirectoryRecords = [];\n $this->offset = 0;\n\n if($this->operationMode === OperationMode::NORMAL) {\n $this->ready = false;\n $this->recordedSimulation = [];\n } else {\n $this->operationMode = OperationMode::NORMAL;\n }\n }",
"public function setOperationScenariis(PropelCollection $operationScenariis, PropelPDO $con = null)\n {\n $operationScenariisToDelete = $this->getOperationScenariis(new Criteria(), $con)->diff($operationScenariis);\n\n\n $this->operationScenariisScheduledForDeletion = $operationScenariisToDelete;\n\n foreach ($operationScenariisToDelete as $operationScenariiRemoved) {\n $operationScenariiRemoved->setOperationPrimes(null);\n }\n\n $this->collOperationScenariis = null;\n foreach ($operationScenariis as $operationScenarii) {\n $this->addOperationScenarii($operationScenarii);\n }\n\n $this->collOperationScenariis = $operationScenariis;\n $this->collOperationScenariisPartial = false;\n\n return $this;\n }",
"public function clearAuditorias()\n\t{\n\t\t$this->collAuditorias = null; // important to set this to NULL since that means it is uninitialized\n\t}",
"public function clear()\n\t{\n\t\t$this->id = null;\n\t\t$this->uf_id = null;\n\t\t$this->nome = null;\n\t\t$this->slug = null;\n\t\t$this->longitude = null;\n\t\t$this->latitude = null;\n\t\t$this->alreadyInSave = false;\n\t\t$this->alreadyInValidation = false;\n\t\t$this->clearAllReferences();\n\t\t$this->resetModified();\n\t\t$this->setNew(true);\n\t\t$this->setDeleted(false);\n\t}",
"public function clearComentarioNoticias()\n\t{\n\t\t$this->collComentarioNoticias = null; // important to set this to NULL since that means it is uninitialized\n\t}",
"public function clear() {\n $this->_documentBoost = FALSE;\n\n $this->_fields = array();\n $this->_fieldBoosts = array();\n }",
"public function clear()\n {\n $this->repository = array();\n }",
"function clearContainer()\r\n {\r\n foreach ($this->container as $k => $v)\r\n unset($this->container[$k]);\r\n }",
"public function clearMembros()\n\t{\n\t\t$this->collMembros = null; // important to set this to NULL since that means it is uninitialized\n\t}",
"public function removeAll()\n {\n foreach ($this->findAll() as $object) {\n $this->remove($object);\n }\n }",
"public function clear()\n {\n\n $this->synchronized = true;\n $this->id = null;\n $this->newId = null;\n $this->data = [];\n $this->savedData = [];\n $this->multiRef = [];\n\n }",
"public function clearContributionss()\n {\n $this->collContributionss = null; // important to set this to NULL since that means it is uninitialized\n }",
"public function clear()\n {\n $this->id = null;\n $this->code = null;\n $this->category = null;\n $this->address = null;\n $this->address2 = null;\n $this->zipcode = null;\n $this->city = null;\n $this->geo_coordinate_x = null;\n $this->geo_coordinate_y = null;\n $this->distance_camping = null;\n $this->image = null;\n $this->priority = null;\n $this->tel = null;\n $this->fax = null;\n $this->email = null;\n $this->website = null;\n $this->created_at = null;\n $this->updated_at = null;\n $this->active = null;\n $this->alreadyInSave = false;\n $this->alreadyInValidation = false;\n $this->clearAllReferences();\n $this->applyDefaultValues();\n $this->resetModified();\n $this->setNew(true);\n $this->setDeleted(false);\n }",
"public function clear () {\n //$prefix = $this->redis->getOptions()->__get('prefix')->getPrefix();\n foreach($this->redis->keys(\"*\") as $key) {\n $this->redis->del($key);\n }\n }",
"public function clearCOMVendeurs()\n {\n $this->collCOMVendeurs = null; // important to set this to NULL since that means it is uninitialized\n }",
"public function clear()\n {\n $this->batch = [];\n }",
"public function clearConcepts()\n {\n foreach ($this->relationships as $relationship) {\n $relationship->clearConcepts();\n }\n }",
"public function clear() {}",
"public function clear() {}",
"public function clear() {}",
"public function clear() {}",
"public function clearInappropriates()\n\t{\n\t\t$this->collInappropriates = null; // important to set this to NULL since that means it is uninitialized\n\t}",
"public function clear(): void\n {\n $this->items = collect();\n\n $this->save();\n }",
"public function clearSolicitacaoResgatesRelatedBySolicitanteId()\n\t{\n\t\t$this->collSolicitacaoResgatesRelatedBySolicitanteId = null; // important to set this to NULL since that means it is uninitialized\n\t}",
"public function clear()\n {\n $this->inputFieldsGroup->clear();\n $this->inputFilesGroup->clear();\n $this->inputImagesGroup->clear();\n $this->inputConditionsGroup->clear();\n }",
"public function clear()\n {\n if (null !== $this->aCakeType) {\n $this->aCakeType->removeArticle($this);\n }\n if (null !== $this->aShape) {\n $this->aShape->removeArticle($this);\n }\n $this->article_id = null;\n $this->description = null;\n $this->price = null;\n $this->creation = null;\n $this->visible = null;\n $this->shape_id = null;\n $this->cake_type_id = null;\n $this->alreadyInSave = false;\n $this->clearAllReferences();\n $this->resetModified();\n $this->setNew(true);\n $this->setDeleted(false);\n }",
"public function clear()\n {\n $this->items = [];\n $this->saveItems();\n }",
"public function delete_all() {\n\t\t$this->_cache = array();\n\t\t$this->_collections = array();\n\t}",
"public function clear()\n {\n $this->map->clear();\n }",
"public function clear() {\n foreach ($this->Fields as $key => $item) {\n $this->$key = null;\n }\n }",
"public function clearActions()\n {\n $this->collActions = null; // important to set this to null since that means it is uninitialized\n $this->collActionsPartial = null;\n\n return $this;\n }",
"public function clear() {\n\t\t$this->_where\t\t= array();\n\t\t$this->_order\t\t= array();\n\t\t$this->_isAddingNew\t= false;\n\t\t$this->_currentRow\t= 0;\n\t\t$this->_relationship\t= array();\n\t\t$this->_recordset\t= array();\n\t\t$this->_updateBuffer\t= array();\n\t\t$this->_limit\t\t= NULL;\n\t\t$this->_offset\t\t= NULL;\n\t\t$this->isDirty( false );\n\t}",
"public function clearQuestions()\n\t{\n\t\t$this->collQuestions = null; // important to set this to NULL since that means it is uninitialized\n\t}",
"function clear()\r\n\t{\r\n\t\t$this->id = 0;\r\n\t\t$this->competitionId = 0;\r\n\t\t$this->dayNo = 0;\r\n\t\t$this->firstStart = '';\r\n\t\t$this->lastStart = '';\r\n\t\t$this->patrolSpace = 0;\r\n\t\t$this->maxStation = 0;\r\n\t}",
"public function clear()\r\n\t{\r\n\t\t$this->isLoaded = false;\r\n\t\t$this->elements = array();\r\n\t\t$this->keyAssocation = array();\r\n\t\t$this->i = 0;\r\n\t\t$this->count = 0;\r\n\t}",
"public function clear(): self;",
"public function clearRightss()\n {\n $this->collRightss = null; // important to set this to NULL since that means it is uninitialized\n }",
"public function clear()\n\t{\n\t\t$this->id = null;\n\t\t$this->perfil_id = null;\n\t\t$this->endereco_id = null;\n\t\t$this->cargo_id = null;\n\t\t$this->departamento_id = null;\n\t\t$this->matricula = null;\n\t\t$this->nome = null;\n\t\t$this->email = null;\n\t\t$this->dni = null;\n\t\t$this->data_nascimento = null;\n\t\t$this->data_contratacao = null;\n\t\t$this->celular = null;\n\t\t$this->telefone = null;\n\t\t$this->token = null;\n\t\t$this->nome_usuario = null;\n\t\t$this->senha = null;\n\t\t$this->token_senha = null;\n\t\t$this->token_firebase = null;\n\t\t$this->data_rescisao = null;\n\t\t$this->ativo = null;\n\t\t$this->tipo_acesso = null;\n\t\t$this->estado_civil = null;\n\t\t$this->nivel_acesso = null;\n\t\t$this->usuario_validado = null;\n\t\t$this->sexo = null;\n\t\t$this->data_cadastro = null;\n\t\t$this->alreadyInSave = false;\n\t\t$this->alreadyInValidation = false;\n\t\t$this->clearAllReferences();\n\t\t$this->applyDefaultValues();\n\t\t$this->resetModified();\n\t\t$this->setNew(true);\n\t\t$this->setDeleted(false);\n\t}",
"public function clearOffensives()\n\t{\n\t\t$this->collOffensives = null; // important to set this to NULL since that means it is uninitialized\n\t}",
"public function clearVenueratings()\n\t{\n\t\t$this->collVenueratings = null; // important to set this to NULL since that means it is uninitialized\n\t}",
"public function clear()\n {\n foreach ($this->backends as $b) {\n $b->clear();\n }\n }",
"public function clear() {\n $this->redis = null;\n }",
"public function clear()\n {\n $this->fromArray(array());\n }",
"public function clearVpoRequestCargos()\n\t{\n\t\t$this->collVpoRequestCargos = null; // important to set this to NULL since that means it is uninitialized\n\t}",
"public function clear() {\r\n\r\n \t\r\n \t\tunset ( $this->__sesionStorage->role );\r\n \t\t\r\n }",
"public function clear () {\n \n }",
"public function clear()\n {\n $this->_id = null;\n $this->_title = null;\n $this->_positions = [];\n $this->_isDefault = null;\n }",
"public function clear()\n {\n $this->climate->clear();\n }",
"public function clearEvents()\n\t{\n\t\t$this->collEvents = null; // important to set this to NULL since that means it is uninitialized\n\t}",
"public function clear(){\n\t\t// create array containing all data of the business object not including linked tables//\n\t\t$this->business_data = \n\t\t\tarray(\n\t\t\t\"service_id\"=>0,\n\t\t\t\"service_name\"=>\"\",\n\t\t\t\"service_cost\"=>\"\",\n\n\t\t\t\"service_sys_account_id\"=>0,\n\t\t\t\"sys_account_name\"=>\"\",\n\t\t\t);\n\t}",
"public function __destruct() {\n\t\t\tparent::__destruct();\n\t\t\tunset($this->collection);\n\t\t}",
"protected function _clear()\n\t{\n\t\t$this->_query = null;\n\t\t$this->_set = null;\n\t\t$this->_where = null;\n\t\t$this->_limit = null;\n\t}",
"public function clearCOMConditions()\n {\n $this->collCOMConditions = null; // important to set this to NULL since that means it is uninitialized\n }",
"public function removeAll() {\n\t\t$this->addedObjects = new \\SplObjectStorage();\n\t\tforeach ($this->findAll() as $object) {\n\t\t\t$this->remove($object);\n\t\t}\n\t}",
"public function clear ()\n {\n\n $this->groups = null;\n $this->groups = array();\n $this->names = null;\n $this->names = array();\n\n }",
"public function clearAll() {}",
"public function clear()\n {\n if (null !== $this->getDraft()) {\n $this->getDraft()->clear();\n } else {\n $this->_subcontent->clear();\n $this->subcontentmap = array();\n $this->_data = array();\n $this->index = 0;\n }\n }",
"public function clearPermissaosRelatedByCoUsuarioCadastro()\n\t{\n\t\t$this->collPermissaosRelatedByCoUsuarioCadastro = null; // important to set this to NULL since that means it is uninitialized\n\t}",
"public function clearAllReferences($deep = false)\n {\n if ($deep && !$this->alreadyInClearAllReferencesDeep) {\n $this->alreadyInClearAllReferencesDeep = true;\n if ($this->collOperationPrestationss) {\n foreach ($this->collOperationPrestationss as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collOperationScenariis) {\n foreach ($this->collOperationScenariis as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collLnkOperationPrimeRCountriess) {\n foreach ($this->collLnkOperationPrimeRCountriess as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->aOperations instanceof Persistent) {\n $this->aOperations->clearAllReferences($deep);\n }\n if ($this->aRCurrencies instanceof Persistent) {\n $this->aRCurrencies->clearAllReferences($deep);\n }\n if ($this->aRRewardTypes instanceof Persistent) {\n $this->aRRewardTypes->clearAllReferences($deep);\n }\n if ($this->aRRewardExpeditionModes instanceof Persistent) {\n $this->aRRewardExpeditionModes->clearAllReferences($deep);\n }\n if ($this->aRRewardTransporters instanceof Persistent) {\n $this->aRRewardTransporters->clearAllReferences($deep);\n }\n\n $this->alreadyInClearAllReferencesDeep = false;\n } // if ($deep)\n\n if ($this->collOperationPrestationss instanceof PropelCollection) {\n $this->collOperationPrestationss->clearIterator();\n }\n $this->collOperationPrestationss = null;\n if ($this->collOperationScenariis instanceof PropelCollection) {\n $this->collOperationScenariis->clearIterator();\n }\n $this->collOperationScenariis = null;\n if ($this->collLnkOperationPrimeRCountriess instanceof PropelCollection) {\n $this->collLnkOperationPrimeRCountriess->clearIterator();\n }\n $this->collLnkOperationPrimeRCountriess = null;\n $this->aOperations = null;\n $this->aRCurrencies = null;\n $this->aRRewardTypes = null;\n $this->aRRewardExpeditionModes = null;\n $this->aRRewardTransporters = null;\n }",
"public function clearExperts()\n\t{\n\t\t$this->collExperts = null; // important to set this to NULL since that means it is uninitialized\n\t}",
"public function clear()\n {\n $this->dataStorage = [];\n }",
"public function clear()\n {\n $this->data = [];\n }",
"public function clear()\n\t{\n\t\t$this->venueid = null;\n\t\t$this->address = null;\n\t\t$this->address2 = null;\n\t\t$this->city = null;\n\t\t$this->province = null;\n\t\t$this->country = null;\n\t\t$this->latitude = null;\n\t\t$this->longitude = null;\n\t\t$this->phone = null;\n\t\t$this->name = null;\n\t\t$this->description = null;\n\t\t$this->website = null;\n\t\t$this->twitter = null;\n\t\t$this->facebook = null;\n\t\t$this->rssfeed = null;\n\t\t$this->closed = null;\n\t\t$this->lastfmid = null;\n\t\t$this->slug = null;\n\t\t$this->hasphotos = null;\n\t\t$this->submittedbyuser = null;\n\t\t$this->alreadyInSave = false;\n\t\t$this->alreadyInValidation = false;\n\t\t$this->clearAllReferences();\n\t\t$this->applyDefaultValues();\n\t\t$this->resetModified();\n\t\t$this->setNew(true);\n\t\t$this->setDeleted(false);\n\t}",
"public function clearCMDTAppareils()\n {\n $this->collCMDTAppareils = null; // important to set this to NULL since that means it is uninitialized\n }",
"public function clearAll()\n {\n }",
"public function clear(): void\n {\n $this->items = [];\n $this->length = 0;\n $this->cursor = 0;\n }",
"public function clear()\n {\n $this->conn->flushDb();\n }",
"public function clearAvaliacaoRespostaForums()\n\t{\n\t\t$this->collAvaliacaoRespostaForums = null; // important to set this to NULL since that means it is uninitialized\n\t}"
] | [
"0.6750238",
"0.6639179",
"0.65198493",
"0.6416884",
"0.63867074",
"0.6307864",
"0.6274599",
"0.6241243",
"0.61812353",
"0.61485565",
"0.6132217",
"0.607879",
"0.60750383",
"0.60667855",
"0.604218",
"0.60326314",
"0.6023424",
"0.59935606",
"0.59800345",
"0.5976338",
"0.5965882",
"0.5939288",
"0.59248805",
"0.5922895",
"0.5920474",
"0.588047",
"0.5872484",
"0.58715034",
"0.5867303",
"0.58653504",
"0.5856959",
"0.5854675",
"0.5850408",
"0.58391",
"0.58164907",
"0.58159685",
"0.58025175",
"0.58004963",
"0.5795654",
"0.5772232",
"0.5764598",
"0.5755111",
"0.575443",
"0.5745406",
"0.5724143",
"0.5714607",
"0.57028073",
"0.5702353",
"0.5694091",
"0.56806016",
"0.56806016",
"0.56806016",
"0.56806016",
"0.56779313",
"0.5667165",
"0.5661322",
"0.5657698",
"0.5657583",
"0.565256",
"0.56516236",
"0.5649391",
"0.5641487",
"0.5638585",
"0.5636378",
"0.5627578",
"0.56189907",
"0.5610687",
"0.56075734",
"0.55914664",
"0.5581146",
"0.557426",
"0.5562411",
"0.55579823",
"0.5534017",
"0.550335",
"0.5499912",
"0.5498595",
"0.54927367",
"0.5490367",
"0.5487392",
"0.5485924",
"0.5476948",
"0.5475202",
"0.54738766",
"0.5459532",
"0.54552805",
"0.5455164",
"0.5453409",
"0.54500943",
"0.5449679",
"0.5449274",
"0.5444721",
"0.54419184",
"0.54325867",
"0.5432503",
"0.54320604",
"0.54190433",
"0.5416683",
"0.5411047",
"0.54088455"
] | 0.7762139 | 0 |
reset is the collOperationScenariis collection loaded partially | public function resetPartialOperationScenariis($v = true)
{
$this->collOperationScenariisPartial = $v;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function clearOperationScenariis()\n {\n $this->collOperationScenariis = null; // important to set this to null since that means it is uninitialized\n $this->collOperationScenariisPartial = null;\n\n return $this;\n }",
"public function clearCollection()\n {\n $this->collections = [];\n }",
"public function resetCollectionsForPersist()\n {\n $this->containers = new ArrayCollection();\n $this->functions = new ArrayCollection();\n $this->constants = new ArrayCollection();\n }",
"function reset(){\n\t\t$this->__columns = array();\n\t\t$this->__actions = array();\n\t}",
"public function refresh()\n {\n $this->_totalCount = null;\n $this->_models = null;\n $this->_keys = null;\n }",
"public function clearOperationPrestationss()\n {\n $this->collOperationPrestationss = null; // important to set this to null since that means it is uninitialized\n $this->collOperationPrestationssPartial = null;\n\n return $this;\n }",
"public function reset()\n\t{\n\t\t$this->queries = [];\n\t\t$this->count = [\n\t\t\t'total' => 0, 'slow' => 0, 'select' => 0, 'insert' => 0, 'update' => 0, 'delete' => 0, 'other' => 0\n\t\t];\n\n\t\t$this->modelsActions = [];\n\t\t$this->modelsCount = [\n\t\t\t'retrieved' => [], 'created' => [], 'updated' => [], 'deleted' => []\n\t\t];\n\n\t\t$this->nextQueryModel = null;\n\t}",
"function reset() {\n\t\tparent::_resetSet();\n\t}",
"public function reset() {\n $this->entitiescount = 0;\n }",
"public function resetLookupCollections()\n\t{\n\t\t$this->lookupCollections[] = null;\n\t}",
"private function reset()\n\t{\t\t\n\t\t$this->limit = null;\n\t\t\n\t\t$this->table = null;\n\t\t\n\t\t$this->offset = null;\n\t\t\n\t\t$this->data = [];\n\t\t\n\t\t$this->joins = [];\n\t\t\n\t\t$this->wheres = [];\n\t\t\n\t\t$this->orderBy = [];\n\t\t\n\t\t$this->selects = [];\n\t\t\n\t\t$this->bindings = [];\n\t\t\t\n\t}",
"public function reset()\n {\n $this->values[self::RES] = array();\n }",
"public function reset()\n\t{\n\t\t$this->get(1);\n\t}",
"public function clear() {\n $this->collection = [];\n $this->noteCollectionChanged();\n }",
"public function reset(): void\n {\n $this->_add = new SplObjectStorage();\n $this->_delete = new SplObjectStorage();\n }",
"public function reset() {\n\t\t\t$this->arList = NULL; \t\n\t\t}",
"private function resetAll(){\n $this->score = ['heritage'=> 0,'relax'=> 0,'sightseeing'=> 0,'weather'=> 0,'populated'=> 0];\n $this->answeredQuestions = [];\n $this->answersId = [];\n }",
"function clear() {\r\n /* clear datasource. you should call this before calling another populate() to avoid datasource gets appended\r\n */\r\n $this->ds = new DataSource;\r\n $this->db_count = 0;\r\n }",
"protected function reset() {\n //query builder reset\n $this->queryBuilder->reset();\n $this->numRows = 0;\n $this->insertId = null;\n $this->query = null;\n $this->result = array();\n $this->data = array();\n $this->queryCount = 0;\n }",
"public static function reset()\n {\n self::$toLoad = array();\n }",
"protected function reset() {\n\t\t$this->data = array();\n\t}",
"public function reset()\n {\n $this->hasLimit = false;\n $this->limit = 0;\n $this->offset = 0;\n $this->orderColumns = array();\n parent::reset();\n }",
"public function reset()\n {\n $this->values[self::_RESULT] = null;\n $this->values[self::_RSEED] = null;\n $this->values[self::_HERO_BASES] = array();\n $this->values[self::_HERO_DYNAS] = array();\n }",
"function Reset()\n\t{\t$this->details = array();\n\t\t$this->courses = array();\n\t\t$this->id = 0;\n\t}",
"public function reset()\n {\n $this->values[self::_OPPOS] = array();\n }",
"public function reset()\n {\n $this->data = array();\n }",
"protected function resetSynchronised()\n {\n /*\n * Lists\n */\n\n /** @var $lists Laposta_Connect_Model_Mysql4_List_Collection */\n $lists = Mage::getModel('lapostaconnect/list')->getCollection();\n\n /** @var $list Laposta_Connect_Model_List */\n foreach ($lists as $list) {\n $list->setLapostaId('');\n $list->setWebhookToken('');\n $list->setSyncTime(null);\n }\n\n $lists->save();\n\n Mage::helper('lapostaconnect')->log('Lists reset OK.');\n\n /*\n * Fields\n */\n\n $fields = Mage::getModel('lapostaconnect/field')->getCollection();\n\n /** @var $field Laposta_Connect_Model_Field */\n foreach ($fields as $field) {\n $field->setLapostaId('');\n $field->setLapostaTag('');\n $field->setSyncTime(null);\n }\n\n $fields->save();\n\n Mage::helper('lapostaconnect')->log('Fields reset OK.');\n\n /*\n * Subscribers\n */\n\n /** @var $subscribers Laposta_Connect_Model_Mysql4_Subscriber_Collection */\n $subscribers = Mage::getModel('lapostaconnect/subscriber')->getCollection();\n\n /** @var $subscriber Laposta_Connect_Model_Subscriber */\n foreach ($subscribers as $subscriber) {\n $subscriber->setLapostaId('');\n $subscriber->setSyncTime(null);\n }\n\n $subscribers->save();\n\n Mage::helper('lapostaconnect')->log('Subscribers reset OK.');\n }",
"public function clear()\n {\n $this->collection->clear();\n $this->keys = [];\n }",
"public function reset() {\n $this->databasefieldcount = 0;\n $this->databaserecordcount = 0;\n\n parent::reset();\n }",
"public function reset()\n {\n $this->values[self::_GUILDS] = array();\n $this->values[self::_RESULT] = null;\n $this->values[self::_CREATE_COST] = null;\n }",
"public function clearMembros()\n\t{\n\t\t$this->collMembros = null; // important to set this to NULL since that means it is uninitialized\n\t}",
"public function reset()\n {\n $this->_contacts = [];\n $this->_lists = [];\n }",
"public function clearOffensives()\n\t{\n\t\t$this->collOffensives = null; // important to set this to NULL since that means it is uninitialized\n\t}",
"public function reset()\n {\n $this->values[self::_RESULT] = null;\n $this->values[self::_HERO] = null;\n $this->values[self::_ITEMS] = array();\n }",
"public function reset(): void\n {\n $this->set([]);\n }",
"public function reset() {\n $this->setEntities([]);\n $this->setLinks([]);\n $this->setMetadata([]);\n $this->setIncludes([]);\n $this->setDynamic();\n $this->setCacheability(new CacheableMetadata());\n }",
"public function reset()\n {\n $this->values[self::_GUILDS] = null;\n $this->values[self::_RESULT] = null;\n $this->values[self::_CREATE_COST] = null;\n }",
"public function reset_rezultati()\n {\n $query = $this->query(\"SELECT * FROM rezultati;\");\n foreach ($query->getResultArray() as $row)\n {\n $this->delete($row['idrezultati']);\n }\n }",
"public function reset()\n {\n $this->values[self::_COMP] = array();\n }",
"public function reset(){}",
"public function clearOpenids()\n\t{\n\t\t$this->collOpenids = null; // important to set this to NULL since that means it is uninitialized\n\t}",
"function clear(){\n \t\t$this->result = array();\n \t}",
"protected function reset()\n {\n $this->iterator->rewind();\n }",
"public function reset()\n {\n $this->values[self::_ITEM_ID] = null;\n $this->values[self::_NUM] = null;\n $this->values[self::_STATE] = null;\n $this->values[self::_APPLY_NUM] = null;\n $this->values[self::_ABLE_APP_COUNT] = null;\n }",
"public function reset()\n {\n $this->values[self::services] = array();\n $this->values[self::mapping] = array();\n $this->values[self::short_tcp] = self::$fields[self::short_tcp]['default'];\n }",
"public function reset()\n {\n $this->values[self::_RESULT] = null;\n $this->values[self::_ITEMS] = array();\n $this->values[self::_HERO] = array();\n $this->values[self::_DIAMOND] = null;\n }",
"public function reset()\n {\n $this->values[self::_PER] = null;\n $this->values[self::_ITEMS] = array();\n }",
"public function clear() {\n $this->_documentBoost = FALSE;\n\n $this->_fields = array();\n $this->_fieldBoosts = array();\n }",
"public static function reset() {\n\t\tself::$objects = array();\n\t}",
"public function clearNoticias()\n\t{\n\t\t$this->collNoticias = null; // important to set this to NULL since that means it is uninitialized\n\t}",
"public function reset()\n {\n // reset properties\n $this->query = '';\n $this->rewind();\n \n // release result resource\n if (!empty($this->db) && !empty($this->result) &&\n is_resource($this->db) && is_resource($this->result)) {\n $this->free_result();\n }\n }",
"public function resetData();",
"private function reset(){\n\n\t\tforeach($this as $k=>$v) unset($this->$k);\n\n\t\t$this::$map = $this->maper();\n\n\t\t$this->name = \"\";\n\n\t\t$this->address = [];\n\n\t\t$this->tableclass();\n\n\t}",
"function reset() {\n\n\t\treturn $this->iterator->reset();\n\n\t}",
"public function clearItems()\n {\n $this->collItems = null; // important to set this to NULL since that means it is uninitialized\n }",
"public function reset()\n {\n $this->values[self::_RESULT] = null;\n $this->values[self::_SHOP] = null;\n }",
"public function delete_all() {\n\t\t$this->_cache = array();\n\t\t$this->_collections = array();\n\t}",
"protected function reset() {}",
"protected function reset() {}",
"protected function reset() {}",
"function reset_data() {\n\t\t$this->data_layer()->clear();\n\t\t$this->log = null;\n\t\t$this->location = null;\n\t\t$this->tax_location = null;\n\t}",
"public function reset()\n {\n $this->values[self::_RESULT] = null;\n $this->values[self::_SHOP] = null;\n $this->values[self::_SSHOP] = null;\n }",
"public function reset()\n {\n $this->values[self::sku_arr] = array();\n $this->values[self::pagination] = null;\n }",
"public function reset() {\n $this->values[self::TOTAL] = null;\n $this->values[self::COUNT] = null;\n $this->values[self::TOTAL_BUSLINE_NUM] = null;\n $this->values[self::AREAID] = null;\n }",
"protected function _resetData()\n\t{\n\n\t\t// clean data, total and pagination, as we need them rebuilt\n\t\t$this->_data = null;\n\t\t$this->_total = null;\n\t\t$this->_pagination = null;\n\t}",
"public function reset()\n {\n // don't start a new session to remove something that isn't there\n $this->lazyStart();\n $this->_store = array();\n }",
"function restablecer()\n {\n $this->_datos = null;\n $this->_errores = array();\n }",
"public function reset()\n {\n $this->values[self::_RESULT] = null;\n $this->values[self::_RSEED] = null;\n }",
"public function clearColetaPesquisas()\n\t{\n\t\t$this->collColetaPesquisas = null; // important to set this to NULL since that means it is uninitialized\n\t}",
"public function reset()\n {\n $this->values[self::_SUMMARY] = array();\n $this->values[self::_TIMEOUT] = null;\n $this->values[self::_ITEM_COUNT] = null;\n $this->values[self::_RANK] = null;\n $this->values[self::_ITEM_ID] = null;\n $this->values[self::_JUMP_TIMES] = null;\n $this->values[self::_COST_MONEY] = null;\n }",
"public function resetUC() {}",
"public function reset()\n {\n $this->values[self::_ACQUIRE] = array();\n }",
"protected function _clear()\n\t{\n\t\t$this->_query = null;\n\t\t$this->_set = null;\n\t\t$this->_where = null;\n\t\t$this->_limit = null;\n\t}",
"public function reset()\n {\n $this->values[self::_ID] = null;\n $this->values[self::_EXPIRE_TIME] = null;\n $this->values[self::_STAR_GOODS] = array();\n }",
"public function reset()\n {\n $this->_metaData = array();\n $this->_columnMap = array();\n }",
"public function reset(): void\n {\n $this->data = [];\n $this->relationships = [];\n }",
"public function resetCaches() {\n $this->datasource = NULL;\n $this->server_object = NULL;\n $this->callbacks = NULL;\n $this->processors = NULL;\n $this->added_properties = NULL;\n $this->fields = array();\n $this->fulltext_fields = array();\n }",
"public function clearPesquisas()\n\t{\n\t\t$this->collPesquisas = null; // important to set this to NULL since that means it is uninitialized\n\t}",
"public function resetData()\r\n {\r\n }",
"public function clearRatings()\n {\n $this->collRatings = null; // important to set this to NULL since that means it is uninitialized\n }",
"public function reset(): void\n {\n $this->data = [];\n }",
"private function reset_state() {\n\n\t\t\tglobal $ld_qs_api_vars;\n\t\t\t/**\n\t\t\t * Reset the state only if we have some data in memory upfront\n\t\t\t * because embed will be called only when there is valid data\n\t\t\t * available in memory.\n\t\t\t */\n\t\t\tif ( ! empty( $this->stat_refs ) ) {\n\t\t\t\t$GLOBALS['ld_qs_api_vars'] = $ld_qs_api_vars ? $ld_qs_api_vars : array();\n\t\t\t\t$object_vars = get_object_vars( $this );\n\t\t\t\t$GLOBALS['ld_qs_api_vars'][] = $object_vars;\n\n\t\t\t\tforeach ( $object_vars as $property => $var ) {\n\n\t\t\t\t\tswitch ( gettype( $var ) ) {\n\n\t\t\t\t\t\tcase 'integer':\n\t\t\t\t\t\t\t$this->$property = 0;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'string':\n\t\t\t\t\t\t\t$this->$property = '';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'array':\n\t\t\t\t\t\t\t$this->$property = array();\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t$this->$property = null;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"public function clearRespostaForums()\n\t{\n\t\t$this->collRespostaForums = null; // important to set this to NULL since that means it is uninitialized\n\t}",
"public function clearOperations()\n {\n $this->_operations = array();\n\n return $this;\n }",
"public function clearQuestions()\n\t{\n\t\t$this->collQuestions = null; // important to set this to NULL since that means it is uninitialized\n\t}",
"public function reset()\n {\n $this->values[self::_RSEED] = null;\n $this->values[self::_LOOTS] = array();\n }",
"public function reset()\n {\n foreach (self::AvailableCoins as $aCoin) {\n \t $sProperty = $aCoin['name'];\n $this->$sProperty = 0;\n }\n }",
"public function reset()\n {\n $this->values[self::_ID] = null;\n $this->values[self::_PROGRESS] = null;\n $this->values[self::_BEGIN_TIME] = null;\n $this->values[self::_REST_TIMES] = null;\n $this->values[self::_CUR_STAGE_ID] = null;\n }",
"public function reset()\n {\n $this->values[self::_SUMMARY] = array();\n $this->values[self::_SELF_RANKING] = null;\n $this->values[self::_SELF_SUMMARY] = null;\n }",
"public function reset() {}",
"public function reset() {}",
"public function reset() {}",
"public function reset() {}",
"public function reset() {}",
"public function reset() {}",
"public function reset() {}",
"public function reset() {}",
"public function reset() {}",
"public function reset() {}",
"public function reset()\n {\n $this->values[self::_ITEMS] = array();\n $this->values[self::_RAID_ID] = null;\n $this->values[self::_APPLY_ITEM_ID] = null;\n $this->values[self::_RANK] = null;\n }"
] | [
"0.69275177",
"0.66854936",
"0.66179174",
"0.65331805",
"0.6417642",
"0.64128906",
"0.6391318",
"0.6365897",
"0.6365301",
"0.63484204",
"0.62427276",
"0.62373096",
"0.6207748",
"0.62046844",
"0.62031317",
"0.6163006",
"0.61584747",
"0.6088915",
"0.60807824",
"0.60714227",
"0.6071388",
"0.6066711",
"0.6051142",
"0.60112435",
"0.60095704",
"0.6001612",
"0.60001796",
"0.5991501",
"0.5986173",
"0.59842753",
"0.59747607",
"0.5973358",
"0.59583974",
"0.59568554",
"0.5939082",
"0.59388745",
"0.59373987",
"0.5920751",
"0.59184283",
"0.59134424",
"0.59028405",
"0.5892302",
"0.588822",
"0.58857495",
"0.5882764",
"0.5873559",
"0.58730656",
"0.5871067",
"0.58664966",
"0.585307",
"0.5852118",
"0.5850698",
"0.584246",
"0.5839945",
"0.5836473",
"0.5825688",
"0.5821564",
"0.58170325",
"0.5815957",
"0.58156276",
"0.5806955",
"0.5802483",
"0.57880163",
"0.57875216",
"0.57874507",
"0.57855415",
"0.5785426",
"0.5784912",
"0.5783864",
"0.5782226",
"0.5781407",
"0.5777811",
"0.5766587",
"0.57650614",
"0.576077",
"0.5756815",
"0.57549393",
"0.5754455",
"0.57535",
"0.57501835",
"0.5746539",
"0.5742774",
"0.57407725",
"0.5736618",
"0.57362205",
"0.5735108",
"0.57335097",
"0.5730953",
"0.5728305",
"0.5725168",
"0.5725168",
"0.5725168",
"0.5725168",
"0.5725168",
"0.5725168",
"0.5725168",
"0.57250535",
"0.57250535",
"0.57250535",
"0.5722854"
] | 0.6067914 | 21 |
Initializes the collOperationScenariis collection. By default this just sets the collOperationScenariis collection to an empty array (like clearcollOperationScenariis()); however, you may wish to override this method in your stub class to provide setting appropriate to your application for example, setting the initial array to the values stored in database. | public function initOperationScenariis($overrideExisting = true)
{
if (null !== $this->collOperationScenariis && !$overrideExisting) {
return;
}
$this->collOperationScenariis = new PropelObjectCollection();
$this->collOperationScenariis->setModel('OperationScenarii');
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function setOperationScenariis(PropelCollection $operationScenariis, PropelPDO $con = null)\n {\n $operationScenariisToDelete = $this->getOperationScenariis(new Criteria(), $con)->diff($operationScenariis);\n\n\n $this->operationScenariisScheduledForDeletion = $operationScenariisToDelete;\n\n foreach ($operationScenariisToDelete as $operationScenariiRemoved) {\n $operationScenariiRemoved->setOperationPrimes(null);\n }\n\n $this->collOperationScenariis = null;\n foreach ($operationScenariis as $operationScenarii) {\n $this->addOperationScenarii($operationScenarii);\n }\n\n $this->collOperationScenariis = $operationScenariis;\n $this->collOperationScenariisPartial = false;\n\n return $this;\n }",
"public function clearOperationScenariis()\n {\n $this->collOperationScenariis = null; // important to set this to null since that means it is uninitialized\n $this->collOperationScenariisPartial = null;\n\n return $this;\n }",
"public function getOperationScenariis($criteria = null, PropelPDO $con = null)\n {\n $partial = $this->collOperationScenariisPartial && !$this->isNew();\n if (null === $this->collOperationScenariis || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collOperationScenariis) {\n // return empty collection\n $this->initOperationScenariis();\n } else {\n $collOperationScenariis = OperationScenariiQuery::create(null, $criteria)\n ->filterByOperationPrimes($this)\n ->find($con);\n if (null !== $criteria) {\n if (false !== $this->collOperationScenariisPartial && count($collOperationScenariis)) {\n $this->initOperationScenariis(false);\n\n foreach ($collOperationScenariis as $obj) {\n if (false == $this->collOperationScenariis->contains($obj)) {\n $this->collOperationScenariis->append($obj);\n }\n }\n\n $this->collOperationScenariisPartial = true;\n }\n\n $collOperationScenariis->getInternalIterator()->rewind();\n\n return $collOperationScenariis;\n }\n\n if ($partial && $this->collOperationScenariis) {\n foreach ($this->collOperationScenariis as $obj) {\n if ($obj->isNew()) {\n $collOperationScenariis[] = $obj;\n }\n }\n }\n\n $this->collOperationScenariis = $collOperationScenariis;\n $this->collOperationScenariisPartial = false;\n }\n }\n\n return $this->collOperationScenariis;\n }",
"public function initOperationPrestationss($overrideExisting = true)\n {\n if (null !== $this->collOperationPrestationss && !$overrideExisting) {\n return;\n }\n $this->collOperationPrestationss = new PropelObjectCollection();\n $this->collOperationPrestationss->setModel('OperationPrestations');\n }",
"public function initialize()\n {\n $this->setSchema(\"cisystem\");\n }",
"public function initRightss()\n {\n $this->collRightss = new ObjectCollection();\n $this->collRightssPartial = true;\n\n $this->collRightss->setModel('\\Rights');\n }",
"public function initShoppingCarts()\n\t{\n\t\t$this->collShoppingCarts = array();\n\t}",
"public function setOperationPrestationss(PropelCollection $operationPrestationss, PropelPDO $con = null)\n {\n $operationPrestationssToDelete = $this->getOperationPrestationss(new Criteria(), $con)->diff($operationPrestationss);\n\n\n $this->operationPrestationssScheduledForDeletion = $operationPrestationssToDelete;\n\n foreach ($operationPrestationssToDelete as $operationPrestationsRemoved) {\n $operationPrestationsRemoved->setOperationPrimes(null);\n }\n\n $this->collOperationPrestationss = null;\n foreach ($operationPrestationss as $operationPrestations) {\n $this->addOperationPrestations($operationPrestations);\n }\n\n $this->collOperationPrestationss = $operationPrestationss;\n $this->collOperationPrestationssPartial = false;\n\n return $this;\n }",
"public function initOpenids()\n\t{\n\t\t$this->collOpenids = array();\n\t}",
"public function initialize()\n {\n if (is_null($this->images)) {\n $this->images = new ArrayCollection();\n }\n }",
"public function init($universo, $solucao) {\r\n $this->universo = $universo;\r\n $this->solucao = $solucao;\r\n\r\n //itera atraves dos elementos do universo e avalia se a solucao consegue identificar algum.\r\n //$this->universo->elementos = $this->universo->elementos;\r\n // README: Enquanto no Java os objetos podem ser usados como indices de Array, o PHP Array tem limitacao para aceitar isso\r\n // Para contornar esse problema, sera usada a classe SplObjectStorage como \"array\" para armazenar os objetos no indice do array.\r\n // Reference: https://stackoverflow.com/questions/4642980/can-i-use-an-instantiated-object-as-an-array-key?lq=1\r\n\r\n $this->elemParticao = new SplObjectStorage();\r\n $this->elemResposta = new SplObjectStorage();\r\n $this->particoes = new SplObjectStorage();\r\n\r\n $estagios = $this->solucao->condicoes; //aqui nos representamos estagios em lugar de condicoes (como o icomb faz)\r\n\r\n foreach ($this->universo->elementos as $elemento) {\r\n foreach ($estagios as $estagio) {\r\n// print_r($estagio);\r\n if ($estagio->evaluate($elemento)) {\r\n\r\n $valor = $this->splSearchWithKey($this->elemParticao, $elemento);\r\n if (isset($valor)) {\r\n //throw new RuntimeException(I18n.getString(\"evaluationMessage01\"));\r\n die('evaluationMessage01');\r\n } else {\r\n\r\n $this->elemParticao[$elemento] = $estagio;\r\n\r\n $set = array();\r\n if (isset($this->particoes[$estagio])) {\r\n $set = $this->particoes[$estagio];\r\n }\r\n\r\n $set[] = $elemento;\r\n $this->particoes[$estagio] = $set;\r\n }\r\n }\r\n }\r\n }\r\n }",
"public function _construct(){\n $this->KcsPoll = new ArrayCollection();\n }",
"public function addOperationScenarii(OperationScenarii $l)\n {\n if ($this->collOperationScenariis === null) {\n $this->initOperationScenariis();\n $this->collOperationScenariisPartial = true;\n }\n\n if (!in_array($l, $this->collOperationScenariis->getArrayCopy(), true)) { // only add it if the **same** object is not already associated\n $this->doAddOperationScenarii($l);\n\n if ($this->operationScenariisScheduledForDeletion and $this->operationScenariisScheduledForDeletion->contains($l)) {\n $this->operationScenariisScheduledForDeletion->remove($this->operationScenariisScheduledForDeletion->search($l));\n }\n }\n\n return $this;\n }",
"protected function init()\n {\n $this->totais = [\n 'liquidados' => 0,\n 'entradas' => 0,\n 'baixados' => 0,\n 'protestados' => 0,\n 'erros' => 0,\n 'alterados' => 0,\n ];\n }",
"protected function init()\n {\n $this->totais = [\n 'liquidados' => 0,\n 'entradas' => 0,\n 'baixados' => 0,\n 'protestados' => 0,\n 'erros' => 0,\n 'alterados' => 0,\n ];\n }",
"public function initRegions()\n {\n $this->collRegions = new PropelObjectCollection();\n $this->collRegions->setModel('Region');\n }",
"public function initialize()\n {\n $this->setSchema(\"calculadoras\");\n $this->setSource(\"paises\");\n }",
"public function __construct() {\n $this->disciplinas = new \\Doctrine\\Common\\Collections\\ArrayCollection();\n $this->tendencias = new \\Doctrine\\Common\\Collections\\ArrayCollection();\n $this->institucionalEstrategias = new \\Doctrine\\Common\\Collections\\ArrayCollection();\n $this->ofertas = new \\Doctrine\\Common\\Collections\\ArrayCollection();\n $this->estrategiaCampos = new \\Doctrine\\Common\\Collections\\ArrayCollection();\n $this->eventos = new \\Doctrine\\Common\\Collections\\ArrayCollection();\n $this->encuestas = new \\Doctrine\\Common\\Collections\\ArrayCollection();\n }",
"public function initialize()\n {\n $this->setSchema(\"sistema\");\n $this->setSource(\"comentarios\");\n $this->belongsTo('id_usuario', '\\Usuarios', 'id_usuario', ['alias' => 'Usuarios']);\n $this->belongsTo('id_reporte', '\\Reporte', 'id_reporte', ['alias' => 'Reporte']);\n }",
"function init($ArrDatos = false){\n\t\t$D = array();\n\t\tif( setNoMenorQueCero($this->mCodigo) <= 0 ){\n\t\t\t$this->mSocioIniciado\t\t= false;\n\t\t} else {\n\t\t\tif ($ArrDatos == false OR !is_array($ArrDatos) ){\n\t\t\t\t$sql = \"SELECT * FROM socios_general WHERE codigo=\" . $this->mCodigo . \" LIMIT 0,1\";\n\t\t\t\t$D\t\t= obten_filas($sql);\n\t\t\t} else {\n\t\t\t\t$D\t\t= $ArrDatos;\n\t\t\t}\n\t\t\tif(isset($D[\"codigo\"])){\n\t\t\t\t$xSoc\t\t= new cSocios_general();\n\t\t\t\t$xSoc->setData($D);\n\t\t\t\t/*\t\tfechaentrevista, fechaalta, estatusactual, region, cajalocal,\n\t\t\t\t,genero, eacp, observaciones, idusuario\n\t\t\t\t grupo_solidario, personalidad_juridica,\n\t\t\t\tregimen_conyugal, sucursal, fecha_de_revision */\n\t\t\t\t$this->mNombre\t\t\t\t= $D[\"nombrecompleto\"];\n\t\t\t\t$this->mApMaterno\t\t\t= $D[\"apellidomaterno\"];\n\t\t\t\t$this->mApPaterno\t\t\t= $D[\"apellidopaterno\"];\n\t\t\t\t$this->mTipoDeIngreso\t\t= $D[\"tipoingreso\"];\n\t\t\t\t$this->mEstadoCivil\t\t\t= $D[\"estadocivil\"];\n\t\t\t\t$this->mGrupoAsociado\t\t= $D[\"grupo_solidario\"];\n\t\t\t\t$this->mCajaLocal\t\t\t= $D[\"cajalocal\"];\n\t\t\t\t$this->mDependencia\t\t\t= $D[\"dependencia\"];\n\t\t\t\t$this->mRFC\t\t\t\t\t= $D[\"rfc\"];\n\t\t\t\t$this->mCURP\t\t\t\t= $D[\"curp\"];\n\t\t\t\t$this->mPropietario\t\t\t= $D[\"idusuario\"];\n\t\t\t\t$this->mFechaDeIngreso\t\t= $D[\"fechaalta\"];\n\t\t\t\t$this->mTipoDeIdent\t\t\t= $D[\"tipo_de_identificacion\"];\n\t\t\t\t$this->mNumeroDeIdent\t\t= $D[\"documento_de_identificacion\"];\n\t\t\t\t$this->mEmail\t\t\t\t= $D[\"correo_electronico\"];\n\t\t\t\t$this->mTelefonoP\t\t\t= $D[\"telefono_principal\"];\n\t\t\t\t$this->mDependientes\t\t= $D[\"dependientes_economicos\"];\n\t\t\t\t$this->mSucursal\t\t\t= $D[\"sucursal\"];\n\t\t\t\t//Agrega Valores de array pedidos\n\t\t\t\t$D[\"fecha_de_nacimiento\"]\t= $D[\"fechanacimiento\"];\n\t\t\t\t$D[\"codigo_de_socio\"]\t\t= $D[\"codigo\"];\n\t\t\t\t$this->mFechaDeNacimiento\t= $D[\"fechanacimiento\"];\n\t\t\t\t$this->mTipoFiguraJu\t\t= $D[\"personalidad_juridica\"];\n\t\t\t\t$this->mLugarDeNacimiento\t= $D[\"lugarnacimiento\"];\n\t\t\t\t$this->mTituloPersona\t\t= $xSoc->titulo_personal()->v();\n\t\t\t\t$this->mPaisDeOrigen\t\t= strtoupper($xSoc->pais_de_origen()->v(OUT_TXT));\n\t\t\t\t$this->mGenero\t\t\t\t= $xSoc->genero()->v();\n\t\t\t\t$this->mNivelDeRiesgo\t\t= $xSoc->nivel_de_riesgo_aml()->v();\n\t\t\t\t$this->mObservaciones\t\t= $xSoc->observaciones()->v(OUT_TXT);\n\t\t\t\t$this->mEstadoActual\t\t= $xSoc->estatusactual()->v();\n\t\t\t\t//\n\t\t\t\t$this->mDSocioByArray\t\t= $D;\n\t\t\t\t//return\t$D;\n\t\t\t\t$this->mSocioIniciado\t\t= true;\n\t\t\t}\n\t\t}\n\t\tif($this->mSocioIniciado == false){ $this->mMessages\t.= \"ERROR\\tAl Iniciar a la persona : \" . $this->mCodigo . \"\\r\\n\";}\n\t\treturn $this->mSocioIniciado;\n\t}",
"public function __construct()\n {\n $this->placas = new ArrayCollection();\n }",
"public function __construct()\n {\n $this->recepten = new ArrayCollection();\n }",
"public function init()\n {\n $this->bases = new \\Doctrine\\Common\\Collections\\ArrayCollection();\n }",
"public function initialize()\n {\n $this->setSchema(\"sistema\");\n $this->setSource(\"rol\");\n $this->hasMany('id_rol', 'Usuarios', 'id_rol', ['alias' => 'Usuarios']);\n }",
"public function __construct() {\n $this->bestellijn = new ArrayCollection();\n }",
"protected function initRoles()\n {\n $this->roles = new ArrayCollection();\n }",
"public function initVpoRequestCargos()\n\t{\n\t\t$this->collVpoRequestCargos = array();\n\t}",
"public function initColetaPesquisas($overrideExisting = true)\n\t{\n\t\tif (null !== $this->collColetaPesquisas && !$overrideExisting) {\n\t\t\treturn;\n\t\t}\n\t\t$this->collColetaPesquisas = new PropelObjectCollection();\n\t\t$this->collColetaPesquisas->setModel('ColetaPesquisa');\n\t}",
"public function initQuestions()\n\t{\n\t\t$this->collQuestions = array();\n\t}",
"public function getCodigoSucursalSII()\n {\n return $this->codigoSucursalSII;\n }",
"public function init() {\n\t\tparent::init();\n\t\tlist(, $this->roots) = Ola_Service_Area::getsBy(array('root_id'=>0, 'parent_id'=>0), array('sort'=>'DESC' ,'id'=>'DESC'));\n\t\tlist(, $this->parents) = Ola_Service_Area::getsBy(array('root_id'=>array('!=', 0), 'parent_id'=>0), array('sort'=>'DESC', 'id'=>'DESC'));\n\t}",
"public function initializeObject()\n {\n $operationsAndFinalOperationNames = static::buildOperationsAndFinalOperationNames($this->objectManager);\n $this->operations = $operationsAndFinalOperationNames[0];\n $this->finalOperationNames = $operationsAndFinalOperationNames[1];\n }",
"public function __construct() {\n $this->columnas = new ArrayCollection();\n }",
"public function initFiles()\n\t{\n\t\tif ($this->collFiles === null) {\n\t\t\t$this->collFiles = array();\n\t\t}\n\t}",
"public function __construct() {\n\n\t\t$this->contenuto=array();\n\t\t$this->quantita=array();\n }",
"public function init()\n {\n $this->setProcessor(new NoticesDBProcessor());\n }",
"public function initialize()\n {\n $this->setSchema(\"cubicfox\");\n $this->setSource(\"rates\");\n\n $this->hasManyToMany(\n \"id\",\n \"Users\",\n \"user_id\", \n \"product_id\",\n \"Products\",\n \"id\"\n );\n }",
"public function initialize(){\n $this->setSchema(\"\");\n }",
"function initAsSpecimen()\n\t{\n\t\t$this->id=0;\n\n\t\t$this->fk_commande='';\n\t\t$this->fk_product='';\n\t\t$this->fk_commandefourndet='';\n\t\t$this->qty='';\n\t\t$this->fk_entrepot='';\n\t\t$this->fk_user='';\n\t\t$this->datec='';\n\t\t$this->comment='';\n\t\t$this->status='';\n\t\t$this->tms='';\n\t\t$this->batch='';\n\t\t$this->eatby='';\n\t\t$this->sellby='';\n\n\n\t}",
"public function initialize()\n {\n $this->setSchema(\"\");\n }",
"public function initialize()\n {\n $this->setSchema(\"\");\n }",
"public function initialize()\n {\n $this->setSchema(\"\");\n }",
"public function initInappropriates()\n\t{\n\t\t$this->collInappropriates = array();\n\t}",
"public function initTranscodings()\n\t{\n\t\tif ($this->collTranscodings === null) {\n\t\t\t$this->collTranscodings = array();\n\t\t}\n\t}",
"public function initialize()\n {\n $this->setSchema(\"dia_sin_iva\");\n $this->setSource(\"terceros_descuentos_sin_impuestos\");\n $this->belongsTo('cod_descuento_sin_impuesto', 'App\\Models\\DescuentosSinImpuestos', 'cod', ['alias' => 'DescuentosSinImpuestos']);\n $this->belongsTo('cod_producto', 'App\\Models\\Productos', 'cod', ['alias' => 'Productos']);\n }",
"public function __construct(SocioRepository $socios)\n {\n $this->socios = $socios;\n }",
"public function initStudentQuestionsRelatedByStudentId()\n\t{\n\t\t$this->collStudentQuestionsRelatedByStudentId = array();\n\t}",
"public function initialize()\n {\n $this->setConnectionService('mongo');\n }",
"public function __construct()\n {\n $this->inscriptions = new ArrayCollection();\n }",
"public function __construct()\n {\n $this->programs = new ArrayCollection();\n }",
"public function __construct()\n {\n $this->programs = new ArrayCollection();\n }",
"public function clearOperationPrestationss()\n {\n $this->collOperationPrestationss = null; // important to set this to null since that means it is uninitialized\n $this->collOperationPrestationssPartial = null;\n\n return $this;\n }",
"public function init()\n {\n parent::init();\n\n $this->setCollection($this->collectionName);\n $this->_options = array(\n 'fsync' => $this->fsync\n , 'safe' => $this->safe\n );\n if (!is_null($this->timeout))\n {\n $this->_options['timeout'] = $this->timeout;\n }\n }",
"function __construct(){\n $this->valorBruto = 0;\n $this->valorImpostos = 0;\n\n $this->itens = array(); // gera um array pra guardar os itens\n $this->acoesAoGerar = array();\n }",
"protected function doInitialize() : void\n {\n $this->collection = $this->collectionOnInitialization;\n }",
"public function init()\n {\n $ar = array();\n for ($i = 0; $i < 20; $i++)\n {\n $ar[] = $i;\n }\n }",
"public function __construct()\n {\n $this->questions = new ArrayCollection();\n $this->openids = new ArrayCollection();\n $this->createdAt = new \\DateTime();\n }",
"public function get_all_cajeros()\n { \n $this->parametros = array();\n $this->sp = \"str_consultacajeros\";\n $this->executeSPConsulta();\n\n if (count($this->rows)<=0){\n $this->mensaje=\"No existen niveles economicos en la BD.\";\n array_pop($rol);\n array_push($rol, array(0 => -1, \n 1 => 'Seleccione...',\n 3 => ''));\n\t\t\t\n }else{\n $rol = array();\n\n array_pop($rol);\n array_push($rol, array(0 => -1, \n 1 => 'Seleccione...',\n 3 => ''));\n\t\t\t\n foreach($this->rows as $niveles_economicos){\n array_push($rol, array_values($niveles_economicos));\n }\n\n $this->rows = $rol;\n unset($rol);\n }\n }",
"public function initPesquisas($overrideExisting = true)\n\t{\n\t\tif (null !== $this->collPesquisas && !$overrideExisting) {\n\t\t\treturn;\n\t\t}\n\t\t$this->collPesquisas = new PropelObjectCollection();\n\t\t$this->collPesquisas->setModel('Pesquisa');\n\t}",
"public function __construct()\n {\n $this->postules = new ArrayCollection();\n $this->competences = new ArrayCollection();\n $this->habilitations = new ArrayCollection();\n }",
"public function initialize()\n {\n $this->setSchema(\"fox_zeus\");\r\n $this->setSource(\"ubicacion\");\r\n $this->hasMany('codUbicacion', 'HistoricoMovimientos', 'codUbicacion', ['alias' => 'HistoricoMovimientos']);\r\n $this->belongsTo('codSecion', '\\Seccion', 'codSecion', ['alias' => 'Seccion']);\r\n $this->belongsTo('codZona', '\\Zona', 'codZona', ['alias' => 'Zona']);\r\n $this->belongsTo('codSector', '\\Sector', 'codSector', ['alias' => 'Sector']);\r\n $this->belongsTo('codAlmacen', '\\Almacen', 'codAlmacen', ['alias' => 'Almacen']);\r\n $this->belongsTo('codProducto', '\\Producto', 'codProducto', ['alias' => 'Producto']);\n }",
"public function initSolicitacaoResgatesRelatedBySolicitanteId($overrideExisting = true)\n\t{\n\t\tif (null !== $this->collSolicitacaoResgatesRelatedBySolicitanteId && !$overrideExisting) {\n\t\t\treturn;\n\t\t}\n\t\t$this->collSolicitacaoResgatesRelatedBySolicitanteId = new PropelObjectCollection();\n\t\t$this->collSolicitacaoResgatesRelatedBySolicitanteId->setModel('SolicitacaoResgate');\n\t}",
"public function init()\n {\n\n // initialize the prepared statements\n $this->addFinder($this->finderFactory->createFinder($this, SqlStatementKeys::PRODUCT_MEDIA_GALLERIES));\n $this->addFinder($this->finderFactory->createFinder($this, SqlStatementKeys::PRODUCT_MEDIA_GALLERY));\n $this->addFinder($this->finderFactory->createFinder($this, SqlStatementKeys::PRODUCT_MEDIA_GALLERIES_BY_SKU));\n }",
"public function __construct()\n\t{\n\t\t$this->roles = new ArrayCollection();\n\t}",
"public function initialize()\n {\n $this->setSchema(\"ieslluis_gestiovfc\");\n $this->setSource(\"lines_comandes\");\n $this->hasMany('ncomanda', 'Comandes', 'numero', ['alias' => 'Comandes']);\n $this->hasMany('producte', 'Productes', 'codi', ['alias' => 'Productes']);\n }",
"function getScos()\n\t{\n\t\tif ($this->chap > 0)\n\t\t{\n\t\t\t$nodes = $this->tree->getChilds($this->chap);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$nodes = $this->tree->getSubTree($this->tree->getNodeData($this->tree->root_id),true,array('sco'));\n\t\t}\n\n\t\t$scos = array();\n\n\t\t$nr = 1;\n\t\tforeach($nodes as $node)\n\t\t{\n\t\t\tif ($node[\"type\"] == \"sco\")\n\t\t\t{\n\t\t\t\t$node[\"nr\"] = $nr++;\n\t\t\t\t$scos[] = $node;\n\t\t\t}\n\t\t}\n\n\t\t$this->setDefaultOrderField(\"nr\");\n\t\t$this->setDefaultOrderDirection(\"asc\");\n\t\t$this->setData($scos);\n\t}",
"public function initialize()\n {\n $this->setSchema(\"c5_espositori\");\n $this->setSource(\"exhibitors\");\n $this->hasMany('id', 'Reservations', 'exhibitors_id', ['alias' => 'Reservations', 'reusable' => true]);\n $this->hasMany('id', 'Reservations', 'padre_id', ['alias' => 'Padri']);\n }",
"public function initContributionss($overrideExisting = true)\n {\n if (null !== $this->collContributionss && !$overrideExisting) {\n return;\n }\n $this->collContributionss = new ObjectCollection();\n $this->collContributionss->setModel('\\Contributions');\n }",
"public function __construct()\n {\n $this->defendants = new ArrayCollection();\n $this->interpreterEvents = new ArrayCollection();\n }",
"public function initialize()\n {\n //$this->setSchema(\"kierkegaard\");\n $this->setSource(\"produto_core\");\n }",
"protected function initialize()\n {\n if (!is_array($this->rows)) {\n $this->rows = $this->query->getResult();\n }\n }",
"public function __construct()\n {\n $this->commentaires = new ArrayCollection();\n $this->photos = new ArrayCollection();\n }",
"public function init()\n {\n\n // initialize the prepared statements\n $this->addFinder($this->finderFactory->createFinder($this, SqlStatementKeys::PRODUCT_VARCHARS));\n $this->addFinder($this->finderFactory->createFinder($this, SqlStatementKeys::PRODUCT_VARCHARS_BY_PK_AND_STORE_ID));\n $this->addFinder($this->finderFactory->createFinder($this, SqlStatementKeys::PRODUCT_VARCHAR_BY_ATTRIBUTE_CODE_AND_ENTITY_TYPE_ID_AND_STORE_ID));\n $this->addFinder($this->finderFactory->createFinder($this, SqlStatementKeys::PRODUCT_VARCHAR_BY_ATTRIBUTE_CODE_AND_ENTITY_TYPE_ID_AND_STORE_ID_AND_VALUE));\n $this->addFinder($this->finderFactory->createFinder($this, SqlStatementKeys::PRODUCT_VARCHAR_BY_ATTRIBUTE_CODE_AND_ENTITY_TYPE_ID_AND_STORE_ID_AND_PK));\n }",
"public function __construct()\n {\n $this->roles = new ArrayCollection();\n $this->users = new ArrayCollection();\n $this->rolesNames = null;\n }",
"public function __construct()\n {\n $this->places = new ArrayCollection();\n $this->transitions = new ArrayCollection();\n }",
"public function initialize()\n {\n $schema = new Infra();\n $this->setSchema($schema->getSchemaBanco());\n $this->setSource(\"contrato_exercicio\");\n $this->hasMany('id', 'Circuitos\\Models\\ContratoFinanceiro', 'id_exercicio', ['alias' => 'ContratoFinanceiro']);\n $this->belongsTo('id_contrato', 'Circuitos\\Models\\Contrato', 'id', ['alias' => 'Contrato']);\n }",
"public function initOffensives()\n\t{\n\t\t$this->collOffensives = array();\n\t}",
"public function countOperationScenariis(Criteria $criteria = null, $distinct = false, PropelPDO $con = null)\n {\n $partial = $this->collOperationScenariisPartial && !$this->isNew();\n if (null === $this->collOperationScenariis || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collOperationScenariis) {\n return 0;\n }\n\n if ($partial && !$criteria) {\n return count($this->getOperationScenariis());\n }\n $query = OperationScenariiQuery::create(null, $criteria);\n if ($distinct) {\n $query->distinct();\n }\n\n return $query\n ->filterByOperationPrimes($this)\n ->count($con);\n }\n\n return count($this->collOperationScenariis);\n }",
"public function __construct()\n {\n $this->sicBlocks = [];\n $this->cachedInstances = [];\n }",
"public function __construct()\n {\n $this->articles = new ArrayCollection();\n $this->commentaires = new ArrayCollection();\n }",
"public function initialize() {\n $cmd = $this->getSequentSysCommand();\n $success = $this->sendCommand($cmd);\n $this->setText('init ok');\n }",
"public function initialize()\n {\n $this->setSchema(\"kp_si_disat\");\n $this->setSource(\"data_diksar\");\n $this->belongsTo('id_sertifikat', '\\Sertifikat', 'id_sertifikat', ['alias' => 'Sertifikat']);\n $this->belongsTo('id_kesehatan', '\\Kesehatan', 'id_kesehatan', ['alias' => 'Kesehatan']);\n }",
"public function initQuestionOffensives()\n\t{\n\t\t$this->collQuestionOffensives = array();\n\t}",
"public function __construct()\n {\n parent::__construct();\n\n $this->organismes = new ArrayCollection();\n $this->reponses = new ArrayCollection();\n $this->tags = new ArrayCollection(); \n $this->categories = new \\Doctrine\\Common\\Collections\\ArrayCollection();\n }",
"public function initUserRates()\n\t{\n\t\t$this->collUserRates = array();\n\t}",
"function __construct($CODESPACIO,$CODEDIFICIO,$CODCENTRO,$TIPO,$SUPERFICIEESPACIO,$NUMINVENTARIOESPACIO){\n\t$this->CODESPACIO= $CODESPACIO;\n\t$this->CODEDIFICIO= $CODEDIFICIO;\n\t$this->CODCENTRO= $CODCENTRO;\n\t$this->TIPO = $TIPO;\n\t$this->SUPERFICIEESPACIO = $SUPERFICIEESPACIO;\n\t$this->NUMINVENTARIOESPACIO = $NUMINVENTARIOESPACIO;\n\t$this->erroresdatos = array(); \n\n\tinclude_once '../Model/Access_DB.php';\n\t$this->mysqli = ConnectDB();\n}",
"public function initialize()\n {\n $this->setSchema(\"xsollatest\");\n }",
"public function __construct() {\n $this->items = new ArrayCollection;\n $this->orderProducts = new ArrayCollection;\n $this->promotions = new ArrayCollection();\n\n }",
"private function initialize()\n {\n $this->inputs = [];\n $this->options = [];\n }",
"public function __construct()\n {\n $this->categories = new ArrayCollection();\n $this->families = new ArrayCollection();\n $this->types = new ArrayCollection();\n $this->designations = new ArrayCollection();\n $this->makes = new ArrayCollection();\n }",
"public function iniciarSistema( ) {\n $this->esperarInicioSistema();\n }",
"public function initialize()\n {\n parent::initialize();\n $this->setConnectionService(ServiceName::DB_WMS);\n }",
"public function __construct()\n {\n $this->roles = new ArrayCollection();\n }",
"protected function _initialize()\n {\n $this->_setupRoles();\n $this->_setupResources();\n $this->_setupPrivileges();\n $this->_saveAcl();\n }",
"private function init_set() {\n\t\t$this->_set = array();\n\t\tfor($i=0; $i < $this->_max-$this->_min + 1; $i++) {\n\t\t\t$this->_set[$i] = $this->_min + $i;\n\t\t}\n\t}",
"public static function resetInit() {\r\n $result = true;\r\n $shops = Shop::getShops(false, null, true);\r\n foreach ($shops as $id_shop) {\r\n $result &= Configuration::updateValue(GEAR_NAME.'_init', false, false, null, $id_shop);\r\n }\r\n return $result;\r\n }",
"public function __construct()\n {\n $this->tasks = new ArrayCollection();\n $this->comments = new ArrayCollection();\n $this->timeEntries = new ArrayCollection();\n }",
"public function __construct()\n {\n $this->categories = new ArrayCollection();\n }",
"public function __construct()\n {\n $this->categories = new ArrayCollection();\n }",
"private function cas_init()\n {\n session_name((isset($this->config[ 'session_name' ]) ? $this->config[ 'session_name' ] : 'CASAuth'));\n // initialize CAS client\n $this->configureCasClient();\n $this->configureSslValidation();\n $this->detect_authentication();\n\n // set service URL for authorization with CAS server\n //\\phpCAS::setFixedServiceURL();\n if ( ! empty($this->config[ 'cas_service' ])) {\n phpCAS::allowProxyChain(new \\CAS_ProxyChain_Any);\n }\n // set login and logout URLs of the CAS server\n phpCAS::setServerLoginURL($this->config[ 'cas_login_url' ]);\n phpCAS::setServerLogoutURL($this->config[ 'cas_logout_url' ]);\n }"
] | [
"0.7024721",
"0.5935696",
"0.5555607",
"0.55048114",
"0.5274908",
"0.520496",
"0.5170482",
"0.516791",
"0.5073825",
"0.5029846",
"0.49778882",
"0.49626476",
"0.49363145",
"0.4904427",
"0.48997408",
"0.48211908",
"0.47973523",
"0.4793396",
"0.47741362",
"0.47221175",
"0.47162274",
"0.46969515",
"0.46964756",
"0.46894386",
"0.46893936",
"0.4681344",
"0.4625747",
"0.46032313",
"0.45803335",
"0.45703092",
"0.45446298",
"0.4496677",
"0.4494488",
"0.44910058",
"0.44769177",
"0.44695687",
"0.44679976",
"0.44584396",
"0.44462526",
"0.4437539",
"0.4437539",
"0.4437539",
"0.44216055",
"0.44176957",
"0.44161165",
"0.44140282",
"0.4413142",
"0.44082585",
"0.43995845",
"0.43957922",
"0.43957922",
"0.43929407",
"0.43908378",
"0.4387909",
"0.43715066",
"0.4369282",
"0.4361338",
"0.43604845",
"0.43518418",
"0.4351297",
"0.4344912",
"0.4338753",
"0.43310648",
"0.43296844",
"0.43252334",
"0.43226066",
"0.4320921",
"0.43174192",
"0.43173605",
"0.42994756",
"0.42980152",
"0.42957795",
"0.4284422",
"0.4278459",
"0.4264491",
"0.4261783",
"0.4255864",
"0.42543766",
"0.42517653",
"0.4249553",
"0.42468095",
"0.42406976",
"0.42319646",
"0.422986",
"0.42262784",
"0.42247176",
"0.4222009",
"0.4215893",
"0.42074588",
"0.42016274",
"0.42006052",
"0.41898167",
"0.41873688",
"0.4184168",
"0.41786373",
"0.41700533",
"0.4168811",
"0.41680753",
"0.41680753",
"0.41677254"
] | 0.7022886 | 1 |
Gets an array of OperationScenarii objects which contain a foreign key that references this object. If the $criteria is not null, it is used to always fetch the results from the database. Otherwise the results are fetched from the database the first time, then cached. Next time the same method is called without $criteria, the cached collection is returned. If this OperationPrimes is new, it will return an empty collection or the current collection; the criteria is ignored on a new object. | public function getOperationScenariis($criteria = null, PropelPDO $con = null)
{
$partial = $this->collOperationScenariisPartial && !$this->isNew();
if (null === $this->collOperationScenariis || null !== $criteria || $partial) {
if ($this->isNew() && null === $this->collOperationScenariis) {
// return empty collection
$this->initOperationScenariis();
} else {
$collOperationScenariis = OperationScenariiQuery::create(null, $criteria)
->filterByOperationPrimes($this)
->find($con);
if (null !== $criteria) {
if (false !== $this->collOperationScenariisPartial && count($collOperationScenariis)) {
$this->initOperationScenariis(false);
foreach ($collOperationScenariis as $obj) {
if (false == $this->collOperationScenariis->contains($obj)) {
$this->collOperationScenariis->append($obj);
}
}
$this->collOperationScenariisPartial = true;
}
$collOperationScenariis->getInternalIterator()->rewind();
return $collOperationScenariis;
}
if ($partial && $this->collOperationScenariis) {
foreach ($this->collOperationScenariis as $obj) {
if ($obj->isNew()) {
$collOperationScenariis[] = $obj;
}
}
}
$this->collOperationScenariis = $collOperationScenariis;
$this->collOperationScenariisPartial = false;
}
}
return $this->collOperationScenariis;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getLnkOperationPrimeRCountriess($criteria = null, PropelPDO $con = null)\n {\n $partial = $this->collLnkOperationPrimeRCountriessPartial && !$this->isNew();\n if (null === $this->collLnkOperationPrimeRCountriess || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collLnkOperationPrimeRCountriess) {\n // return empty collection\n $this->initLnkOperationPrimeRCountriess();\n } else {\n $collLnkOperationPrimeRCountriess = LnkOperationPrimeRCountriesQuery::create(null, $criteria)\n ->filterByOperationPrimes($this)\n ->find($con);\n if (null !== $criteria) {\n if (false !== $this->collLnkOperationPrimeRCountriessPartial && count($collLnkOperationPrimeRCountriess)) {\n $this->initLnkOperationPrimeRCountriess(false);\n\n foreach ($collLnkOperationPrimeRCountriess as $obj) {\n if (false == $this->collLnkOperationPrimeRCountriess->contains($obj)) {\n $this->collLnkOperationPrimeRCountriess->append($obj);\n }\n }\n\n $this->collLnkOperationPrimeRCountriessPartial = true;\n }\n\n $collLnkOperationPrimeRCountriess->getInternalIterator()->rewind();\n\n return $collLnkOperationPrimeRCountriess;\n }\n\n if ($partial && $this->collLnkOperationPrimeRCountriess) {\n foreach ($this->collLnkOperationPrimeRCountriess as $obj) {\n if ($obj->isNew()) {\n $collLnkOperationPrimeRCountriess[] = $obj;\n }\n }\n }\n\n $this->collLnkOperationPrimeRCountriess = $collLnkOperationPrimeRCountriess;\n $this->collLnkOperationPrimeRCountriessPartial = false;\n }\n }\n\n return $this->collLnkOperationPrimeRCountriess;\n }",
"public function getOperationPrestationss($criteria = null, PropelPDO $con = null)\n {\n $partial = $this->collOperationPrestationssPartial && !$this->isNew();\n if (null === $this->collOperationPrestationss || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collOperationPrestationss) {\n // return empty collection\n $this->initOperationPrestationss();\n } else {\n $collOperationPrestationss = OperationPrestationsQuery::create(null, $criteria)\n ->filterByOperationPrimes($this)\n ->find($con);\n if (null !== $criteria) {\n if (false !== $this->collOperationPrestationssPartial && count($collOperationPrestationss)) {\n $this->initOperationPrestationss(false);\n\n foreach ($collOperationPrestationss as $obj) {\n if (false == $this->collOperationPrestationss->contains($obj)) {\n $this->collOperationPrestationss->append($obj);\n }\n }\n\n $this->collOperationPrestationssPartial = true;\n }\n\n $collOperationPrestationss->getInternalIterator()->rewind();\n\n return $collOperationPrestationss;\n }\n\n if ($partial && $this->collOperationPrestationss) {\n foreach ($this->collOperationPrestationss as $obj) {\n if ($obj->isNew()) {\n $collOperationPrestationss[] = $obj;\n }\n }\n }\n\n $this->collOperationPrestationss = $collOperationPrestationss;\n $this->collOperationPrestationssPartial = false;\n }\n }\n\n return $this->collOperationPrestationss;\n }",
"public function buildPkeyCriteria()\n {\n $criteria = new Criteria(OperationPrimesPeer::DATABASE_NAME);\n $criteria->add(OperationPrimesPeer::OP_PRIME_ID, $this->op_prime_id);\n\n return $criteria;\n }",
"public function buildCriteria()\n {\n $criteria = new Criteria(OperationPrimesPeer::DATABASE_NAME);\n\n if ($this->isColumnModified(OperationPrimesPeer::OP_PRIME_ID)) $criteria->add(OperationPrimesPeer::OP_PRIME_ID, $this->op_prime_id);\n if ($this->isColumnModified(OperationPrimesPeer::OP_ID)) $criteria->add(OperationPrimesPeer::OP_ID, $this->op_id);\n if ($this->isColumnModified(OperationPrimesPeer::OP_PRIME_LIBELLE)) $criteria->add(OperationPrimesPeer::OP_PRIME_LIBELLE, $this->op_prime_libelle);\n if ($this->isColumnModified(OperationPrimesPeer::OP_PRIME_NUMERO)) $criteria->add(OperationPrimesPeer::OP_PRIME_NUMERO, $this->op_prime_numero);\n if ($this->isColumnModified(OperationPrimesPeer::GDL_ART_ID)) $criteria->add(OperationPrimesPeer::GDL_ART_ID, $this->gdl_art_id);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_CURRENCY_ID)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_CURRENCY_ID, $this->operation_prime_currency_id);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_TYPE_ID)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_TYPE_ID, $this->operation_prime_r_reward_type_id);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_EXPEDITION_MODE_ID)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_EXPEDITION_MODE_ID, $this->operation_prime_r_reward_expedition_mode_id);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_TRANSPORTER_ID)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_TRANSPORTER_ID, $this->operation_prime_r_reward_transporter_id);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_FIXED_AMOUNT)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_FIXED_AMOUNT, $this->operation_prime_fixed_amount);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_PRODUCT_PRICE_POURCENTAGE)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_PRODUCT_PRICE_POURCENTAGE, $this->operation_prime_product_price_pourcentage);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_MAXIMUM_AMOUNT)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_MAXIMUM_AMOUNT, $this->operation_prime_maximum_amount);\n\n return $criteria;\n }",
"public function getContributionss(Criteria $criteria = null, ConnectionInterface $con = null)\n {\n $partial = $this->collContributionssPartial && !$this->isNew();\n if (null === $this->collContributionss || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collContributionss) {\n // return empty collection\n $this->initContributionss();\n } else {\n $collContributionss = ChildContributionsQuery::create(null, $criteria)\n ->filterByIssues($this)\n ->find($con);\n\n if (null !== $criteria) {\n if (false !== $this->collContributionssPartial && count($collContributionss)) {\n $this->initContributionss(false);\n\n foreach ($collContributionss as $obj) {\n if (false == $this->collContributionss->contains($obj)) {\n $this->collContributionss->append($obj);\n }\n }\n\n $this->collContributionssPartial = true;\n }\n\n return $collContributionss;\n }\n\n if ($partial && $this->collContributionss) {\n foreach ($this->collContributionss as $obj) {\n if ($obj->isNew()) {\n $collContributionss[] = $obj;\n }\n }\n }\n\n $this->collContributionss = $collContributionss;\n $this->collContributionssPartial = false;\n }\n }\n\n return $this->collContributionss;\n }",
"public function getCMDPieces(Criteria $criteria = null, ConnectionInterface $con = null)\n {\n $partial = $this->collCMDPiecesPartial && !$this->isNew();\n if (null === $this->collCMDPieces || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collCMDPieces) {\n // return empty collection\n $this->initCMDPieces();\n } else {\n $collCMDPieces = ChildCMDPieceQuery::create(null, $criteria)\n ->filterByCommande($this)\n ->find($con);\n\n if (null !== $criteria) {\n if (false !== $this->collCMDPiecesPartial && count($collCMDPieces)) {\n $this->initCMDPieces(false);\n\n foreach ($collCMDPieces as $obj) {\n if (false == $this->collCMDPieces->contains($obj)) {\n $this->collCMDPieces->append($obj);\n }\n }\n\n $this->collCMDPiecesPartial = true;\n }\n\n return $collCMDPieces;\n }\n\n if ($partial && $this->collCMDPieces) {\n foreach ($this->collCMDPieces as $obj) {\n if ($obj->isNew()) {\n $collCMDPieces[] = $obj;\n }\n }\n }\n\n $this->collCMDPieces = $collCMDPieces;\n $this->collCMDPiecesPartial = false;\n }\n }\n\n return $this->collCMDPieces;\n }",
"public function relCooperations() {\n return Job::query()\n ->join('ownership', 'ownership.tobjsid', 'jobs.sId')\n ->select('jobs.*')\n ->where('ownership.fobjsid', parent::__get('sId'))\n ->where('jobs.type', Job::TYPE_COOPERATION)\n ->get();\n }",
"public function getCOMConditions(Criteria $criteria = null, ConnectionInterface $con = null)\n {\n $partial = $this->collCOMConditionsPartial && !$this->isNew();\n if (null === $this->collCOMConditions || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collCOMConditions) {\n // return empty collection\n $this->initCOMConditions();\n } else {\n $collCOMConditions = ChildCOMConditionQuery::create(null, $criteria)\n ->filterByCommande($this)\n ->find($con);\n\n if (null !== $criteria) {\n if (false !== $this->collCOMConditionsPartial && count($collCOMConditions)) {\n $this->initCOMConditions(false);\n\n foreach ($collCOMConditions as $obj) {\n if (false == $this->collCOMConditions->contains($obj)) {\n $this->collCOMConditions->append($obj);\n }\n }\n\n $this->collCOMConditionsPartial = true;\n }\n\n return $collCOMConditions;\n }\n\n if ($partial && $this->collCOMConditions) {\n foreach ($this->collCOMConditions as $obj) {\n if ($obj->isNew()) {\n $collCOMConditions[] = $obj;\n }\n }\n }\n\n $this->collCOMConditions = $collCOMConditions;\n $this->collCOMConditionsPartial = false;\n }\n }\n\n return $this->collCOMConditions;\n }",
"public function getColetaPesquisas($criteria = null, PropelPDO $con = null)\n\t{\n\t\tif(null === $this->collColetaPesquisas || null !== $criteria) {\n\t\t\tif ($this->isNew() && null === $this->collColetaPesquisas) {\n\t\t\t\t// return empty collection\n\t\t\t\t$this->initColetaPesquisas();\n\t\t\t} else {\n\t\t\t\t$collColetaPesquisas = ColetaPesquisaQuery::create(null, $criteria)\n\t\t\t\t\t->filterByUsuario($this)\n\t\t\t\t\t->find($con);\n\t\t\t\tif (null !== $criteria) {\n\t\t\t\t\treturn $collColetaPesquisas;\n\t\t\t\t}\n\t\t\t\t$this->collColetaPesquisas = $collColetaPesquisas;\n\t\t\t}\n\t\t}\n\t\treturn $this->collColetaPesquisas;\n\t}",
"public function getCriteria()\n\t{\n\t\treturn $this->criteria;\n\t}",
"public function getFeatureCvtermprops($criteria = null, PropelPDO $con = null)\n {\n $partial = $this->collFeatureCvtermpropsPartial && !$this->isNew();\n if (null === $this->collFeatureCvtermprops || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collFeatureCvtermprops) {\n // return empty collection\n $this->initFeatureCvtermprops();\n } else {\n $collFeatureCvtermprops = FeatureCvtermpropQuery::create(null, $criteria)\n ->filterByFeatureCvterm($this)\n ->find($con);\n if (null !== $criteria) {\n if (false !== $this->collFeatureCvtermpropsPartial && count($collFeatureCvtermprops)) {\n $this->initFeatureCvtermprops(false);\n\n foreach($collFeatureCvtermprops as $obj) {\n if (false == $this->collFeatureCvtermprops->contains($obj)) {\n $this->collFeatureCvtermprops->append($obj);\n }\n }\n\n $this->collFeatureCvtermpropsPartial = true;\n }\n\n $collFeatureCvtermprops->getInternalIterator()->rewind();\n return $collFeatureCvtermprops;\n }\n\n if($partial && $this->collFeatureCvtermprops) {\n foreach($this->collFeatureCvtermprops as $obj) {\n if($obj->isNew()) {\n $collFeatureCvtermprops[] = $obj;\n }\n }\n }\n\n $this->collFeatureCvtermprops = $collFeatureCvtermprops;\n $this->collFeatureCvtermpropsPartial = false;\n }\n }\n\n return $this->collFeatureCvtermprops;\n }",
"public function getCriteria()\n {\n return $this->criteria;\n }",
"public function getCriteria()\n {\n return $this->criteria;\n }",
"public function get_criteria() { return $this->criteria_list; }",
"public function getCOMVendeurs(Criteria $criteria = null, ConnectionInterface $con = null)\n {\n $partial = $this->collCOMVendeursPartial && !$this->isNew();\n if (null === $this->collCOMVendeurs || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collCOMVendeurs) {\n // return empty collection\n $this->initCOMVendeurs();\n } else {\n $collCOMVendeurs = ChildCOMVendeurQuery::create(null, $criteria)\n ->filterByCommande($this)\n ->find($con);\n\n if (null !== $criteria) {\n if (false !== $this->collCOMVendeursPartial && count($collCOMVendeurs)) {\n $this->initCOMVendeurs(false);\n\n foreach ($collCOMVendeurs as $obj) {\n if (false == $this->collCOMVendeurs->contains($obj)) {\n $this->collCOMVendeurs->append($obj);\n }\n }\n\n $this->collCOMVendeursPartial = true;\n }\n\n return $collCOMVendeurs;\n }\n\n if ($partial && $this->collCOMVendeurs) {\n foreach ($this->collCOMVendeurs as $obj) {\n if ($obj->isNew()) {\n $collCOMVendeurs[] = $obj;\n }\n }\n }\n\n $this->collCOMVendeurs = $collCOMVendeurs;\n $this->collCOMVendeursPartial = false;\n }\n }\n\n return $this->collCOMVendeurs;\n }",
"public function getPesquisas($criteria = null, PropelPDO $con = null)\n\t{\n\t\tif(null === $this->collPesquisas || null !== $criteria) {\n\t\t\tif ($this->isNew() && null === $this->collPesquisas) {\n\t\t\t\t// return empty collection\n\t\t\t\t$this->initPesquisas();\n\t\t\t} else {\n\t\t\t\t$collPesquisas = PesquisaQuery::create(null, $criteria)\n\t\t\t\t\t->filterByUsuario($this)\n\t\t\t\t\t->find($con);\n\t\t\t\tif (null !== $criteria) {\n\t\t\t\t\treturn $collPesquisas;\n\t\t\t\t}\n\t\t\t\t$this->collPesquisas = $collPesquisas;\n\t\t\t}\n\t\t}\n\t\treturn $this->collPesquisas;\n\t}",
"public function getCriteria(){\n return $this->criteria;\n }",
"public function buildPkeyCriteria()\n\t{\n\t\t$criteria = new Criteria(C060InventarioPeer::DATABASE_NAME);\n\n\t\t$criteria->add(C060InventarioPeer::CO_NUM_INVENTARIO, $this->co_num_inventario);\n\n\t\treturn $criteria;\n\t}",
"public function getPermissaosRelatedByCoUsuarioAlteracao($criteria = null, PropelPDO $con = null)\n\t{\n\t\tif(null === $this->collPermissaosRelatedByCoUsuarioAlteracao || null !== $criteria) {\n\t\t\tif ($this->isNew() && null === $this->collPermissaosRelatedByCoUsuarioAlteracao) {\n\t\t\t\t// return empty collection\n\t\t\t\t$this->initPermissaosRelatedByCoUsuarioAlteracao();\n\t\t\t} else {\n\t\t\t\t$collPermissaosRelatedByCoUsuarioAlteracao = PermissaoQuery::create(null, $criteria)\n\t\t\t\t\t->filterByUsuarioRelatedByCoUsuarioAlteracao($this)\n\t\t\t\t\t->find($con);\n\t\t\t\tif (null !== $criteria) {\n\t\t\t\t\treturn $collPermissaosRelatedByCoUsuarioAlteracao;\n\t\t\t\t}\n\t\t\t\t$this->collPermissaosRelatedByCoUsuarioAlteracao = $collPermissaosRelatedByCoUsuarioAlteracao;\n\t\t\t}\n\t\t}\n\t\treturn $this->collPermissaosRelatedByCoUsuarioAlteracao;\n\t}",
"public static function cooperations() {\n return self::query()\n ->join('ownership', 'ownership.fobjsid', 'vp.sId')\n ->join('jobs', 'ownership.tobjsid', 'jobs.sId')\n ->select('vp.*')\n ->where('jobs.type', Job::TYPE_COOPERATION);\n }",
"public function getRIssuesAllplugins(Criteria $criteria = null, ConnectionInterface $con = null)\n {\n $partial = $this->collRIssuesAllpluginsPartial && !$this->isNew();\n if (null === $this->collRIssuesAllplugins || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collRIssuesAllplugins) {\n // return empty collection\n $this->initRIssuesAllplugins();\n } else {\n $collRIssuesAllplugins = ChildRIssuesAllpluginQuery::create(null, $criteria)\n ->filterByAllIssue($this)\n ->find($con);\n\n if (null !== $criteria) {\n if (false !== $this->collRIssuesAllpluginsPartial && count($collRIssuesAllplugins)) {\n $this->initRIssuesAllplugins(false);\n\n foreach ($collRIssuesAllplugins as $obj) {\n if (false == $this->collRIssuesAllplugins->contains($obj)) {\n $this->collRIssuesAllplugins->append($obj);\n }\n }\n\n $this->collRIssuesAllpluginsPartial = true;\n }\n\n return $collRIssuesAllplugins;\n }\n\n if ($partial && $this->collRIssuesAllplugins) {\n foreach ($this->collRIssuesAllplugins as $obj) {\n if ($obj->isNew()) {\n $collRIssuesAllplugins[] = $obj;\n }\n }\n }\n\n $this->collRIssuesAllplugins = $collRIssuesAllplugins;\n $this->collRIssuesAllpluginsPartial = false;\n }\n }\n\n return $this->collRIssuesAllplugins;\n }",
"public function getCriteria()\n {\n return isset($this->criteria) ? $this->criteria : null;\n }",
"public function getVpoRequestCargos($criteria = null, PropelPDO $con = null)\n\t{\n\t\tif ($criteria === null) {\n\t\t\t$criteria = new Criteria(VpoRequestPeer::DATABASE_NAME);\n\t\t}\n\t\telseif ($criteria instanceof Criteria)\n\t\t{\n\t\t\t$criteria = clone $criteria;\n\t\t}\n\n\t\tif ($this->collVpoRequestCargos === null) {\n\t\t\tif ($this->isNew()) {\n\t\t\t $this->collVpoRequestCargos = array();\n\t\t\t} else {\n\n\t\t\t\t$criteria->add(VpoRequestCargoPeer::REQUEST_ID, $this->id);\n\n\t\t\t\tVpoRequestCargoPeer::addSelectColumns($criteria);\n\t\t\t\t$this->collVpoRequestCargos = VpoRequestCargoPeer::doSelect($criteria, $con);\n\t\t\t}\n\t\t} else {\n\t\t\t// criteria has no effect for a new object\n\t\t\tif (!$this->isNew()) {\n\t\t\t\t// the following code is to determine if a new query is\n\t\t\t\t// called for. If the criteria is the same as the last\n\t\t\t\t// one, just return the collection.\n\n\n\t\t\t\t$criteria->add(VpoRequestCargoPeer::REQUEST_ID, $this->id);\n\n\t\t\t\tVpoRequestCargoPeer::addSelectColumns($criteria);\n\t\t\t\tif (!isset($this->lastVpoRequestCargoCriteria) || !$this->lastVpoRequestCargoCriteria->equals($criteria)) {\n\t\t\t\t\t$this->collVpoRequestCargos = VpoRequestCargoPeer::doSelect($criteria, $con);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$this->lastVpoRequestCargoCriteria = $criteria;\n\t\treturn $this->collVpoRequestCargos;\n\t}",
"public function getRIssuesSingleplugins(Criteria $criteria = null, ConnectionInterface $con = null)\n {\n $partial = $this->collRIssuesSinglepluginsPartial && !$this->isNew();\n if (null === $this->collRIssuesSingleplugins || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collRIssuesSingleplugins) {\n // return empty collection\n $this->initRIssuesSingleplugins();\n } else {\n $collRIssuesSingleplugins = ChildRIssuesSinglepluginQuery::create(null, $criteria)\n ->filterBySingleIssue($this)\n ->find($con);\n\n if (null !== $criteria) {\n if (false !== $this->collRIssuesSinglepluginsPartial && count($collRIssuesSingleplugins)) {\n $this->initRIssuesSingleplugins(false);\n\n foreach ($collRIssuesSingleplugins as $obj) {\n if (false == $this->collRIssuesSingleplugins->contains($obj)) {\n $this->collRIssuesSingleplugins->append($obj);\n }\n }\n\n $this->collRIssuesSinglepluginsPartial = true;\n }\n\n return $collRIssuesSingleplugins;\n }\n\n if ($partial && $this->collRIssuesSingleplugins) {\n foreach ($this->collRIssuesSingleplugins as $obj) {\n if ($obj->isNew()) {\n $collRIssuesSingleplugins[] = $obj;\n }\n }\n }\n\n $this->collRIssuesSingleplugins = $collRIssuesSingleplugins;\n $this->collRIssuesSinglepluginsPartial = false;\n }\n }\n\n return $this->collRIssuesSingleplugins;\n }",
"public function getRIssuesXmlplugins(Criteria $criteria = null, ConnectionInterface $con = null)\n {\n $partial = $this->collRIssuesXmlpluginsPartial && !$this->isNew();\n if (null === $this->collRIssuesXmlplugins || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collRIssuesXmlplugins) {\n // return empty collection\n $this->initRIssuesXmlplugins();\n } else {\n $collRIssuesXmlplugins = ChildRIssuesXmlpluginQuery::create(null, $criteria)\n ->filterByXmlIssue($this)\n ->find($con);\n\n if (null !== $criteria) {\n if (false !== $this->collRIssuesXmlpluginsPartial && count($collRIssuesXmlplugins)) {\n $this->initRIssuesXmlplugins(false);\n\n foreach ($collRIssuesXmlplugins as $obj) {\n if (false == $this->collRIssuesXmlplugins->contains($obj)) {\n $this->collRIssuesXmlplugins->append($obj);\n }\n }\n\n $this->collRIssuesXmlpluginsPartial = true;\n }\n\n return $collRIssuesXmlplugins;\n }\n\n if ($partial && $this->collRIssuesXmlplugins) {\n foreach ($this->collRIssuesXmlplugins as $obj) {\n if ($obj->isNew()) {\n $collRIssuesXmlplugins[] = $obj;\n }\n }\n }\n\n $this->collRIssuesXmlplugins = $collRIssuesXmlplugins;\n $this->collRIssuesXmlpluginsPartial = false;\n }\n }\n\n return $this->collRIssuesXmlplugins;\n }",
"public function getInappropriates($criteria = null, PropelPDO $con = null)\n\t{\n\t\tif ($criteria === null) {\n\t\t\t$criteria = new Criteria(PostPeer::DATABASE_NAME);\n\t\t}\n\t\telseif ($criteria instanceof Criteria)\n\t\t{\n\t\t\t$criteria = clone $criteria;\n\t\t}\n\n\t\tif ($this->collInappropriates === null) {\n\t\t\tif ($this->isNew()) {\n\t\t\t $this->collInappropriates = array();\n\t\t\t} else {\n\n\t\t\t\t$criteria->add(InappropriatePeer::POST_ID, $this->id);\n\n\t\t\t\tInappropriatePeer::addSelectColumns($criteria);\n\t\t\t\t$this->collInappropriates = InappropriatePeer::doSelect($criteria, $con);\n\t\t\t}\n\t\t} else {\n\t\t\t// criteria has no effect for a new object\n\t\t\tif (!$this->isNew()) {\n\t\t\t\t// the following code is to determine if a new query is\n\t\t\t\t// called for. If the criteria is the same as the last\n\t\t\t\t// one, just return the collection.\n\n\n\t\t\t\t$criteria->add(InappropriatePeer::POST_ID, $this->id);\n\n\t\t\t\tInappropriatePeer::addSelectColumns($criteria);\n\t\t\t\tif (!isset($this->lastInappropriateCriteria) || !$this->lastInappropriateCriteria->equals($criteria)) {\n\t\t\t\t\t$this->collInappropriates = InappropriatePeer::doSelect($criteria, $con);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$this->lastInappropriateCriteria = $criteria;\n\t\treturn $this->collInappropriates;\n\t}",
"public function getClips($criteria)\n {\n }",
"public function getPermissaosRelatedByCoUsuarioCadastro($criteria = null, PropelPDO $con = null)\n\t{\n\t\tif(null === $this->collPermissaosRelatedByCoUsuarioCadastro || null !== $criteria) {\n\t\t\tif ($this->isNew() && null === $this->collPermissaosRelatedByCoUsuarioCadastro) {\n\t\t\t\t// return empty collection\n\t\t\t\t$this->initPermissaosRelatedByCoUsuarioCadastro();\n\t\t\t} else {\n\t\t\t\t$collPermissaosRelatedByCoUsuarioCadastro = PermissaoQuery::create(null, $criteria)\n\t\t\t\t\t->filterByUsuarioRelatedByCoUsuarioCadastro($this)\n\t\t\t\t\t->find($con);\n\t\t\t\tif (null !== $criteria) {\n\t\t\t\t\treturn $collPermissaosRelatedByCoUsuarioCadastro;\n\t\t\t\t}\n\t\t\t\t$this->collPermissaosRelatedByCoUsuarioCadastro = $collPermissaosRelatedByCoUsuarioCadastro;\n\t\t\t}\n\t\t}\n\t\treturn $this->collPermissaosRelatedByCoUsuarioCadastro;\n\t}",
"public function getShoppingCarts($criteria = null, PropelPDO $con = null)\n\t{\n\t\tif ($criteria === null) {\n\t\t\t$criteria = new Criteria(UserPeer::DATABASE_NAME);\n\t\t}\n\t\telseif ($criteria instanceof Criteria)\n\t\t{\n\t\t\t$criteria = clone $criteria;\n\t\t}\n\n\t\tif ($this->collShoppingCarts === null) {\n\t\t\tif ($this->isNew()) {\n\t\t\t $this->collShoppingCarts = array();\n\t\t\t} else {\n\n\t\t\t\t$criteria->add(ShoppingCartPeer::USER_ID, $this->id);\n\n\t\t\t\tShoppingCartPeer::addSelectColumns($criteria);\n\t\t\t\t$this->collShoppingCarts = ShoppingCartPeer::doSelect($criteria, $con);\n\t\t\t}\n\t\t} else {\n\t\t\t// criteria has no effect for a new object\n\t\t\tif (!$this->isNew()) {\n\t\t\t\t// the following code is to determine if a new query is\n\t\t\t\t// called for. If the criteria is the same as the last\n\t\t\t\t// one, just return the collection.\n\n\n\t\t\t\t$criteria->add(ShoppingCartPeer::USER_ID, $this->id);\n\n\t\t\t\tShoppingCartPeer::addSelectColumns($criteria);\n\t\t\t\tif (!isset($this->lastShoppingCartCriteria) || !$this->lastShoppingCartCriteria->equals($criteria)) {\n\t\t\t\t\t$this->collShoppingCarts = ShoppingCartPeer::doSelect($criteria, $con);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$this->lastShoppingCartCriteria = $criteria;\n\t\treturn $this->collShoppingCarts;\n\t}",
"public function getPremios($criteria = null, PropelPDO $con = null)\n\t{\n\t\tif(null === $this->collPremios || null !== $criteria) {\n\t\t\tif ($this->isNew() && null === $this->collPremios) {\n\t\t\t\t// return empty collection\n\t\t\t\t$this->initPremios();\n\t\t\t} else {\n\t\t\t\t$collPremios = PremioQuery::create(null, $criteria)\n\t\t\t\t\t->filterByUsuario($this)\n\t\t\t\t\t->find($con);\n\t\t\t\tif (null !== $criteria) {\n\t\t\t\t\treturn $collPremios;\n\t\t\t\t}\n\t\t\t\t$this->collPremios = $collPremios;\n\t\t\t}\n\t\t}\n\t\treturn $this->collPremios;\n\t}",
"public function buildPkeyCriteria()\n {\n $criteria = new Criteria(MontacargasPeer::DATABASE_NAME);\n $criteria->add(MontacargasPeer::IDMONTACARGAS, $this->idmontacargas);\n\n return $criteria;\n }",
"public function getOpenids($criteria = null, PropelPDO $con = null)\n\t{\n\t\tif ($criteria === null) {\n\t\t\t$criteria = new Criteria(UserPeer::DATABASE_NAME);\n\t\t}\n\t\telseif ($criteria instanceof Criteria)\n\t\t{\n\t\t\t$criteria = clone $criteria;\n\t\t}\n\n\t\tif ($this->collOpenids === null) {\n\t\t\tif ($this->isNew()) {\n\t\t\t $this->collOpenids = array();\n\t\t\t} else {\n\n\t\t\t\t$criteria->add(OpenidPeer::USER_ID, $this->id);\n\n\t\t\t\tOpenidPeer::addSelectColumns($criteria);\n\t\t\t\t$this->collOpenids = OpenidPeer::doSelect($criteria, $con);\n\t\t\t}\n\t\t} else {\n\t\t\t// criteria has no effect for a new object\n\t\t\tif (!$this->isNew()) {\n\t\t\t\t// the following code is to determine if a new query is\n\t\t\t\t// called for. If the criteria is the same as the last\n\t\t\t\t// one, just return the collection.\n\n\n\t\t\t\t$criteria->add(OpenidPeer::USER_ID, $this->id);\n\n\t\t\t\tOpenidPeer::addSelectColumns($criteria);\n\t\t\t\tif (!isset($this->lastOpenidCriteria) || !$this->lastOpenidCriteria->equals($criteria)) {\n\t\t\t\t\t$this->collOpenids = OpenidPeer::doSelect($criteria, $con);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$this->lastOpenidCriteria = $criteria;\n\t\treturn $this->collOpenids;\n\t}",
"public function buildPkeyCriteria()\n\t{\n\t\t$criteria = new Criteria(CidadePeer::DATABASE_NAME);\n\t\t$criteria->add(CidadePeer::ID, $this->id);\n\n\t\treturn $criteria;\n\t}",
"public function getRIssuesNarrationplugins(Criteria $criteria = null, ConnectionInterface $con = null)\n {\n $partial = $this->collRIssuesNarrationpluginsPartial && !$this->isNew();\n if (null === $this->collRIssuesNarrationplugins || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collRIssuesNarrationplugins) {\n // return empty collection\n $this->initRIssuesNarrationplugins();\n } else {\n $collRIssuesNarrationplugins = ChildRIssuesNarrationpluginQuery::create(null, $criteria)\n ->filterByNarrationIssue($this)\n ->find($con);\n\n if (null !== $criteria) {\n if (false !== $this->collRIssuesNarrationpluginsPartial && count($collRIssuesNarrationplugins)) {\n $this->initRIssuesNarrationplugins(false);\n\n foreach ($collRIssuesNarrationplugins as $obj) {\n if (false == $this->collRIssuesNarrationplugins->contains($obj)) {\n $this->collRIssuesNarrationplugins->append($obj);\n }\n }\n\n $this->collRIssuesNarrationpluginsPartial = true;\n }\n\n return $collRIssuesNarrationplugins;\n }\n\n if ($partial && $this->collRIssuesNarrationplugins) {\n foreach ($this->collRIssuesNarrationplugins as $obj) {\n if ($obj->isNew()) {\n $collRIssuesNarrationplugins[] = $obj;\n }\n }\n }\n\n $this->collRIssuesNarrationplugins = $collRIssuesNarrationplugins;\n $this->collRIssuesNarrationpluginsPartial = false;\n }\n }\n\n return $this->collRIssuesNarrationplugins;\n }",
"public function getCMDTAppareils(Criteria $criteria = null, ConnectionInterface $con = null)\n {\n $partial = $this->collCMDTAppareilsPartial && !$this->isNew();\n if (null === $this->collCMDTAppareils || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collCMDTAppareils) {\n // return empty collection\n $this->initCMDTAppareils();\n } else {\n $collCMDTAppareils = ChildCMDTAppareilQuery::create(null, $criteria)\n ->filterByCommande($this)\n ->find($con);\n\n if (null !== $criteria) {\n if (false !== $this->collCMDTAppareilsPartial && count($collCMDTAppareils)) {\n $this->initCMDTAppareils(false);\n\n foreach ($collCMDTAppareils as $obj) {\n if (false == $this->collCMDTAppareils->contains($obj)) {\n $this->collCMDTAppareils->append($obj);\n }\n }\n\n $this->collCMDTAppareilsPartial = true;\n }\n\n return $collCMDTAppareils;\n }\n\n if ($partial && $this->collCMDTAppareils) {\n foreach ($this->collCMDTAppareils as $obj) {\n if ($obj->isNew()) {\n $collCMDTAppareils[] = $obj;\n }\n }\n }\n\n $this->collCMDTAppareils = $collCMDTAppareils;\n $this->collCMDTAppareilsPartial = false;\n }\n }\n\n return $this->collCMDTAppareils;\n }",
"public function getDeshabilitamcs($criteria = null, PropelPDO $con = null)\n {\n $partial = $this->collDeshabilitamcsPartial && !$this->isNew();\n if (null === $this->collDeshabilitamcs || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collDeshabilitamcs) {\n // return empty collection\n $this->initDeshabilitamcs();\n } else {\n $collDeshabilitamcs = DeshabilitamcQuery::create(null, $criteria)\n ->filterByMontacargas($this)\n ->find($con);\n if (null !== $criteria) {\n if (false !== $this->collDeshabilitamcsPartial && count($collDeshabilitamcs)) {\n $this->initDeshabilitamcs(false);\n\n foreach ($collDeshabilitamcs as $obj) {\n if (false == $this->collDeshabilitamcs->contains($obj)) {\n $this->collDeshabilitamcs->append($obj);\n }\n }\n\n $this->collDeshabilitamcsPartial = true;\n }\n\n $collDeshabilitamcs->getInternalIterator()->rewind();\n\n return $collDeshabilitamcs;\n }\n\n if ($partial && $this->collDeshabilitamcs) {\n foreach ($this->collDeshabilitamcs as $obj) {\n if ($obj->isNew()) {\n $collDeshabilitamcs[] = $obj;\n }\n }\n }\n\n $this->collDeshabilitamcs = $collDeshabilitamcs;\n $this->collDeshabilitamcsPartial = false;\n }\n }\n\n return $this->collDeshabilitamcs;\n }",
"public abstract function findOperationBy(array $criteria);",
"public function getComentarioNoticias($criteria = null, PropelPDO $con = null)\n\t{\n\t\tif(null === $this->collComentarioNoticias || null !== $criteria) {\n\t\t\tif ($this->isNew() && null === $this->collComentarioNoticias) {\n\t\t\t\t// return empty collection\n\t\t\t\t$this->initComentarioNoticias();\n\t\t\t} else {\n\t\t\t\t$collComentarioNoticias = ComentarioNoticiaQuery::create(null, $criteria)\n\t\t\t\t\t->filterByUsuario($this)\n\t\t\t\t\t->find($con);\n\t\t\t\tif (null !== $criteria) {\n\t\t\t\t\treturn $collComentarioNoticias;\n\t\t\t\t}\n\t\t\t\t$this->collComentarioNoticias = $collComentarioNoticias;\n\t\t\t}\n\t\t}\n\t\treturn $this->collComentarioNoticias;\n\t}",
"public function get_criteria() {\n\n if (!$this->_criteria) {\n global $DB;\n\n $params = array(\n 'id' => $this->criteriaid\n );\n\n $record = $DB->get_record('course_completion_criteria', $params);\n\n $this->attach_criteria(completion_criteria::factory((array) $record));\n }\n\n return $this->_criteria;\n }",
"public function matching(Criteria $criteria)\n {\n if ($this->isDirty) {\n $this->initialize();\n }\n if ($this->initialized) {\n return $this->collection->matching($criteria);\n }\n\n $builder = Criteria::expr();\n $ownerExpression = $builder->eq($this->backRefFieldName, $this->owner);\n $expression = $criteria->getWhereExpression();\n $expression = $expression ? $builder->andX($expression, $ownerExpression) : $ownerExpression;\n $criteria = clone $criteria;\n $criteria->where($expression);\n $persister = $this->manager->getUnitOfWork()->getEntityPersister($this->association['targetEntity']);\n\n return new LazyCriteriaCollection($persister, $criteria);\n }",
"public function getMembros($criteria = null, PropelPDO $con = null)\n\t{\n\t\tif(null === $this->collMembros || null !== $criteria) {\n\t\t\tif ($this->isNew() && null === $this->collMembros) {\n\t\t\t\t// return empty collection\n\t\t\t\t$this->initMembros();\n\t\t\t} else {\n\t\t\t\t$collMembros = MembroQuery::create(null, $criteria)\n\t\t\t\t\t->filterByCidade($this)\n\t\t\t\t\t->find($con);\n\t\t\t\tif (null !== $criteria) {\n\t\t\t\t\treturn $collMembros;\n\t\t\t\t}\n\t\t\t\t$this->collMembros = $collMembros;\n\t\t\t}\n\t\t}\n\t\treturn $this->collMembros;\n\t}",
"public function findCriteria()\r\n\t{\n\t\t$result = $this -> connection -> setTable($this -> entity)\n\t\t\t\t\t\t\t\t\t -> fetch();\r\n\n\t\treturn $result;\r\n\t}",
"public function buildPkeyCriteria()\n\t{\n\t\t$criteria = new Criteria(MmPeer::DATABASE_NAME);\n\n\t\t$criteria->add(MmPeer::ID, $this->id);\n\n\t\treturn $criteria;\n\t}",
"public function getIterator() {\n\t\t// Load related records for current row\n\t\t$data = $this->execute();\n\t\treturn $data ? $data : array();\n\t}",
"public function buildPkeyCriteria()\n {\n $criteria = new Criteria(SanitasiPeer::DATABASE_NAME);\n $criteria->add(SanitasiPeer::SEKOLAH_ID, $this->sekolah_id);\n $criteria->add(SanitasiPeer::SEMESTER_ID, $this->semester_id);\n\n return $criteria;\n }",
"public function getCriteria();",
"public function buildPkeyCriteria()\n\t{\n\t\t$criteria = new Criteria(UsuarioPeer::DATABASE_NAME);\n\t\t$criteria->add(UsuarioPeer::ID, $this->id);\n\n\t\treturn $criteria;\n\t}",
"public function getXmlPlugins(Criteria $criteria = null, ConnectionInterface $con = null)\n {\n $partial = $this->collXmlPluginsPartial && !$this->isNew();\n if (null === $this->collXmlPlugins || null !== $criteria || $partial) {\n if ($this->isNew()) {\n // return empty collection\n if (null === $this->collXmlPlugins) {\n $this->initXmlPlugins();\n }\n } else {\n\n $query = ChildPluginsQuery::create(null, $criteria)\n ->filterByXmlIssue($this);\n $collXmlPlugins = $query->find($con);\n if (null !== $criteria) {\n return $collXmlPlugins;\n }\n\n if ($partial && $this->collXmlPlugins) {\n //make sure that already added objects gets added to the list of the database.\n foreach ($this->collXmlPlugins as $obj) {\n if (!$collXmlPlugins->contains($obj)) {\n $collXmlPlugins[] = $obj;\n }\n }\n }\n\n $this->collXmlPlugins = $collXmlPlugins;\n $this->collXmlPluginsPartial = false;\n }\n }\n\n return $this->collXmlPlugins;\n }",
"public function fetchCollection($criteria = null);",
"public function getRCurrencies(PropelPDO $con = null, $doQuery = true)\n {\n if ($this->aRCurrencies === null && ($this->operation_prime_currency_id !== null) && $doQuery) {\n $this->aRCurrencies = RCurrenciesQuery::create()->findPk($this->operation_prime_currency_id, $con);\n /* The following can be used additionally to\n guarantee the related object contains a reference\n to this object. This level of coupling may, however, be\n undesirable since it could result in an only partially populated collection\n in the referenced object.\n $this->aRCurrencies->addOperationPrimess($this);\n */\n }\n\n return $this->aRCurrencies;\n }",
"public function buildPkeyCriteria()\n {\n $criteria = new Criteria(SekolahPaudPeer::DATABASE_NAME);\n $criteria->add(SekolahPaudPeer::SEKOLAH_ID, $this->sekolah_id);\n\n return $criteria;\n }",
"public function getBookks($criteria = null, PropelPDO $con = null)\n {\n $partial = $this->collBookksPartial && !$this->isNew();\n if (null === $this->collBookks || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collBookks) {\n // return empty collection\n $this->initBookks();\n } else {\n $collBookks = BookkQuery::create(null, $criteria)\n ->filterByYear($this)\n ->find($con);\n if (null !== $criteria) {\n if (false !== $this->collBookksPartial && count($collBookks)) {\n $this->initBookks(false);\n\n foreach ($collBookks as $obj) {\n if (false == $this->collBookks->contains($obj)) {\n $this->collBookks->append($obj);\n }\n }\n\n $this->collBookksPartial = true;\n }\n\n $collBookks->getInternalIterator()->rewind();\n\n return $collBookks;\n }\n\n if ($partial && $this->collBookks) {\n foreach ($this->collBookks as $obj) {\n if ($obj->isNew()) {\n $collBookks[] = $obj;\n }\n }\n }\n\n $this->collBookks = $collBookks;\n $this->collBookksPartial = false;\n }\n }\n\n return $this->collBookks;\n }",
"public function getGearCompanyInfos($criteria = null, PropelPDO $con = null)\n\t{\n\t\tif ($criteria === null) {\n\t\t\t$criteria = new Criteria(UserPeer::DATABASE_NAME);\n\t\t}\n\t\telseif ($criteria instanceof Criteria)\n\t\t{\n\t\t\t$criteria = clone $criteria;\n\t\t}\n\n\t\tif ($this->collGearCompanyInfos === null) {\n\t\t\tif ($this->isNew()) {\n\t\t\t $this->collGearCompanyInfos = array();\n\t\t\t} else {\n\n\t\t\t\t$criteria->add(GearCompanyInfoPeer::USER_ID, $this->id);\n\n\t\t\t\tGearCompanyInfoPeer::addSelectColumns($criteria);\n\t\t\t\t$this->collGearCompanyInfos = GearCompanyInfoPeer::doSelect($criteria, $con);\n\t\t\t}\n\t\t} else {\n\t\t\t// criteria has no effect for a new object\n\t\t\tif (!$this->isNew()) {\n\t\t\t\t// the following code is to determine if a new query is\n\t\t\t\t// called for. If the criteria is the same as the last\n\t\t\t\t// one, just return the collection.\n\n\n\t\t\t\t$criteria->add(GearCompanyInfoPeer::USER_ID, $this->id);\n\n\t\t\t\tGearCompanyInfoPeer::addSelectColumns($criteria);\n\t\t\t\tif (!isset($this->lastGearCompanyInfoCriteria) || !$this->lastGearCompanyInfoCriteria->equals($criteria)) {\n\t\t\t\t\t$this->collGearCompanyInfos = GearCompanyInfoPeer::doSelect($criteria, $con);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$this->lastGearCompanyInfoCriteria = $criteria;\n\t\treturn $this->collGearCompanyInfos;\n\t}",
"public function GetInfobjectfonds($criteria = null)\r\n\t{\r\n\t\treturn $this->_phreezer->GetOneToMany($this, \"FK_fironk10lq67q4j0a3oue8ldg\", $criteria);\r\n\t}",
"public function getQuestionComments($criteria = null, PropelPDO $con = null)\n\t{\n\t\tif ($criteria === null) {\n\t\t\t$criteria = new Criteria(UserPeer::DATABASE_NAME);\n\t\t}\n\t\telseif ($criteria instanceof Criteria)\n\t\t{\n\t\t\t$criteria = clone $criteria;\n\t\t}\n\n\t\tif ($this->collQuestionComments === null) {\n\t\t\tif ($this->isNew()) {\n\t\t\t $this->collQuestionComments = array();\n\t\t\t} else {\n\n\t\t\t\t$criteria->add(QuestionCommentPeer::USER_ID, $this->id);\n\n\t\t\t\tQuestionCommentPeer::addSelectColumns($criteria);\n\t\t\t\t$this->collQuestionComments = QuestionCommentPeer::doSelect($criteria, $con);\n\t\t\t}\n\t\t} else {\n\t\t\t// criteria has no effect for a new object\n\t\t\tif (!$this->isNew()) {\n\t\t\t\t// the following code is to determine if a new query is\n\t\t\t\t// called for. If the criteria is the same as the last\n\t\t\t\t// one, just return the collection.\n\n\n\t\t\t\t$criteria->add(QuestionCommentPeer::USER_ID, $this->id);\n\n\t\t\t\tQuestionCommentPeer::addSelectColumns($criteria);\n\t\t\t\tif (!isset($this->lastQuestionCommentCriteria) || !$this->lastQuestionCommentCriteria->equals($criteria)) {\n\t\t\t\t\t$this->collQuestionComments = QuestionCommentPeer::doSelect($criteria, $con);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$this->lastQuestionCommentCriteria = $criteria;\n\t\treturn $this->collQuestionComments;\n\t}",
"public function buildPkeyCriteria()\n\t{\n\t\t$criteria = new Criteria(UsuarioPeer::DATABASE_NAME);\n\t\t$criteria->add(UsuarioPeer::CO_USUARIO, $this->co_usuario);\n\n\t\treturn $criteria;\n\t}",
"public function buildPkeyCriteria()\n {\n $criteria = ChildCommandeQuery::create();\n $criteria->add(CommandeTableMap::COL_ID_COMMANDE, $this->id_commande);\n\n return $criteria;\n }",
"public function getOffensives($criteria = null, PropelPDO $con = null)\n\t{\n\t\tif ($criteria === null) {\n\t\t\t$criteria = new Criteria(UserPeer::DATABASE_NAME);\n\t\t}\n\t\telseif ($criteria instanceof Criteria)\n\t\t{\n\t\t\t$criteria = clone $criteria;\n\t\t}\n\n\t\tif ($this->collOffensives === null) {\n\t\t\tif ($this->isNew()) {\n\t\t\t $this->collOffensives = array();\n\t\t\t} else {\n\n\t\t\t\t$criteria->add(OffensivePeer::USER_ID, $this->id);\n\n\t\t\t\tOffensivePeer::addSelectColumns($criteria);\n\t\t\t\t$this->collOffensives = OffensivePeer::doSelect($criteria, $con);\n\t\t\t}\n\t\t} else {\n\t\t\t// criteria has no effect for a new object\n\t\t\tif (!$this->isNew()) {\n\t\t\t\t// the following code is to determine if a new query is\n\t\t\t\t// called for. If the criteria is the same as the last\n\t\t\t\t// one, just return the collection.\n\n\n\t\t\t\t$criteria->add(OffensivePeer::USER_ID, $this->id);\n\n\t\t\t\tOffensivePeer::addSelectColumns($criteria);\n\t\t\t\tif (!isset($this->lastOffensiveCriteria) || !$this->lastOffensiveCriteria->equals($criteria)) {\n\t\t\t\t\t$this->collOffensives = OffensivePeer::doSelect($criteria, $con);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$this->lastOffensiveCriteria = $criteria;\n\t\treturn $this->collOffensives;\n\t}",
"public function getCriteria()\n {\n if (!isset($this->currentCriteria)) {\n throw new CollectionDriverException('Criteria is accessible only during preGetResult event.');\n }\n\n return $this->currentCriteria;\n }",
"public function getFkComprasSolicitacao()\n {\n return $this->fkComprasSolicitacao;\n }",
"public function buildPkeyCriteria()\n\t{\n\t\t$criteria = new Criteria(J019tParticipantesPeer::DATABASE_NAME);\n\n\t\t$criteria->add(J019tParticipantesPeer::CO_PARTICIPANTE, $this->co_participante);\n\n\t\treturn $criteria;\n\t}",
"public function buildPkeyCriteria()\n\t{\n\t\t$criteria = new Criteria(VpoRequestPeer::DATABASE_NAME);\n\n\t\t$criteria->add(VpoRequestPeer::ID, $this->id);\n\n\t\treturn $criteria;\n\t}",
"public function buildPkeyCriteria()\n {\n $criteria = ChildKluBillQuery::create();\n $criteria->add(KluBillTableMap::COL_ID, $this->id);\n\n return $criteria;\n }",
"public function getNarrationPlugins(Criteria $criteria = null, ConnectionInterface $con = null)\n {\n $partial = $this->collNarrationPluginsPartial && !$this->isNew();\n if (null === $this->collNarrationPlugins || null !== $criteria || $partial) {\n if ($this->isNew()) {\n // return empty collection\n if (null === $this->collNarrationPlugins) {\n $this->initNarrationPlugins();\n }\n } else {\n\n $query = ChildPluginsQuery::create(null, $criteria)\n ->filterByNarrationIssue($this);\n $collNarrationPlugins = $query->find($con);\n if (null !== $criteria) {\n return $collNarrationPlugins;\n }\n\n if ($partial && $this->collNarrationPlugins) {\n //make sure that already added objects gets added to the list of the database.\n foreach ($this->collNarrationPlugins as $obj) {\n if (!$collNarrationPlugins->contains($obj)) {\n $collNarrationPlugins[] = $obj;\n }\n }\n }\n\n $this->collNarrationPlugins = $collNarrationPlugins;\n $this->collNarrationPluginsPartial = false;\n }\n }\n\n return $this->collNarrationPlugins;\n }",
"public function getQuestionOffensives($criteria = null, PropelPDO $con = null)\n\t{\n\t\tif ($criteria === null) {\n\t\t\t$criteria = new Criteria(UserPeer::DATABASE_NAME);\n\t\t}\n\t\telseif ($criteria instanceof Criteria)\n\t\t{\n\t\t\t$criteria = clone $criteria;\n\t\t}\n\n\t\tif ($this->collQuestionOffensives === null) {\n\t\t\tif ($this->isNew()) {\n\t\t\t $this->collQuestionOffensives = array();\n\t\t\t} else {\n\n\t\t\t\t$criteria->add(QuestionOffensivePeer::USER_ID, $this->id);\n\n\t\t\t\tQuestionOffensivePeer::addSelectColumns($criteria);\n\t\t\t\t$this->collQuestionOffensives = QuestionOffensivePeer::doSelect($criteria, $con);\n\t\t\t}\n\t\t} else {\n\t\t\t// criteria has no effect for a new object\n\t\t\tif (!$this->isNew()) {\n\t\t\t\t// the following code is to determine if a new query is\n\t\t\t\t// called for. If the criteria is the same as the last\n\t\t\t\t// one, just return the collection.\n\n\n\t\t\t\t$criteria->add(QuestionOffensivePeer::USER_ID, $this->id);\n\n\t\t\t\tQuestionOffensivePeer::addSelectColumns($criteria);\n\t\t\t\tif (!isset($this->lastQuestionOffensiveCriteria) || !$this->lastQuestionOffensiveCriteria->equals($criteria)) {\n\t\t\t\t\t$this->collQuestionOffensives = QuestionOffensivePeer::doSelect($criteria, $con);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$this->lastQuestionOffensiveCriteria = $criteria;\n\t\treturn $this->collQuestionOffensives;\n\t}",
"function getSearchCriteria() {\n\t\t// should not be searched.\n\n\t\t$criteria = new CDbCriteria;\n\n\t\t$criteria->compare('id', $this->id);\n\t\t$criteria->compare('name', $this->name, true);\n\t\t$criteria->compare('client_id', $this->client_id);\n\n\t\t$criteria->compare('date', $this->date, true);\n\t\t$criteria->compare('fixpay', $this->fixpay);\n\t\t$criteria->compare('note', $this->note, true);\n\n//\t\t$criteria->with = array('client');//, 'invoices'=> array('select' =>'IFNULL((SELECT SUM(`sum`) FROM '.Yii::app()->db->tablePrefix.'invoices WHERE order_id = t.id),0) as invoices_sum'));\n\t\t$criteria->select = 't.*,\n\t\t\t(IFNULL((SELECT SUM(`sum`) FROM ' . Yii::app()->db->tablePrefix . 'invoices WHERE order_id = t.id),0)) as invoices_sum,\n\t\t\tIFNULL((SELECT SUM(cost*quantity) FROM ' . Yii::app()->db->tablePrefix . 'works WHERE `order_id` = t.id),0) as works_sum,\n\t\tIFNULL((SELECT SUM(sum) FROM ' . Yii::app()->db->tablePrefix . 'payments WHERE order_id = t.id),0) as payments_sum,\n\t\t(SELECT IFNULL(works_sum-payments_sum,0)) as finBalance';\n//\t\t(SELECT name FROM ' . Yii::app()->db->tablePrefix . 'clients WHERE id=t.client_id) as client_name';\n\n//\t\t$criteria->with=array('client');\n\t\t\n\t\tif ($this->status == 'open')\n\t\t\t$criteria->addNotInCondition('status', array('12', '13')); //закрыт или отменен\n elseif ($this->status !== '')\n\t\t\t$criteria->compare('status', $this->status);\n\n\t\treturn $criteria;\n\t}",
"public function getPesquisaHabilitadas($criteria = null, PropelPDO $con = null)\n\t{\n\t\tif(null === $this->collPesquisaHabilitadas || null !== $criteria) {\n\t\t\tif ($this->isNew() && null === $this->collPesquisaHabilitadas) {\n\t\t\t\t// return empty collection\n\t\t\t\t$this->initPesquisaHabilitadas();\n\t\t\t} else {\n\t\t\t\t$collPesquisaHabilitadas = PesquisaHabilitadaQuery::create(null, $criteria)\n\t\t\t\t\t->filterByUsuario($this)\n\t\t\t\t\t->find($con);\n\t\t\t\tif (null !== $criteria) {\n\t\t\t\t\treturn $collPesquisaHabilitadas;\n\t\t\t\t}\n\t\t\t\t$this->collPesquisaHabilitadas = $collPesquisaHabilitadas;\n\t\t\t}\n\t\t}\n\t\treturn $this->collPesquisaHabilitadas;\n\t}",
"public function getAllPlugins(Criteria $criteria = null, ConnectionInterface $con = null)\n {\n $partial = $this->collAllPluginsPartial && !$this->isNew();\n if (null === $this->collAllPlugins || null !== $criteria || $partial) {\n if ($this->isNew()) {\n // return empty collection\n if (null === $this->collAllPlugins) {\n $this->initAllPlugins();\n }\n } else {\n\n $query = ChildPluginsQuery::create(null, $criteria)\n ->filterByAllIssue($this);\n $collAllPlugins = $query->find($con);\n if (null !== $criteria) {\n return $collAllPlugins;\n }\n\n if ($partial && $this->collAllPlugins) {\n //make sure that already added objects gets added to the list of the database.\n foreach ($this->collAllPlugins as $obj) {\n if (!$collAllPlugins->contains($obj)) {\n $collAllPlugins[] = $obj;\n }\n }\n }\n\n $this->collAllPlugins = $collAllPlugins;\n $this->collAllPluginsPartial = false;\n }\n }\n\n return $this->collAllPlugins;\n }",
"public function getFkFiscalizacaoProcessoFiscalCreditos()\n {\n return $this->fkFiscalizacaoProcessoFiscalCreditos;\n }",
"public function getDetalleCheques()\n\t{\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id',$this->id);\n\t\t$criteria->compare('fecha',$this->fecha,true);\n\t\t$criteria->compare('pesificadorId',$this->pesificadorId);\n $criteria->compare('montoAcreditar',$this->montoAcreditar);\n $criteria->compare('montoGastos',$this->montoGastos);\n\t\t$criteria->compare('sucursalId',$this->sucursalId);\n $criteria->compare('estado',$this->estado);\n\t\t$criteria->compare('userStamp',$this->userStamp,true);\n\t\t$criteria->compare('timeStamp',$this->timeStamp,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}",
"public function getCriteriaCollection(): CriteriaCollection;",
"public function getChoices()\n {\n $choices = array();\n if (false !== $this->getOption('add_empty'))\n {\n $choices[''] = true === $this->getOption('add_empty') ? '' : $this->getOption('add_empty');\n }\n\n $criteria = PropelQuery::from($this->getOption('model'));\n if ($this->getOption('criteria'))\n {\n $criteria->mergeWith(clone $this->getOption('criteria'));\n }\n foreach ($this->getOption('query_methods') as $method)\n {\n $criteria->$method();\n }\n if ($order = $this->getOption('order_by'))\n {\n $criteria->orderBy($order[0], $order[1]);\n }\n $object = $criteria->findOne($this->getOption('connection'));\n if($object->getParent())\n $object=$object->getParent();\n\t\t$methodKey = $this->getOption('key_method');\n if (!method_exists($this->getOption('model'), $methodKey))\n {\n throw new RuntimeException(sprintf('Class \"%s\" must implement a \"%s\" method to be rendered in a \"%s\" widget', $this->getOption('model'), $methodKey, __CLASS__));\n }\n\n $methodValue = $this->getOption('method');\n if (!method_exists($this->getOption('model'), $methodValue))\n {\n throw new RuntimeException(sprintf('Class \"%s\" must implement a \"%s\" method to be rendered in a \"%s\" widget', $this->getOption('model'), $methodValue, __CLASS__));\n }\n\t\treturn $this->treeChoices($object, $methodKey, $methodValue, $criteria);\n }",
"public function findBy(Criteria $criteria)\n {\n $hydrator = $this->_hydrator;\n $classname = $this->_class->getName();\n $result = $this->_em->getConnexionDriver()->findBy($criteria, $this->_class);\n return array_map(function ($item) use ($hydrator, $classname) {\n return $hydrator->hydrate($item, new $classname());\n }, $result);\n }",
"public function getCheckInformations($criteria = null, PropelPDO $con = null)\n\t{\n\t\tif ($criteria === null) {\n\t\t\t$criteria = new Criteria(UserPeer::DATABASE_NAME);\n\t\t}\n\t\telseif ($criteria instanceof Criteria)\n\t\t{\n\t\t\t$criteria = clone $criteria;\n\t\t}\n\n\t\tif ($this->collCheckInformations === null) {\n\t\t\tif ($this->isNew()) {\n\t\t\t $this->collCheckInformations = array();\n\t\t\t} else {\n\n\t\t\t\t$criteria->add(CheckInformationPeer::USER_ID, $this->id);\n\n\t\t\t\tCheckInformationPeer::addSelectColumns($criteria);\n\t\t\t\t$this->collCheckInformations = CheckInformationPeer::doSelect($criteria, $con);\n\t\t\t}\n\t\t} else {\n\t\t\t// criteria has no effect for a new object\n\t\t\tif (!$this->isNew()) {\n\t\t\t\t// the following code is to determine if a new query is\n\t\t\t\t// called for. If the criteria is the same as the last\n\t\t\t\t// one, just return the collection.\n\n\n\t\t\t\t$criteria->add(CheckInformationPeer::USER_ID, $this->id);\n\n\t\t\t\tCheckInformationPeer::addSelectColumns($criteria);\n\t\t\t\tif (!isset($this->lastCheckInformationCriteria) || !$this->lastCheckInformationCriteria->equals($criteria)) {\n\t\t\t\t\t$this->collCheckInformations = CheckInformationPeer::doSelect($criteria, $con);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$this->lastCheckInformationCriteria = $criteria;\n\t\treturn $this->collCheckInformations;\n\t}",
"public function getProcesses() {\n\t\t$bean = $this->unbox();\n\t\treturn $bean->with(' ORDER BY `id` ')->ownProcess;\n\t}",
"public function buildCriteria()\n\t{\n\t\t$criteria = new Criteria(C060InventarioPeer::DATABASE_NAME);\n\n\t\tif ($this->isColumnModified(C060InventarioPeer::CO_EQUIPO)) $criteria->add(C060InventarioPeer::CO_EQUIPO, $this->co_equipo);\n\t\tif ($this->isColumnModified(C060InventarioPeer::CO_REGION)) $criteria->add(C060InventarioPeer::CO_REGION, $this->co_region);\n\t\tif ($this->isColumnModified(C060InventarioPeer::CO_NEGOCIO)) $criteria->add(C060InventarioPeer::CO_NEGOCIO, $this->co_negocio);\n\t\tif ($this->isColumnModified(C060InventarioPeer::CO_DIVISION)) $criteria->add(C060InventarioPeer::CO_DIVISION, $this->co_division);\n\t\tif ($this->isColumnModified(C060InventarioPeer::CO_TIPO)) $criteria->add(C060InventarioPeer::CO_TIPO, $this->co_tipo);\n\t\tif ($this->isColumnModified(C060InventarioPeer::CO_CUSTODIO)) $criteria->add(C060InventarioPeer::CO_CUSTODIO, $this->co_custodio);\n\t\tif ($this->isColumnModified(C060InventarioPeer::TX_ETIQUETA_STI)) $criteria->add(C060InventarioPeer::TX_ETIQUETA_STI, $this->tx_etiqueta_sti);\n\t\tif ($this->isColumnModified(C060InventarioPeer::CO_ESTADO)) $criteria->add(C060InventarioPeer::CO_ESTADO, $this->co_estado);\n\t\tif ($this->isColumnModified(C060InventarioPeer::TX_NOMBRE_EQUIPO)) $criteria->add(C060InventarioPeer::TX_NOMBRE_EQUIPO, $this->tx_nombre_equipo);\n\t\tif ($this->isColumnModified(C060InventarioPeer::TX_FUNSION_EQUIPO)) $criteria->add(C060InventarioPeer::TX_FUNSION_EQUIPO, $this->tx_funsion_equipo);\n\t\tif ($this->isColumnModified(C060InventarioPeer::CO_SO)) $criteria->add(C060InventarioPeer::CO_SO, $this->co_so);\n\t\tif ($this->isColumnModified(C060InventarioPeer::TX_ETIQUETA_ACTIVO)) $criteria->add(C060InventarioPeer::TX_ETIQUETA_ACTIVO, $this->tx_etiqueta_activo);\n\t\tif ($this->isColumnModified(C060InventarioPeer::TX_SERIAL_HARDWARE)) $criteria->add(C060InventarioPeer::TX_SERIAL_HARDWARE, $this->tx_serial_hardware);\n\t\tif ($this->isColumnModified(C060InventarioPeer::TX_MARCA_HARDWARE)) $criteria->add(C060InventarioPeer::TX_MARCA_HARDWARE, $this->tx_marca_hardware);\n\t\tif ($this->isColumnModified(C060InventarioPeer::TX_MODELO_HARDWARE)) $criteria->add(C060InventarioPeer::TX_MODELO_HARDWARE, $this->tx_modelo_hardware);\n\t\tif ($this->isColumnModified(C060InventarioPeer::CO_CIUDAD)) $criteria->add(C060InventarioPeer::CO_CIUDAD, $this->co_ciudad);\n\t\tif ($this->isColumnModified(C060InventarioPeer::CO_EDIFICIO)) $criteria->add(C060InventarioPeer::CO_EDIFICIO, $this->co_edificio);\n\t\tif ($this->isColumnModified(C060InventarioPeer::TX_DIRECCION_UBICACION)) $criteria->add(C060InventarioPeer::TX_DIRECCION_UBICACION, $this->tx_direccion_ubicacion);\n\t\tif ($this->isColumnModified(C060InventarioPeer::TX_DETALLE_UBICACION)) $criteria->add(C060InventarioPeer::TX_DETALLE_UBICACION, $this->tx_detalle_ubicacion);\n\t\tif ($this->isColumnModified(C060InventarioPeer::CO_CENTRO_DATO)) $criteria->add(C060InventarioPeer::CO_CENTRO_DATO, $this->co_centro_dato);\n\t\tif ($this->isColumnModified(C060InventarioPeer::CO_RACK)) $criteria->add(C060InventarioPeer::CO_RACK, $this->co_rack);\n\t\tif ($this->isColumnModified(C060InventarioPeer::TX_UBICACION_LLAVE)) $criteria->add(C060InventarioPeer::TX_UBICACION_LLAVE, $this->tx_ubicacion_llave);\n\t\tif ($this->isColumnModified(C060InventarioPeer::IN_RESPALDO_AUTOMATIZADO)) $criteria->add(C060InventarioPeer::IN_RESPALDO_AUTOMATIZADO, $this->in_respaldo_automatizado);\n\t\tif ($this->isColumnModified(C060InventarioPeer::IN_BLOQUEO_INACTIVIDAD)) $criteria->add(C060InventarioPeer::IN_BLOQUEO_INACTIVIDAD, $this->in_bloqueo_inactividad);\n\t\tif ($this->isColumnModified(C060InventarioPeer::IN_ADIMINISTRADORES_PERSONALIZADOS)) $criteria->add(C060InventarioPeer::IN_ADIMINISTRADORES_PERSONALIZADOS, $this->in_adiministradores_personalizados);\n\t\tif ($this->isColumnModified(C060InventarioPeer::IN_POLITICA_PASSWORD)) $criteria->add(C060InventarioPeer::IN_POLITICA_PASSWORD, $this->in_politica_password);\n\t\tif ($this->isColumnModified(C060InventarioPeer::IN_SINCRONIZACION_RELOJ)) $criteria->add(C060InventarioPeer::IN_SINCRONIZACION_RELOJ, $this->in_sincronizacion_reloj);\n\t\tif ($this->isColumnModified(C060InventarioPeer::IN_MONITOREADO)) $criteria->add(C060InventarioPeer::IN_MONITOREADO, $this->in_monitoreado);\n\t\tif ($this->isColumnModified(C060InventarioPeer::IN_INF_ACTUALIZADA)) $criteria->add(C060InventarioPeer::IN_INF_ACTUALIZADA, $this->in_inf_actualizada);\n\t\tif ($this->isColumnModified(C060InventarioPeer::IN_LOG_ACTIVO)) $criteria->add(C060InventarioPeer::IN_LOG_ACTIVO, $this->in_log_activo);\n\t\tif ($this->isColumnModified(C060InventarioPeer::CO_NIVEL_CRITICIDAD)) $criteria->add(C060InventarioPeer::CO_NIVEL_CRITICIDAD, $this->co_nivel_criticidad);\n\t\tif ($this->isColumnModified(C060InventarioPeer::TX_OBSERVACIONES)) $criteria->add(C060InventarioPeer::TX_OBSERVACIONES, $this->tx_observaciones);\n\t\tif ($this->isColumnModified(C060InventarioPeer::TX_RUTA_RESPALDO_CONFIGURACIONES)) $criteria->add(C060InventarioPeer::TX_RUTA_RESPALDO_CONFIGURACIONES, $this->tx_ruta_respaldo_configuraciones);\n\t\tif ($this->isColumnModified(C060InventarioPeer::CO_NUM_INVENTARIO)) $criteria->add(C060InventarioPeer::CO_NUM_INVENTARIO, $this->co_num_inventario);\n\n\t\treturn $criteria;\n\t}",
"public function getCandidates()\n {\n foreach ($this->candidates as $id) {\n $this->numOfCandidates++;\n // Use a generator to save on memory/resources\n // load accounts from DB one at a time only when required\n yield (new CandidateModel())->load($id);\n }\n }",
"public function getTranscodingsJoinCpu($criteria = null, $con = null)\n\t{\n\t\t// include the Peer class\n\t\tinclude_once 'lib/model/om/BaseTranscodingPeer.php';\n\t\tif ($criteria === null) {\n\t\t\t$criteria = new Criteria();\n\t\t}\n\t\telseif ($criteria instanceof Criteria)\n\t\t{\n\t\t\t$criteria = clone $criteria;\n\t\t}\n\n\t\tif ($this->collTranscodings === null) {\n\t\t\tif ($this->isNew()) {\n\t\t\t\t$this->collTranscodings = array();\n\t\t\t} else {\n\n\t\t\t\t$criteria->add(TranscodingPeer::MM_ID, $this->getId());\n\n\t\t\t\t$this->collTranscodings = TranscodingPeer::doSelectJoinCpu($criteria, $con);\n\t\t\t}\n\t\t} else {\n\t\t\t// the following code is to determine if a new query is\n\t\t\t// called for. If the criteria is the same as the last\n\t\t\t// one, just return the collection.\n\n\t\t\t$criteria->add(TranscodingPeer::MM_ID, $this->getId());\n\n\t\t\tif (!isset($this->lastTranscodingCriteria) || !$this->lastTranscodingCriteria->equals($criteria)) {\n\t\t\t\t$this->collTranscodings = TranscodingPeer::doSelectJoinCpu($criteria, $con);\n\t\t\t}\n\t\t}\n\t\t$this->lastTranscodingCriteria = $criteria;\n\n\t\treturn $this->collTranscodings;\n\t}",
"public function getUserExperiences($criteria = null, PropelPDO $con = null)\n\t{\n\t\tif ($criteria === null) {\n\t\t\t$criteria = new Criteria(UserPeer::DATABASE_NAME);\n\t\t}\n\t\telseif ($criteria instanceof Criteria)\n\t\t{\n\t\t\t$criteria = clone $criteria;\n\t\t}\n\n\t\tif ($this->collUserExperiences === null) {\n\t\t\tif ($this->isNew()) {\n\t\t\t $this->collUserExperiences = array();\n\t\t\t} else {\n\n\t\t\t\t$criteria->add(UserExperiencePeer::USER_ID, $this->id);\n\n\t\t\t\tUserExperiencePeer::addSelectColumns($criteria);\n\t\t\t\t$this->collUserExperiences = UserExperiencePeer::doSelect($criteria, $con);\n\t\t\t}\n\t\t} else {\n\t\t\t// criteria has no effect for a new object\n\t\t\tif (!$this->isNew()) {\n\t\t\t\t// the following code is to determine if a new query is\n\t\t\t\t// called for. If the criteria is the same as the last\n\t\t\t\t// one, just return the collection.\n\n\n\t\t\t\t$criteria->add(UserExperiencePeer::USER_ID, $this->id);\n\n\t\t\t\tUserExperiencePeer::addSelectColumns($criteria);\n\t\t\t\tif (!isset($this->lastUserExperienceCriteria) || !$this->lastUserExperienceCriteria->equals($criteria)) {\n\t\t\t\t\t$this->collUserExperiences = UserExperiencePeer::doSelect($criteria, $con);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$this->lastUserExperienceCriteria = $criteria;\n\t\treturn $this->collUserExperiences;\n\t}",
"public function getOneBy(array $criteria = []) : array\n {\n return $this->repository->findOneBy($criteria)->execute()->current();\n }",
"public function getNoticias($criteria = null, PropelPDO $con = null)\n\t{\n\t\tif(null === $this->collNoticias || null !== $criteria) {\n\t\t\tif ($this->isNew() && null === $this->collNoticias) {\n\t\t\t\t// return empty collection\n\t\t\t\t$this->initNoticias();\n\t\t\t} else {\n\t\t\t\t$collNoticias = NoticiaQuery::create(null, $criteria)\n\t\t\t\t\t->filterByUsuario($this)\n\t\t\t\t\t->find($con);\n\t\t\t\tif (null !== $criteria) {\n\t\t\t\t\treturn $collNoticias;\n\t\t\t\t}\n\t\t\t\t$this->collNoticias = $collNoticias;\n\t\t\t}\n\t\t}\n\t\treturn $this->collNoticias;\n\t}",
"public function getQuestions($criteria = null, PropelPDO $con = null)\n\t{\n\t\tif ($criteria === null) {\n\t\t\t$criteria = new Criteria(UserPeer::DATABASE_NAME);\n\t\t}\n\t\telseif ($criteria instanceof Criteria)\n\t\t{\n\t\t\t$criteria = clone $criteria;\n\t\t}\n\n\t\tif ($this->collQuestions === null) {\n\t\t\tif ($this->isNew()) {\n\t\t\t $this->collQuestions = array();\n\t\t\t} else {\n\n\t\t\t\t$criteria->add(QuestionPeer::USER_ID, $this->id);\n\n\t\t\t\tQuestionPeer::addSelectColumns($criteria);\n\t\t\t\t$this->collQuestions = QuestionPeer::doSelect($criteria, $con);\n\t\t\t}\n\t\t} else {\n\t\t\t// criteria has no effect for a new object\n\t\t\tif (!$this->isNew()) {\n\t\t\t\t// the following code is to determine if a new query is\n\t\t\t\t// called for. If the criteria is the same as the last\n\t\t\t\t// one, just return the collection.\n\n\n\t\t\t\t$criteria->add(QuestionPeer::USER_ID, $this->id);\n\n\t\t\t\tQuestionPeer::addSelectColumns($criteria);\n\t\t\t\tif (!isset($this->lastQuestionCriteria) || !$this->lastQuestionCriteria->equals($criteria)) {\n\t\t\t\t\t$this->collQuestions = QuestionPeer::doSelect($criteria, $con);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$this->lastQuestionCriteria = $criteria;\n\t\treturn $this->collQuestions;\n\t}",
"function get_cursos( $id_evaluacion ) {\n\t\t$condicion = array(\n\t\t\t'IdCapacitacionEvaluacion'\t=> $id_evaluacion,\n\t\t\t'pa_capacitacion_cursos_propuestos.IdArea'=> $this->session->userdata('id_area'),\n\t\t\t\n\t\t);\n\t\t\n\t\t// obtiene los cursos por los que el usuario ya voto \n\t\t$votos = array();\n\t\t$v = $this->get_votos();\n\t\tif( $v->num_rows() > 0 ) {\n\t\t\t$i = 0;\n\t\t\tforeach( $v->result() as $row ) {\n\t\t\t\t$votos[$i] = $row->IdCurso;\n\t\t\t\t$i++;\n\t\t\t}\n\t\t}\n\t\t$this->db->group_by( 'Curso' );\n\t\t$this->db->join('pa_capacitacion_cursos', 'pa_capacitacion_cursos.IdCapacitacionCurso=pa_capacitacion_cursos_propuestos.IdCurso');\n\t\t$consulta = $this->db->get_where( 'pa_capacitacion_cursos_propuestos', $condicion ); \n\t\treturn $consulta;\n\t}",
"public function getFeatureCvtermPubs($criteria = null, PropelPDO $con = null)\n {\n $partial = $this->collFeatureCvtermPubsPartial && !$this->isNew();\n if (null === $this->collFeatureCvtermPubs || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collFeatureCvtermPubs) {\n // return empty collection\n $this->initFeatureCvtermPubs();\n } else {\n $collFeatureCvtermPubs = FeatureCvtermPubQuery::create(null, $criteria)\n ->filterByFeatureCvterm($this)\n ->find($con);\n if (null !== $criteria) {\n if (false !== $this->collFeatureCvtermPubsPartial && count($collFeatureCvtermPubs)) {\n $this->initFeatureCvtermPubs(false);\n\n foreach($collFeatureCvtermPubs as $obj) {\n if (false == $this->collFeatureCvtermPubs->contains($obj)) {\n $this->collFeatureCvtermPubs->append($obj);\n }\n }\n\n $this->collFeatureCvtermPubsPartial = true;\n }\n\n $collFeatureCvtermPubs->getInternalIterator()->rewind();\n return $collFeatureCvtermPubs;\n }\n\n if($partial && $this->collFeatureCvtermPubs) {\n foreach($this->collFeatureCvtermPubs as $obj) {\n if($obj->isNew()) {\n $collFeatureCvtermPubs[] = $obj;\n }\n }\n }\n\n $this->collFeatureCvtermPubs = $collFeatureCvtermPubs;\n $this->collFeatureCvtermPubsPartial = false;\n }\n }\n\n return $this->collFeatureCvtermPubs;\n }",
"public function buildPkeyCriteria()\n\t{\n\t\t$criteria = new Criteria(UserPeer::DATABASE_NAME);\n\n\t\t$criteria->add(UserPeer::ID, $this->id);\n\n\t\treturn $criteria;\n\t}",
"public function buildPkeyCriteria()\n\t{\n\t\t$criteria = new Criteria(UserPeer::DATABASE_NAME);\n\n\t\t$criteria->add(UserPeer::ID, $this->id);\n\n\t\treturn $criteria;\n\t}",
"public function getFkPessoalPensionistaCids()\n {\n return $this->fkPessoalPensionistaCids;\n }",
"public function getInformeCMI()\n {\n $objetivo = array();\n\n $c = new Criteria();\n $c->add(IndicadorPeer::OBJETIVO_ID, $this->getId());\n $c->add(IndicadorPeer::PROCESO, null, Criteria::ISNULL);\n $c->add(IndicadorPeer::BORRADOR, 0, Criteria::EQUAL);\n $indicadores = IndicadorPeer::doSelect($c);\n\n foreach ($indicadores as $indicador)\n {\n $objetivo[] = array (\n $this->getNombre(),\n $indicador->getIndicador(),\n $indicador->getCategoria(),\n $indicador->getFormulaTextual(),\n $indicador->getUmbralRojo(),\n $indicador->getUmbralAmarillo(),\n $indicador->getUmbralVerde(),\n $indicador->getValorActual(),\n $indicador->getMeta(),\n $indicador->getIniciativa(),\n );\n }\n return $objetivo;\n }",
"public function ListarProductosStockMinimo()\n{\n\tself::SetNames();\n\t$sql = \" select * from productos INNER JOIN categorias ON productos.codcategoria = categorias.codcategoria WHERE productos.existencia <= productos.stockminimo\";\n\tforeach ($this->dbh->query($sql) as $row)\n\t{\n\t\t$this->p[] = $row;\n\t}\n\treturn $this->p;\n\t$this->dbh=null;\n}",
"public function getPeer()\n {\n if (self::$peer === null) {\n self::$peer = new OperationPrimesPeer();\n }\n\n return self::$peer;\n }",
"public function getEntities()\n {\n return $this->getRepository()->findBy([], ['discipline' => 'ASC']);\n }",
"public function getCriteriaList() {\n return $this->_get(6);\n }",
"public function getBudgets() {\n $table = new Yourdelivery_Model_DbTable_Company_Budgets();\n $all = $table->fetchAll('companyId = ' . $this->getId());\n $obj = new splObjectStorage();\n foreach ($all AS $budget) {\n try {\n $budget = new Yourdelivery_Model_Budget($budget->id);\n } catch (Yourdelivery_Exception_Database_Inconsistency $e) {\n continue;\n }\n $obj->attach($budget);\n }\n return $obj;\n }",
"public function getByCriteria(Criteria $criteria)\n {\n try\n {\n $this->db->setFetchMode(Zend_Db::FETCH_ASSOC);\n $sql = \"SELECT \".ZipCode::ZIP_CODE.\", \".ZipCode::SETTLEMENT.\", \".ZipCode::DISTRICT.\", \".ZipCode::STATE.\", \".ZipCode::CITY.\", \".ZipCode::MEXICO_STATE.\"\n FROM \".ZipCode::TABLENAME.\"\n WHERE \" . $criteria->createSql();\n $zipCodeCollection = new ZipCodeCollection();\n foreach ($this->db->fetchAll($sql) as $result){\n $zipCodeCollection->append($this->createInternal($result));\n }\n }\n catch(Exception $e)\n {\n throw new Exception(\"No se pudo obtener la colección de items\\n\" . $e->getMessage());\n }\n return $zipCodeCollection;\n }",
"public function getSolicitacaoResgatesRelatedBySolicitanteId($criteria = null, PropelPDO $con = null)\n\t{\n\t\tif(null === $this->collSolicitacaoResgatesRelatedBySolicitanteId || null !== $criteria) {\n\t\t\tif ($this->isNew() && null === $this->collSolicitacaoResgatesRelatedBySolicitanteId) {\n\t\t\t\t// return empty collection\n\t\t\t\t$this->initSolicitacaoResgatesRelatedBySolicitanteId();\n\t\t\t} else {\n\t\t\t\t$collSolicitacaoResgatesRelatedBySolicitanteId = SolicitacaoResgateQuery::create(null, $criteria)\n\t\t\t\t\t->filterByUsuarioRelatedBySolicitanteId($this)\n\t\t\t\t\t->find($con);\n\t\t\t\tif (null !== $criteria) {\n\t\t\t\t\treturn $collSolicitacaoResgatesRelatedBySolicitanteId;\n\t\t\t\t}\n\t\t\t\t$this->collSolicitacaoResgatesRelatedBySolicitanteId = $collSolicitacaoResgatesRelatedBySolicitanteId;\n\t\t\t}\n\t\t}\n\t\treturn $this->collSolicitacaoResgatesRelatedBySolicitanteId;\n\t}",
"public function findEmpresasWithPromociones()\n {\n $em = $this->getEntityManager();\n \n $consulta = $em->createQuery('SELECT cli FROM ErosFrontendBundle:Empresas cli WHERE cli.pidempresa IN(SELECT cli2.pidempresa FROM ErosFrontendBundle:CliPromociones pro JOIN pro.empresa cli2)');\n\n return $consulta->getResult();\n }",
"public function getMontacargasBateriass($criteria = null, PropelPDO $con = null)\n {\n $partial = $this->collMontacargasBateriassPartial && !$this->isNew();\n if (null === $this->collMontacargasBateriass || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collMontacargasBateriass) {\n // return empty collection\n $this->initMontacargasBateriass();\n } else {\n $collMontacargasBateriass = MontacargasBateriasQuery::create(null, $criteria)\n ->filterByMontacargas($this)\n ->find($con);\n if (null !== $criteria) {\n if (false !== $this->collMontacargasBateriassPartial && count($collMontacargasBateriass)) {\n $this->initMontacargasBateriass(false);\n\n foreach ($collMontacargasBateriass as $obj) {\n if (false == $this->collMontacargasBateriass->contains($obj)) {\n $this->collMontacargasBateriass->append($obj);\n }\n }\n\n $this->collMontacargasBateriassPartial = true;\n }\n\n $collMontacargasBateriass->getInternalIterator()->rewind();\n\n return $collMontacargasBateriass;\n }\n\n if ($partial && $this->collMontacargasBateriass) {\n foreach ($this->collMontacargasBateriass as $obj) {\n if ($obj->isNew()) {\n $collMontacargasBateriass[] = $obj;\n }\n }\n }\n\n $this->collMontacargasBateriass = $collMontacargasBateriass;\n $this->collMontacargasBateriassPartial = false;\n }\n }\n\n return $this->collMontacargasBateriass;\n }",
"public function getFkComprasSolicitacaoItem()\n {\n return $this->fkComprasSolicitacaoItem;\n }",
"public function findSucursales()\r\n\t\t{\r\n\t\t\t$result = null;\r\n\t\t\t$findModel = null;\r\n\t\t\tif ( self::getSedePrincipal() ) {\r\n\t\t\t\t$datos = self::getDatosContribuyente();\r\n\t\t\t\tif ( count($datos) > 0 ) {\r\n\t\t\t\t\t$findModel = Sucursal::find()->where('naturaleza =:naturaleza',\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t [':naturaleza' => $datos['naturaleza']])\r\n\t\t\t\t\t\t\t\t\t\t\t\t ->andWhere('cedula =:cedula',\r\n\t\t\t\t\t\t\t\t\t\t\t\t \t\t\t [':cedula' => $datos['cedula']])\r\n\t\t\t\t\t\t\t\t\t\t\t\t ->andWhere('tipo =:tipo',\r\n\t\t\t\t\t\t\t\t\t\t\t\t \t\t\t [':tipo' => $datos['tipo']])\r\n\t\t\t\t\t\t\t\t\t\t\t\t ->andWhere('tipo_naturaleza =:tipo_naturaleza',\r\n\t\t\t\t\t\t\t\t\t\t\t\t \t\t\t [':tipo_naturaleza' => 1])\r\n\t\t\t\t\t\t\t\t\t\t\t\t ->andWhere(':inactivo =:inactivo',\r\n\t\t\t\t\t\t\t\t\t\t\t\t \t\t\t [':inactivo' => 0])\r\n\t\t\t\t\t\t\t\t\t\t\t\t ->orderBy([\r\n\t\t\t\t\t\t\t\t\t\t\t\t \t\t'id_rif' => SORT_ASC,\r\n\t\t\t\t\t\t\t\t\t\t\t\t \t]);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn isset($findModel) ? $findModel : null;\r\n\t\t}",
"public function allConductores(){\n global $baseDatos;\n $listaConductores = array();\n if ($this->existeConductor()){\n $sql = \"SELECT * FROM `conductores`\";\n $resultado = $baseDatos->query($sql);\n $conductores = $resultado->fetch_all(MYSQLI_ASSOC);\n foreach ($conductores as $con){\n $conductor = new Conductor();\n $conductor->constructorConductor($con);\n $listaConductores[] = $conductor;\n }\n return $listaConductores;\n }else{\n return null;\n }\n }"
] | [
"0.67946124",
"0.6406716",
"0.6288889",
"0.6235915",
"0.59735477",
"0.59352905",
"0.567421",
"0.556548",
"0.550335",
"0.5485317",
"0.54754704",
"0.54493105",
"0.54493105",
"0.5385212",
"0.53807765",
"0.5379429",
"0.53694385",
"0.53662443",
"0.536164",
"0.5353145",
"0.53432184",
"0.53329897",
"0.5331228",
"0.5308466",
"0.53037775",
"0.52861863",
"0.5250622",
"0.51952964",
"0.51927847",
"0.5190729",
"0.518562",
"0.5180638",
"0.51510906",
"0.51284176",
"0.51087105",
"0.5104982",
"0.50998926",
"0.5098539",
"0.5087682",
"0.5085022",
"0.50824255",
"0.5072694",
"0.5037022",
"0.5036254",
"0.503216",
"0.50280327",
"0.5022349",
"0.50173616",
"0.5015641",
"0.50106466",
"0.5007811",
"0.49879122",
"0.4984198",
"0.49656624",
"0.495913",
"0.49552128",
"0.49511805",
"0.49509326",
"0.49499637",
"0.49363083",
"0.49286547",
"0.49243534",
"0.492333",
"0.49109873",
"0.4901077",
"0.4899679",
"0.48926133",
"0.48921874",
"0.4887671",
"0.48863336",
"0.48852146",
"0.4881299",
"0.48802957",
"0.48778304",
"0.4873572",
"0.4873133",
"0.486965",
"0.4867815",
"0.48676613",
"0.48651984",
"0.48619115",
"0.48600516",
"0.48587266",
"0.4846407",
"0.48331603",
"0.48331603",
"0.48320168",
"0.48319677",
"0.48301134",
"0.48290116",
"0.4826928",
"0.482051",
"0.48188692",
"0.48141506",
"0.4811922",
"0.48111078",
"0.4810478",
"0.48087215",
"0.4807457",
"0.48067456"
] | 0.7598169 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.